LeadUp Existing Repo Analyzer
Purpose
Pick up an existing LeadUp project cold and produce an accurate picture of
where it is: stack, how to run/test it, what's done, what's broken, what's
missing, and the single best next task. Restores project memory so work can
resume without re-discovery.
When to use
Use on a repo that already has code. Trigger phrases: "analyze this repo",
"what is left", "what still needs doing", "continue this project", "check
existing project", "where did we leave off", "resume this build",
"audit the codebase state".
Not for brand-new ideas with no code → use leadup-project-kickoff.
Not for only rewriting STATUS.md after a task → use leadup-status-updater.
Inputs needed
- The repo path (default: current working directory).
- Optional: which area to focus on (bug, feature, deploy).
- Access to read files (no need to read
.env values — names only).
Step-by-step workflow
- Map structure. Tree the repo (skip
node_modules, .git, build dirs).
- Detect stack from manifests:
package.json, pubspec.yaml,
composer.json, requirements.txt, Dockerfile, docker-compose.yml,
framework configs (Next.js, Bagisto, Supabase).
- Read project memory if present:
CLAUDE.md, STATUS.md, DEPLOY.md,
PROJECT.md, SECURITY.md, CHANGELOG.md, TODO.md.
- Find commands: install / dev-run / build / test / migrate (from scripts
- Docker). State the exact command to run locally.
- Assess state: what works, recent commits/branch, half-done areas, TODO/
FIXME markers, failing or absent tests, missing memory files.
- List bugs & blockers with severity and suspected location.
- Recommend next task — the one highest-value step — and offer to update
STATUS.md (hand to
leadup-status-updater or do it inline if asked).
Required output format
- Snapshot — project name, stack table, multi-tenant? deploy target.
- How to run/test — exact commands (local + Docker).
- Current state — done / in progress / not started.
- Bugs & blockers — table: item | severity | location | suspected cause.
- Missing files — which memory/config files are absent.
- Next recommended task — one concrete step + why.
Safety rules
See references/security-rules.md. Most relevant here:
- List which env keys exist; never read or print their values.
- If a committed secret is found, flag it (redacted) and recommend rotation.
- Read-only analysis: do not modify code, push, or deploy without approval.
Common mistakes
- Guessing the stack instead of reading the manifest (e.g. assuming Next.js
when it's Bagisto/Laravel).
- Reporting "no bugs" without checking TODO/FIXME, failing tests, and STATUS.md.
- Ignoring multi-tenant scoping when assessing a SaaS repo.
- Giving five next tasks instead of the one that matters.
- Reading
.env to "understand config" — use .env.example and key names.
Troubleshooting
- Under-triggers: user said "continue X" generically — re-invoke; suggest
the trigger phrases.
- Over-triggers on a fresh idea with no code → route to
leadup-project-kickoff.
- Missing tool/MCP: if no shell/file access, ask the user to run a tree/
manifest dump and paste it (no secrets).
- No internet/browser: fine — analysis is local; flag any dependency
freshness checks as deferred.
- Missing project files: report them as gaps; recommend creating them via
leadup-status-updater / leadup-project-kickoff assets.
- Build/test failure while verifying: capture the error, classify
(deps / env / code), and put it in Bugs & blockers — do not "fix by
disabling" tests or checks.
Test prompts
Should trigger (5)
- "Analyze the jewellery SaaS repo and tell me what's left."
- "Continue this project — where did we leave off?"
- "Check the existing INET CRM repo state and next steps."
- "What still needs doing in the saloon repo?"
- "Audit the codebase state for the venus school site."
Should NOT trigger (3)
- "Start a brand-new SaaS idea." (→ project-kickoff)
- "Just update STATUS.md with what we did." (→ status-updater)
- "Research the Razorpay API before integrating." (→ api-research-builder)
Functional test cases (2)
- On a Next.js + Docker repo with a STATUS.md, output the correct run/test
commands and a state summary consistent with STATUS.md.
- On a repo missing CLAUDE.md/STATUS.md, the report lists them under
"Missing files" and recommends creating them.
Success criteria
- Stack detected from real manifest evidence, not assumption.
- Exact local + Docker run/test commands stated.
- Bugs/blockers and missing files enumerated honestly.
- Exactly one next recommended task, justified.
- No code modified, no secret printed, nothing pushed/deployed.
1---2name: leadup-existing-repo-analyzer3description: Analyze an existing LeadUp repository to recover its current state. Detects the stack, reads CLAUDE.md/STATUS.md/DEPLOY.md, finds the build/test/run commands, lists bugs, missing files, and the next tasks. Use when the user says "analyze this repo", "what is left", "continue this project", "check existing project", or "where did we leave off".4---56# LeadUp Existing Repo Analyzer78## Purpose910Pick up an existing LeadUp project cold and produce an accurate picture of11where it is: stack, how to run/test it, what's done, what's broken, what's12missing, and the single best next task. Restores project memory so work can13resume without re-discovery.1415## When to use1617Use on a repo that already has code. Trigger phrases: "analyze this repo",18"what is left", "what still needs doing", "continue this project", "check19existing project", "where did we leave off", "resume this build",20"audit the codebase state".2122Not for brand-new ideas with no code → use `leadup-project-kickoff`.23Not for only rewriting STATUS.md after a task → use `leadup-status-updater`.2425## Inputs needed2627- The repo path (default: current working directory).28- Optional: which area to focus on (bug, feature, deploy).29- Access to read files (no need to read `.env` values — names only).3031## Step-by-step workflow32331. **Map structure.** Tree the repo (skip `node_modules`, `.git`, build dirs).342. **Detect stack** from manifests: `package.json`, `pubspec.yaml`,35 `composer.json`, `requirements.txt`, `Dockerfile`, `docker-compose.yml`,36 framework configs (Next.js, Bagisto, Supabase).373. **Read project memory** if present: `CLAUDE.md`, `STATUS.md`, `DEPLOY.md`,38 `PROJECT.md`, `SECURITY.md`, `CHANGELOG.md`, `TODO.md`.394. **Find commands**: install / dev-run / build / test / migrate (from scripts40 + Docker). State the exact command to run locally.415. **Assess state**: what works, recent commits/branch, half-done areas, TODO/42 FIXME markers, failing or absent tests, missing memory files.436. **List bugs & blockers** with severity and suspected location.447. **Recommend next task** — the one highest-value step — and offer to update45 STATUS.md (hand to `leadup-status-updater` or do it inline if asked).4647## Required output format48491. **Snapshot** — project name, stack table, multi-tenant? deploy target.502. **How to run/test** — exact commands (local + Docker).513. **Current state** — done / in progress / not started.524. **Bugs & blockers** — table: item | severity | location | suspected cause.535. **Missing files** — which memory/config files are absent.546. **Next recommended task** — one concrete step + why.5556## Safety rules5758See `references/security-rules.md`. Most relevant here:59- List which env keys exist; never read or print their values.60- If a committed secret is found, flag it (redacted) and recommend rotation.61- Read-only analysis: do not modify code, push, or deploy without approval.6263## Common mistakes6465- Guessing the stack instead of reading the manifest (e.g. assuming Next.js66 when it's Bagisto/Laravel).67- Reporting "no bugs" without checking TODO/FIXME, failing tests, and STATUS.md.68- Ignoring multi-tenant scoping when assessing a SaaS repo.69- Giving five next tasks instead of the one that matters.70- Reading `.env` to "understand config" — use `.env.example` and key names.7172## Troubleshooting7374- **Under-triggers**: user said "continue X" generically — re-invoke; suggest75 the trigger phrases.76- **Over-triggers** on a fresh idea with no code → route to77 `leadup-project-kickoff`.78- **Missing tool/MCP**: if no shell/file access, ask the user to run a tree/79 manifest dump and paste it (no secrets).80- **No internet/browser**: fine — analysis is local; flag any dependency81 freshness checks as deferred.82- **Missing project files**: report them as gaps; recommend creating them via83 `leadup-status-updater` / `leadup-project-kickoff` assets.84- **Build/test failure** while verifying: capture the error, classify85 (deps / env / code), and put it in Bugs & blockers — do not "fix by86 disabling" tests or checks.8788## Test prompts8990### Should trigger (5)911. "Analyze the jewellery SaaS repo and tell me what's left."922. "Continue this project — where did we leave off?"933. "Check the existing INET CRM repo state and next steps."944. "What still needs doing in the saloon repo?"955. "Audit the codebase state for the venus school site."9697### Should NOT trigger (3)981. "Start a brand-new SaaS idea." (→ project-kickoff)992. "Just update STATUS.md with what we did." (→ status-updater)1003. "Research the Razorpay API before integrating." (→ api-research-builder)101102### Functional test cases (2)1031. On a Next.js + Docker repo with a STATUS.md, output the correct run/test104 commands and a state summary consistent with STATUS.md.1052. On a repo missing CLAUDE.md/STATUS.md, the report lists them under106 "Missing files" and recommends creating them.107108## Success criteria109110- Stack detected from real manifest evidence, not assumption.111- Exact local + Docker run/test commands stated.112- Bugs/blockers and missing files enumerated honestly.113- Exactly one next recommended task, justified.114- No code modified, no secret printed, nothing pushed/deployed.