chenmijiang/cmj_skills/worker-prompt-craft
Claude Code and agent skill by chenmijiang/cmj_skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Worker/子代理 Prompt 编写指南 — 写出让子代理一次做对的 prompt。解决"子代理看不到上下文"、"指令模糊导致返工"、"委托理解而非综合"的问题。适用于:(1) 使用 sessions_spawn/sessions_send 时 (2) 调度 CC 子任务时 (3) 任何需要给 AI 子代理写指令的场景。
Install
npx vskill@latest install chenmijiang/cmj_skills/worker-prompt-craftSKILL.md
The same SKILL.md was published earlier as chenmijiang/cmj_skills/worker-prompt-craft.
Worker Prompt Craft
核心原则
Worker 看不到你的对话。每个 prompt 必须是自包含的。
必须包含的要素
- 具体文件/路径/行号 — 不是"那个文件",而是
src/auth/validate.ts:42 - 完成标准 — "做完"长什么样
- 目的陈述 — 帮 Worker 校准深度
目的陈述示例
- "这个研究用于写 PR 描述 — 聚焦用户可见的变更"
- "我需要这个来规划实现 — 报告文件路径、行号、类型签名"
- "这是合并前的快速检查 — 只验证 happy path"
反模式(绝对禁止)
正确写法示例
实现类
研究类
纠正类(Continue 场景,简短)
Git 操作类
Prompt 技巧清单
- [ ] 包含文件路径、行号、错误信息
- [ ] 声明"完成"标准
- [ ] 实现类:"运行测试+类型检查,提交并报告 hash"
- [ ] 研究类:"报告发现,不要修改文件"
- [ ] Git 操作:指定分支名、commit hash、draft/ready、reviewer
- [ ] Continue 纠正:引用 Worker 做了什么,不是你和用户讨论了什么
- [ ] 实现类:"修复根因,不是症状"
- [ ] 验证类:"证明有效,不要只确认存在"
Security
- Security scanPassed, 90 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/worker-prompt-craft/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/chenmijiang/cmj_skills/worker-prompt-craft)