agentleFS
TalonT-OrgTalonT-Org/AutoSkillit/.claude/skills/elaborate-phase/SKILL.md

elaborate-phase

Skill5 starsChanged 6 months agoMITView on GitHub

Elaborate a migration plan phase into a complete self-contained implementation plan. Use when user says "elaborate phase", "elaborate phase N", or "phase elaboration". Assesses codebase, writes detailed phase plan, then validates with dry walkthrough.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. About 0 are common, 17 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After implementing a phase, when ready to elaborate the next one

    line 22
  2. Distinctive:

    Add backward compatibility to the plan (unless a cleanup phase explicitly removes it)

    line 29
  3. Distinctive:

    Add fallback mechanisms that hide bugs

    line 30
  4. Distinctive:

    Add deprecation notes, stubs, warnings

    line 31
  5. Distinctive:

    Add stakeholder sections or PR breakdowns

    line 33
  6. Very specific:

    Read previous Phase#.md files unless you have a specific question that requires looking up a detail

    line 36
  7. Very specific:

    Write output to the plan directory (e.g., {plan_dir}/Phase#.md)

    line 40
  8. Very specific:

    Run /dry-walkthrough on the written Phase#.md to validate

    line 41
  9. Distinctive:

    Update the master plan if dry walkthrough reveals issues affecting subsequent phases

    line 45
  10. Distinctive:

    All plans live in a dedicated directory:

    line 49
  11. Very specific:

    Phase plans: All named Phase#.md, contain detailed implementation instructions

    line 60
  12. Distinctive:

    When elaborating the first phase:

    line 66
  13. Very specific:

    No previous phase .md files exist in the directory

    line 67
  14. Distinctive:

    No previous phases have been implemented

    line 68
  15. Distinctive:

    When elaborating subsequent phases:

    line 79
  16. Distinctive:

    Must assess the CURRENT state (post-implementation)

    line 82
  17. Very specific:

    Do NOT read previous Phase#.md files - assess from codebase directly

    line 83
  18. Very specific:

    IMPORTANT: Do NOT read previous Phase#.md files.

    line 108
  19. Distinctive:

    Create a complete implementation plan at the output location.

    line 160
  20. Distinctive:

    If the dry walkthrough reveals issues that affect subsequent phases:

    line 276
  21. Distinctive:

    Update the master plan to reflect corrections

    line 277
  22. Distinctive:

    After writing the plan, output summary:

    line 282
  23. Distinctive:

    Import shims or re-exports for old paths

    line 333
  24. Very specific:

    Read master plan from /path/to/plans/feature_migration_plan.md

    line 345
  25. Very specific:

    No existing Phase#.md files (first phase)

    line 346
  26. Very specific:

    Write elaborated plan to /path/to/plans/Phase0.md

    line 348
  27. Very specific:

    Run /dry-walkthrough on Phase0.md

    line 349
  28. Distinctive:

    Update master plan if dry walkthrough reveals downstream issues

    line 350

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Phase Elaboration Skill

Elaborate a single phase from a high-level migration plan into a complete, self-contained implementation plan. The plan should contain all background context needed for implementation.

When to Use

  • User says "elaborate phase", "elaborate phase 0", "elaborate phase 1", etc.
  • User wants to create a detailed implementation plan for a specific migration phase
  • User says "phase elaboration" or "detail phase N"
  • After implementing a phase, when ready to elaborate the next one

Critical Constraints

NEVER:

  • Modify any source code files
  • Implement any part of the plan
  • Add backward compatibility to the plan (unless a cleanup phase explicitly removes it)
  • Add fallback mechanisms that hide bugs
  • Add deprecation notes, stubs, warnings
  • Include rollback mechanisms
  • Add stakeholder sections or PR breakdowns
  • Elaborate multiple phases at once - one phase per invocation
  • Make assumptions about codebase state without verifying
  • Read previous Phase#.md files unless you have a specific question that requires looking up a detail

ALWAYS:

  • Assess current codebase state with subagents FIRST
  • Write output to the plan directory (e.g., {plan_dir}/Phase#.md)
  • Run /dry-walkthrough on the written Phase#.md to validate
  • Make the plan self-contained with all background context needed
  • Include verification commands and success criteria
  • Report findings to terminal output
  • Update the master plan if dry walkthrough reveals issues affecting subsequent phases

Plan Directory Structure

All plans live in a dedicated directory:

{plan_directory}/
├── {master_plan_name}.md    # Unique name (e.g., feature_migration_plan.md)
├── Phase0.md                # Elaborated phase 0 (if exists)
├── Phase1.md                # Elaborated phase 1 (if exists)
├── Phase2.md                # etc.
└── ...
  • Master plan: Has a unique descriptive name, contains the high-level multi-phase plan
  • Phase plans: All named Phase#.md, contain detailed implementation instructions

Understanding Phase Types

First Phase (Phase 0 or Phase 1)

When elaborating the first phase:

  • No previous phase .md files exist in the directory
  • No previous phases have been implemented
  • Assess the current (original) state of the codebase
  • The master plan describes the starting state

User message example:

Here's the plan directory: {plan_dir}/ with master plan {master_plan}.md. Elaborate phase 0.

Subsequent Phases (Phase 1, 2, 3, ...)

When elaborating subsequent phases:

  • Previous phases have been implemented
  • The codebase has changed since the master plan was written
  • Must assess the CURRENT state (post-implementation)
  • Do NOT read previous Phase#.md files - assess from codebase directly

User message example:

Same directory. Phase 0 is implemented. Elaborate phase 1.

Workflow

Step 1: Parse User Request

Extract from user message:

  1. Phase number to elaborate (0, 1, 2, etc.)
  2. Plan directory containing the master plan and phase plans
  3. Master plan filename (the unique-named high-level plan)
  4. Is this the first phase? (no existing Phase#.md files)

Step 2: Read the Master Plan

Load and understand:

  • Master plan: The complete high-level migration plan
  • Identify the specific phase to elaborate
  • Understand dependencies on previous phases
  • Note files and systems affected

IMPORTANT: Do NOT read previous Phase#.md files. They exist in the directory but reading them wastes context. Only look up a specific detail from a previous phase if you encounter a concrete question during assessment that cannot be answered from the codebase itself.

Step 3: Assess Current Codebase State

Launch parallel Explore subagents to understand the current state:

Subagent 1: Affected Files Assessment
  - Read all files that will be touched by this phase
  - Document their current state (structure, dependencies, imports)
  - Identify any deviations from what the master plan expected

Subagent 2: Dependency Analysis
  - Trace imports and dependencies for affected files
  - Identify all consumers of code being moved/changed
  - Map the dependency graph

Subagent 3: Test Coverage
  - Find tests related to affected code
  - Understand what test changes will be needed
  - Identify any integration tests that may break

Subagent 4: Pattern Discovery
  - Search for similar patterns in the codebase
  - Identify conventions that should be followed
  - Note any existing utilities that should be reused

Subagent 5: State Verification (for subsequent phases)
  - Verify previous phases were implemented correctly
  - Check that expected files/directories exist
  - Confirm imports were updated as planned

Output assessment summary to terminal:

## Codebase Assessment Complete

### Current State
- {component}: {current status}
- {file}: {current location and state}

### Key Findings
- {finding that affects the plan}
- {deviation from master plan expectations}

### Dependencies Mapped
- {affected file} imports: {list of imports}
- {affected file} imported by: {list of consumers}

Step 4: Write Elaborated Phase Plan

Create a complete implementation plan at the output location. The plan should include all necessary background context.

Plan Structure:

# Phase {N}: {Phase Name}

## Executive Summary

{2-3 sentences describing what this phase accomplishes and why}

{Any critical changes from the original master plan, with rationale}

---

## Prerequisites

Before starting Phase {N}:

- [ ] {Prerequisite check}
- [ ] {Required state verification}
- [ ] Previous phases implemented
- [ ] All tests pass: run the project's test suite
- [ ] No uncommitted changes: `git status`

---

## Background Context

{Everything the implementer needs to know that isn't in other sections}

### Relevant Code Locations

| Component | Current Location | Purpose |
|-----------|------------------|---------|
| {component} | {path} | {brief description} |

### Key Dependencies

{Description of important dependencies and why they matter}

---

## Phase {N} Tasks

### Task {N}.1: {Task Name}

{Description of what this task accomplishes}

**Files to Modify:**
- `{path}`: {what changes}

**Implementation Steps:**
1. {Specific action with details}
2. {Specific action with details}

**Verification:**
```bash
{command to verify task completion}

Task {N}.2: {Task Name}

{Same structure as above}


Verification Checklist

After completing Phase {N}, verify:

  • {Verification item}
  • Run linting and formatting checks
  • All tests pass: run the project's test suite

Files Created/Modified in Phase {N}

PathTypePurpose
{path}{Created/Modified/Moved/Deleted}{purpose}

What Phase {N} Does NOT Do

Phase {N} explicitly avoids:

  1. {Thing that might be expected but isn't done here}
  2. {Clarification of scope boundaries}

Implementation Guidelines

{Project-specific guidelines relevant to this phase}

  1. No useless comments - Do not use the codebase as a notepad
  2. No backward compatibility code - unless cleanup is explicitly planned
  3. Clean cuts only - Move code completely, update all imports atomically

Next Phase Preview

Phase {N+1}: {Name}

{Brief description of what comes next, so implementer understands boundaries}


### Step 5: Dry Walkthrough

Invoke `/dry-walkthrough` on the `Phase{N}.md` file just written.

### Step 6: Update Master Plan (If Required)

If the dry walkthrough reveals issues that affect subsequent phases:
1. Update the master plan to reflect corrections
2. Report changes to terminal

### Step 7: Report to Terminal

After writing the plan, output summary:

Phase Elaboration Complete

Phase: {N} - {Phase Name} Plan Directory: {plan_directory} Output: Phase{N}.md Status: {READY / REVISED from master plan}

Changes from Master Plan

{List any modifications made during elaboration}

  • {change}: {reason}

Master Plan Updates

{If master plan was updated due to downstream impact}

  • {subsequent phase}: {what was changed} OR
  • No updates required

Key Implementation Notes

  • {Important note for implementer}
  • {Gotcha to watch out for}

Ready for implementation.


## Output Location

Phase plans are written to the same directory as the master plan:

{plan_directory}/Phase{N}.md


Where `{N}` is replaced with the phase number (0, 1, 2, etc.).

Example directory after elaborating phases 0 and 1:

/path/to/plans/ ├── feature_migration_plan.md # Master plan ├── Phase0.md # Elaborated phase 0 └── Phase1.md # Elaborated phase 1


## Backward Compatibility Policy

**Backward compatibility code is only acceptable when:**
1. There is an explicit cleanup phase in the migration plan
2. The cleanup phase explicitly lists removal of the compatibility code
3. The compatibility code is clearly marked for removal

**If not planned for cleanup, do NOT add:**
- Import shims or re-exports for old paths
- Deprecation warnings
- Compatibility adapters
- Fallback mechanisms

## Example Usage

### First Phase Example

**User:** "Here's the plan directory: /path/to/plans/ with master plan feature_migration_plan.md. Elaborate phase 0."

**Process:**
1. Read master plan from `/path/to/plans/feature_migration_plan.md`
2. No existing `Phase#.md` files (first phase)
3. Launch subagents to assess current codebase state
4. Write elaborated plan to `/path/to/plans/Phase0.md`
5. Run `/dry-walkthrough` on `Phase0.md`
6. Update master plan if dry walkthrough reveals downstream issues
7. Report findings and status

### Subsequent Phase Example

**User:** "Same directory. Phase 0 is implemented. Elaborate phase 1."

**Process:**
1. Read master plan from `/path/to/plans/feature_migration_plan.md`
2. Launch subagents to assess:
   - Current state (post Phase 0 implementation)
   - Files touched by Phase 1
   - Dependencies and consumers
3. Write elaborated plan to `/path/to/plans/Phase1.md`
4. Run `/dry-walkthrough` on `Phase1.md`
5. Update master plan if dry walkthrough reveals downstream issues
6. Report findings and status

## Related Skills

- **`/dry-walkthrough`** - Used internally for validation
- **`/make-plan`** - Creates new plans (this skill elaborates existing ones)
- **`/implement-worktree`** - Implements elaborated plans

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.