Agent Skills › boshu2/agentops › implement

implement

GitHub

用于执行已批准的代码实现、修复已知缺陷或运行特定测试波次。强调在授权后直接进行源码修改,通过最小化变更和精确验证确保行为正确性,并记录事实证据而非做出绑定裁决。

images/gemini/skills/implement/SKILL.md boshu2/agentops

Trigger Scenarios

需要编写或修改源代码时 修复已确认的代码缺陷时 执行特定的测试或验证流程时

Install

npx skills add boshu2/agentops --skill implement -g -y
More Options

Non-standard path

npx skills add https://github.com/boshu2/agentops/tree/main/images/gemini/skills/implement -g -y

Use without installing

npx skills use boshu2/agentops@implement

指定 Agent (Claude Code)

npx skills add boshu2/agentops --skill implement -a claude-code -g -y

安装 repo 全部 skill

npx skills add boshu2/agentops --all -g -y

预览 repo 内 skill

npx skills add boshu2/agentops --list

SKILL.md

Frontmatter
{
    "name": "implement",
    "consumes": [],
    "metadata": {
        "tier": "execution",
        "effects": [
            "modify_declared_subject",
            "derive_subject_manifest"
        ],
        "graph_root": true,
        "disposition": "keep",
        "capabilities": [
            "execute_one_experiment",
            "collect_factual_evidence"
        ],
        "dependencies": [],
        "canonical_status": "canonical"
    },
    "produces": [
        "subject-manifest.v1"
    ],
    "practices": [
        "tdd",
        "refactoring",
        "small-batch-flow"
    ],
    "context_rel": [
        {
            "kind": "customer-of",
            "with": "plan"
        }
    ],
    "description": "Implement accepted behavior, repair defects or execute a selected wave with per-lane evidence. Use when: coding is authorized and ready; return facts, not a binding verdict.",
    "hexagonal_role": "driving-adapter",
    "user-invocable": true,
    "output_contract": "content identity, author context ID and check facts through the native handoff; subject-manifest.v1 at the judgment boundary",
    "skill_api_version": 1
}

Implement

Implement the accepted outcome. Repair ordinary known defects directly. Use the existing intent; no Plan, Recall or Learn worksheet is owed for a clear edit. Implement owns source changes and factual checks; the runtime derives identity and receipts.

Workflow

  1. Read intent, acceptance, scope and repository boundaries before the first write; reuse loaded contracts. RPI boundaries apply when that workflow is explicitly selected. For caller-selected episode tracking, obtain permitted work/source references and return observed runtime/context identity at startup through the native recording channel. Keep unknowns and failures explicit; invent no parentage or second tracker. The session association reference supplies mechanics for that selected workflow.
  2. Carry the accepted behavior examples forward unchanged. Use repository domain names in symbols and tests; check observable outcomes through the relevant interface. Find actual consumers of edited paths or wording and their checks. For retirement, inspect live code, tests, schemas, instructions, installations and lookups as relevant; verify new guidance and old-name lookup behavior, preserving historical provenance. Keep exact check commands and the required integration recipe in the existing handoff. Run the smallest applicable check before and after editing. Behavioral changes preserve RED for the expected missing behavior; pure refactors, relocations or docs may have an honest green baseline. Prefer existing tests or small discriminating probes.
  3. Make the smallest in-scope change. When repairing discovery or checks, preserve the consumer's existing input selection; fixing an error path does not authorize a wider scan. Use a negative control when exclusion matters. Check a representative change against existing constraints before bulk propagation; check the authored source set before broad regeneration. Repair known failures directly and verify the exact result (such as a cited file, assertion or returned record) before another review. A disproved assumption may change the approach within scope; use Plan only for consequential uncertainty.
  4. Use targeted tests and applicable repository lint/static checks before broad integration. Read the repository's actual check recipe, including instrumentation and environment, rather than reconstructing it from memory. Run required full checks at integration. Reuse exact-input receipts only while source, tool and relevant environment match. Distinguish repository-mandated hook checks from discretionary repeats; neither bypass required hooks nor replay a check just to rename its receipt. A required CI job's known failure is actionable before the whole run ends. Inspect and repair it within scope; preserve the failed subject's evidence and rerun affected checks on the repair. Pending jobs do not imply success.
  5. Refactor while acceptance remains green. Inspect changed tests, fixtures, goldens, tolerances, suppressions and specification text against original intent. Mocks, placeholders or weakened oracles cannot substitute for the requested behavior.
  6. Have the runtime derive actual changed paths and content identity. A delegated increment awaiting integration returns an exact commit or runtime-derived content digests, author context ID and check facts in the existing handoff. The integrating caller derives subject-manifest.v1 over the complete final subject before judgment; an independently judged increment needs its own manifest. Do not generate both merely because work was delegated. At that boundary, when changed paths affect bound acceptance evidence, run ao provenance evidence-orphans --root <repo-root> with one --changed <path> per derived path and retain its actual output. Refresh affected bindings after repairs; never invent or suppress the orphan list.
  7. Return identity, check commands/results, useful failures and accessible evidence references through the native handoff, then stop. Keep full logs at their source, without duplicating inventories or status documents. Missing or truncated evidence stays explicit.

Diagnosis, scaffolding and delegated work

For an unexplained failure, first match the reported symptom and reduce the reproduction. State one causal prediction, test it with a discriminating check, and repair the cause supported by the result. Rerun the original scenario. Do not keep collecting hypotheses after the cause is understood. This compact diagnosis path is informed by Matt Pocock's engineering skills.

When scaffolding is the requested change, start from the repository's existing layout and a working vertical slice. See scaffold references only for the relevant tool shape. Avoid placeholder success paths and a new framework for a one-off operation.

Prefer current-session execution. If delegation is authorized and useful, partition independent writes in isolated workspaces; shared generators and integration serialize. Supply each lane its intent, acceptance, scope and review owner, then integrate its exact content and check facts. A selected wave ends with the caller-requested wave result; do not invent another wave. One fresh review of the integrated candidate can cover unjudged increments; when the integrator owns that review, workers return their handoff without commissioning another. Preserve any separately required lane judgments; a successful process exit is not semantic PASS. Agent Native supplies optional dispatch mechanics.

An explicitly requested one-shot adapter dispatches each supplied operation once, reports its output or error, and stops. Show dispatch count and failure reporting with a dry-run or fixture. It does not silently acquire a scheduler, retry controller or store. Factories require the caller's selection.

Scope and finish

Report an uncovered live consumer as file:line for a caller scope amendment; continue independent authorized work. Generated companions already included as scope require no new approval. Acceptance changes always require caller authority.

Specialists advise only. Known defects stay implementation work; a genuine causal stall permits at most one bounded fresh helper within caller authority. Respect remaining caller/native bounds and reserve finishing capacity; retries reset neither.

Return facts, not semantic PASS. An implement-only handoff does not authorize Git, tracker or delivery transitions; existing caller authority remains usable. A full outcome request continues through fresh independent final judgment; RPI is optional and explicitly selected. Success is working behavior with usable evidence, not volume of logs or process artifacts.

Generic scaffold examples are optional starting points when the repository has no suitable existing pattern.

Version History

  • 9f8a711 Current 2026-09-22 10:59

    明确区分回顾性分析与代码判断的时机,减少协调开销;收紧协调指导,明确集成与审查所有权;强化 Skill Eval 中指令遵循与效益证明的区别。

  • 8061085 2026-09-09 05:16

    新增启动时原生运行时与上下文身份关联记录;引入边界检查文件读取;增加血缘证据孤儿检查步骤。

  • 7b07a7d 2026-08-19 21:59

    收敛保留的工作区内容并强化证据边界;对齐技能契约与操作契约,解决不一致性。

  • 3f402e5 2026-07-24 22:07

Same Skill Collection

images/gemini/skills/account-rotation/SKILL.md
images/gemini/skills/agent-mail/SKILL.md
images/gemini/skills/agent-native/SKILL.md
images/gemini/skills/agy-native/SKILL.md
images/gemini/skills/anti-ceremony/SKILL.md
images/gemini/skills/automation-shape-routing/SKILL.md
images/gemini/skills/bootstrap/SKILL.md
images/gemini/skills/cass/SKILL.md
images/gemini/skills/cc-hooks/SKILL.md
images/gemini/skills/codebase-recon/SKILL.md
images/gemini/skills/codex-exec/SKILL.md
images/gemini/skills/converter/SKILL.md
images/gemini/skills/council/SKILL.md
images/gemini/skills/craft-goal/SKILL.md
images/gemini/skills/crank/SKILL.md
images/gemini/skills/dcg/SKILL.md
images/gemini/skills/doc/SKILL.md
images/gemini/skills/domain/SKILL.md
images/gemini/skills/fitness/SKILL.md
images/gemini/skills/goals/SKILL.md
images/gemini/skills/handoff/SKILL.md
images/gemini/skills/human-only-skills/SKILL.md
images/gemini/skills/idea-genie/SKILL.md
images/gemini/skills/learn/SKILL.md
images/gemini/skills/memory/SKILL.md
images/gemini/skills/ms/SKILL.md
images/gemini/skills/ntm/SKILL.md
images/gemini/skills/one-way-door/SKILL.md
images/gemini/skills/operationalize/SKILL.md
images/gemini/skills/pattern-mining/SKILL.md
images/gemini/skills/plan/SKILL.md
images/gemini/skills/postmortem/SKILL.md
images/gemini/skills/premortem/SKILL.md
images/gemini/skills/product/SKILL.md
images/gemini/skills/rch/SKILL.md
images/gemini/skills/reality-check/SKILL.md
images/gemini/skills/refactor/SKILL.md
images/gemini/skills/research/SKILL.md
images/gemini/skills/reverse-engineer/SKILL.md
images/gemini/skills/route/SKILL.md
images/gemini/skills/rpi/SKILL.md
images/gemini/skills/sbh/SKILL.md
images/gemini/skills/scaffold/SKILL.md
images/gemini/skills/scope/SKILL.md
images/gemini/skills/security/SKILL.md
images/gemini/skills/shared/SKILL.md
images/gemini/skills/skill-builder/SKILL.md
images/gemini/skills/skill-eval/SKILL.md
images/gemini/skills/standards/SKILL.md

Metadata

Files
0
Version
9f8a711
Hash
76f82600
Indexed
2026-07-24 22:07

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-26 10:51
浙ICP备14020137号-1