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

implement实现

Agent Skill

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

总安装

214

周安装

9

GitHub Stars

2

下载量

75
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

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

简介

implement 自主执行实现任务,支持计划文件或内联指令解析。

  • 适用于端到端功能开发,自动拆分任务并按阶段验证结果。
  • 默认启用 review 模式,可通过 --no-review 关闭人工复核。
  • 需确认文件写入权限与测试覆盖率要求,防止破坏现有逻辑。
  • implement 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

User request: $ARGUMENTS

Autonomously execute implementation in-place. Supports plan files, inline tasks, or interactive mode.

Fully autonomous: No pauses except as specified in Phase 3's "Pause ONLY when" list and Edge Cases.

Workflow

Phase 1: Resolve Input & Setup

Review flag: Review workflow runs by default after implementation. If arguments contain --no-review (case-insensitive), disable it. Remove flag from arguments before processing below.

Priority order:

  1. File path (ends in .md or starts with /) → use plan file, optionally with --spec <path>
  2. Inline task (any other text) → create ad-hoc single chunk: ## 1. [Task summary - first 50 chars (if longer, truncate at last space before char 50 if that space is at position 10+; otherwise truncate at char 47 and append "..."; if 50 chars or fewer, use as-is)] - Depends on: - - Tasks: [user's description] - Files: (list as created/modified during execution) - Acceptance criteria: task completed AND gates pass
  3. Empty → search /tmp/plan-*.md (most recent by file modification time; if tied, use alphabetically last filename); if none found, ask user what they want to implement

For plan files, parse each chunk (## N. [Name] headers):

  • Dependencies (Depends on: field, - = none)
  • Files to modify/create with descriptions
  • Context files (paths, optional line ranges)
  • Implementation tasks (bullet list)
  • Key functions/types

Invalid plan: Empty file, missing ## N. [Name] chunk headers, or malformed Depends on/Tasks fields (Depends on must be - or comma-separated chunk numbers; Tasks must be a bullet list with at least one item) → Error with path + expected structure.

Build dependency graph: No-dependency chunks first, then topological order.

Create flat todo list (Memento pattern—granular progress, resumable):

[ ] Read context for [Chunk]
[ ] [Task 1]...[ ] [Task N]
[ ] Run gates for [Chunk]
[ ] Commit chunk: [Chunk]
...
# Unless --no-review, append:
[ ] Run review on implemented changes
[ ] (Fix review issues - expand as findings emerge)

All todos created at once via update_plan (status pending). If update_plan unavailable, use /tmp/implement-progress.md with markdown checkboxes: - [] pending, - [~] in progress, - [x] completed, with timestamp prefix [HH:MM:SS].

Spec file (--spec <path>): Read before implementation for requirements/acceptance criteria. If path doesn't exist, add to Notes: "Warning: Spec not found: [path]" and continue. Spec is only used when explicitly provided via --spec.

Phase 2: Execute Chunks

CRITICAL: Execute continuously without pauses.

Per chunk:

  1. Read context files from plan + files-to-modify, respect line ranges
  2. Implement each task, marking in_progresscompleted immediately
  3. Run gates (Phase 3)
  4. Commit chunk: git add [files created/modified] && git commit -m "feat(plan): implement chunk N - [Name]" (do NOT push)
  5. Track created/modified files for summary

Phase 3: Auto-Fix Gates

Run gates in order: typecheck, then tests, then lint. Stop at first failure and iterate on that gate until it passes before proceeding to the next gate.

Gate command detection:

  1. Check AGENTS.md for explicit commands (look for sections labeled "Development Commands", "Scripts", or "Gates"; identify typecheck/test/lint by command names like tsc, jest, eslint, mypy, pytest, ruff)
  2. If AGENTS.md commands fail with "command not found", "not recognized", or exit code 127 → fall back to config detection
  3. Use fallback detection (see Gate Detection section)

On failure—iterate:

  1. Analyze: parse errors, identify files/lines, understand root cause
  2. Fix by addressing root cause (not by suppressing errors, skipping tests, or adding // @ts-ignore)
  3. Re-run the failing gate
  4. Track attempts per issue by error message and file:line; if same error persists after 3 distinct fix strategies, escalate per "Pause ONLY when" rules

Distinct fix strategy: A strategy is distinct if it modifies different lines OR uses a categorically different technique: (1) adding/changing type annotations, (2) type assertions/casts, (3) refactoring logic/control flow, (4) adding null/undefined checks, (5) changing function signatures, (6) adding/modifying imports.

Pause ONLY when:

  • Same error message and file:line persists after 3 distinct fix strategies
  • Need info not available in codebase or context (API keys, credentials, external service configs)
  • Fix requires modifying files not listed in the chunk's "Files:" field (creating new files is allowed only if they are: helper/utility modules, type definition files, or test files directly testing the chunk's code)
  • Plan requirements contradict each other (both can't be satisfied simultaneously)

Report: what tried, why failed, what's needed.

Phase 4: Completion

## Implementation Complete
Chunks: N | Todos: M | Created: [list] | Modified: [list]
### Notes: [warnings/assumptions/follow-ups]
Run `$review` for quality verification.

Unless --no-review → proceed to Phase 5.

Phase 5: Review Workflow (default, skip with --no-review)

Skip if --no-review was set.

  1. Mark "Run review" in_progress → invoke $review --autonomous → mark completed
  2. If no issues → mark fix placeholder completed, done
  3. Expand fix placeholder: [x] (Fix review issues - expand as findings emerge) [] Fix critical/high severity issues [] Re-run review to verify fixes [] (Additional fix iterations - expand if needed)
  4. Mark "Fix critical/high" in_progress → invoke $fix-review-issues --severity critical,high --autonomous → mark completed
  5. Mark "Re-run review" in_progress → invoke $review --autonomous → mark completed
  6. Repeat fix/review cycle until clean or max 3 cycles

Edge Cases

CaseAction
Invalid plan (empty file, missing ## N. [Name] headers, or malformed fields)Error with path + expected structure
Missing context fileAdd to Notes: "Warning: Context file not found: [path]", continue
Chunk fails (gates fail after 3 distinct fix strategies OR task requires unavailable info)Leave todos pending, skip dependents, continue independents, report in summary
Partial gate success (e.g., typecheck passes but tests fail after 3 strategies)Chunk fails; require all gates to pass for chunk completion
Inline task providedCreate ad-hoc single chunk, proceed normally
No input + no recent planAsk user what they want to implement
InterruptedTodos reflect exact progress; on next invocation with same plan, agent resumes from first pending todo. If files were partially modified without git: read current state and complete remaining work rather than overwriting
AGENTS.md gate commands failFall back to config-based detection (see Gate Detection)
No AGENTS.md or no matching sectionsSkip to config-based detection
Circular dependenciesError: "Circular dependency detected: [chunk A] ↔ [chunk B]". List cycle, abort.
update_plan unavailableTrack progress via /tmp/implement-progress.md with checkbox format
Spec file doesn't existAdd to Notes: "Warning: Spec not found: [path]", continue without spec

Principles

  • Autonomous: No prompts/pauses/approval needed except blocking issues listed in Phase 3 and Edge Cases
  • Memento todos: One todo per action, granular visibility, resumable
  • Persistent auto-fix: Iterate until gates pass (up to 3 distinct strategies per issue), escalate only when stuck
  • Dependency order: Execute in order, skip failed chunk's dependents
  • Gates non-negotiable: Fix root cause (no @ts-ignore, test skips, or suppressions); skip chunk only after 3 failed strategies
  • Commit per chunk: Each successful chunk gets its own commit (no push until end); provides rollback points for recovery
  • Simplicity: Prefer readable code over micro-optimizations; don't add complexity for marginal performance gains

Gate Detection

Priority: AGENTS.md → package.json scripts → Makefile → config detection

Skip any source that doesn't define relevant commands (test/lint/typecheck).

Fallback (if AGENTS.md doesn't specify or commands fail with exit code 127):

  • TS/JS: tsconfig.jsontsc --noEmit, eslint.config.*eslint., jest/vitest.config.*npm test
  • Python: pyproject.tomlmypy/ruff check, pytest config→pytest
  • Go: go.modgo build./..., golangci.ymlgolangci-lint run
  • Rust: Cargo.tomlcargo check, cargo test
  • Other languages: Skip gates with warning "No gate commands detected for [language]; specify in AGENTS.md"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

25.9%
按下载量换算19

OpenCode

22.46%
按下载量换算17

Antigravity

16.69%
按下载量换算13

Gemini CLI

11.54%
按下载量换算9

windsurf

8.1%
按下载量换算6

Codex

3.45%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills