From reprompt
Create or update a reprompt — a living continuation prompt that persists across sessions
How this skill is triggered — by the user, by Claude, or both
Slash command
/reprompt:create-promptThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate or update a structured continuation prompt capturing everything needed to resume in a new session. Saved as a project-scoped living document that evolves across sessions.
Generate or update a structured continuation prompt capturing everything needed to resume in a new session. Saved as a project-scoped living document that evolves across sessions.
Do NOT ask for confirmation. Do NOT use AskUserQuestion. The skill was invoked intentionally.
$ARGUMENTS may contain:
mysql-tests) — used as filename--new, -new, new:, or new as the first word"start fresh", "create new", "fresh start", "from scratch", "don't update"--new api-refactor, new: api-refactor, start fresh api-refactor)focus on the API layer) — steer the prompt emphasis; derive slug from itread-prompt, otherwise derive slug from the conversation goalSlug rules: lowercase, hyphenated, no special characters, 1-3 words (e.g. mysql-tests, api-refactor, dashboard-fix).
echo "CONFIG_DIR: ${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
REPROMPTS_DIR = ${CLAUDE_CONFIG_DIR}/projects/{encoded-project-path}/reprompts/
memory/ directory that already exists alongside itprojects/ directory to find the correct encoded path for the current working directoryREPROMPT_FILE = ${REPROMPTS_DIR}/${SLUG}.md# Find the encoded project path by looking at existing project directories
ls "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/"
UPDATE mode if BOTH of these are true:
REPROMPT_FILE (check with Read tool)CREATE mode otherwise.
If UPDATE mode, read the existing file using the Read tool (not bash cat).
git branch --show-current
git status --short
git log --oneline -5
git diff --stat
git stash list
git worktree list
Also:
{CLAUDE_CONFIG_DIR}/plans/*.md{CLAUDE_CONFIG_DIR}/projects/*/memory/*.md# Try env var first
echo "${CLAUDE_SESSION_ID:-}"
If empty, fall back to extracting from conversation state files:
# Check for the most recent session file in the project config
ls -t "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/"*"/conversations/" 2>/dev/null | head -1
If no session ID can be determined, use unknown as the ID.
Scan the full conversation history and extract:
Focus on WHY — the code shows WHAT.
CREATE mode:
---
slug: {SLUG}
created: {TODAY YYYY-MM-DD}
updated: {TODAY YYYY-MM-DD}
sessions: 1
history:
- id: {SESSION_ID}
date: {TODAY YYYY-MM-DD}
summary: {One-line summary of what this session accomplished}
---
UPDATE mode:
created: dateupdated: to todaysessions: count by 1history: with the current session ID, date, and summaryUse this template. Omit empty sections. Let content dictate length — be comprehensive but not verbose.
CREATE mode — generate all sections fresh from conversation context.
UPDATE mode — read the existing file and:
## Goal
[1-2 sentence summary of the overarching task]
## Current State
- **Directory:** `path/to/working/dir`
- **Branch:** `branch-name` | **Status:** [clean / N files modified / stashed]
- **Worktree:** `path` (if working in a worktree)
- **Config:** `path/to/config/dir` (only if non-default)
- **Phase:** [where we are — e.g. "implementing step 3 of 5", "design complete, starting implementation"]
- **Last action:** [what was the last meaningful thing done]
## Active Tasks
[From TaskList: pending/in-progress only. Format: #id subject. Omit if empty.]
## Key Decisions
- [Decision + rationale — focus on WHY, the WHAT is in the files]
- [Rejected alternatives with WHY if important]
## Important Files
- `path/to/file` — [1-line why it matters]
## References
- `path/to/plan.md` — [what it covers]
- `path/to/design.md` — [what it covers]
- **Skills:** `/name` — [why relevant going forward]
- **Memory:** [anything written to MEMORY.md or auto-memory this session]
## Done
- [Completed item — one line each, keep brief]
## Next Action
[The single most important thing to do on resume. Be specific — include file paths, function names, or diagnostic data needed to act immediately.]
## Remaining
- [ ] [Additional steps after the next action]
## Context
[Environment quirks, debugging discoveries, error patterns, workarounds — things lost between sessions. Omit if nothing notable.]
## Open Questions / Blockers
- [Unresolved issue]
Before writing the file, verify:
Use ONLY the Write tool. No Bash commands. The bash -c approach triggers Claude Code's security heuristic.
Write the complete file (frontmatter + body) to REPROMPT_FILE.
The Write tool creates parent directories automatically — no mkdir needed.
Compute REPROMPT_FILE_DISPLAY by replacing $HOME with ~ in the path.
CREATE mode:
--- reprompt saved ---
Slug: {SLUG}
Status: Created (new)
File: {REPROMPT_FILE_DISPLAY}
Next session:
/reprompt:read-prompt {SLUG}
/reprompt:read-prompt <- loads latest
UPDATE mode:
--- reprompt saved ---
Slug: {SLUG}
Status: Updated (session {N})
File: {REPROMPT_FILE_DISPLAY}
Next session:
/reprompt:read-prompt {SLUG}
/reprompt:read-prompt <- loads latest
If $ARGUMENTS contains emphasis text (not just a slug or --new), use it two ways:
Any arguments the user passes to this skill ALWAYS take precedence over prior instructions, active slugs, or reprompt content from previous sessions.
If the user says /reprompt:create-prompt new: api-cleanup focus on the auth layer, that intent drives the slug, emphasis, and mode — regardless of what the active slug is or what a previous reprompt says. The user is here NOW; prior context is default, not binding.
Never ignore, deprioritize, or argue against user-supplied arguments in favor of existing reprompt state.
claude --resume {id} to revisit any sessionnpx claudepluginhub dan-cunha/claude-resources --plugin repromptWrites a CONTINUE_HERE.md file capturing session state so a fresh Claude Code session can pick up where the last one left off. Use when ending a session with unfinished work or handing off context between sessions.
Saves session state and writes a handoff note so the next Claude Code session can continue cleanly. Read/writes a remember.md file at the project root.
Wraps up a work session by recording changed files, caveats, decisions, and next steps so a fresh session can resume without re-deriving context.