Project execution

From athola/claude-night-market · View interactive version

Project execution is an AI agent skill from the GitHub repository athola/claude-night-market. Executes implementation plans with progress tracking, checkpoint validation, and quality gates. Use after planning is complete and tasks are ready to implement.

How to use this skill

Skill file

When To Use

When NOT To Use

Integration

With superpowers:

session implements every task itself, then one whole-branch review.

Skill(superpowers:subagent-driven-development) is the other mode,

with an implementer and a reviewer per task. attune's per-task

Delegation Check below decides which tasks leave the session

With imbue:

each increment's ambition is earned by demonstrated understanding

of the prior one, not ramped on completion alone

Without superpowers:

Execution Framework

Pre-Execution Phase

Actions:

  1. Load implementation plan
  2. Validate project initialized
  3. Check dependencies installed
  4. Review task dependency graph
  5. Identify starting tasks (no dependencies)

Validation:

Task Execution Loop

For each task in dependency order:

1. PRE-TASK
   - Verify dependencies complete
   - Review acceptance criteria
   - Create feature branch (optional)
   - Set up task context

2. IMPLEMENT (TDD Cycle)
   - Write failing test (RED)
   - Implement minimal code (GREEN)
   - Refactor for quality (REFACTOR)
   - Repeat until all criteria met

3. VALIDATE
   - All tests passing?
   - All acceptance criteria met?
   - Code quality checks pass?
   - Documentation updated?

4. RAMP GATE (before the next, more ambitious task)
   - Invoke Skill(imbue:graduated-implementation)
   - Demonstrate understanding of THIS increment, sized to stakes:
     low-stakes on the evidence gate (green tests plus a recorded
     tradeoff), high-stakes on the human explaining the diff unaided
   - On a clean demonstration, record it in the ramp ledger and
     mark the rung widened; below the band, hold and split the next
     task smaller instead of ramping

5. CHECKPOINT
   - Mark task complete IMMEDIATELY (do NOT batch)
   - Update execution state
   - Report progress
   - Identify blockers

Task Completion Discipline: Always call TaskUpdate(taskId: "X", status: "completed") right after finishing each task. Never defer completions to end of session.

Verification: Run pytest -v to verify tests pass.

Post-Execution Phase

Actions:

  1. Verify all tasks complete
  2. Run full test suite
  3. Check code quality metrics
  4. Generate completion report
  5. Prepare for deployment/release
  6. Record lessons learned (see below)

Record Lessons Learned (decision journal)

Implementation is where the honest lessons appear: the approach that had to be

reworked, the blocker that cost a day, the assumption from planning that did

not hold. Capture these in docs/lessons-learned.md now, blamelessly, instead

of letting them vanish into "done." Draft and confirm one entry per

substantive lesson:

it to append a lesson entry: what_happened, what_didnt_work,

root_cause, and a concrete action. Set phase to execute. Show the

draft and append it on confirmation (status starts open).

the in-file ENTRY TEMPLATE. Assign the next LL-NNN id.

Trigger this whenever execution involved rework, a failed approach, or a

blocker that exhausted the two-challenge / 3-attempt limit. A clean run with no

surprises needs no entry.

Terminal Phase Notice

This is the final phase of the attune workflow. No auto-continuation occurs after execution completes. The workflow terminates here. Unlike brainstorming, specification, and planning phases, execution does NOT auto-invoke any subsequent phase.

Task Execution Pattern

Delegation Check (First, Per Task)

Before implementing a task, delegate it.

Skill(conjure:delegation-core) is on by default, so the decision to

make is whether a Keep Local clause holds.

Keep the task local when it is design or trade-off work, when its

context carries a secret, when it needs turn-by-turn iteration, or when

its output cannot be validated afterward.

Otherwise hand it to the delegator and validate what comes back through

the same TDD workflow below.

The tests are the validation: a delegated implementation that fails the

RED test is rejected exactly like a local one.

If the result's fallback_reason is providers_exhausted, no external

model ran.

Report which providers were tried, then hand the task to a subagent on the

session's model, following modules/subagent-fallback.md.

Take the same path when conjure is not installed and its skill cannot load.

If the reason is delegation_disabled, implement the task here: the

operator declined delegation, and a subagent is still a delegation.

An exhausted chain is not a blocked task and does not belong in

docs/lessons-learned.md.

TDD Workflow

RED Phase:

# Write test that fails
def test_user_authentication():
    user = authenticate("user@example.com", "password")
    assert user.is_authenticated
# Run test → FAILS (feature not implemented)

Verification: Run pytest -v to verify tests pass.

GREEN Phase:

# Implement minimal code to pass
def authenticate(email, password):
    # Simplest implementation
    user = User.find_by_email(email)
    if user and user.check_password(password):
        user.is_authenticated = True
        return user
    return None
# Run test → PASSES

Verification: Run pytest -v to verify tests pass.

REFACTOR Phase:

# Improve code quality
def authenticate(email: str, password: str) -> Optional[User]:
    """Authenticate user with email and password."""
    user = User.find_by_email(email)
    if user is None:
        return None

    if not user.check_password(password):
        return None

    user.mark_authenticated()
    return user
# Run test → STILL PASSES

Verification: Run pytest -v to verify tests pass.

Checkpoint Validation

Quality Gates:

- [ ] All acceptance criteria met
- [ ] All tests passing (unit + integration)
- [ ] Code linted (no warnings)
- [ ] Type checking passes (if applicable)
- [ ] Documentation updated
- [ ] No regression in other components

Verification: Run pytest -v to verify tests pass.

Automated Checks:

# Run quality gates
make lint          # Linting passes
make typecheck     # Type checking passes
make test          # All tests pass
uv run pytest --cov  # Coverage threshold met

Verification: Run pytest -v to verify tests pass.

Progress Tracking

Execution State

Save to .attune/execution-state.json:

{
  "plan_file": "docs/implementation-plan.md",
  "started_at": "2026-01-02T10:00:00Z",
  "last_checkpoint": "2026-01-02T14:30:22Z",
  "current_sprint": "Sprint 1",
  "current_phase": "Phase 1",
  "tasks": {
    "T001": {
      "status": "complete",
      "started_at": "2026-01-02T10:05:00Z",
      "completed_at": "2026-01-02T10:50:00Z",
      "duration_minutes": 45,
      "acceptance_criteria_met": true,
      "tests_passing": true
    },
    "T002": {
      "status": "in_progress",
      "started_at": "2026-01-02T14:00:00Z",
      "progress_percent": 60,
      "blocker": null
    }
  },
  "metrics": {
    "tasks_complete": 15,
    "tasks_total": 40,
    "completion_percent": 37.5,
    "velocity_tasks_per_day": 3.2,
    "estimated_completion_date": "2026-02-15"
  },
  "blockers": []
}

Verification: Run pytest -v to verify tests pass.

Progress Reports

Daily Standup:

# Daily Standup - [Date]

## Yesterday
- ✅ [Task] ([duration])
- ✅ [Task] ([duration])

## Today
- 🔄 [Task] ([progress]%)
- 📋 [Task] (planned)

## Blockers
- [Blocker] or None

## Metrics
- Sprint progress: [X/Y] tasks ([%]%)
- [Status message]

Verification: Run the command with --help flag to verify availability.

Sprint Report:

# Sprint [N] Progress Report

**Dates**: [Start] - [End]
**Goal**: [Sprint objective]

## Completed ([X] tasks)
- [Task list]

## In Progress ([Y] tasks)
- [Task] ([progress]%)

## Blocked ([Z] tasks)
- [Task]: [Blocker description]

## Burndown
- Day 1: [N] tasks remaining
- Day 5: [M] tasks remaining ([status])
- Estimated completion: [Date] ([delta])

## Risks
- [Risk] or None identified

Verification: Run the command with --help flag to verify availability.

Blocker Management

Blocker Detection

Common Blockers:

Systematic Debugging

When blocked, apply debugging framework:

  1. Reproduce: Create minimal reproduction case
  2. Hypothesize: Generate possible causes
  3. Test: Validate hypotheses one by one
  4. Resolve: Implement fix or workaround
  5. Document: Record solution for future

Escalation

When to escalate:

Escalation format:

## Blocker: [TNNN] - [Issue]

**Symptom**: [What's happening]

**Impact**: [Which tasks/timeline affected]

**Attempted Solutions**:
1. [Solution 1] - [Result]
2. [Solution 2] - [Result]

**Recommendation**: [Proposed path forward]

**Decision Needed**: [What needs to be decided]

Verification: Run the command with --help flag to verify availability.

Quality Assurance

Definition of Done

Task is complete when:

Testing Strategy

Test Pyramid:

**Verification:** Run `pytest -v` to verify tests pass.
     /\
    /E2E\      Few, slow, expensive
   /------\
  /  INT  \    Some, moderate speed
 /----------\
/   UNIT    \  Many, fast, cheap

Verification: Run the command with --help flag to verify availability.

Per Task:

Velocity Tracking

Burndown Metrics

Track daily:

Formulas:

**Verification:** Run `pytest -v` to verify tests pass.
Velocity = Tasks completed / Days elapsed
Estimated completion = Tasks remaining / Velocity
On track? = Estimated completion <= Sprint end date

Verification: Run the command with --help flag to verify availability.

Velocity Adjustments

If ahead of schedule:

If behind schedule:

Exit Criteria

docs/lessons-learned.md as an open entry (a clean run needs none).

clause.

local implementation would have.

Related Skills

Related Agents

Related Commands

Mission Report

At mission completion, produce a Mission Report using the

template from references/mission-report.md. The report documents:

See references/mission-report.md for the full template and

example reports for successful, partial, and failed missions.

Examples

See /attune:execute command documentation for complete examples.

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.