checkpoint
Skill0 starsChanged 5 months agoMITArchived repositoryView on GitHub
Checkpoint your work: pause to save progress as an Issue comment, and resume it from another session. Issues can be given by GitHub number or Linear ID.
- Reads credentials
99 other projects use a version of this.
Adopted by
Most recently taken up by
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- ktrz/skillstheir own version, first seen Nov 29, 2026
- bmubook/ag-launchpad-artheir own version, first seen Nov 29, 2026
- weishh/claude-skillstheir own version, first seen Nov 22, 2026
- rpmcdougall/claude-skillstheir own version, first seen Nov 22, 2026
- f-gozie/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use aside, open-gstack-browser and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillaside
Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
Also in 3 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 6 projects that use this
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
AhmedMerzaSkillspinoff
After a branch is finished, harvest the work it made CHEAP — the helper you wrote that four other sites now hand-roll, the plumbing that turned a deferred feature small, the pattern that just split the codebase in two. Produces a follow-up backlog (0–3 candidates, feeding /issue), NEVER commits on the current branch. Invoke with /spinoff at the tail of the chain — after /fix-review has settled the review findings, before the MR merges — or when the user asks \"what else should we do while we're here / what did this unlock / anything to follow up on\". This is ship-check's optional twin — that finds what's MISSING and blocks the merge; this finds what's now CHEAP and blocks nothing. Restraint-gated: \"nothing spun off\" is the common and correct answer, and a finding that would have been equally valid before this branch is not a finding.
Also in 3 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 6 projects that use this
CodeWithBehnamSkillgstack-upgrade
Upgrade gstack to the latest version. Detects global vs vendored install, runs the upgrade, and shows what's new.
Also in 5 projects that use this
- +2 more from TheKREATORS
- +2 more from seek888
Other versions99 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 99
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- leonvanzyl/agentic-coding-starter-kit★ 447same name
- myICOR/myPKA★ 319same name
- hsantanna88/clo-author★ 262same name
- hugosantanna/clo-author★ 262same name
- sterlingcrispin/claude_slash_commands★ 200same name
- flonat/flonat-research★ 155same name
- josipjelic/orchestrated-project-template★ 96same name
- panayiotism/claude-harness★ 79same name
- svy04/ballast★ 73same name
89 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- codex-secondary-reviewSkill
- github-issue-implSkill
- monorepo-managerSkill
- pr-context-summarySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 12 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 91 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
If --issue and --create are both given → error: --issue and --create cannot be given together
- Distinctive: line 65
If unauthenticated → tell the user it will fall back to markdown output at the end, and continue
- Very specific: line 71
If the value above is empty, or is still an unexpanded ${...} placeholder (a Claude Code version without the substitution) → write …
- Distinctive: line 76
Run these in parallel:
- Distinctive: line 103
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub …
- Very specific: line 107
If it does not exist → error: Issue #{N} not found.
- Distinctive: line 141
Write the title in the language of the session too.
- Very specific: line 156
When there is no worktree, use <!-- checkpoint:worktree none --> or omit the marker entirely
- Very specific: line 199
Read the pause note recorded by pause from the GitHub issue, restore the context, and continue the work.
- Very specific: line 215
No argument → infer from the branch name (the lib function.
- Distinctive: line 224
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub …
- Very specific: line 226
Check gh auth — error if unauthenticated
- Distinctive: line 241
Search the comments in reverse (newest first) and take the first match
- Distinctive: line 242
If no comment matches, check the issue body
- Very specific: line 251
Only session, branch, and worktree are extracted mechanically
- Distinctive: line 256
If no pause note is found → read the situation from the issue body and resume from there
- Distinctive: line 260
Check whether the branch and worktree exist
- Distinctive: line 269
If the issue is already closed → warn and continue (do not re-open it)
- Very specific: line 328
Run the Linear MCP get_issue("ENG-123", includeRelations: true), look through attachments and links for a URL of the form …
- Very specific: line 330
If there is still none → error: No GitHub issue corresponds to ENG-123
- Distinctive: line 362
Use only git diff --stat (never dump the full code diff)
- Distinctive: line 366
Never re-open a closed issue (that is the maintainer's call)
“Common” is measured: kept by at least 6 in 10 of the 91 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/checkpoint
An issue-based checkpoint for pausing and resuming work. Everything is recorded on GitHub issues, and an issue may be given either as a GitHub number (81) or as a Linear ID (ENG-123).
Output language: write the body of the pause note in the language of the session (the templates in this file are the sample and are not strings to copy verbatim).
docs/rules/output-language.mdis the SSoT for the fixed label translations.The
<!-- checkpoint:* -->markers, however, must always be emitted exactly as shown, regardless of language — resume reads the branch, worktree, and session ID out of those markers. Translating or omitting them means resume cannot find the pause note and, without raising an error, quietly degrades to the "no note" fallback (guessing the resume point from the issue body).
Usage
/checkpoint pause # infer the issue, comment the progress on it
/checkpoint pause --issue 81 # give the GitHub issue number explicitly
/checkpoint pause --issue ENG-123 # give a Linear ID (records on the corresponding GitHub issue)
/checkpoint pause --create # create a new issue and record there
/checkpoint resume 81 # restore context from the pause note on issue #N
/checkpoint resume ENG-123 # restore from a Linear ID (via the corresponding GitHub issue)pause — record a work interruption
Collect the session information, git state, and progress at the moment work stops, and record them as a comment on a GitHub issue.
Arguments
| Argument | Description | Default |
--issue <ref> | The issue to record on. A GitHub number (81) or a Linear ID (ENG-123) | Inferred from the branch name |
--create | Create a new issue and record there | false |
Giving --issue and --create together is an error.
Procedure (6 steps, run immediately without asking the user)
Step 1: Parse arguments and check auth
- Parse the arguments:
--issue <ref>: the issue to record on. A GitHub number (81) or a Linear ID (ENG-123). Keep it as a raw string; resolving it to a GitHub issue number happens in "Resolving an issue reference" during step 4--create: flag to create a new issue- If
--issueand--createare both given → error:--issue and --create cannot be given together - Remaining text: used as an additional note
- Check
ghauth:
If unauthenticated → tell the user it will fall back to markdown output at the end, and continuegh auth status 2>&1
Step 2: Collect session information
- The session ID of this session is:
${CLAUDE_SESSION_ID}- Claude Code substitutes it into this skill's text when the skill is loaded, so no command is needed to look it up
- If the value above is empty, or is still an unexpanded
${...}placeholder (a Claude Code version without the substitution) → write "unavailable" in the session info section and continue
- Build the resume command:
claude --resume {sessionId}
Step 3: Collect git state (run in parallel)
Run these in parallel:
git branch --show-current
git status --short
git log --oneline -5
git diff --stat
git worktree listStep 4: Resolve the issue reference and confirm it exists
Determine the issue reference in this order of priority:
--creategiven → create a new issue in step 6 (skip resolution)--issue <ref>given → use that reference- Neither → infer from the branch name (use the helper function; the old
grep -oE '^(feat|fix)/([0-9]+)'had a bug where it did not matchfeat/ENG-123-..., so this is unified into the lib function):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh" extract_issue_ref_from_branch "$(git branch --show-current)" # -> "ENG-123" (Linear) / "120" (GitHub) / non-zero (could not extract) - Cannot infer → create a new issue in step 6
A Linear-shaped reference inferred from a branch name is only a guess: feat/oauth-2-login looks like OAUTH-2. If it cannot be resolved in the section below (no such Linear issue, no linked GitHub issue, or the Linear MCP is not connected), treat it as "cannot infer" instead of stopping with an error.
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub issue number. Confirm the resolved number exists:
gh issue view {N} --json number,title,state -q '.number' 2>&1If it does not exist → error: Issue #{N} not found. Check the number, or use --create to open a new one
Step 5: Summarize the context (LLM)
From the conversation context and the git state, produce:
- Done: the completed work as a
[x]checklist - Remaining: the unfinished work as a
[ ]checklist - Decision notes: things to hand to the maintainer, records of decisions
- API key patterns (
sk-...,Bearer ...) → mask as*** - Values from
.env→ mask as*** - Passwords and secrets → mask as
*** - Absolute paths (
/Users/...) → convert to repository-relative paths
Step 6: Record on the issue
- Write the body to a temp file (use
mktempfor a unique path):TMPFILE=$(mktemp /tmp/pause-memo-XXXXXX) cat <<'PAUSE_BODY_EOF' > "$TMPFILE" {contents of the output template} PAUSE_BODY_EOF - Comment on an existing issue (when there is an issue number):
gh issue comment {N} --body-file "$TMPFILE" - Create a new issue (with
--create, or when the issue could not be inferred):
Write the title in the language of the session too. Resume finds the note by the markers in the body, not by the title, so translating the title does not affect detection.gh issue create --title "[{scope}] Work pause note: {summary}" --body-file "$TMPFILE" - Fallback (when
ghis unauthenticated):- Print the contents of the output template as markdown
- Tell the user to copy it into a GitHub issue by hand
- Delete the temp file:
rm -f "$TMPFILE" - Report: the issue URL, the session ID, and the resume command
Output template
Write the headings and labels in the language of the session (the sample below is English). The four <!-- checkpoint:* --> marker lines, by contrast, are emitted in exactly this form regardless of language — resume's machine extraction looks only at the markers (see "Language-invariant tokens" in docs/rules/output-language.md).
- The value runs to the
-->at the end of the line, so a path containing spaces needs no quoting - When there is no worktree, use
<!-- checkpoint:worktree none -->or omit the marker entirely
## Work pause note
<!-- checkpoint:pause v1 -->
<!-- checkpoint:session {sessionId} -->
<!-- checkpoint:branch {branch} -->
<!-- checkpoint:worktree {worktree path or "none"} -->
### Session info
- **Session ID**: `{sessionId}`
- **Resume command**: `claude --resume {sessionId}`
- **Branch**: `{branch}`
- **worktree**: `{worktree info or "none"}`
### Done
- [x] {completed work 1}
- [x] {completed work 2}
### Remaining
- [ ] {remaining work 1}
- [ ] {remaining work 2}
### Decision notes
{decisions and things to hand to the maintainer}
### Current state
{output of git status --short}
### Change summary
{output of git diff --stat}
### Recent commits
{output of git log --oneline -5}resume — restore context and continue
Read the pause note recorded by pause from the GitHub issue, restore the context, and continue the work.
Arguments
| Argument | Description | Default |
| (positional) | The issue to resume. A GitHub number (81) or a Linear ID (ENG-123) | Inferred from the branch name |
--issue <ref> | The same, in explicit form | — |
Procedure (4 steps)
Step 1: Parse arguments and check auth
Get the issue reference:
- A number or
ENG-123→ use it as the reference --issue <ref>→ use that reference- No argument → infer from the branch name (the lib function; the old
grepversion did not handlefeat/ENG-123):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh" extract_issue_ref_from_branch "$(git branch --show-current)" # -> "ENG-123" / "120" / non-zero (could not extract) - Cannot infer, or a Linear-shaped reference inferred from the branch name cannot be resolved → error:
Specify an issue (e.g. /checkpoint resume 81 or ENG-123)
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub issue number before going to step 2.
- A number or
- Check
ghauth — error if unauthenticated
Step 2: Read the pause note from the issue
- Fetch the issue data:
gh issue view {N} --json body,comments,title,state - Find the most recent pause note (a language-independent check — use
ckp_has_pause_memo):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/parse-pause-memo.sh" ckp_has_pause_memo "$COMMENT_BODY" # 0 = pause note / 1 = anything else- Search the comments in reverse (newest first) and take the first match
- If no comment matches, check the issue body
- The check prefers the
<!-- checkpoint:pause -->marker, falling back to the legacy Japanese heading## 作業中断メモfor backward compatibility
- Extract the machine-readable fields from the pause note (
ckp_memo_fieldfrom the same lib, which does not depend on any Japanese literal):BRANCH=$(ckp_memo_field branch "$MEMO") || BRANCH="" WORKTREE=$(ckp_memo_field worktree "$MEMO") || WORKTREE="" # rc 1 = no worktree SESSION=$(ckp_memo_field session "$MEMO") || SESSION=""- Only
session,branch, andworktreeare extracted mechanically - For older notes without markers, the lib falls back to the legacy Japanese form automatically (existing issues remain resumable)
- Done and Remaining are picked up from the Markdown checkboxes
- [x]/- [ ](syntax elements, hence language-invariant) - Prose such as the decision notes is not extracted with a regex — read the section's content and take it into context as it is (headings can be translated, so do not depend on a literal match)
- Only
- If no pause note is found → read the situation from the issue body and resume from there
Step 3: Restore the environment
- Check whether the branch and worktree exist
- Respond according to the situation:
| Situation | Response |
| Branch and worktree both exist | Point at the worktree path |
| Only the branch exists | Offer to create the worktree |
| Neither exists | Offer to create the branch and the worktree |
- If the issue is already closed → warn and continue (do not re-open it)
Step 4: Present the context and resume
## Resuming from issue #{N}
### Previous session
- **Session ID**: `{sessionId}`
- **Resume in the same session**: `claude --resume {sessionId}`
### Previous branch
- **Branch**: `{branch}`
- **worktree**: `{path or "none"}`
### Work completed previously
- [x] {completed work 1}
### Remaining (from the previous pause note)
- [ ] {remaining work 1}
### Decision notes
{the previous decision notes}
---
Resuming work with the context above.Then start from the first item of the remaining work.
Resolving an issue reference (shared by pause and resume)
The shared procedure for resolving a reference — from --issue <ref>, a positional argument, or branch inference — into a GitHub issue number.
1. Classify the reference
CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude
source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh"
classify_issue_ref "$REF" # -> "github:81" / "linear:ENG-123" / non-zero (invalid)github:<N>→ use<N>directly as the GitHub issue numberlinear:<KEY>-<N>→ convert to a GitHub number in step 2 below (<KEY>is the Linear team key: a letter followed by letters or digits, normalized to upper case)- Non-zero (invalid) → error:
Invalid issue reference (e.g. 81 or ENG-123)
Branch-name inference uses the same lib function:
extract_issue_ref_from_branch "$(git branch --show-current)"
# -> "ENG-123" / "120" / non-zero (could not extract). Pass the value to classify_issue_ref2. Resolving a Linear ID to a GitHub issue number
A Linear ID does not appear in the GitHub issue title and cannot be located with gh search (fuzzy hits produce wrong matches). Resolve it through the Linear MCP (read it yourself, directly — this resolves a single item, and delegating a few tool calls to a subagent costs more in round trips than it saves):
- Run the Linear MCP
get_issue("ENG-123", includeRelations: true), look throughattachmentsand links for a URL of the formgithub.com/<owner>/<repo>/issues/<N>, and take the GitHub issue number<N>from there (never extrapolate the number from a sequence — always take it fromattachments) - Fallback if none is found: look for a GitHub issue link in the body or description of the Linear issue
- If there is still none → error:
No GitHub issue corresponds to ENG-123
Verified against the real API (2026-06-24):
attachments[].urlof theget_issue(..., includeRelations=true)response carried the GitHub issue URL, and the issue number could be extracted from it with a regular expression (attachments[].urlis the primary path).
Notes are always recorded on GitHub issues (settled maintainer policy). A Linear number is accepted as an input key, and the note itself is commented on the resolved GitHub issue. From Linear, it is reachable through the GitHub↔Linear sync link.
Edge cases
| Case | Response |
--issue and --create given together | Print an error and exit |
An invalid reference in --issue (abc, #1, and the like) | classify_issue_ref returns non-zero → error: Invalid issue reference (e.g. 81 or ENG-123) |
The GitHub issue for --issue ENG-123 cannot be resolved | Error: No GitHub issue corresponds to ENG-123 |
Linear MCP not connected, or get_issue fails (when a Linear ID was given) | Print the error and suggest re-running with a GitHub number |
A branch name such as feat/oauth-2-login looks like a Linear ID but does not resolve | Treat it as not inferred: pause creates a new issue, resume asks for an issue |
| The issue does not exist | Print an error and exit |
| Session ID unavailable | Write "unavailable" and continue |
gh unauthenticated (pause) | Fall back to markdown output |
gh unauthenticated (resume) | Print an error and exit |
--issue omitted while on the main branch | Cannot infer the issue → create a new one |
| Run outside a worktree | Record the worktree info as "none" |
| No git changes | Write "no changes" and continue |
| The branch was deleted (resume) | Offer to recreate the worktree |
| The issue is already closed (resume) | Warn and continue |
| Several pause notes exist | Use the one in the newest comment |
| Resuming an old note without markers | ckp_memo_field falls back to the legacy Japanese form automatically |
| Resuming a note written in another language | The <!-- checkpoint:* --> markers are language-invariant, so extraction works as is |
Safety rules
- Level 1 (API keys, passwords, personally identifying information): never put these in an issue body
- Mask values from
.envfiles and any credentials with*** - Use only
git diff --stat(never dump the full code diff) - Convert absolute paths (
/Users/...) to repository-relative paths - Generate temp files with
mktempfor a unique path, and always delete them afterwards - Watch the
ghcommand's rate limits and keep API calls to the minimum - Never re-open a closed issue (that is the maintainer's call)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

