Loading...
Loading...
Create a plan for review: idea branch, plan file, and draft PR. Part of the Plot workflow. Use on /plot-idea.
npx skill4agent add eins78/skills plot-idea$ARGUMENTS<slug>: <title description>/plot-idea sse-backpressure: Handle SSE client disconnects gracefully## Plot ConfigCLAUDE.md## Plot Config
- **Project board:** <your-project-name> (#<number>) <!-- optional, for `gh pr edit --add-project` -->
- **Branch prefixes:** idea/, feature/, bug/, docs/, infra/
- **Plan directory:** docs/plans/
- **Active index:** docs/plans/active/
- **Delivered index:** docs/plans/delivered/| Steps | Min. Tier | Notes |
|---|---|---|
| 1. Parse Input | Small | String parsing |
| 2. Pre-flight Checks | Small (hard gate), Mid (soft warning) | Slug collision is mechanical; title similarity needs mid-tier |
| 3-8. Create Branch through Summary | Small | Git/gh commands, templates, file ops |
$ARGUMENTS<slug>: <title>/plot-idea <slug>: <title>slugtitle$ARGUMENTS::[a-z0-9-]+gh auth statusidea/<slug>ls docs/plans/active/ 2>/dev/nullgh pr list --json headRefName --jq '.[].headRefName' | grep '^idea/'Smaller models: Skip the title similarity check. Enforce the hard gate (identical slug) only. Ask the user: "Could not check for similar plan titles. Please verify manually that this doesn't overlap with existing plans."
git fetch origin main
git checkout -b idea/<slug> origin/mainCREATE_DATE=$(date -u +%Y-%m-%d)docs/plans/${CREATE_DATE}-<slug>.md# <title>
> <title as one-line summary>
## Status
- **Phase:** Draft
- **Type:** feature | bug | docs | infra
- **Sprint:** <!-- optional, filled when plan is added to a sprint -->
## Changelog
<!-- Release note entry. Written during planning, refined during implementation. -->
- <user-facing change description>
## Motivation
<!-- Why does this matter? What problem does it solve? -->
## Design
### Approach
<!-- How will this be implemented? Key architectural decisions. -->
### Open Questions
- [ ] ...
## Branches
<!-- Branches to create when approved: -->
<!-- - `type/name` — description -->
- `feature/<slug>` — <description>
## Notes
<!-- Session log, decisions, links -->| Type | Use when | Examples |
|---|---|---|
| New user-facing functionality | API endpoint, UI component, CLI command |
| Fixing a defect | Crash fix, data corruption, incorrect output |
| Documentation-only | README updates, API docs, guides |
| CI, build, tooling, release automation | GitHub Actions, Dockerfile, linter config, deps |
mkdir -p docs/plans/active docs/plans/delivered
ln -s ../${CREATE_DATE}-<slug>.md docs/plans/active/<slug>.md
git add docs/plans/${CREATE_DATE}-<slug>.md docs/plans/active/<slug>.md
git commit -m "plot: <title>"
git push -u origin idea/<slug>gh pr create \
--draft \
--title "Plan: <title>" \
--body "$(cat <<'EOF'
## Plan
See [`docs/plans/${CREATE_DATE}-<slug>.md`](../blob/idea/<slug>/docs/plans/${CREATE_DATE}-<slug>.md) on this branch.
Refine the plan, then mark ready for review with `gh pr ready`. Once reviewed, run `/plot-approve <slug>` to merge and start implementation.
---
*Created with `/plot-idea`*
EOF
)"## Plot ConfigCLAUDE.mdgh pr edit <number> --add-project "<project board name>"idea/<slug>docs/plans/<CREATE_DATE>-<slug>.mddocs/plans/active/<slug>.mdgh pr ready <number>/plot-approve <slug>