Skip to content

Commit abe29d1

Browse files
Merge pull request #43 from modelstudioai/feat/auto-issue
feat: add agent-guided issue reporting workflow and bug report template
2 parents 017ab86 + 6a0d39c commit abe29d1

3 files changed

Lines changed: 550 additions & 0 deletions

File tree

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
name: Bug Report
2+
description: Report a bug in bailian-cli (bl)
3+
title: "[bug]: "
4+
labels:
5+
- bug
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to report a bug.
11+
12+
**Before submitting:** search [open issues](https://github.com/modelstudioai/cli/issues?q=is%3Aissue+is%3Aopen) for duplicates.
13+
14+
**Security:** redact API keys (`sk-...`), console tokens, internal URLs, and business prompts before pasting output.
15+
16+
- type: markdown
17+
attributes:
18+
value: |
19+
## Environment
20+
21+
- type: input
22+
id: cli-version
23+
attributes:
24+
label: CLI version
25+
description: "Output of bl --version (use only X.Y.Z, without the bl prefix)"
26+
placeholder: "1.2.1"
27+
validations:
28+
required: true
29+
30+
- type: input
31+
id: skill-version
32+
attributes:
33+
label: Skill version (optional)
34+
description: "metadata.version from the installed bailian-cli skill, if applicable"
35+
placeholder: "1.2.1"
36+
37+
- type: input
38+
id: node-version
39+
attributes:
40+
label: Node version
41+
description: "Output of node --version"
42+
placeholder: "v22.12.0"
43+
validations:
44+
required: true
45+
46+
- type: input
47+
id: os
48+
attributes:
49+
label: OS
50+
description: "e.g. darwin 24.5.0, Ubuntu 22.04"
51+
placeholder: "darwin 24.5.0"
52+
validations:
53+
required: true
54+
55+
- type: dropdown
56+
id: region
57+
attributes:
58+
label: Region
59+
description: "From bl auth status or bl config show"
60+
options:
61+
- cn
62+
- us
63+
- intl
64+
- unknown
65+
validations:
66+
required: true
67+
68+
- type: markdown
69+
attributes:
70+
value: |
71+
## Reproduction
72+
73+
- type: textarea
74+
id: reproduce-command
75+
attributes:
76+
label: Command to reproduce
77+
description: "Exact command that failed. Redact --api-key, sk-..., and sensitive prompts."
78+
render: shell
79+
placeholder: |
80+
bl video generate --prompt "sunset" --download out.mp4 --verbose
81+
validations:
82+
required: true
83+
84+
- type: textarea
85+
id: expected
86+
attributes:
87+
label: Expected behavior
88+
description: What should have happened?
89+
validations:
90+
required: true
91+
92+
- type: textarea
93+
id: actual
94+
attributes:
95+
label: Actual behavior
96+
description: What happened instead?
97+
validations:
98+
required: true
99+
100+
- type: markdown
101+
attributes:
102+
value: |
103+
## Error output
104+
105+
Paste stderr as printed by `bl`. Include `Request ID` when present — it helps us trace logs.
106+
107+
- type: textarea
108+
id: full-output
109+
attributes:
110+
label: Full output
111+
description: Error, Hint, Status, Request ID, Exit code, etc.
112+
render: shell
113+
placeholder: |
114+
Error: Generation completed but no images returned.
115+
Hint: ...
116+
Status: HTTP 200 (...)
117+
Request ID: ...
118+
Exit code: 1
119+
validations:
120+
required: true
121+
122+
- type: textarea
123+
id: json-error
124+
attributes:
125+
label: JSON error (optional)
126+
description: "Re-run with --output json and paste the error object if available"
127+
render: json
128+
placeholder: |
129+
{
130+
"error": {
131+
"code": 1,
132+
"message": "...",
133+
"http_status": 200,
134+
"api_code": "...",
135+
"request_id": "..."
136+
}
137+
}
138+
139+
- type: markdown
140+
attributes:
141+
value: |
142+
## Troubleshooting already tried
143+
144+
- type: checkboxes
145+
id: already-tried
146+
attributes:
147+
label: Already tried
148+
options:
149+
- label: "bl update and skill version aligned with CLI"
150+
- label: "bl auth status OK for this command"
151+
- label: "Different network / region — still reproduces"
152+
153+
- type: markdown
154+
attributes:
155+
value: |
156+
## Additional context
157+
158+
- type: dropdown
159+
id: frequency
160+
attributes:
161+
label: How often does this happen?
162+
options:
163+
- Always
164+
- Intermittent
165+
- Once
166+
validations:
167+
required: true
168+
169+
- type: dropdown
170+
id: invoked-via
171+
attributes:
172+
label: How was bl invoked?
173+
options:
174+
- Terminal (manual)
175+
- Agent (Cursor, Claude, etc.)
176+
- CI / script
177+
- Other
178+
validations:
179+
required: true
180+
181+
- type: textarea
182+
id: notes
183+
attributes:
184+
label: Notes (optional)
185+
description: Anything else that might help — related issues, screenshots, minimal repro repo, etc.

skills/bailian-cli/SKILL.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description: >-
88
vision, TTS/ASR, file upload, app call, memory, knowledge RAG, web search, model list.
99
**LOCAL FILES**: commands accepting URLs also accept local paths — auto-upload built-in; never ask for URLs.
1010
Full command reference: `reference/index.md` + `reference/<group>.md` in this skill directory.
11+
When `bl` fails with a likely CLI bug (not usage/auth/quota/model-not-found), ask whether to report — see `assets/issue-reporting.md`.
1112
---
1213

1314
# Aliyun Model Studio CLI (`bl`)
@@ -211,6 +212,19 @@ bl config export-schema --command "image generate"
211212

212213
---
213214

215+
## CLI errors: report an issue
216+
217+
When a `bl` command **fails** and the cause is **not** a user/service-side error (usage, auth, quota, content filter, model not found, invalid parameters, obvious local env), ask the user **once** whether to report a bug to the Bailian CLI team.
218+
219+
1. Classify the failure using [`assets/issue-reporting.md`](assets/issue-reporting.md) (EXCLUDE vs INCLUDE tables).
220+
2. If INCLUDE matches, ask the user (Chinese prompt in that doc). If they agree, collect environment info, redact secrets, fill the issue template, and submit to https://github.com/modelstudioai/cli/issues (browser or `gh issue create`).
221+
3. Before offering: align skill/CLI versions and retry with `--verbose` / `--output json` when output is thin.
222+
4. Do **not** ask in CI or when `--non-interactive` is set unless the user explicitly wants to report.
223+
224+
Full workflow, redaction rules, template, and exit-code reference: [`assets/issue-reporting.md`](assets/issue-reporting.md).
225+
226+
---
227+
214228
## Priority reminders
215229

216230
- Text → `bl text chat`, not other LLM APIs.

0 commit comments

Comments
 (0)