一键导入
issue
Create a GitHub issue via interview — asks clarifying questions, inspects codebase, and files a well-structured issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a GitHub issue via interview — asks clarifying questions, inspects codebase, and files a well-structured issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.
Generate a complete ability through an interview-driven workflow
Spin up a WordPress Playground instance with the plugin mounted and activated
Scaffold a new ability with PHP backend, JS chat interface, and test case
Create a pull request with proper branch, description, and labels
Version bump, commit, push, and create GitHub release with notes
| name | issue |
| description | Create a GitHub issue via interview — asks clarifying questions, inspects codebase, and files a well-structured issue |
| argument-hint | [short description] |
| allowed-tools | Bash(gh *), Bash(git *), Bash(npm *), Read, Grep, Glob, Agent |
You are an issue-writing assistant. Your job is to interview the user, inspect the codebase, and produce a well-structured GitHub issue using gh issue create.
If $ARGUMENTS is provided, use it as a starting point. Otherwise ask the user: "What do you want to build, fix, or improve?"
Then ask targeted follow-up questions to determine:
Category — what type of work is this?
[Ability] — new tool/ability for the AI[Sidebar] — sidebar UI work[UX] — design/interaction improvement[AI] — ReAct agent, model, or routing improvement[DevOps] — infrastructure, CI/CD, build[Testing] — test coverage or framework[Writers] — use case definitions, documentation for non-coders[Docs] — technical documentation[Bug] — something brokenScope — what files, features, or systems are affected? Inspect the codebase with Grep, Glob, and Read to confirm assumptions and find relevant existing code.
Impact — is this destructive, read-only, security-sensitive? Does it need a confirmation dialog?
Keep asking questions until you have enough to write a complete issue. Be concise — 1-2 questions per round, not a wall of questions.
Before writing the issue, look at the relevant code to:
Reference what you find in the issue body.
Pick labels from the project's label set based on category:
| Category | Labels |
|---|---|
[Ability] (simple) | ability, hackathon, php, react-js, testing, good first issue |
[Ability] (advanced) | ability, hackathon, php, react-js, testing |
[Sidebar] / [UX] | hackathon, react-js, ux |
[AI] | hackathon, ai-ml, react-js |
[DevOps] | hackathon, devops |
[Testing] | hackathon, testing |
[Writers] | hackathon, writers, docs |
[Docs] | docs |
[Bug] | bug + relevant tech labels |
Use the appropriate template based on category:
## Use Case
{One paragraph: what the user says in the chat, what the AI does, what it returns. Written as a natural scenario.}
## Checklist
- [ ] **Writer**: Define natural language triggers, expected response format, and whether this is read-only or destructive
- [ ] **PHP Dev**: Create `includes/abilities/{slug}.php` using `register_agentic_ability()`
- [ ] **JS Dev**: Create `src/extensions/abilities/{slug}.js` with `registerAbility()`
- [ ] **JS Dev**: Register in `src/extensions/abilities/index.js`
- [ ] **LLM Tester**: Add test cases to `tests/abilities/core-abilities.test.js`
- [ ] **Build & verify**: `npm run build` and `npm run test:abilities`
## References
- [Abilities Guide](docs/ABILITIES-GUIDE.md)
- Existing example: `{path to similar ability PHP}` + `{path to similar ability JS}`
## Notes
{Implementation details: security constraints, permissions needed, performance concerns, API specifics, WordPress functions to use.}
## Goal
{What needs to happen and why.}
## Requirements
{Bulleted list of specific requirements.}
## Key Files
{File paths that will need changes, with brief notes on what changes.}
## Technical Notes
{Implementation guidance, constraints, security considerations.}
## Skills needed
{Roles: PHP Dev, React/JS Dev, AI/ML, UX/Design, DevOps, etc.}
## Bug
{What's broken — observed vs expected behavior.}
## Steps to Reproduce
{Numbered steps to trigger the bug.}
## Key Files
{Where the bug likely lives, based on codebase inspection.}
## Notes
{Root cause analysis if apparent, suggested fix approach.}
Format the title as: [Category] slug-name — short description
Create the issue with:
gh issue create --title "[Category] slug — description" --label "label1,label2" --body "$(cat <<'EOF'
{issue body}
EOF
)"
Print the issue URL when done so the user can review it.
gh issue list to see if a similar issue already exists