AgentSkillsCN

work

为 Claude-mem 集成设置跨会话记忆与学习功能。当用户提及“/harness-mem”、Claude-mem 集成、跨会话记忆,或记忆设置时,可优先选用此技能。切勿用于:应用记忆/存储功能、随意的“记住这件事”请求。

SKILL.md
--- frontmatter
name: work
description: "Executes Plans.md tasks with smart parallel detection and review loop. Use when user mentions '/work', execute plan, implement tasks, build features, or work on tasks. Do NOT load for: planning, reviews, setup, or deployment."
allowed-tools: ["Read", "Write", "Edit", "Grep", "Glob", "Bash", "Task"]
argument-hint: "[--parallel N] [--sequential] [--ci] [--no-commit] [--resume id] [--fork id]"
disable-model-invocation: true

Work Skill

Executes Plans.md tasks and generates actual code with smart parallel execution.

Quick Reference

  • "Progress tasks in Plans.md" → this skill
  • "Build to where it works first" → get to minimum working state
  • "Do everything at once" → automatic parallel execution
  • "Resume session" → --resume <id|latest>
  • "Fork session" → --fork <id|current> --reason "<text>"

Usage

bash
/work                    # Implement → Review → Fix → Commit (default)
/work --no-commit        # Skip auto-commit (manual commit)
/work --parallel 5       # Force 5 parallel workers
/work --sequential       # Force sequential (no parallel)
/work --ci               # CI-only non-interactive mode
/work --resume latest    # Resume latest stopped session
/work --fork current     # Fork from current session

Options

OptionDescriptionDefault
--ciCI-only non-interactive modefalse
--parallel NForce parallel countauto
--sequentialForce no parallel-
--isolationlock / worktreeworktree
--max-iterationsReview fix loop limit3
--skip-reviewSkip review phasefalse
--no-commitSkip auto-commitfalse
--resume <id|latest>Resume session-
--fork <id|current>Fork session-
--reason "<text>"Fork reason (with --fork)-

Default Flow

code
/work
    ↓
Phase 1: Parallel Implementation
    → task-workers implement in parallel
    → Each worker: implement → self-review
    ↓
Phase 2: Review Loop (harness-review)
    → APPROVE: proceed
    → REQUEST_CHANGES: fix → re-review
    ↓
Phase 3: Auto-commit
    → Commit changes (unless --no-commit)
    ↓
Phase 4: Handoff (2-Agent only)
    → Report to PM via /handoff-to-cursor

Feature Details

FeatureReference
Execution FlowSee references/execution-flow.md
Parallel ExecutionSee references/parallel-execution.md
Session ManagementSee references/session-management.md
Review LoopSee references/review-loop.md
Auto-commitSee references/auto-commit.md
Error HandlingSee references/error-handling.md

Smart Parallel Detection

ConditionParallel Count
1 task1
All tasks edit same file1
2-3 independent tasks2-3
4+ independent tasks3 (max)

Auto-invoke Skills

SkillPurposeWhen to Call
implFeature implementationOn task implementation
verifyBuild verificationOn post-implementation verification
harness-reviewMulti-perspective reviewAfter implementation complete

Project Configuration

Override defaults via .claude-code-harness.config.yaml:

yaml
work:
  auto_commit: false          # Disable auto-commit
  commit_on_pm_approve: true  # 2-Agent: defer commit until PM approves

VibeCoder Hints

What You WantHow to Say
Do all in parallel"do everything at once"
Know progress"how far are we?"
Verify operation"run it"
Do one at a time"one at a time in order"