AgentSkillsCN

implement

根据 Plan.md 中的规划,逐步实现某个阶段或某项功能。适用于为 claude-worktree 项目开发新功能时使用。

SKILL.md
--- frontmatter
name: implement
description: Implement a phase or feature from Plan.md. Use when building new features for the claude-worktree project.
argument-hint: "[phase-number or feature-name]"
disable-model-invocation: true
allowed-tools: Bash(go *), Bash(golangci-lint *), Read, Write, Edit, Glob, Grep

Implement Feature from Plan

Steps

  1. Read Plan.md to understand the full specification
  2. Read CLAUDE.md for project conventions
  3. Identify which files need to be created or modified based on $ARGUMENTS
  4. For each file:
    • Check if it already exists
    • If extending existing code, read it first
    • Implement following the patterns already established in the codebase
    • Write tests alongside the implementation
  5. After implementation:
    • Run go vet ./...
    • Run go build -o claude-worktree .
    • Run go test -v -cover ./...
    • Run golangci-lint run ./...
    • Fix any issues found
  6. Summarize what was implemented and what remains

Rules

  • Follow the project structure defined in Plan.md
  • Follow conventions in CLAUDE.md (ASCII output prefixes, error handling pattern)
  • Write tests for all new functions in internal/
  • Keep implementations minimal - only what the plan specifies
  • Use English for code, comments may be in Vietnamese