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

implement实现

Agent Skill

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

总安装

269

周安装

11

GitHub Stars

公开资料未说明

下载量

86
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/emiliosheinz/agent-skills --skill implement

简介

implement 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。

  • 专注于代码实现的测试驱动开发工具。
  • 遵循红绿重构循环确保代码质量。
  • 每次只实现最小有意义行为,逐步构建功能。
  • implement 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementation Executor

You execute implementation tasks by translating existing requirements (PRD), technical design, and implementation plan into working, tested code. You follow strict Test-Driven Development and deliver work in small, incremental slices.

Routing

  • Define requirements → /create-prd
  • Design architecture → /create-technical-design
  • Plan phases and tasks → /create-implementation-plan

Core Principle: Small Vertical Slices with TDD

Every unit of work follows Red-Green-Refactor:

  1. Red -- Write one failing test for the smallest meaningful behavior
  2. Green -- Write the minimum code to make the test pass
  3. Refactor -- Improve code structure while keeping all tests green

Each slice delivers a thin but complete piece of functionality that can be verified independently. Never implement multiple behaviors before writing tests. Never write tests after the implementation.

Staying Lean

Implementation generates a lot of context: artifact contents, test output, code diffs, lint results. Be intentional about what you hold onto.

  • Read selectively. You rarely need the full PRD and technical design at once. Start with the implementation plan to identify the target phase, then pull in only the requirements and design sections that phase touches.
  • Extract, then let go. Once you have pulled out the facts you need from an artifact (requirement IDs, API contracts, constraints), you do not need the raw document anymore. Re-read a specific section later if something comes up.
  • Shed finished work. After a task's TDD cycle is green, the test output and code diff have served their purpose. Move on. Re-read a file only when the next task needs to reference it.
  • Delegate heavy lifting. When a chunk of work is self-contained (running the full test suite, verifying requirements against the PRD, a single Red-Green-Refactor cycle), consider handing it to a sub-agent so the output stays out of your context. Give sub-agents specific inputs: file paths, section references, constraints -- not open-ended instructions.

These are guidelines, not rules. Use your judgment about what to hold, what to shed, and when delegation is worth the overhead.

Process

Step 1 -- Understand the Context

Check recent git history first. Run git log -5 --oneline to see the last 5 commits. This tells you what has already landed and where the work left off, so you do not duplicate or skip completed work.

Locate and read available artifacts:

  • Look for implementation plan at .specs/[feature-slug]/IMPLEMENTATION-PLAN.md to understand the intended phases and tasks. This is your primary source for what to implement.
  • Look for implementation state at .specs/[feature-slug]/IMPLEMENTATION-STATE.md to see which phases and tasks have already been completed. This guides your phase selection.
  • Look for technical design at .specs/[feature-slug]/TECHNICAL-DESIGN.md to understand architectural decisions, API contracts, data flow, and other technical details.
  • Look for PRD at .specs/[feature-slug]/PRODUCT-REQUIREMENTS.md to understand the requirements, user stories, acceptance criteria, and constraints.

If the user specifies a feature slug or path, use that. If not, ask using AskUserQuestion.

If artifacts are missing, do not stop. Instead, perform a quick research phase to derive what you need:

  • Scan the codebase: identify existing patterns, conventions, test setup, and relevant entry points
  • Derive scope: from the user's task description and any code or partial artifacts that exist
  • Derive architecture: from how the existing codebase is structured — frameworks in use, data flow, naming conventions
  • Derive constraints: from existing tests, linter config, and code patterns
  • Derive acceptance criteria: from the task description; make them explicit before proceeding

The research phase must be quick and focused — read only what is relevant to the task at hand. Do not do a broad codebase survey.

IMPLEMENTATION-STATE.md: This file tracks which phases and tasks have been completed. If it does not exist, create it at .specs/[feature-slug]/IMPLEMENTATION-STATE.md by deriving its initial state from the implementation plan (all tasks pending). Format:

# Implementation State: [feature-slug]

## Phase 1 -- [Phase Title]
- [ ] Task 1: [description]
- [ ] Task 2: [description]

## Phase 2 -- [Phase Title]
- [ ] Task 1: [description]

Use - [x] for completed tasks. Mark a fully completed phase by adding **Status: completed** below its heading.

Phase selection: Always implement exactly one phase per invocation. Read IMPLEMENTATION-STATE.md and select the first phase that does not have **Status: completed**. If the user explicitly names a different phase, use that instead — but still implement only that one phase. Do not continue into subsequent phases after the selected phase is complete.

After reading artifacts (or completing the research phase), extract:

  • Scope: What needs to be built for this task
  • Architecture: What technical approach applies
  • Constraints: Hard limits from artifacts or codebase patterns
  • Acceptance criteria: How to verify the work is correct
  • Phase: Which phase from the implementation plan to implement (if a plan exists)

If the task scope is ambiguous (e.g., "implement the feature" when the implementation plan has multiple phases and IMPLEMENTATION-STATE.md does not identify a clear next phase), ask the user to clarify.

Step 2 -- Execute (Red-Green-Refactor)

For each task, follow this cycle strictly:

2a. Red

  • Write one test that captures the expected behavior for this task
  • Run the test suite and confirm the new test fails
  • If the test passes immediately, the behavior already exists -- skip to the next task

Important: Run the tests. Do not assume the result. The Red step is only complete when you have observed the failure.

2b. Green

  • Write the minimum code necessary to make the failing test pass
  • Run the full test suite (not just the new test)
  • If any test fails, fix the implementation before proceeding
  • Do not add code beyond what the test requires

2c. Refactor

  • With all tests green, look for improvements:

- Remove duplication introduced by the new code - Improve naming if the intent is unclear - Simplify structure if complexity crept in

  • Run the full test suite after each refactor change
  • If any test breaks during refactor, revert the refactor change and try a different approach

2d. Move to Next Task

After completing one task, mark it as - [x] in IMPLEMENTATION-STATE.md, briefly state what was done, and move to the next. If you encounter unknowns or ambiguities, note them and continue — surface them all at the end in Step 4.

Step 3 -- Review and Validate

After all tasks are complete:

  1. Run the full test suite -- all tests must pass
  2. Run linters and formatters -- use whatever is configured in the project (Prettier, ESLint, Biome, etc.). Fix any issues.
  3. Verify against requirements -- check each requirement or derived scope item. Confirm the implementation satisfies it. Use the PRD if one exists; otherwise use the acceptance criteria derived in Step 1.
  4. Verify against architecture -- confirm the implementation follows the architectural decisions and code patterns. Use the technical design if one exists; otherwise verify consistency with the existing codebase patterns derived in Step 1.

These checks are independent -- run them in parallel when possible.

If any verification fails, return to Step 2 and address the gap.

Step 4 -- Summarize and Commit

Mark the completed phase as **Status: completed** in IMPLEMENTATION-STATE.md.

Briefly summarize what was implemented. Include any decisions made that were not covered by the artifacts and any unknowns or ambiguities encountered during execution.

Commit automatically using the project's conventions:

[type]: [concise description]

[Body briefly explaining what changed and why]

When to Stop and Ask

Stop mid-execution only when proceeding is impossible without an answer:

  • Ambiguous scope: The task could reasonably be interpreted multiple ways and both paths produce materially different code
  • Missing dependency: A package, service, or tool needed for implementation is not available and cannot be substituted
  • Blocking conflict: Existing code makes the planned approach entirely unworkable

For everything else — design gaps, minor ambiguities, non-blocking questions — note the unknown and continue. Surface all collected unknowns in Step 4.

Common Mistakes

Implementing without establishing context first. Always read available artifacts (PRD, technical design, implementation plan) before writing code. If no artifacts exist, do a quick research phase to understand the codebase. Do not rely solely on the user's verbal description — read the code.

Writing tests after the implementation. This is not TDD. Always write the test first, confirm it fails, then implement. Tests written after the fact tend to test the implementation rather than the behavior.

Bundling multiple behaviors into one task. Wrong: "Implement user registration with validation, email confirmation, and profile creation." Right: Three separate tasks -- one for registration, one for validation, one for email confirmation.

Refactoring while tests are red. Never refactor when a test is failing. Get to Green first, then refactor.

Waiting to commit. This skill commits automatically after verification passes. Do not ask for approval before committing.

Over-implementing beyond what the test demands. In the Green step, write only the code the failing test requires. Anticipatory code without a corresponding test leads to untested paths and unnecessary complexity.

Implementing multiple phases in one go. Always implement one phase at a time. Do not continue to the subsequent phases.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

38.73%
按下载量换算33

Claude

30.57%
按下载量换算26

Cursor

17.7%
按下载量换算15

Gemini CLI

10.48%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills