Skip to content
Code Review
Skill

/loop-plan

Create an execution-ready, code-grounded phased implementation plan before coding. Only for large work - several features, many files or components, or work spanning sessions that needs resumable phase boundaries. Not for small fixes or single-feature changes; do those directly.

From plugin
cross-review
1686 skills

Claude Code

$ npx -y skills add lploc94/cross-review --skill loop-plan --agent claude-code

SKILL.md

loop-plan.SKILL.md
name: loop-plan
description: Create an execution-ready, code-grounded phased implementation plan before coding. Only for large work - several features, many files or components, or work spanning sessions that needs resumable phase boundaries. Not for small fixes or single-feature changes; do those directly.

Loop Plan

Create a plan that a fresh session, with only the repository and this file, can execute without guessing: nothing relies on this conversation, and each project-specific term is explained where first used. This skill plans only; it does not implement application code. Spikes live only under `.cross-review/spikes/<plan-name>/`.

Use it for large work: several features, many files or components, or work that spans sessions. For a small fix or a single-feature change, a phased plan and its reviews cost more time than they save: tell the user, and suggest doing it directly with tests (and `{{CLIENT_SKILL}}review-impl` if they want a review). Plan it only if the user still asks.

Discovery and intent

1. Read applicable {{CLIENT_INSTRUCTIONS}}/repository instructions, inspect `git status`, recent history, relevant files, symbols, callers, commands, and existing tests before drafting. 2. Separate the user's target from reports, assumptions, completed work, and out-of-scope ideas. Preserve the user's expected behavior as the source of truth. 3. For each proposed change, cite the repository pattern (path/symbol) and the current established standard for the problem (a current source). When the repository pattern is itself the tangled part, present two options, patch within it or move to the standard, as a user decision. Otherwise choose the smallest project-consistent design, reusing existing helpers by name (a new helper states why they do not fit); do not add speculative abstractions or compatibility behavior. 4. Spike every technical assumption you have not seen work here (library API, platform behavior, external capacity, performance) in `.cross-review/spikes/<plan-name>/`, and record it in `Feasibility evidence`. A pilot run on a small subset is recorded with its command, subset, duration, and what it caught, so the phase can reuse it. 5. Resolve assumptions at plan time, by spike or by asking the user. The plan handed to implementation must not contain hard stops that depend on something nobody can verify; record what remains as an assumption with a default and a fallback. Hard stops are only for data loss, security, or irreversible actions. 6. Resolve ordinary engineering choices autonomously. Ask only when a material product, API, schema, dependency, compatibility, or operational decision cannot be inferred safely.

Limits and decision points

Every regex, parser, detector, validation guard, allow/deny list, default, fallback, timeout, retry and numeric bound the plan sets is a decision point. List each in the phase's `Behavioral contract` with:

  • Source: where its shape or number comes from: samples collected from this repository or system (logs, fixtures, real outputs, data), a cited specification, an exhaustive or property-based test over a stated input domain, or a measurement or current source with its date. An invented example or round number with nothing behind it does not count.
  • Both-sided check: a spike or test on those inputs shows what it misses and what legitimate input it blocks or cuts; record it in `Feasibility evidence`.
  • Failure handling: what happens when it is wrong (continue in parts, backpressure, signalled degradation; fail closed only where a wrong pass is dangerous). Never truncate, drop, or swallow silently.

Correctness validation (rejecting bad input) is not a capacity limit; keep them apart. A capacity limit also states the protected resource and the failure it prevents; external capacity (context size, rate limits, body size, quotas) needs a current source or measurement.

Plan contract

Run `node "{{RUNNER_PATH}}" plans --working-dir "$PWD"`: it creates `.cross-review/plans/`, keeps its `.gitignore` in step with the user's "Plans in git" setting, and prints JSON. Write a descriptively named `<kebab-case-summary>-plan.md` into the printed `dir` unless the user specifies another descriptive path; if the command fails (for example `CONFIG_INVALID`), tell the user instead of choosing another place. The name identifies the work (for example `migrate-auth-tokens-plan.md`), never a generic `plan.md`.

Use this exact top-level order:

# <title>
## Plan schema
loop-plan/v1
## Target
## Scope
## Invariants
## Fixed decisions
## Baseline
## Design and project patterns
## Feasibility evidence
## Capacity
## Global Gates
## Review checkpoints
## Plan Review
## Phase 1: <name>
...
## Completion Criteria
## Progress Log
  • `Fixed decisions`: choices implementation must not change on its own (technology, dependency, interface, limit), each with its reason.
  • `Baseline`: completed work, and the real duration of each gate command and each long run (batch, data processing, training, migration over real data).
  • `Feasibility evidence`: assumption | spike or source | result | date.
  • `Capacity`: the limits described under Limits, or `N/A`.
  • `Review checkpoints`: which phases end with `{{CLIENT_SKILL}}review-impl` and why (after phases that build a contract, schema, migration, state, or money flow), plus one final checkpoint on the cumulative diff. Name a model per checkpoint when the user wants one.
  • `Completion Criteria`: the whole-plan outcome, including at least one end-to-end scenario on the real entry point (CLI, server, UI, installer) with its exact command and expected output.
  • `Progress Log`: written during implementation: one line per finished phase, dated `Decision:` lines for approved plan changes, and `Discovery:` lines for surprises that shaped the work, each with evidence.

Repeat the complete phase block for every phase, in dependency order:

## Phase N: <name>
### Goal
### Current behavior and gap
#
Read more
@lploc94
Ships withcross-review

Cross-model review skills for Claude Code and Codex CLI: one agent orchestrates, another model reviews plans, code and reasoning.

Stars on GitHub

Momentum

stars in total
168
Star history of lploc94/cross-review on GitHub, a chart by star-history.com

Other skills on cross-review.

loop-implement

loop-implement

Execute an approved loop-plan/v1 plan end to end with docs-first TDD, verification, checkpoint reviews, and commits. Use only…

review-impl

review-impl

Review uncommitted changes, unpushed or recent commits, or a branch diff against the plan/target with an external reviewer model…

review-plan

review-plan

Review/debate plans before implementation with an external reviewer model (Codex CLI by default; Claude Code or Antigravity on…

review-pr

review-pr

Review someone else's pull request or branch with an external reviewer model (Codex CLI by default; Claude Code or Antigravity on…

review-think

review-think

Peer debate with an external reviewer model (Codex CLI by default; Claude Code or Antigravity on request) on any technical…

More skills from other plugins.

open-code-review

open-code-review

Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to…

@alibaba@alibabaInstall Skill
build-graph

build-graph

Build or update the code review knowledge graph. Run this first to initialise, or let hooks keep it updated automatically.

@tirth8205@tirth8205Install Skill
hunk-extensions

hunk-extensions

Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…

hunk6d9.8k
@modem-dev@modem-devInstall Skill

Questions about loop-plan.

Which coding agents can use loop-plan?
loop-plan installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.