Conductor implement

From lingxling/awesome-skills-cn · View interactive version

Conductor implement is an AI agent skill from the GitHub repository lingxling/awesome-skills-cn. Execute tasks from a track's implementation plan following TDD workflow

How to use this skill

Skill file

Implement Track

Execute tasks from a track's implementation plan, following the workflow rules defined in conductor/workflow.md.

Use this skill when

Do not use this skill when

Instructions

Pre-flight Checks

  1. Verify Conductor is initialized:
  1. Load workflow configuration:

Track Selection

If argument provided:

If no argument:

  1. Read conductor/tracks.md
  2. Parse for incomplete tracks (status [ ] or [~])
  3. Display selection menu:

```

Select a track to implement:

In Progress:

1. [~] auth_20250115 - User Authentication (Phase 2, Task 3)

Pending:

2. [ ] nav-fix_20250114 - Navigation Bug Fix

3. [ ] dashboard_20250113 - Dashboard Feature

Enter number or track ID:

```

Context Loading

Load all relevant context for implementation:

  1. Track documents:
  1. Project context:
  1. Code style (if exists):

Track Status Update

Update track to in-progress:

  1. In conductor/tracks.md:
  1. In conductor/tracks/{trackId}/metadata.json:

Task Execution Loop

For each incomplete task in plan.md (marked with [ ]):

1. Task Identification

Parse plan.md to find next incomplete task:

2. Task Start

Mark task as in-progress:

3. TDD Workflow (if TDD enabled in workflow.md)

Red Phase - Write Failing Test:

Following TDD workflow for Task X.Y...

Step 1: Writing failing test

Green Phase - Implement:

Step 2: Implementing minimal code to pass test

Refactor Phase:

Step 3: Refactoring while keeping tests green

4. Non-TDD Workflow (if TDD not strict)

5. Task Completion

Commit changes (following commit strategy from workflow.md):

git add -A
git commit -m "{commit_prefix}: {task description} ({trackId})"

Update plan.md:

git add conductor/tracks/{trackId}/plan.md
git commit -m "chore: mark task X.Y complete ({trackId})"

Update metadata.json:

6. Phase Completion Check

After each task, check if phase is complete:

Run phase verification:

Phase {N} complete. Running verification...

Report and wait for approval:

Phase {N} Verification Results:
- All phase tasks: Complete
- Tests: {passing/failing}
- Verification: {pass/fail}

Approve to continue to Phase {N+1}?
1. Yes, continue
2. No, there are issues to fix
3. Pause implementation

CRITICAL: Wait for explicit user approval before proceeding to next phase.

Error Handling During Implementation

On Tool Failure

ERROR: {tool} failed with: {error message}

Options:
1. Retry the operation
2. Skip this task and continue
3. Pause implementation
4. Revert current task changes

On Test Failure

TESTS FAILING after Task X.Y

Failed tests:
- {test name}: {failure reason}

Options:
1. Attempt to fix
2. Rollback task changes
3. Pause for manual intervention

On Git Failure

GIT ERROR: {error message}

This may indicate:
- Uncommitted changes from outside Conductor
- Merge conflicts
- Permission issues

Options:
1. Show git status
2. Attempt to resolve
3. Pause for manual intervention

Track Completion

When all phases and tasks are complete:

1. Final Verification

All tasks complete. Running final verification...

2. Update Track Status

In conductor/tracks.md:

In conductor/tracks/{trackId}/metadata.json:

In conductor/tracks/{trackId}/plan.md:

3. Documentation Sync Offer

Track complete! Would you like to sync documentation?

This will update:
- conductor/product.md (if new features added)
- conductor/tech-stack.md (if new dependencies added)
- README.md (if applicable)

1. Yes, sync documentation
2. No, skip

4. Cleanup Offer

Track {trackId} is complete.

Cleanup options:
1. Archive - Move to conductor/tracks/_archive/
2. Delete - Remove track directory
3. Keep - Leave as-is

5. Completion Summary

Track Complete: {track title}

Summary:
- Track ID: {trackId}
- Phases completed: {N}/{N}
- Tasks completed: {M}/{M}
- Commits created: {count}
- Tests: All passing

Next steps:
- Run /conductor:status to see project progress
- Run /conductor:new-track for next feature

Progress Tracking

Maintain progress in metadata.json throughout:

{
  "id": "auth_20250115",
  "title": "User Authentication",
  "type": "feature",
  "status": "in_progress",
  "created": "2025-01-15T10:00:00Z",
  "updated": "2025-01-15T14:30:00Z",
  "current_phase": 2,
  "current_task": "2.3",
  "phases": {
    "total": 3,
    "completed": 1
  },
  "tasks": {
    "total": 12,
    "completed": 7
  },
  "commits": [
    "abc1234: feat: add login form (auth_20250115)",
    "def5678: feat: add password validation (auth_20250115)"
  ]
}

Resumption

If implementation is paused and resumed:

  1. Load metadata.json for current state
  2. Find current task from current_task field
  3. Check if task is [~] in plan.md
  4. Ask user:

```

Resuming track: {title}

Last task in progress: Task {X.Y}: {description}

Options:

1. Continue from where we left off

2. Restart current task

3. Show progress summary first

```

Critical Rules

  1. NEVER skip verification checkpoints - Always wait for user approval between phases
  2. STOP on any failure - Do not attempt to continue past errors
  3. Follow workflow.md strictly - TDD, commit strategy, and verification rules are mandatory
  4. Keep plan.md updated - Task status must reflect actual progress
  5. Commit frequently - Each task completion should be committed
  6. Track all commits - Record commit hashes in metadata.json for potential revert

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.