/jleechan-skills:nextsteps runs instead · from jleechan-skills
Situational assessment and roadmap sync after a work block. Default mode reads beads and ~/roadmap; --full adds Claude auto-memory, mem0 sync, and GitHub Issue creation.
This skill never runs in Claude Code
It ships in jleechan-skills at .claude/, but /jleechan-skills:nextsteps (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Situational assessment and roadmap sync after a work block.
Read and apply ${CLAUDE_HOME:-$HOME/.claude}/skills/parallelize-to-ceiling/references/timeline-milestones.md
on every invocation. Always include a timeline, maximize useful independent
lanes within the measured resource ceiling, and report milestones every
20 minutes with an hourly rollup during active work. Preserve this command's
planning, handoff, and execution authorization boundaries.
/nextsteps has two mutually exclusive modes. Pick one based on the
invocation; do not silently blend them.
| Mode | Invocation | Sources read | Side effects written |
|---|---|---|---|
| default (lean) | /nextsteps or /nextsteps [brief] | beads (br list/br show) + ~/roadmap/ + roadmap/activity/YYYY-MM-DD.md | nextsteps .md doc + br updates + roadmap/activity/YYYY-MM-DD.md (and README date link if new date) + ~/roadmap/learnings-YYYY-MM.md |
--full (legacy all-source) | /nextsteps --full or /nextsteps --full [brief] | everything in default + Claude auto-memory (~/.claude/projects/<key>/memory/) + mem0 | everything in default + Claude auto-memory writes + MEMORY.md pointers + mem0_shared_client.py add + GitHub Issue creation |
Default mode skips these phases on purpose (they are owned by --full):
~/.claude/projects/.../memory/*.md and MEMORY.md pointers).~/.hermes/scripts/mem0_shared_client.py).gh issue create for each new bead).If a user wants the side-effecting phases in the default run, they must invoke
/nextsteps --full. Rationale: the lean default keeps /nextsteps focused on
bead + roadmap state, which is what the user is asking for; the memory/issue
mirroring is opt-in and lives behind --full.
/nextsteps or in $ARGUMENTS.--full, run in --full mode and strip it from the brief.--full flag on the invocation), run in default mode and treat the rest as the user-provided brief.--full is the only recognized flag. Any other token (--help, -h, etc.) is treated as part of the brief.Report the chosen mode on the first line of the Phase 8 report, e.g.:
Mode: default (beads + ~/roadmap)
or
Mode: --full (beads + ~/roadmap + Claude memory + mem0 + GH Issues)
Before carrying forward a hold, pause, or restriction, verify it comes from an applicable user instruction or governing policy, and record its source and date. Authorization for the same action, target, and outcome continues across checkpoints unless changed or withdrawn, subject to any expiry, usage, and other bounds in the original authorization. A summary or reviewer preference alone is not authority. State technical blockers separately with evidence, and preserve applicable safety and approval gates even when no latest-message quote is available.
Before writing a handoff or ending the run, reconcile the live request and current task state. A status question, acknowledgement, checkpoint, or context transition does not withdraw authorization for the same action, target, and outcome. Complete the next safe, reversible, authorized action—including available reviews and evidence checks—before reporting it as a next step. Record a future task as queued only when it is outside the current request or requires a real gate. Keep explicit planning-only requests, user stops, the autonomy deadline, and user-only authority boundaries intact. If blocked, name the exact action, current reason it cannot proceed, controlling owner, attempts and alternatives, and a concrete resumption trigger; do not label routine verification or review as waiting for the user.
For routine human-readable updates in ~/roadmap, follow that repository's
AGENTS.md direct-origin/main workflow, including scoped mechanical
validation and an expected-head check. Do not open a roadmap PR solely to
publish a /nextsteps artifact; existing roadmap PRs remain governed by that
repository's merge policy. This applies only to roadmap documentation: code
and skill changes keep their repository PR and merge gates, and Beads state
continues through the canonical br publisher.
A /nextsteps run is incomplete unless it leaves all of these artifacts
for its chosen mode:
br~/roadmap/learnings-YYYY-MM.md appendedroadmap/activity/YYYY-MM-DD.md appended with session bullet (repo git root — create file if absent). If that date is brand-new, prepend one date link to roadmap/README.md's ## Recent activity (by day) section.If the session has no repo checkout, skip item 4 only and note that in the Phase 8 report.
--full mode — required artifactsIn addition to all default-mode artifacts above, a --full run must also
leave:
MEMORY.md pointers⚠️ mem0 unavailable (skipped) recorded)If the session has no repo checkout, skip item 4 only and note that in the Phase 8 report.
A normal /nextsteps invocation authorizes all relevant stages below. Complete all required stages in the same run before yielding a final response.
--full), and produce the Phase 8 report immediately.--full mode, execute Stage 1, then proceed continuously into Stage 2 (Claude auto-memory, mem0, GitHub Issues) before producing the Phase 8 report.--full mode, record the exact attempted result, complete every other artifact, and report the unavailable sink in the final checklist.Before writing the independent summary or touching roadmap files:
roadmap/nextsteps*.md, roadmap/NEXT-STEPS.md, roadmap/session-*.md, docs/nextsteps*.md (if present)~/roadmap/nextsteps-latest.md, ~/roadmap/nextsteps-*.mdnextsteps-latest.md or the newest nextsteps-YYYY-MM-DD.md in the same month), or add a subsection under an existing “Work queue” / “Next steps” heading.~/roadmap/nextsteps-<YYYY-MM-DD>.md (or roadmap/nextsteps-<YYYY-MM-DD>.md if the repo standard is to keep session docs in-repo — match sibling files if any).roadmap/activity/YYYY-MM-DD.md (create file with # Activity — YYYY-MM-DD header if absent). If this is the first entry for that date, prepend a - [YYYY-MM-DD](activity/YYYY-MM-DD.md) line to the ## Recent activity (by day) list in roadmap/README.md. Do not prepend to README for subsequent entries on the same date — only the per-day file changes. This keeps README conflict-free across concurrent PRs.The independent .md file is the handoff artifact: a reader must be able to execute the queue without opening beads or chat.
Document order (fixed):
# Nextsteps — <topic or repo> — <YYYY-MM-DD>## section (Executive summary through Roadmap pointer). Use GitHub-style anchors (lowercase, hyphenated, dedupe if titles repeat). Update whenever headings change.## sections) — Each section is self-contained (definitions, file paths, acceptance criteria, dependencies). Do not rely on “see chat” or unstated context. Order: Context → Bead index → Work queue → Timeline and parallel lanes → PR / merge state → Learnings pointer → Roadmap pointer.Required ## sections after Executive summary (skip only if genuinely N/A — one line stating why):
| Section | Content |
|---|---|
| Context | 2–6 sentences: what block just ended, repo(s), branch/PR if relevant, scope boundaries |
| Bead index | Table: bd-… id, title, priority/status if known, link — every open bead touched or created this run. Prefer https://github.com/<owner>/<repo>/issues/<n> when the bead syncs to GitHub Issues; else br show <id> as fallback. Link the id in every row. |
| Work queue | Numbered tasks; each task self-contained: goal, acceptance criteria, files/areas, dependencies/blockers, suggested order; reference beads inline as linked [bd-xxx](url) where applicable |
| Timeline and parallel lanes | Estimated elapsed windows, lane owners and exclusive write scope, dependencies, outputs/proof, critical path, concurrency ceiling and limiting resource; 20-minute milestones and hourly rollups for future execution, without resuming stopped work |
| PR / merge state | Same session truth as Phase 1b (PR #n: OPEN | MERGED | CLOSED) for any PR whose current status or merge order is asserted or acted on; explicitly dated historical inventories remain snapshots. Include full PR URLs. |
| Learnings pointer | Path/link to the new ~/roadmap/learnings-YYYY-MM.md entry for this date; one-line summary of what was logged |
| Roadmap pointer | Confirm roadmap/activity/YYYY-MM-DD.md appended (and README date link added if new date) |
Link rules
https://github.com/owner/repo/pull/n (or /issues/n) when known.## section anchor.Example skeleton
# Nextsteps — <repo> — 2026-04-19
## Table of contents
- [Executive summary](#executive-summary)
- [Context](#context)
- [Bead index](#bead-index)
- [Work queue](#work-queue)
- [Timeline and parallel lanes](#timeline-and-parallel-lanes)
- [PR / merge state](#pr--merge-state)
- [Learnings pointer](#learnings-pointer)
- [Roadmap pointer](#roadmap-pointer)
## Executive summary
- Outcomes: …
- Risks / blockers: …
- Next: …
- Beads: [bd-abc123](https://github.com/org/repo/issues/NN) (short label)
## Context
…
## Bead index
| Bead | Title | Link |
|------|-------|------|
| bd-… | … | [bd-…](https://github.com/org/repo/issues/NN) |
## Work queue
1. … — tracks [bd-…](https://github.com/org/repo/issues/NN)
## Timeline and parallel lanes
| Elapsed estimate | Lane / owner | Scope / dependencies | Deliverable / proof |
|---|---|---|---|
| … | … | … | … |
- Critical path and measured or provisional concurrency ceiling: …
- Milestones: +20m, +40m, +60m (hourly rollup), then repeat while active.
- Execution start: <started now, or the exact unmet gate and resumption trigger>. Do not mark already-authorized work pending resumption; continue it in the current workflow.
## PR / merge state
- https://github.com/org/repo/pull/123 — OPEN
## Learnings pointer
- `~/roadmap/learnings-2026-04.md` — section `2026-04-19 — …`
## Roadmap pointer
- Appended `roadmap/activity/YYYY-MM-DD.md` — Recent activity (per-day file)
--full Modes)Reuse relevant context and source reads already gathered in this session. Delegate this phase alongside Phase 1b only when they contain independent unanswered questions worth separate lanes; otherwise perform the remaining bounded reads locally. Do not repeat completed discovery merely to satisfy a phase label. If a discovery lane fails because its transport or quota is unavailable, finish its bounded reads locally rather than retrying that unavailable transport. Refresh mutable tracker and PR state when reporting current facts. Refresh a PR when asserting or acting on its current status or merge order; preserve explicitly dated historical inventories as snapshots, including when they cite PRs.
For context still missing:
/nextsteps~/roadmap/nextsteps-*.md for most recent session doc (target for append vs new file)~/roadmap/learnings-YYYY-MM.md tail for existing entriesApply Phase 1a's reuse and delegation decision; share this inspection with other commands composed in the same request. Gather only the context still needed:
git log --oneline -10br list --status open --limit 0ls roadmap/ (and ls ~/roadmap/ for home docs)/nextsteps as extra context.n, resolve the repo (default: gh repo view --json nameWithOwner -q .nameWithOwner from the git root; if the work spans another repo, pass that owner/name explicitly) and run:
gh pr view <n> --repo <owner/repo> --json state,mergedAt,closedAt,headRefName
Map JSON to a human line for the report and the Nextsteps document: PR #n: OPEN if state is OPEN; PR #n: MERGED if mergedAt is non-null; else PR #n: CLOSED (closed without merge). Do not recommend “land PR n” without this check in the same /nextsteps run.br:
br create "<title>" --type task --priority 2
roadmap/activity/YYYY-MM-DD.md (create with header if new date). Only touch roadmap/README.md when the date file is brand-new (prepend one date link to ## Recent activity (by day)).~/roadmap/learnings-<YYYY-MM>.md (create if absent) using this format:
## <YYYY-MM-DD> — <title>
- **Type**: feedback|project|reference
- **Classification**: 🚨|⚠️|✅|❌
- **Summary**: <one-liner>
- **Bead**: <bd-id or none>
- **Files**: <paths changed if any>
- **Nextsteps doc**: <path to independent summary md>
--full mode, continue directly to Stage 2. Do not yield a final response or request confirmation here.--full only, Parallel When Available)Skipped by default mode. Run only when the invocation includes --full.
Run the remaining tasks immediately in the same invocation. Use parallel subagents when available; otherwise perform the tasks locally or sequentially and finish the stage.
--full only)Create a subagent (TypeName=self or a custom subagent) to execute the memory write for each learning/finding:
feedback (rules, anti-patterns) | project (decisions, state) | reference (pointers)git_root=$(git rev-parse --show-toplevel)
project_key="${git_root//\//-}"
memory_dir="$HOME/.claude/projects/${project_key}/memory"
${memory_type}_${date}_${slug}.md with frontmatter:
---
name: <title>
description: <one-liner>
type: feedback|project|reference
bead: <bd-id or none>
---
<body>
**Why:** <reason>
**How to apply:** <when/where this kicks in>
MEMORY.md (create file if missing): - [Title](filename) — one-liner✅ Claude auto-memory: {filename}--full only)Create a subagent (or run concurrently) to save to mem0:
~/.hermes/scripts/mem0_shared_client.py is absent."{title}: {one_liner}. {body_1_sentence}"python3 ~/.hermes/scripts/mem0_shared_client.py add "<text>" \
--user-id $USER \
--no-infer
✅ mem0 saved or ⚠️ mem0 unavailable (skipped)--full only)For each bead created in Stage 1, attempt to create a linked GitHub Issue. Resolve the repository from the current checkout; this publication is optional, so a lookup or creation failure blocks only the issue write. Record the exact failure and continue the other Phase 7/8 work. Never choose a different repository as a fallback.
Run all issue creates in parallel only after the current repository has been resolved:
if ! REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner); then
echo "⚠️ GitHub Issue publication unavailable: repository lookup failed; preserve the exact gh error and continue other artifacts. No issue was created."
elif [[ -z "$REPO" ]]; then
echo "⚠️ GitHub Issue publication unavailable: repository lookup returned an empty name. Continue other artifacts. No issue was created."
else
if ! gh issue create --repo "$REPO" \
--title "[resilience] <bead title>" \
--body "## Summary
<one-paragraph description>
## Acceptance criteria
- [ ] <criterion 1>
- [ ] <criterion 2>
**Bead:** <bd-id>" \
--label "task" 2>&1; then
echo "⚠️ GitHub Issue publication unavailable: preserve the exact gh error; do not retry in another repository. Continue other artifacts."
fi
fi
gh issue create returns "repository has disabled issues", log ⚠️ GH Issues disabled on <repo> — bead only and continue.✅ GH Issue #N created, ⚠️ GH Issues disabled, or ⚠️ GitHub Issue publication unavailable: <exact reason>.First line: the chosen mode (see Modes).
Then summarize the results and print the final artifact checklist for the chosen mode:
Default mode checklist:
[x] Nextsteps independent .md (TOC + executive summary + full detail; bead index + linked beads in queue)[x] Beads (br) written[x] ~/roadmap/learnings-YYYY-MM.md updated (includes nextsteps doc path)[x] roadmap/activity/YYYY-MM-DD.md (and roadmap/README.md if new date) updated[ ] (intentionally blank — Claude memory + mem0 + GH Issues are owned by --full)--full mode checklist:
[x] Nextsteps independent .md (TOC + executive summary + full detail; bead index + linked beads in queue)[x] Beads (br) written[x] Claude memory + MEMORY.md pointers written[x] ~/roadmap/learnings-YYYY-MM.md updated (includes nextsteps doc path)[x] roadmap/activity/YYYY-MM-DD.md (and roadmap/README.md if new date) updated[x] mem0 entry saved (or ⚠️ mem0 unavailable (skipped))[x] GH Issues created (or ⚠️ GH Issues disabled — bead only)Merge-order sanity: If any recommended action was “merge A before B” (or “land A then rebase B”), re-assert A using the Phase 1 gh pr view results from this run. If A is MERGED, do not tell the reader to land A; say instead to rebase B on main (or the appropriate default branch). If A is OPEN, keep the ordering advice. If A is CLOSED without merge, drop merge-order advice and flag that the stack needs re-triage.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
roadmap, situational-assessment, workflow, memory-sync, beads
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", skills.0: Invalid string: must start with "./"
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", skills.0: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
242 skills in this plugin
/4layer/4layer - Four-Layer Minimal Repro Testing Protocol/ablationUse when diagnosing a bug in LLM/model behavior, or any stochastic system, where the cause is disputed or theorized rather than measured. Slash commands `/ablation` and `/abal`. Enforces the rule that you manipulate the REAL captured input and replay it through the REAL production path, one variable at a time, with a verbatim control arm run first to establish the base rate. Trigger phrases include "ablation", "ablate", "what actually causes", "is X the trigger", "prove the root cause", "A/B the payload", "does removing X fix it", "why does the model do this", "test the hypothesis", "root cause is disputed"./accept-adapt-reject