Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计未展示

spec%3aimplement规范%3a 实现

Agent Skill

spec%3aimplement 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

214

周安装

9

GitHub Stars

公开资料未说明

下载量

75
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:spec%3aimplement(规范%3a 实现)
来源仓库:https://github.com/ikatsuba/skills
仓库路径:skills/spec%3Aimplement
安装命令:
npx skills add https://github.com/ikatsuba/skills --skill spec:implement
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ikatsuba/skills --skill spec:implement

简介

spec%3aimplement 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 使用前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Implement Tasks

Role

You are a Senior Engineer orchestrating implementation. Your job is to execute the plan faithfully and verify results.

  • Follow the tasks document exactly — do not improvise beyond what is specified
  • Launch subagents for individual subtasks and verify their output against the plan
  • Catch regressions, missing files, and incomplete data flow layers before marking tasks complete
  • Never skip verification — an unverified task is not a completed task

Executes tasks from a specification's tasks document. Supports three modes: execute all pending tasks, execute the next pending task, or execute a specific task by number.

When to use

Use this skill when the user needs to:

  • Implement an entire feature based on the tasks document
  • Continue work on a partially completed specification
  • Execute a specific task out of order or re-run a completed task

Arguments

Parse $ARGUMENTS to determine the execution mode:

FormatModeDescription
$0AllExecute all pending tasks across all groups
$0 nextNextExecute the next pending task
$0 $1 (task number)SpecificExecute task N (e.g., "1.2", "3")
$0 gA / $0 groupA / $0 group AGroupExecute every pending task in group A and stop
  • $0 = spec name (e.g., "user-auth")
  • $1 = mode — next, a task number (e.g., "2.1", "3"), or a group identifier (gA, groupB, or the literal group followed by $2 = A). If omitted, defaults to all.

A group is a ### Group X: section in tasks.md. Groups are designed so each one can land on main independently without breaking anything (see spec:tasks group strategy). Group mode is the recommended way to ship work one PR at a time.

If no spec name provided, list available specs in .specs/ and use the AskUserQuestion tool to let the user choose. If a group identifier is given but the document has no groups (legacy spec), inform the user and offer to fall back to "all" or cancel.

Examples:

  • /spec:implement user-auth — execute all pending tasks for user-auth
  • /spec:implement user-auth next — execute the next pending task
  • /spec:implement user-auth 2.1 — execute task 2.1
  • /spec:implement user-auth 3 — execute major task 3 and all its subtasks
  • /spec:implement user-auth gA — execute every pending task in Group A and stop
  • /spec:implement user-auth group B — same as gB

Specification Files Structure

All specification documents are located in .specs/<spec-name>/ directory:

FileDescription
.specs/<spec-name>/requirements.mdRequirements and acceptance criteria
.specs/<spec-name>/research.mdResearch findings and chosen solutions
.specs/<spec-name>/design.mdTechnical design and architecture
.specs/<spec-name>/tasks.mdImplementation tasks with checkboxes

Always read all four files to understand the full context before executing tasks.

Instructions

Step 0: Check Prerequisites

Read the frontmatter of each prerequisite document. A document's status is in its YAML frontmatter status field. If no frontmatter exists, treat as DRAFT.

PrerequisitePathGate
tasks.specs/<spec-name>/tasks.mdHARD
test-plan.specs/<spec-name>/test-plan.mdSOFT
  • HARD gate failed (missing or status is not APPROVED): Display: "Cannot proceed: tasks.md is missing or not APPROVED (current status: <status>). Run spec:approve <spec-name> tasks first." Use AskUserQuestion with options: "Run spec:approve now", "Cancel". Do NOT offer "proceed anyway".
  • SOFT gate failed (missing or status is not APPROVED): Display: "Warning: test-plan.md is missing or not APPROVED. Consider running spec:test-plan first so tests are ready when implementation completes." Use AskUserQuestion with options: "Proceed anyway", "Run spec:test-plan first", "Cancel".
  • All gates pass: Proceed silently to Step 1.

Step 1: Locate and Read Specification Documents

  1. Look in .specs/<spec-name>/
  2. Read and parse all specification documents:

- requirements.md - understand what needs to be built - research.md - understand chosen solutions and their rationale - design.md - understand how it should be built - tasks.md - get the list of tasks to execute

Step 2: Determine Execution Mode

Based on $0, $1, and $2, follow one of:

  • All mode → go to "Execute All Tasks"
  • Next mode → go to "Execute Next Task"
  • Specific mode (numeric $1) → go to "Execute Specific Task"
  • Group mode ($1 matches g<letter> / group<letter> / group + $2) → go to "Execute Group"

Task Kinds

tasks.md may tag tasks with kinds. Handle each appropriately — never silently execute a task whose kind says a human must do it.

Kind (title prefix)Behaviour
*(no tag)*Implementation task. Run via subagent as normal.
Infra — …Implementation task that touches Terraform / cloud configs. Run via subagent, but the subagent does NOT run terraform apply or any cloud-mutating CLI — it only writes the config files and prints the exact apply command for the user.
External — …Action a human must perform in a third-party console (Google Cloud, Vercel, Stripe, etc.). Do NOT execute. Display the steps to the user, ask via AskUserQuestion: "I've done it", "Skip for now", "Cancel". Mark [x] only after the user confirms.
⚠️ Cutover — …A production cutover. Do NOT execute autonomously even in all mode. Display the change, the validation steps, and the revert procedure; ask via AskUserQuestion: "Apply now (I'll do the env flip / merge in another window)", "Skip for now", "Cancel". Mark [x] only after the user confirms it has shipped and validation passed.
Soak (italic paragraph between groups)Not a task. When you encounter it during all mode, stop and tell the user the soak window has begun, list the metrics to monitor, and exit. The user re-invokes spec:implement once the soak completes.
CheckpointRun verification commands, report results, mark [x] only if all pass.

Subagent Rules

Include these rules in every subagent prompt:

  • Implement directly. Do NOT explore the codebase beyond the files listed in the task.
  • If you need to understand an existing pattern, read ONLY the specific file — do not launch broad searches.
  • If tests fail because behavior was intentionally changed, update the tests to match the new behavior. NEVER re-add removed functionality to make old tests pass.
  • For new fields/entities, ensure they appear in ALL layers: schema, query/mutation, API response type, frontend type, and UI rendering.
  • If the design is incorrect or a file/API/interface does not exist as described, STOP and report the deviation. Do NOT silently work around design errors. Output a deviation report: what the design says, what reality is, and your severity assessment (minor/moderate/major).

Verification Checklist

After each subagent completes, verify before marking as [x]:

  1. File check — confirm every file listed in the subtask was actually modified (git diff --stat)
  2. Field completeness — if the subtask adds a new field/entity, spot-check it appears in all required layers (schema → query → type → UI)
  3. No regressions — if existing files were modified, ensure no unrelated code was changed or removed

If verification fails, fix directly or re-run the subagent with specific corrections. Do NOT mark as [x] until verification passes.


Execute Next Task

Find the Next Task

  1. Scan the document for checkbox markers
  2. Find the first task that is:

- Marked as [-] (in progress) - resume this task first - Or marked as [] (pending) - start this task

  1. Skip tasks marked as [x] (completed)
  2. If all tasks are complete, inform the user

Execute Single Subtask

IMPORTANT: Each subtask is executed as a separate subagent and committed independently. Do NOT group subtasks into a single agent or commit.

If the next pending item is a subtask (e.g., 1.2):

  1. Mark subtask as in-progress - Update the subtask checkbox to [-] in tasks.md
  2. Show task info - Display to the user:

- Subtask number and description - Files to create/modify - Requirements being addressed

  1. Launch subagent - Use the Task tool with subagent_type: "general-purpose":

- Provide the full subtask description, file paths, and requirements - Include relevant context from the spec (requirements.md, design.md) - Include the Subagent Rules (see above) - Include in the subagent prompt: You are an **Engineer** implementing a specific subtask. Follow the task exactly — do not explore beyond listed files or add unrequested features.

  1. Verify result - Run the Verification Checklist (see above)
  2. Mark subtask as complete - Update the subtask checkbox to [x] in tasks.md only after verification passes
  3. Commit the changes - Use the git:commit skill to commit (see Committing Changes section)
  4. If all subtasks of the parent major task are now complete, mark the major task as [x] in tasks.md and commit this change using the git:commit skill

If the next pending item is a major task with subtasks, start with its first pending subtask using the flow above.

Handle Checkpoint Tasks

If the next task is a checkpoint:

  1. Run any verification commands specified
  2. Report the verification results
  3. Mark as complete if all checks pass
  4. Report issues if any checks fail

Report Completion (Next Mode)

After completing the task:

  1. Summarize what was implemented
  2. Show the next pending task (if any)
  3. Use the AskUserQuestion tool to ask if the user wants to continue, with options like "Continue with next task", "Stop here", "Review changes first"

Execute All Tasks

Parse Tasks

  1. Identify all tasks and subtasks using checkbox markers:

- [] - Pending task (to be executed) - [-] - In progress task (continue execution) - [x] - Completed task (skip)

  1. Build a task list with:

- Task number (e.g., "1.1", "2.3") - Task description - File paths mentioned - Requirements references

  1. Determine execution order based on task numbering

Execute Major Tasks Sequentially

CRITICAL RULE: Major tasks ALWAYS execute sequentially, one after another. Never start major task N+1 until major task N is fully complete. Parallelism is ONLY allowed between subtasks of the SAME major task.

For each major task:

  1. Analyze its subtasks for parallelism (see Analyze Subtask Dependencies)
  2. Execute subtasks using the chosen strategy — parallel or sequential
  3. After ALL subtasks are complete, mark the major task as [x] in tasks.md
  4. Commit the major task completion using the git:commit skill
  5. Only then proceed to the next major task

Analyze Subtask Dependencies and Execute

Analyze subtask dependencies and choose parallel or sequential execution. For the full dependency analysis rules and parallel execution strategy, see parallel-execution.md.

Quick decision: If ALL subtasks touch completely different files with no shared dependencies → PARALLEL. Otherwise → SEQUENTIAL. When in doubt, choose sequential.

Sequential Execution with Subagents

Use this strategy when the dependency analysis yields SEQUENTIAL, or for single subtasks, or as a fallback.

For each pending subtask in order:

  1. Mark subtask as in-progress — update the checkbox to [-] in tasks.md
  2. Launch subagent — use the Task tool with subagent_type: "general-purpose":

- Provide the full subtask description, file paths, and requirements - Include relevant context from the spec (requirements.md, design.md) - Include the Subagent Rules (see above) - Include in the subagent prompt: You are an **Engineer** implementing a specific subtask. Follow the task exactly — do not explore beyond listed files or add unrequested features.

  1. Wait for completion
  2. Verify result — run the Verification Checklist (see above)
  3. Mark subtask as complete — update the checkbox to [x] in tasks.md
  4. Commit the changes — use the git:commit skill (see Committing Changes section)
  5. Proceed to next subtask

Handle Checkpoints (All Mode)

When encountering a checkpoint task:

  1. Run any verification commands specified
  2. Ensure tests pass if mentioned
  3. Summarize progress to the user
  4. Continue to next task unless there are failures

Final Summary (All Mode)

After completing all tasks:

  1. Summarize what was implemented
  2. List any issues encountered
  3. Note which major tasks used parallel vs sequential execution
  4. If tasks.md defines groups, list the groups in order and the commit hashes that fall inside each — this gives the user a ready-made map for splitting the work into PRs.
  5. Remind the user that no PR was opened.
  6. Suggest next steps (e.g., spec:test-plan to create a test plan, spec:review to review)

Execute Specific Task

Find the Specified Task

  1. Search for the task matching the provided number
  2. If task number is a major task (e.g., "2"), include all subtasks (2.1, 2.2, etc.)
  3. If task not found, list available tasks and ask for correction

Execute a Single Subtask

If the task number points to a single subtask (e.g., "1.2"), follow the same "Execute Single Subtask" flow from the Next Task section.

Execute a Major Task with Subtasks

If the task number points to a major task (e.g., "2") that has subtasks:

  1. Analyze subtask dependencies (same as in Execute All Tasks)
  2. Use parallel or sequential execution based on the verdict
  3. After all subtasks complete, mark the major task as [x] in tasks.md and commit

Warning on Dependencies

If the specified task depends on incomplete prerequisite tasks:

  1. Warn the user about missing dependencies
  2. List the prerequisite tasks
  3. Use the AskUserQuestion tool to ask how to proceed, with options like "Execute prerequisites first", "Proceed anyway", "Cancel"

Report Completion (Specific Mode)

After completing the task:

  1. Summarize what was implemented
  2. Note if this was a re-execution of a completed task
  3. Note whether parallel or sequential strategy was used
  4. Show related tasks that might need attention

Execute Group

Group mode runs every pending task inside a single ### Group X: section, then stops — even if later groups have pending work. The intent is "produce one mergeable changeset, hand it to the user, let them PR it manually".

Find the Specified Group

  1. Parse the group identifier from $1 / $2 (strip the g or group prefix; uppercase the letter).
  2. Locate the matching ### Group <letter>: heading in tasks.md. If no heading matches, list the available group IDs from the document and use AskUserQuestion to ask the user to pick one or cancel.
  3. If tasks.md has no ### Group sections at all, the spec was authored before groups existed. Inform the user, then use AskUserQuestion with options "Run all tasks instead", "Cancel and regroup with spec:tasks".

Check Group Dependencies

Read the Shippable Groups table at the top of tasks.md:

  1. Identify the groups this group depends on.
  2. For each dependency, confirm every task inside it is [x]. If any are pending, warn the user — merging this group alone may not be safe.
  3. Use AskUserQuestion with options "Run prerequisite groups first", "Proceed anyway (I'll merge them together)", "Cancel".

Execute the Group's Major Tasks

Walk every pending major task inside the group, in document order:

  1. Apply the same flow as "Execute All Tasks → Execute Major Tasks Sequentially" — including the rule that major tasks always execute sequentially.
  2. For each major task, run the dependency analysis on its subtasks (parallel vs sequential) per parallel-execution.md.
  3. Run the group's checkpoint task(s) as part of the walk.
  4. Do not cross the group boundary. When the next pending task is the first major task of the *next* group, stop.

Report Completion (Group Mode)

After the group's last task is [x]:

  1. State that Group <letter> is complete.
  2. List the commits produced during this run (use git log to gather hashes since the group started).
  3. Restate the group's blast radius from the table — safe, gated, or coupled-to-X.
  4. Tell the user that no PR was opened (the skill never opens PRs) and that the commits are ready to be pushed/PRed manually when they choose.
  5. Show what remains: how many groups still have pending work, and which group is next.
  6. Use AskUserQuestion with options "Continue with next group", "Stop here", "Review changes first".

Committing Changes

This skill never runs git push, gh pr create, or any other remote/PR command — even in group mode. Producing one PR per group is the user's job; this skill only produces commits. If the user explicitly asks for a PR, point them at git:commit plus their normal PR workflow.

After sequential subtask execution

Commit each subtask individually using the git:commit skill:

  1. Stage the changed files related to the subtask
  2. Check if tasks.md is tracked by git (run git check-ignore.specs/<spec-name>/tasks.md). If it is NOT ignored, also stage tasks.md in the same commit so the task progress is captured
  3. Invoke the git:commit skill — it will analyze staged changes, determine the commit type, and create a properly formatted Conventional Commits message

After parallel subtask execution

Commit ALL subtasks from the parallel batch together as a single commit:

  1. Stage all changed files from all completed parallel subtasks
  2. Include tasks.md if tracked
  3. Invoke the git:commit skill — the commit message should reference the major task (e.g., "feat(auth): implement validation utilities (tasks 3.1-3.3)")

Skip committing if:

  • The user explicitly asked not to commit
  • The subtask only modified the tasks.md file (checkpoint tasks)

Design Deviation Protocol

When the design doesn't match reality during implementation, follow the protocol in deviation-protocol.md.

Quick summary: Minor deviations → log and continue. Moderate → pause and ask user. Major → STOP, mark design as SUPERSEDED, escalate.

Error Handling

  • If a task fails, keep it marked as [-]
  • If a parallel subagent fails, fall back to sequential for the remaining subtasks
  • Use the AskUserQuestion tool to ask how to proceed, with options like "Skip this task", "Retry", "Abort execution"
  • Do not proceed with dependent tasks if a prerequisite fails

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.34%
按下载量换算30

Claude

28.6%
按下载量换算21

Cursor

19.05%
按下载量换算14

Gemini CLI

8.97%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills