Community编程与开发github.com

mattpocock/implement-spec

根据规格说明在代码中实现功能。

implement-spec 是什么?

此技能让AI助手能够根据规格说明和关联的任务工单,自动生成完整的Pull Request。它特别适合处理具有复杂依赖关系的任务图场景,通过最大化并行执行来提升效率。 技能支持将规格说明解析为任务图,识别出当前可执行的任务(前沿任务)。实现者子代理会在后台并发工作,每个子代理使用独立的工作树和分支,互不干扰。完成后的代码会被合并回主PR分支,并自动更新前沿任务列表,启动新的子代理。 该技能还支持使用探索型子代理先行收集代码库或外部文档信息,将生成的笔记保存在仓库外,供所有后续子代理访问,从而让实现者子代理专注于编码。所有任务完成后,系统会自动进行代码审查并修复问题,最终将PR标记为可审阅状态。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mattpocock/skills/tree/main/skills/in-progress/implement-spec

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

您已获得一份规格说明。该规格说明应关联若干任务工单,描述如何实现该规格。

目标是创建一个PR,在单个分支上实现整个规格说明。

这些工单不是一系列步骤。它们是一个任务图,工单之间存在阻塞依赖关系。这意味着始终存在一个前沿任务集合,这些任务处于可执行状态。

与子代理之间的通信应尽量精简。主要通过上下文指针进行通信:指向规格说明、工单、研究笔记以及之前的提交。不要重复指针中已有的信息。

实现者子代理应尽可能在后台运行,以实现最大并发度。

步骤

  1. 阅读规格说明和工单。充分理解任务图的结构。

  2. (可选)使用探索子代理进行工单所需的任何探索工作——包括相关代码库文件或外部文档。确保探索子代理能够保存文件——它应将Markdown笔记保存在仓库外的某个目录中,以便所有未来的子代理都能访问。这样实现者子代理就可以专注于实现而非探索。

  3. 创建一个分支和一个草稿PR。该PR应标记为“关闭”规格说明和工单。

  4. 使用实现者子代理实现每个工单。每个实现者子代理应在自己的工作树和独立分支上工作。

  5. 当一个实现者子代理完成后,使用合并子代理将其工作合并到PR分支。

  6. 如果这改变了可用的前沿任务,则启动更多实现者子代理来处理新工单。这样可以实现最大的并行度。

  7. 所有工单完成后,在PR分支上运行/code-review。使用一个实现者子代理修复代码审查提出的所有问题。

  8. 将PR标记为可审阅状态。

  9. 清理所有实现者子代理的工作树。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mattpocock/ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

mattpocock/caveman

Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.

mattpocock/claude-handoff

Hand the current conversation off to a fresh background agent that picks up the work immediately.

mattpocock/codebase-design

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

mattpocock/design-an-interface

Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

mattpocock/diagnose

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

mattpocock/diagnosing-bugs

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

mattpocock/domain-modeling

Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

mattpocock/edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

mattpocock/git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

mattpocock/grilling

Grill the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.

mattpocock/grill-me

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

mattpocock/grill-with-docs

Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

mattpocock/handoff

Compact the current conversation into a handoff document for another agent to pick up.

mattpocock/implement

Implement a piece of work based on a PRD or set of issues.

mattpocock/improve-codebase-architecture

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

mattpocock/loop-me

Grill me about specs for the workflows I want to build, within this workspace.

mattpocock/migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

mattpocock/obsidian-vault

Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.

mattpocock/prototype

Build a throwaway prototype to flesh out a design — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.

相关技能