plugin-work-checkpoint
Save or restore resumable context for long plugin maintenance work. Use during migrations, upstream harvest batches, release preparation, broad health fixes, or any plugin-manager task that may span multiple sessions. Inspired by GStack context-save/context-restore.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- plugin-work-checkpoint
- version
- 0.1.0
- mutating
- true
- triggers
- [ "save plugin work", "restore plugin work", "plugin checkpoint", "resume plugin work", "where did we leave off on this plugin" ]
- writes_to
- [ ".plugin-manager/checkpoints/" ]
- description
- Save or restore resumable context for long plugin maintenance work. Use during migrations, upstream harvest batches, release preparation, broad health fixes, or any plugin-manager task that may span multiple sessions. Inspired by GStack context-save/context-restore.
- writes_pages
- false
- allowed-tools
- [ "Read", "Write", "Edit", "Bash", "Grep", "Glob" ]
- disable-model-invocation
- false
03 SKILL.md 正文
Plugin Work Checkpoint
Contract
A checkpoint captures the cross-tool state a future session needs to resume without re-deriving it. Every checkpoint records exactly these fields:
- Git ref — branch name plus short commit SHA (
git rev-parse --short HEAD). - Dirty-file list — the porcelain
git status --shortoutput (paths + XY status), so the resumer can confirm the working tree still matches. Summaries, not full diffs. - Validation state — the last result of each gate that governs this work,
with the exact command and its verdict:
npm run validate→ pass / fail (+ error count) / not-runpython -m pytest -q→ pass / fail (+ failing tests) / not-runpython scripts/routing_eval.py→ accuracy number / not-run- any plugin-specific check run (e.g.
plugin_audit.py --strict-sections).
- Open decisions — questions still unresolved and the options on the table.
- Next actions — the ordered, concrete steps to take on resume.
- Target plugin(s) and ownership boundaries (what this work may/may not touch).
- Blockers and related GitHub issues.
- Privacy note confirming no secrets or raw private content are stored.
Boundary vs. git stash / branch
A checkpoint is not a substitute for a branch or stash, and vice versa. Git snapshots tracked file contents; a checkpoint snapshots the state git cannot see: which validation gates last passed and with what numbers, which decisions are still open, what the next action is, and why the work is where it is. Use a branch/commit to preserve code; use a checkpoint to preserve intent and verification status on top of that code. A checkpoint therefore references a git ref rather than replacing it — restore reconciles the two.
Workflow
-
Choose mode
- Save when the user says to checkpoint, pause, hand off, or preserve state.
- Restore when the user asks to resume or asks where plugin work left off.
-
Save — capture, don't guess. Gather evidence before writing:
- Git ref:
git rev-parse --short HEADand the branch fromgit status --short --branch. - Dirty-file list: the full
git status --shortoutput, transcribed as the checkpoint's file inventory (path + status). Summarize why each changed; do not paste large diffs. - Validation state: record the last verdict of each gate you actually ran —
npm run validate(pass/fail + error count),python -m pytest -q(pass/fail + failing tests),python scripts/routing_eval.py(accuracy), and any--strict-sectionsaudit. Mark anything you did not run asnot-runrather than omitting it. - Open decisions and the next actions in priority order.
- Write an append-only markdown file under:
.plugin-manager/checkpoints/YYYY-MM-DD-HHMM-<slug>.md - Do not include secrets, credentials, raw private transcripts, or full proprietary source snippets.
- Git ref:
-
Restore — verify the tree matches before resuming:
- List recent checkpoint files newest first; read the relevant one.
- Re-run
git rev-parse --short HEAD, the branch check, andgit status --short, then diff the live state against the saved Git ref and dirty-file list:- If the commit SHA differs, report the drift (commits landed since the checkpoint) and reconcile before acting — the recorded validation state may be stale.
- If the dirty-file list differs (files added, reverted, or newly changed), list the differences explicitly and do not assume the saved validation verdicts still hold.
- Only after reconciling, re-run any gate whose result the next action depends
on (do not trust a stale
pass), then summarize what was done, what remains, blockers, and the safest next step.
Checkpoint Template
# Plugin Work Checkpoint: <title>
- Date: YYYY-MM-DD HH:MM TZ
- Branch: <branch>
- Commit: <sha>
- Target plugin(s): <names>
- Ownership boundary: <what this work may/may not touch>
- Related issues: <numbers/urls>
- Privacy: no secrets or raw private content stored
## Dirty Files (git status --short)
- `XY <path>` - <why it changed>
## Validation State
- `npm run validate` - pass|fail (<N> errors)|not-run
- `python -m pytest -q` - pass|fail (<failing tests>)|not-run
- `python scripts/routing_eval.py` - <accuracy>|not-run
- `<plugin-specific check>` - pass|fail|not-run
## Open Decisions
- <question> - options: <A | B>; leaning: <choice or undecided>
## Next Actions
1. <ordered concrete step>
## Blockers
- <blocker or none>
Output Format
PLUGIN CHECKPOINT
Mode: save|restore
Checkpoint: .plugin-manager/checkpoints/<file>.md
Branch: <branch>
Status: saved|restored|blocked
Next:
- <next action>
Anti-Patterns
- Storing secrets, API keys, raw private content, or long diffs.
- Treating a stale checkpoint as current without diffing the live git ref and dirty-file list against the saved ones.
- Trusting a saved
passverdict after the tree changed — re-run the gate the next action depends on. - Using a checkpoint as a stand-in for a branch/commit (or vice versa): git preserves file contents, the checkpoint preserves validation state and intent.
- Overwriting prior checkpoints instead of appending a new one.
- Saving vague notes that omit validation state, open decisions, or next actions.
04 同仓库更多 Skills
metric-reconciliation
Use when two reports disagree, a KPI needs reconciliation across sources, or actuals need to be compared with a plan, forecast vintage, or prior methodology. Align population, coverage, calendar, attribution, and observation windows before computing gaps. Identify missing slices and preserve unresolved residuals.
analysis-handoff
Use to make a recurring SQL analysis reproducible, hand it to another analyst, or check whether an analysis bundle changed. Capture the exact query, metric definitions, inputs, source vintages, checks, and rerun steps in a portable folder without requiring a copy of row-level results.
conversation-ingestion
File a conversation transcript or notes from an interview, research discussion, or support exchange. Preserve the raw material, capture decisions and actions, and update participant and company timelines. Trigger on 'process this conversation', 'ingest this conversation', 'file this transcript', or 'conversation notes to KB'. For standalone media use media-ingest. For source routing use ingest.
minimal-skill
Minimal shared skill fixture for marketplace renderer and validator examples.
roadmap
Use this skill when the user wants a product roadmap, initiative sequencing, Now/Next/Later plan, quarterly roadmap, release theme map, product strategy-to-roadmap translation, or executive roadmap narrative. Trigger on phrases like "build a roadmap", "roadmap these initiatives", "what should be now next later", "sequence this backlog", "quarterly product roadmap", "theme-based roadmap", or "plan the next two quarters". Do NOT trigger for drafting or reviewing a single PRD (use prd-writer or prd-review), converting a PRD into an agentic PLAN.md (use prd-to-plan), or scoring/ranking a set of options without a time horizon (use prioritization).
prioritization
Use this skill when the user wants to rank, score, triage, or compare product opportunities, features, PRD requirements, backlog items, roadmap candidates, or initiatives using RICE, impact-effort, confidence, reach, value, effort, risk, or tradeoff analysis. Trigger on phrases like "prioritize these features", "rank this backlog", "RICE score", "impact effort matrix", "what should we build first", "compare these initiatives", or "stack rank product bets". Do NOT trigger for a time-based roadmap (use roadmap), writing or reviewing one PRD (use prd-writer or prd-review), turning a PRD into an agentic plan (use prd-to-plan), or analyzing experiment results (use ab-testing or experimentation skills).