/solopreneur:todos-cleanupfrom solopreneur
Batch cleanup of backlog todos by checking git history for completed or partially done items, then moving them to done/ or doing/ directories.
Ships in solopreneur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scan the backlog directory and classify each item by checking git history for related commits. Present findings for user confirmation, then move files.
Before scanning, resolve the todo directory paths. Source the config helpers first:
# --- solopreneur config helpers (sourced from shared/config.sh) ---
# One real shell file, so no harness rewrites the helpers on the way to the
# shell. Claude Code replaces the ${CLAUDE_SKILL_DIR} token below when it loads
# this body; Codex does not. It is SINGLE-quoted on purpose — it is a load-time
# token, not an environment variable, and letting the shell expand the name
# would source whatever an inherited value happened to point at. Unreplaced, it
# is not a directory, so substitute the absolute path of the directory holding
# THIS SKILL.md — every harness states that path to the model.
SOLO_SKILL_DIR='${CLAUDE_SKILL_DIR}'
[ -d "$SOLO_SKILL_DIR" ] || SOLO_SKILL_DIR="<absolute path of the directory holding this SKILL.md>"
SOLO_CONFIG_SH="$SOLO_SKILL_DIR/../../shared/config.sh"
# Three candidates, one contract. Inside the plugin the helpers sit at ../../shared/;
# authoring against this repo reaches them under src/solopreneur/shared/; and a
# skill republished on its own — any flattened skills directory — carries them
# at scripts/config.sh instead, because shared/ is a sibling of skills/ and does
# not travel with a per-skill copy. Try each in order, then STOP. Sourcing a
# file that is not there does not halt the shell: every helper stays undefined,
# every config read returns empty, and the 2026-08-11 A2 run showed where that
# leads — the model "rescued" it with a repo-relative path, which resolves only
# when the repo under review happens to be this plugin's own source repo.
# Canonical authoring keeps non-skill source under src/.
[ -f "$SOLO_CONFIG_SH" ] || SOLO_CONFIG_SH="$SOLO_SKILL_DIR/../../../src/solopreneur/shared/config.sh"
[ -f "$SOLO_CONFIG_SH" ] || SOLO_CONFIG_SH="$SOLO_SKILL_DIR/scripts/config.sh"
[ -f "$SOLO_CONFIG_SH" ] || { echo "HALT: solopreneur config helpers not found under $SOLO_SKILL_DIR — stop here, do not improvise a path"; exit 1; }
source "$SOLO_CONFIG_SH"
# --- end solopreneur config helpers ---
Check plugin config:
read_solopreneur_config todos
If the todos key exists, use its backlog, done, doing, later values.
If no config — scan the project: Search for directories that look like todo/task storage:
# Common patterns
find . -maxdepth 3 -type d \( -name "todos" -o -name "todo" -o -name "TODO" \
-o -name "backlog" -o -name "tasks" -o -name ".todos" \) 2>/dev/null
For each candidate, count .md files inside. Present findings:
Found potential todo directories:
a) todos/backlog/ (12 .md files)
b) tasks/ (5 .md files)
Which is your backlog directory? (or enter a custom path)
Save to config after user confirms. Discovered paths are
repo-relative (todos/backlog etc.), so the per-repo write helper
anchors them to this repo's entry:
write_solopreneur_repo_config todos '{
"backlog": "todos/backlog",
"done": "todos/done",
"doing": "todos/doing",
"later": "todos/later"
}'
Substitute user-confirmed paths into the JSON. Each repo gets its own entry — running this skill in a different repo will not clobber this one's setting.
Use the resolved paths for all subsequent steps. Variables below:
$BACKLOG — backlog directory (e.g., todos/backlog)$DONE — done directory (e.g., todos/done)$DOING — doing directory (e.g., todos/doing)| Status | Criteria | Action |
|---|---|---|
| DONE | Found commits that fully implement the todo's requirements | Move to $DONE |
| PARTIAL | Some related commits exist, but not all requirements met | Move to $DOING |
| OPEN | No related commits found | Stay in $BACKLOG |
List all .md files in $BACKLOG. If empty, tell the user and stop.
Spawn a single sonnet subagent (model: "sonnet") with this prompt:
Read each todo file in {$BACKLOG} and determine its implementation status
by searching git history. For each file:
1. Read the file to understand what the task requires
2. Extract 3-5 search keywords from the title and content
3. Run `git log --oneline --all --grep="keyword"` for each keyword
4. If commits are found, read the commit messages to judge completeness
5. Classify as DONE / PARTIAL / OPEN
Files to check:
[list of file paths]
Report a markdown table:
| File | Status | Evidence |
|------|--------|----------|
| filename.md | DONE/PARTIAL/OPEN | commit hash + message, or "no related commits" |
Be conservative — only mark DONE if the commits clearly cover the full scope
described in the todo. If unsure, mark PARTIAL.
Show the subagent's table to the user. Ask for confirmation before moving files. The user may override individual classifications.
After confirmation:
$DONE$DOINGCreate target directories if they don't exist.
Report the final state:
todos/
├── backlog/ (N files remaining)
├── doing/ (N files)
├── done/ (N files)
└── later/ (N files)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hanamizuki/solopreneur --plugin solopreneur17 skills in this plugin
/autopilotPR orchestration planner. Reads a task file, discusses PR splitting strategy
with the user, produces plan + spec files, and either dispatches a worktree
subagent in the current session (single PR, run now) or schedules execution
via cron (multi-PR, or single-PR scheduled). Use when the user wants a task
implemented, reviewed, and merged automatically — whether the scope fits in
one PR or needs to be split. Triggers: "autopilot", "orchestrate", "batch
implement", "split into PRs and run", or when the user provides a todo/spec
and wants unattended PR execution.
/codex-agents-bootstrapInstall or refresh custom agents shipped by solopreneur-family plugins in the
Codex user agents directory. Use after installing, updating, enabling, or
disabling a solopreneur-family plugin, or when the user asks to bootstrap,
install, refresh, or diagnose Codex agents. This is unnecessary on Claude.
/greenlightAutomated PR review loop that keeps running until the PR is clean. Triggers
external reviewers (Codex bot, Codex CLI, and the Gemini bot when activity
detection sees it on the repo), processes feedback, fixes issues, and
re-triggers — repeating until no new suggestions remain.
Supports `/greenlight external` to skip internal review and go straight to
external reviewers, and `/greenlight external gemini` to specify a starting
reviewer. Use when the user says "greenlight", "run reviews until clean",
"get this PR approved", or wants automated review cycling on an open PR.
Also auto-detects uncommitted mode: when on main branch with uncommitted
changes and no PR, runs Codex CLI `--uncommitted` review loop only, fixes
in-place without committing, until codex reports clean.
Also supports post-commit mode (explicit `/greenlight post-commit <SHA>`
or `<SHA1>..<SHA2>`): Phase 1 subagents + Codex CLI + agy (Gemini-family CLI)
in parallel, fixes as new commits on top (no amend, no new PR), pushes after
each round.
/handoffGenerate a self-contained handoff context document for the current work,
printed inline as markdown so the user can copy it and paste into any other
agent — a fresh Claude Code session, Codex, ChatGPT, or an agent on another
machine. Use when the user says /handoff, "write context for the next
session", "package this for handoff", "hand off to another agent", or wants
to capture the current session's state in a portable form. Output is printed
inline AND written to `/tmp/handoff/<YYYY-MM-DD>_<slug>.md`. No worktree is created (use
worktree-handoff if a git worktree is needed).
/merge-prMerge an open PR for the current branch. Refuses to merge when the worktree
has uncommitted changes, consolidates the branch's plan file (renaming
the latest Handoff Context section to Final Progress and moving the file
to done/ in state-machine mode), merges via GitHub CLI, and reports status.
Also cleans up stale merged-but-not-removed worktrees from prior sessions
on every Claude Code run. Codex V1 uses a merge-only profile that performs
no pre-merge plan or worktree mutation.
Use when the user says "merge", "merge PR", "merge this", or wants to
land the current branch.
/mvpMeta-orchestrator for going from a product idea to a demo-able MVP fast.
Drives the full flow: brainstorming → PRD visual confirmation (user
gate) → template lookup → MVP-flavored plan → single-subagent
execution. Optimized for **time-to-first-demo**, not production
quality — no TDD, no per-task review loops, no hardening. Use INSTEAD
OF superpowers:brainstorming when the user is starting a new product
from scratch — this skill calls brainstorming internally, then chains
in a PRD confirmation phase, template discovery, plan writing, and
execution. Triggers: "/mvp", "我要做 app", "想做產品",
"想做一個 app", "做個 MVP", "build a product", "build an app from
scratch", "MVP from scratch", "start a new app", "new product".
Other plugins' skills for the same job