Agent skill

workflow-execute

Execute commit N from plan.md and generate summary. Use to implement a specific commit from the implementation plan.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/workflow-execute

SKILL.md

Issue Execution Command

User Input

text
$ARGUMENTS

Expected format:

  • /workflow-execute TASK-NAME N (task name and commit number)
  • /workflow-execute N (commit number only - searches for most recent plan.md)

Examples:

  • /workflow-execute REFACTORING 1
  • /workflow-execute API-REDESIGN 2
  • /workflow-execute 1 (uses most recent plan.md)

Outline

  1. Parse User Input:

    • If $ARGUMENTS contains two parts (e.g., "REFACTORING 1"):
      • Extract task name from first part (e.g., "REFACTORING")
      • Extract commit number from second part (e.g., 1)
      • Target: docs/work/WORK-{task-name}/plan.md
    • If $ARGUMENTS contains only number (e.g., "1"):
      • Extract commit number
      • Find most recently modified plan.md in docs/work/WORK-*/
      • If not found, ERROR: "No plan.md found. Use: /workflow-execute TASK-NAME N"
  2. Check Prerequisites:

    • Verify target plan.md exists
    • If not, ERROR: "Run /workflow-plan first for WORK-{task-name}"
  3. Load Context:

    • Required: Read checklist for the commit in plan.md
    • Optional: Also reference analysis.md for deep context if complex work
    • Check existing summary-commit-N.md (handle revision cycle)
  4. Execute Tasks:

    • Execute plan.md checklist items sequentially
    • Create/modify files
    • Write tests
  5. Verify:

    • Run tests
    • Verify behavior
  6. Generate/Overwrite Summary:

    • Create docs/work/WORK-{task-name}/summary-commit-N.md
    • Overwrite if existing file (keep only final state)
  7. Report Completion:

    • List of changed files
    • Verification results
    • Remaining commit count

Key Rules

๐Ÿ“ Documentation Language

CRITICAL: All documents you generate (summary-commit-N.md) MUST be written in Korean.

โœ… Must Do

  • Faithfully follow plan.md checklist
  • Strictly follow coding principles
  • Write tests
  • Auto-generate summary

โŒ Must Not Do

  • Ignore checklist
  • Violate coding principles (without justification)
  • Skip verification

๐ŸŽฏ Implementation Rules

  • Setup first: Initialize project structure, dependencies, configuration
  • Tests before code: If you need to write tests
  • Core development: Implement models, services, CLI commands

๐Ÿ“Š Progress Tracking

  • Report progress after each completed task
  • Halt execution if any non-parallel task fails
  • Provide clear error messages with context for debugging

๐Ÿงช Prototype Code Usage (if exists)

IMPORTANT: If validation code exists in __prototype__/ directory:

  • โœ… Reference only: Understand implementation direction and core logic
  • โœ… Rewrite cleanly: Implement with code quality, structure, and principles
  • โŒ Never copy: Prototypes were written for validation only (ignoring cleanliness/structure)

Prototype purpose: Proof of technical feasibility and core idea verification


Document Template

File to create: docs/work/WORK-{task-name}/summary-commit-N.md

markdown
# Commit N: [Title]

> **Written At**: [YYYY-MM-DD HH:mm]
> **Related Plan**: `plan.md` > Commit N

---

## ๐ŸŽฏ Achievement Goal

[1 sentence]

---

## ๐Ÿ“ Changed Files

**Added**:

- `src/new/file.ts`: [Description]

**Modified**:

- `src/existing.ts:45`: [Changes]

**Deleted** (if any):

- `src/old/file.ts`: [Deletion reason]

## ๐Ÿ’ก Core Changes

- [Change 1]
- [Change 2]

---

## โœ… Verification Results

**Test Method**:

- [Test content]

**Test Results**:

- [Results]

## ๐Ÿงช Edge Cases (if verified)

- [Case 1]: [Expected behavior]
- [Case 2]: [Expected behavior]

---

## ๐Ÿ”‘ Technical Decisions (if any)

- **[Technology/Pattern]**: [Selection reason in 1 line]

---

## โš ๏ธ Caveats (if any)

- [Constraints]
- [Environment variable added]: `KEY=value`
- [Dependency install]: `npm install package`

## ๐Ÿ“Œ Follow-up Tasks (if any)

- TODO: [Specific content]

Context Loading

REQUIRED

  • Read plan.md for the complete task list and execution plan

IF EXISTS

  • Read analysis.md for deep context (optional but recommended for complex work)
  • Read existing summary-commit-N.md to understand if this is a revision
  • Check __prototype__/ directory (reference code created during validation phase)

Execution

Now start the task according to the guidelines above.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results