ss-implement

GitHub

Serial Studio 工作流的第4阶段,负责执行已批准的 tasks.md。按顺序逐个完成任务,严格执行代码规范、验证及静态审查,确保变更符合计划且无新增错误,最终生成待提交记录。

.claude/skills/ss-implement/SKILL.md Serial-Studio/Serial-Studio

触发场景

任务列表已批准,需要开始编码实现 用户指令 'implement the spec' 或 'build it' 用户指令 'work the tasks'

安装

npx skills add Serial-Studio/Serial-Studio --skill ss-implement -g -y
更多选项

非标准路径

npx skills add https://github.com/Serial-Studio/Serial-Studio/tree/master/.claude/skills/ss-implement -g -y

不安装直接使用

npx skills use Serial-Studio/Serial-Studio@ss-implement

指定 Agent (Claude Code)

npx skills add Serial-Studio/Serial-Studio --skill ss-implement -a claude-code -g -y

安装 repo 全部 skill

npx skills add Serial-Studio/Serial-Studio --all -g -y

预览 repo 内 skill

npx skills add Serial-Studio/Serial-Studio --list

SKILL.md

Frontmatter
{
    "name": "ss-implement",
    "description": "Phase 4 of Serial Studio's spec-driven workflow: execute an approved tasks.md top to bottom, verifying each task and keeping the checklist current. Use after \/ss-tasks is approved, or \"implement the spec\", \"build it\", \"work the tasks\". Honors the hotpath, verify, and trust rules; never commits without explicit permission.",
    "argument-hint": "[spec number or slug]"
}

Serial Studio — /ss-implement (phase 4 of 4)

Execute the approved tasks.md one task at a time, verifying as you go. This is the only phase that writes code. See doc/claude/spec-driven.md.

Preconditions

  • doc/claude/specs/NNNN-slug/tasks.md exists and its status: is approved.
  • Read spec.md, plan.md, and tasks.md in full before touching code.
  • Set spec.md status: in-progress.

Per-task loop

For each task in order:

  1. Read before writing. Read the target files in full this session — hotpath files (FrameBuilder, CircularBuffer, FrameReader, Dashboard) and existing signal/slot wiring are mandatory full reads (CLAUDE.md). Invoke ss-hotpath on any hotpath task, ss-cpp-modern when shaping non-trivial new C++.
  2. Name the binding invariants before the first Edit: restate in chat, in your own words, the invariant(s) the task's Does line carries (plus any the read surfaced). A constraint steers the edit only when named at the point of action, not when it sits in a doc you read earlier (doc/claude/j-space.md).
  3. Make the change with targeted Edit calls — edit, don't rewrite. Follow code-style.md: header ordering, [[nodiscard]], no in-header init, Q_EMIT, no in-body comments, 100-col, ASCII-only in source.
  4. Verify the task: python scripts/code-verify.py --check <changed files>. Resolve new errors before moving on (advisories are baseline debt, but new code clears them). Run the task's stated check (a tests/scripts/ JS unit you can run, or a read-back).
  5. Mark it done — tick the task's box in tasks.md so the file stays a live record.

Stay strictly inside the plan's file list. If a needed change falls outside it, stop and name it in chat ("the plan didn't cover X — add it?") rather than widening the diff. Never touch, revert, or restore a working-tree file you did not edit this session.

Finish

When every task is done, run the Definition of Done in tasks.md:

  1. Static review: invoke qt-cpp-review on the C++ diff; address or note findings.
  2. Hotpath: if touched, confirm the --benchmark-hotpath plan with the maintainer (you cannot run it — you don't build the app).
  3. Self-review the diff, counterfactually: is this what was asked, and only that? Then answer out loud: "which rule does this diff most risk violating, and what is the concrete evidence it doesn't?" Name the rule and the evidence — not a generic pass (doc/claude/j-space.md, counterfactual self-check). If either answer is weak, say so before claiming completion.
  4. Sanitize: run python scripts/sanitize-commit.py (it sanitizes only — never commits).
  5. Land the spec first. When the maintainer asks for a commit, spec.md/plan.md/tasks.md go in their own docs(spec): NNNN <slug> commit before any implementation commit. scripts/commit-shape.py, run by the commit hook, refuses a commit that creates a spec alongside code, a security-sensitive surface staged with other paths, more than 60 paths without a Mechanical: trailer, or a fix(ci) without the failing run's URL.
  6. Identify the pytest targets from plan.md for the maintainer to run (the app must be up with the API server enabled).
  7. Set spec.md status: done.

Rules

  • Never build or run the app, and never commit or push without explicit per-turn permission — earlier authorizations do not carry over.
  • The spec is the contract: every acceptance criterion must end up satisfied and checked off in spec.md. If reality diverges from the plan mid-build, stop and amend plan.md/tasks.md (re-confirm) rather than silently improvising.
  • Keep tasks.md honest as you go — a half-finished feature should be resumable by reading the three spec files alone.

版本历史

  • 3cbdc24 当前 2026-11-03 11:14

    新增 commit-shape gate 机制限制单次提交路径数;引入 mistakes-ledger ratchet 控制错误清单规则落地;spec 模板增加 Premise Check 部分以强化前提检查。

  • cb2f5d2 2026-08-20 08:59

同 Skill 集合

.claude/skills/qt-cpp-review/SKILL.md
.claude/skills/qt-qml-review/SKILL.md
.claude/skills/ss-ai-audit/SKILL.md
.claude/skills/ss-hotpath/SKILL.md
.claude/skills/ss-log-mistake/SKILL.md
.claude/skills/ss-new-driver/SKILL.md
.claude/skills/ss-plan/SKILL.md
.claude/skills/ss-spec/SKILL.md
.claude/skills/ss-tasks/SKILL.md
.claude/skills/ss-verify/SKILL.md
.claude/skills/cpp-compiler-flags/SKILL.md
.claude/skills/qt-qml/SKILL.md
.claude/skills/ss-cpp-modern/SKILL.md
.claude/skills/ss-docs/SKILL.md

元信息

文件数
0
版本
3cbdc24
Hash
82b6772c
收录时间
2026-08-20 08:59

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 01:27
浙ICP备14020137号-1