---
name: plan
description: 'Planning and problem-solving discipline: enter plan mode first, write plans in the plan file (not chat), structured research, validation, implementation. Auto-invoke when the user says "plan", "make a plan", or when fixing issues or implementing features.'
user-invocable: true
title: plan
canonical_url: https://skilld.dev/gh/fubits1/ronin-skills/plan
last_updated: 2026-10-01T22:31:15.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install fubits1/ronin-skills/plan`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/plan`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/fubits1/ronin-skills/plan) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/plan`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/plan --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/plan --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Plan

- **HARD RULE: call `EnterPlanMode` as your FIRST tool call** on "plan", "plan this", "make a plan", or any variant: no `Read`, `Grep`, `Glob`, `Bash`, `Edit`, or `Write` before it. The `hooks` plugin's `force-plan-mode.mjs` UserPromptSubmit hook injects this directive; it is non-negotiable.
- On "plan", "plan this", "make a plan", or any variant: ENTER PLAN MODE. Write the plan in the plan file. NOT in chat. NOT in a table. NOT in a code block. Plans in chat are worthless; the plan file is the only place plans belong.
- NEVER skip plan mode because "it's simple enough". If the user said plan, they mean plan.
- **Self-trigger** (plan without being asked) when: a CI failure has multiple root causes, the first fix attempt failed, or you're about to touch 3+ files.
- **A plan is NOT a list of edits.** A plan MUST run in order:
  1. **Research**: what do I need to verify before touching anything? What docs to check? What commands to run? What assumptions need proof?
  2. **Validation**: how will I verify each step worked? What does success look like? What are the failure modes?
  3. **Implementation**: only AFTER research and validation strategy are defined.
- **NEVER jump to implementation.** Research first, define validation criteria, then plan the changes.
- Every assumption in the plan must have a verification step. "I think X works" is not a plan; "verify X by running Y, then proceed" is.
- **Plans must contain survival context** (test URLs, route paths, IDs, exact verification steps) because conversation context doesn't survive resets.
- **When incorporating a sub-plan, INCLUDE by reference:** add `**Full detail:** plan-name.md` and keep the sub-plan file intact. NEVER rewrite as a lossy summary. The sub-plan IS the detail.
- **When told to "update the plan," UPDATE THE PLAN FILE.** Not a chat summary. Not a mental note. Open the plan file and edit it.
- **Before giving a multi-step procedure, compare each step against failures already hit this conversation;** if a step repeats one, stop and redesign.
- **If new evidence shows an approved-plan assumption is wrong, STOP**; update the plan file first, then continue referencing it.
- **NEVER include commit or push steps in a plan**; git operations are the user's business.

## Problem-Solving Approach

- **Read the mechanism BEFORE the first fix, not after it fails.** When something errors (permission denied, failing import, broken resolver, version mismatch that "looks like a downgrade"), do NOT pattern-match symptom-to-fix (chmod, downgrade, re-enable a service, blind-edit the line); open what produces the behavior (source, the config it reads, the error message, the man page) and act only once you can name the *cause*. The mechanism is almost always readable on disk or in the docs; reading it is step one. A fix applied without reading the mechanism masks the symptom while the real cause ships. (The failed-fix ladder once a guess does fail lives in `do-your-job`.) Simplest fix first means the simplest fix for the *understood* cause; don't hallucinate root causes.
- Don't over-engineer; use framework standard solutions.
- Follow the approved plan; don't silently deviate during implementation.
- Stop chaining fixes on a broken foundation; reassess the whole approach.
- NEVER park a bug or step past a visible issue as "out of scope" / "for later"; that's how it ships unnoticed. Fix it now, or ask "want me to look into this too?".
- **An approved plan that names the next item, plus a standing "don't stop" order, is a standing order to start that item**: approval gates the WRITE, not the WORK. Finish a planned item, begin the next, surface review-worthy diffs as you go; don't end your turn with "want me to continue?" / "shall I do the next one?". That's stopping dressed as diligence.
- **When research proves a spot is look-wrong-but-correct, leave an inline comment citing why**: if correct code reads like a bug (and especially if a prior reviewer already flagged it), the next reviewer (or the next you) re-investigates from scratch; an un-annotated trap is a parked bug wearing a clean diff. (Comment placement/style: `frontend:editing`.)
- Before editing any file, verify the full chain of assumptions (command, port, env vars, all referencing files) and change them in one pass; partial assumptions are how a "fix" breaks a second thing.
- **When splitting a config value from global to per-item,** preserve the original value for items that weren't asked to change.
- **When changing a wrapper/shared default that affects ALL consumers,** test EVERY consumer pattern, not just one edge case.

## Systematic Debugging

For any bug, test failure, or unexpected behavior, invoke `superpowers:systematic-debugging` before proposing a fix: that skill owns the general method (reproduce, read all output, trace the path, one hypothesis and one change at a time). Frontend/test specifics it doesn't cover:

- **Trace into children, not just the parent**: grep the child components for the pattern too; the bug often lives in an import a layer down.
- **Debug in the real environment first.** Mocked tests that pass prove nothing about real-app behavior: reproduce in the browser (Playwright), then write tests matching what it showed.
- **Wrappers swallow errors.** A wrapper between you and the bug (CardWrapper, ErrorBoundary) is hiding the root cause, not being it: debug in the browser with Playwright, not vitest output.
