Plan

From infinition/LaRuche · View interactive version

Plan is an AI agent skill from the GitHub repository infinition/LaRuche. Write an actionable markdown implementation plan, without executing it.

How to use this skill

Skill file

Plan Mode

Use this skill when the user wants a plan, not execution.

Core behavior

Planning only - no implementation this turn.

Save location

.laruche/plans/YYYY-MM-DD_HHMMSS-<slug>.md

Use a path relative to the active workspace root. If the runtime specifies a target path, use that instead.

Interaction style


Writing the Plan

Core principle: A good plan makes implementation obvious. If someone has to guess, the plan is incomplete.

Assume the implementer is skilled but has zero codebase context and weak test design instincts. Give them bite-sized tasks, exact paths, complete code, and exact commands.

Plan document structure

# [Feature Name] Implementation Plan

**Goal:** [One sentence]
**Architecture:** [2–3 sentences on approach]
**Tech Stack:** [Key technologies/libraries]

---

Task structure

### Task N: [Descriptive Name]

**Objective:** [One sentence]

**Files:**
- Create: `exact/path/to/new_file.py`
- Modify: `exact/path/to/existing.py:45-67`
- Test: `tests/path/to/test_file.py`

**Step 1: Write failing test**

def test_specific_behavior():

assert function(input) == expected


**Step 2: Verify failure** - `pytest tests/path/test.py::test_specific_behavior -v`
Expected: FAIL - "function not defined"

**Step 3: Write minimal implementation**

def function(input):

return expected


**Step 4: Verify pass** - `pytest tests/path/test.py::test_specific_behavior -v`
Expected: PASS

**Step 5: Commit**

git add tests/path/test.py src/path/file.py

git commit -m "feat: add specific feature"

Task granularity

Each task = 2–5 minutes of focused work. One action per step. If a task feels large, split it.

Task ordering

  1. Setup / infrastructure
  2. Core functionality (TDD per unit)
  3. Edge cases
  4. Integration
  5. Cleanup / documentation

Planning process

  1. Understand - read requirements, acceptance criteria, constraints.
  2. Explore - use file_list, file_read, shell_exec (read-only) to understand structure and find similar patterns.
  3. Design - choose architecture, file organization, dependencies, testing strategy.
  4. Write tasks - exact paths, complete copy-pasteable code, exact commands with expected output, verification steps.
  5. Review - tasks are sequential, bite-sized, DRY, YAGNI, TDD-compliant, leave nothing to guesswork.

Principles

Common mistakes

| Bad | Good |

|-----|------|

| "Add authentication" | "Create User model with email and password_hash fields" |

| "Add validation function" | Include the complete function code |

| "Test it works" | "pytest tests/test_auth.py -v - expected: 3 passed" |

| "Create the model file" | "Create: src/models/user.py" |

Execution handoff

After saving the plan, offer:

"Plan saved at <path>. Ready to execute task-by-task - shall I start?"

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.