跳到正文
Skillpedia
通用编程33k · #8455

dev-story

它能做什么

这个技能接收一个已规划的故事,检查其前置条件是否满足,然后由程序员智能体编写代码和测试。适合希望故事按照设计决策来构建的游戏团队。

适用场景

  • ✓当一个已规划的故事已经就绪,有人说要构建、实现或开始处理它的时候。
  • ✓当团队希望由智能体为某个故事编写代码和测试的时候。
  • ✓当故事需要在代码中紧密遵循其设计决策的时候。

技能链接

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/dev-story/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/dev-story/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请按照背包故事的设计决策,用代码实现它,并附上测试。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能会检查故事是否可以开始,把它标记为进行中,并给程序员智能体一份由该故事生成的任务说明。然后它会检查结果,并记录改动过的文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow,qa.level,gate_level,engine_values,specialists,perf_budgets,system_overrides

Resolved above — use as-is. No block → defaults in .claude/docs/config-resolution.md.

Ask with the question tool. Without one, list the options numbered and end your turn to wait. A skipped or dismissed question is not an answer: ask again in plain text.

Dev Story

Implements one story: checks it can start, marks it In Progress, hands the code to the right programmer agent with a brief built from the story, then checks the result parses and looks right, and hands off.

Writes (each after an ask that names it): the story's Status, Last Updated and ## Files, and its production/sprint-status.yaml entry. The programmer agents write the code and tests under the code root and test root (.claude/docs/code-root-resolution.md). The session checkpoint and the evidence stamp are written without an ask. Next: /story-done [story-path]; at standard and full, /code-review [files] first.

Asks follow .claude/docs/automation-modes.md (collaborative always asks, guided asks on major choices, autonomous logs and goes on; automation_always_ask categories always ask).

Checklist (copy it and tick as you go):

- [ ] Phase 1: story found, tier resolved
- [ ] Phase 2: prerequisites checked (ADR, manifest, dependencies)
- [ ] Phase 3: story marked In Progress (one ask)
- [ ] Phase 4: programmer and engine specialist chosen
- [ ] Phase 5: work handed out with a full brief
- [ ] Phase 6: finished? parse check, run and look, one Run result line
- [ ] Phase 7: summary, ## Files, checkpoint, closing block

Phase 1: The story

The text typed after the skill name is the story path. With nothing typed, take the story the checkpoint in production/session-state/active.md names and confirm it: "Continuing work on [title] — is that correct?" None there: ask "Which story are we implementing?" with the TODO rows of bash .claude/scripts/story-facts.sh --all as options. No story file under production/epics/ at all: stop with "No stories found in production/epics/ — run /create-stories [epic-slug] to make them (at standard and full, run /create-epics first if there is no epic yet)."

bash .claude/scripts/story-facts.sh <story-path> gives its type, layer, TR-IDs, ADRs and dependencies. Then read the story in full.

Tier. workflow for the story's system, keyed on the GDD filename stem of its GDD: path (design/gdd/<stem>.md → <stem>; the [system] of its TR-ID only when there is no GDD path): that system's system_overrides row if there is one, else the project value. Say it in your first reply: Tier: workflow [value]. That value, never rigor or qa.level, picks the Phase 2 column and the closing Next step.

Phase 2: Can it start?

Input full standard minimal
TR registry docs/architecture/tr-registry.yaml missing: stop, "Run /architecture-review to bootstrap it" optional not expected
The ADR the story names missing, Proposed, Deprecated or Superseded: stop the same, only when the story names one the same, only when the story names one
Control manifest docs/architecture/control-manifest.md missing: warn, go on missing: warn, go on not expected

A story whose ADR field reads N/A — [reason] names none.

The ADR. bash .claude/scripts/adr-status.sh <ADR id> gives its status and version. Stop messages: Proposed — "ADR-NNNN is still Proposed. Accept it with /architecture-decision accept ADR-NNNN before implementing." Deprecated or Superseded — "ADR-NNNN is [status]; point the story at [successor] (edit its ADR field; /create-stories never rewrites an existing story) before implementing." NOT_FOUND — "ADR file not found. Run /architecture-decision, or correct the story's ADR field."

Do not open the ADR. The story's ADR Decision Summary and Implementation Notes are what the programmer reads instead. Compare the ADR's version with the story's ADR Version:

  • equal, or the story has no ADR Version (written before the stamp), or both are unversioned: trust the story. Note the last two in the summary ("summary trusted unverified").
  • they differ, or the ADR is unversioned but the story names a date: read references/version-mismatch.md. On a match, do not load it.

Never treat an absent

常见问题

它会在开始前检查故事是否就绪吗?

会。它会先检查前置条件,也可以事先运行单独的就绪检查。

代码写完之后会发生什么?

故事会通过另一个技能结束,在较高的级别下,会先运行代码审阅。

谁来编写代码?

由程序员智能体根据这个技能从故事中生成的任务说明来编写代码和测试。

详情

作者的原始描述

Implements one story in code with tests, following its ADRs. Use when the user says to build, implement or start working on a story. Not for checking readiness beforehand or closing the story after.

repo: Donchitos/Claude-Code-Game-Studios

热度

GitHub 星标
33k
排名
#8455
许可证
MIT
更新时间
2026/10/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能