gan-xing/codexbridge/agent-draft-router
Claude Code and agent skill by gan-xing/codexbridge
- community
Checking that the SKILL.md file is still in the repository.
Generate checklist-first CodexBridge `/agent` drafts from natural-language intake using bounded action routing, skill-owned task typing, scope clarification, and immutable prompt scaffolds. Use when implementing, testing, or simulating first-host `/agent add` or bare `/agent` draft creation, especially for repo-aware `code` missions and lighter generic non-code missions.
Install
npx vskill@latest install gan-xing/codexbridge/agent-draft-routerSKILL.md
Agent Draft Router
Use this skill only for first-host /agent draft intake. Do not use it for:
- explicit
/agent confirm|edit|cancel|list|show|result|stop|retry|delete|rename|send - Mission runtime execution
- package-owned lifecycle control
Primary reference:
../../docs/architecture/agent-draft-templates.md
Read that document when you need the full code or generic template contract.
Workflow
- Determine whether the request is draft intake at all.
- Keep explicit
/agentsubcommands deterministic and out of model routing. - For bare
/agent <text>or/agent add <text>, emit only a bounded action. - If the action is add/create, enter create-flow:
- determine task type inside the skill
- clarify only when the missing information is truly blocking
- generate the formal checklist
- generate the immutable prompt
- generate loop policy
- Produce a checklist-first draft rather than a generic lifecycle plan.
Routing Rules
Allowed bounded actions for natural-language intake:
create_draftupdate_pending_draftclarifyquery_jobsshow_jobshow_resultpropose_stoppropose_retryreject
Prefer clarification over forced routing when confidence is low.
Do not:
- invent jobs or drafts
- mutate authoritative mission state
- bypass deterministic bridge handlers
- bypass package-owned approval or change gates
Create-Flow Rules
Only continue into create-flow when the action clearly resolves to add/create.
Inside create-flow:
- Determine task type from the current request and repo context.
- If the task is genuinely ambiguous or underspecified, ask one narrowing question.
- Generate a formal checklist, not a generic software lifecycle.
- Generate an immutable prompt scaffold that can survive autonomous loops.
- Keep internal substeps separate from formal checklist mutation.
code Missions
For code missions, prefer:
- repo-aware checklist items
- fixed immutable prompt scaffolding
- explicit verification commands
- explicit execution boundaries
- bilingual Conventional Commit requirements when repository changes are in scope
- repo context from the invocation payload over fixed path assumptions
- distill the user input into one direct sentence with at most one comma; do not expand it into rationale, checklist, or scope narration
- generate
plan[]from the user goal plus repo context, and never leave it empty - if at least 3 concrete checklist items cannot be derived from the goal and context, return
clarifyinstead of forcingcreate_draft
Do not fall back to:
- analyze
- design
- code
- test
- deploy
unless those are truly the correct bounded checklist items.
Generic Non-Code Missions
For generic non-code missions:
- keep the prompt lighter than
code - still require immutable goal, checklist, acceptance criteria, and loop policy
- still require checklist/progress updates each cycle
State-Aware Loop Expectations
When shaping immutable prompts, make sure the loop can use Mission Control status semantics:
running/verifying/repairing: take the smallest next executable stepwaiting_user: ask one concrete blocking questionneeds_human: summarize why autonomy is no longer reasonablehandoff: preserve current state and recommended next owner actionblocked: describe the blocker precisely and offer optionsmax_loops_reached: explain which budget was exhausted and the next recovery path
To avoid "do two steps then stall" behavior:
- prefer one bounded next step over broad re-planning
- prefer checklist refinement suggestions over vague failure language
- only clarify when the missing information is truly blocking
Output Requirements
When generating or updating drafts:
- treat
plan[]as the formal confirmed checklist / TODO - preserve user-confirmed scope unless a formal refinement is required
- ensure the immutable prompt explicitly requires checklist-status updates,
overall progress updates, blockers, and next-step updates each cycle
- for
codemissions, include bilingual Conventional Commit rules whenever
repository changes are allowed
When editing a draft:
- return the full updated draft, not a patch
- preserve fields the user did not request to change
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-draft-router/SKILL.md
Popularity
- Repository stars
- 198
- Repository forks
- 28
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gan-xing/codexbridge/agent-draft-router)