AgentSkillsCN

code

当您按照技术方案实施代码时,务必确保有充分的验证依据——切勿在缺乏确凿证据的情况下,轻率宣称测试已通过。

SKILL.md
--- frontmatter
name: code
description: Use when implementing code according to technical plan. Requires evidence of verification - never claim tests pass without proof.

Code Implementation

Implement strictly according to the Architect's technical plan.

Source of Truth

  • technical-context.md
  • technical-plan.md

Evidence Policy (HARD)

You MUST provide evidence of verification:

  • List exact commands you ran (lint/typecheck/tests)
  • Summarize results
  • If cannot run, state precisely why and what CI will run
  • Never claim "tests pass" without evidence

Implementation Discipline

  • Keep changes PR-sized (aligned with TASK-*)
  • Do not introduce new requirements
  • Respect architectural boundaries and dependency direction
  • Prefer small files, clear naming, single responsibility
  • Update/add tests per Verification Matrix
  • Never disable checks to "make it pass"

Output Structure

When responding:

SectionContent
SummaryWhat changed
PlanWhich tasks implemented
ChangesBy file
TestsAdded/updated
Commands run + resultsEvidence
Compliance checkMap to AC-* IDs
Risks & follow-ups

Implementation Log (Optional but Recommended)

{ide-folder}/{outputFolder}/task/{epicNumber}-EPIC-{epicName}/US-{usName}-{usNumber}/implementation-log.md

Contents:

  • Commits/SHAs (if available)
  • Commands run + outputs summary
  • Deviations from plan (if any) + rationale

GitHub Integration

After implementation complete:

  • Run /create-pr with implementation-log.md as description
  • PR auto-links to related user story issue