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

implement实现

Agent Skill

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

总安装

713

周安装

30

GitHub Stars

公开资料未说明

下载量

250
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/eljun/workflow-skills --skill implement

简介

用于高效代码实现与资源优化。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中完成开发任务。
  • 采用 Token Efficiency Mode 减少重复计算开销。
  • 支持 worktree 分支隔离和自动信号反馈机制。
  • implement 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/implement - Implementation Agent

Token Efficiency

ModeHow it worksToken cost
AutoOrchestrator stays alive, spawns workers in background. Workers output a 4-line signal + write details to task doc. Orchestrator accumulates only signals (~50 tokens each).Very low
Manual + /clearRun each skill in a fresh session. Same token benefit, you stay in control.Low
Manual without /clearHistory compounds across all stages.High (avoid)

Manual mode tip: After each skill completes, run /clear before invoking the next one.


Workflow

/implement [auto] [--worktree] {ID}
       ↓
0. Read LEARNINGS.md (if exists) — avoid known mistakes
1. Parse arguments: detect "auto" flag, "--model" override, "--worktree" flag, task ID
2. Resolve task ID → find docs/task/{ID}-{name}.md
3. Read task document — this is the ONLY codebase context needed
   └── Only read source files explicitly listed in task doc's "File Changes"
   └── Do NOT explore directories, grep broadly, or read files not in the plan
4. Conditional: Direct or Worktree
   ├─ Default (no --worktree): Commit to current branch
   │  └── All edits and commits happen directly in current directory
   │  └── User's working directory receives changes
   │
   └─ With --worktree: Enter worktree isolation
      └── EnterWorktree({ name: "task-{ID}" })
      └── Creates .claude/worktrees/task-{ID}/ on a new branch
      └── All edits, commits, and pushes happen inside the worktree
      └── User's working directory stays on main — never switches branch
5. If "auto" flag → set Automation: auto in task doc
6. Move task to "## In Progress" in TASKS.md
7. Invoke specialized skills if relevant (see Step 3 below)
8. Implement following task document steps
9. Commit with [task-{ID}] prefix for traceability
       ↓
┌─── Automation Mode? ───┐
│                        │
▼ Manual                 ▼ Auto
STOP (no push)           10. Push branch to origin
Update status to         11. Update status to "TESTING"
"TESTING" (keep local)   12. Enter Orchestrator Mode
Notify user ready for        (drives pipeline, stays alive)
/simplify

Pre-Implementation Checklist

0. Read Project Learnings

  • Read LEARNINGS.md entirely if it exists (~200 tokens, saves thousands)
  • Focus on: Common Mistakes to Avoid, Established Coding Patterns, Architecture & Decisions, Tech Stack Notes
  • The task doc contains all codebase research you need — only open source files explicitly listed in ## File Changes; do NOT explore directories or read unlisted files

0.5. Parse Arguments

  • auto → set automation mode
  • --model {haiku|sonnet|opus} → model override (takes precedence over task doc recommendation)
  • --worktree → enable worktree isolation (creates isolated branch)
  • Natural language hints:

- Model: "use sonnet", "force haiku", "use opus" → treat as model override - Worktree: "use worktree", "with worktree", "isolated", "in worktree" → treat as --worktree

  • Remaining arg → task ID

Examples:

/implement {ID}                              # Default: direct to current branch
/implement --worktree {ID}                   # Formal flag: use worktree isolation
/implement {ID} "use worktree"               # Natural language
/implement {ID} with worktree                # Natural language (no quotes)

/implement auto {ID}                         # Auto, direct to current branch (default)
/implement auto --worktree {ID}              # Auto with worktree isolation
/implement auto {ID} "use worktree"          # Auto, natural language

/implement --model sonnet {ID}               # Model override, direct to main
/implement --model sonnet --worktree {ID}    # Model override + worktree
/implement {ID} "use sonnet with worktree"   # Natural language, both overrides

Argument resolution:

  1. Model (priority order):

- --model flag or "use X" natural language → use this - Recommended Model field in task doc → use this - Default → haiku

  1. Worktree (priority order):

- --worktree flag or worktree-related natural language → use worktree isolation - Otherwise → default direct to current branch

Acknowledge overrides in output:

Model: sonnet (override — task recommended: haiku)
Worktree: enabled (isolated branch .claude/worktrees/task-{ID}/)

If auto detected, update task document header:

> **Automation:** auto

1. Resolve Task ID

  1. Read TASKS.md
  2. Find row with matching ID in first column
  3. Get task doc path from that row
  4. Verify file exists in docs/task/

1.5. Worktree Isolation (Conditional)

Default behavior — direct to current branch:

  • Commit directly to the current branch (wherever user is)
  • No worktree isolation
  • User's working directory changes are the final state
  • Useful for: quick manual implementations, small fixes, direct branch work

If --worktree flag present — use worktree isolation:

EnterWorktree({ name: "task-{ID}" })
  • Creates .claude/worktrees/task-{ID}/ on a new branch
  • User's working directory stays on main for the entire implementation
  • Multiple agents can run in parallel with zero branch conflicts

When to use --worktree:

  • Auto mode (recommended): Orchestrator isolated from user's branch, safer for full pipelines
  • Multi-parallel tasks: Prevents branch conflicts when running multiple agents simultaneously
  • Complex features: Isolated branch work, easier to abandon/reset if needed

When to skip worktree (default):

  • Manual mode: User wants direct changes to review locally before pushing
  • Quick fixes: Overhead not worth it for small tasks
  • Working on a feature branch: Natural to commit directly

2. Read the Task Document — Then Stop Exploring

✅ ALWAYS READ:
   - docs/task/{ID}-{task-name}.md          (your primary source)
   - LEARNINGS.md                            (already done in Step 0)
   - Files listed in ## File Changes         (only these, nothing else)

❌ DO NOT READ unless the task doc explicitly names them:
   - package.json / tsconfig.json / .env
   - Any config file not in ## File Changes
   - Files in directories not mentioned in the task doc
   - Adjacent files "for context"

❌ DO NOT RUN:
   - find . -type f       (directory sweeps)
   - ls -R / ls -la       (directory listing)
   - cat on unlisted files
   - Any grep to "understand patterns" — patterns are in ## Code Context

If a file isn't in the task doc and you think you need it: check ## Code Context first. If it genuinely isn't there, use a targeted Grep for the specific symbol — not a directory sweep.

Understand from the task doc:

  • Task ID (for commit messages)
  • Recommended Model — advisory, not a blocker; note if different but proceed
  • Requirements, proposed solution, architecture
  • File changes — your complete reading list
  • Implementation steps — follow them in order

3. Invoke Specialized Skills

Before writing any code, check whether platform-specific skills are installed and relevant:

SkillInvoke When
/vercel-react-best-practicesTask involves React, Next.js, or TypeScript
/supabase-postgres-best-practicesTask involves database queries, RLS, schema, or Supabase

If a relevant skill is available, invoke it before writing code. If you realize partway through you skipped one, invoke it then review your code before continuing.

4. Update TASKS.md

Move task from "Planned" to "In Progress" with started date and status.

5. Verify Dependencies

  • Required API endpoints exist
  • Required types/interfaces exist
  • Required packages installed
  • No blocking tasks

Commit Convention

All commits must include the task ID prefix.

[task-{ID}] {type}: {description}

{optional body}

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
git commit -m "[task-1] feat: Add JWT authentication middleware

Implements token validation and refresh logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>"

Completion Checklist

CategoryChecks
Code qualityCompiles without errors, no TypeScript errors, follows existing patterns
FunctionalityAll "Must Have" requirements implemented, happy/loading/error/empty states handled
Task documentRequirements checked off, deviations documented, notes for tester added

Update Status to TESTING

When implementation is complete:

1. Update TASKS.md — move to "Testing" section with test report pending.

2. Update task document:

> **Status:** TESTING
> **Completed:** {Date}
> **Implementation Notes:** {Any important notes for tester}

3. Update CLAUDE.md (Structural Changes)

Scan what was built and update CLAUDE.md immediately — don't wait for /document.

What you builtWhat to update in CLAUDE.md
New directory created## Project Structure
File moved or renamed## Important File Locations
Database migration added## Stack (schema note) + ## Important File Locations
New edge function / API route## Important File Locations or ## Key Conventions
New env variable required## Stack (note the var and purpose)
New package installed## Stack
New pattern established (used 2+ times)## Key Conventions
Old pattern replacedRemove old entry, add new one
  • Read existing CLAUDE.md before touching it — prune stale entries first
  • Never just append — if a directory was renamed, update the old entry
  • If none of the above apply (pure logic change, styling tweak) → skip

4. Pre-Completion Verification:

  • React/Next.js task? → Invoked /vercel-react-best-practices (if installed)?
  • Database/Supabase task? → Invoked /supabase-postgres-best-practices (if installed)?
  • If skipped, invoke now and review code before proceeding.

5. Route based on Automation Mode:

Check Automation: auto field in task document.


Manual Mode: No Push (Token Optimization)

Output: completion summary with:
  - Files changed locally
  - Commits made [task-{ID}]
  - Location info:
    * Default: current branch (files in user's working directory)
    * With --worktree: .claude/worktrees/task-{ID}/ (isolated branch)
  - Next step: /simplify {ID}

⚠️ IMPORTANT: Do NOT run git push
   Changes are committed locally (in current branch or worktree).
   User may review, edit, or run /simplify immediately.

Run /clear before invoking /simplify — it only needs the task doc, not this history.

Default (direct): Changes directly in user's working directory on current branch. Commit visible immediately.

With --worktree: Changes isolated in .claude/worktrees/task-{ID}/. User's main branch untouched.


Auto Mode: Push & Enter Orchestrator

  1. Push branch to origin:
git push -u origin {branch-name}
  1. Enter Orchestrator Mode below.

Orchestrator Mode

Only entered when Automation: auto is set AND branch has been pushed to origin. This session stays alive as the pipeline coordinator. Workers run in background, write results to the task document, and return a 4-line signal. You read the signal and decide what happens next — never the worker.

Shared memory: docs/task/{ID}-{task-name}.md — every worker reads and writes to it.

retry_count = 0
max_retries = 3

Stage 1 — Quality Gate

Assign simplify worker:

Task({ subagent_type: "general-purpose", model: "sonnet", prompt: "/simplify {ID}", run_in_background: true })

Wait for SIGNAL. Route:

SignalAction
STATUS: PASSProceed to Stage 2
STATUS: FAILretry_count++. If retry_count > max_retries → STOP, notify user. Otherwise: assign implement-fix worker (see Fix Worker below), then return to Stage 1

Stage 2 — Testing

Assign test worker:

Task({ subagent_type: "general-purpose", model: "haiku", prompt: "/test {ID}", run_in_background: true })

Wait for SIGNAL. Route:

SignalAction
STATUS: PASSProceed to Stage 3
STATUS: FAILretry_count++. If retry_count > max_retries → STOP, notify user. Otherwise: assign implement-fix worker referencing REFERENCE from signal, then return to Stage 1

Stage 3 — Documentation

Assign document worker:

Task({ subagent_type: "general-purpose", model: "haiku", prompt: "/document {ID}", run_in_background: true })

Wait for STATUS: DONE signal → proceed to Stage 4.


Stage 4 — Ship

Assign ship worker:

Task({ subagent_type: "general-purpose", model: "haiku", prompt: "/ship {ID}", run_in_background: true })

Wait for STATUS: DONE signal → pipeline complete.


Pipeline Complete

Report to user:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PIPELINE COMPLETE: #{ID} - {Task Title}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ implement   code written & committed
✓ simplify    quality gate passed
✓ test        {N} criteria verified
✓ document    feature doc created
✓ ship        PR ready for review

PR: {url from ship signal}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Fix Worker (when simplify or test fails)

Task({
  subagent_type: "general-purpose",
  model: "sonnet",
  prompt: "/implement {ID} — Fix required. See REFERENCE path in task doc for details.",
  run_in_background: true
})

The worker reads the task document fresh — all context is in ## Implementation Notes or the test report path. Pass only the reference path, not the full failure details.


Stop Conditions

Stop the pipeline and notify the user when:

  • retry_count > max_retries (3 cycles without PASS)
  • Any worker returns STATUS: BLOCKED
  • Ship worker returns a build/lint failure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PIPELINE STOPPED: #{ID} - {Task Title}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stopped at: {stage}
Reason: {signal summary}
Details: {REFERENCE path from signal}

Action needed from you before pipeline can continue.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Specialized Skills (Install Separately)

  • vercel-react-best-practices — install from vercel-labs/agent-skills; invoke for React/Next.js/TypeScript code
  • supabase-postgres-best-practices — install from supabase/agent-skills; invoke for database queries, RLS, schema, Supabase code

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.1%
按下载量换算88

Claude

28.96%
按下载量换算72

Cursor

20.13%
按下载量换算50

Gemini CLI

10.67%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills