context-update
Save a brief mid-session checkpoint to this workspace and update current state only when a priority or open thread changed. Use only when the user explicitly asks to checkpoint or save current progress.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 32
- Forks
- 10
01 前言 Front Matter
- name
- context-update
- triggers
- [ "user" ]
- description
- Save a brief mid-session checkpoint to this workspace and update current state only when a priority or open thread changed. Use only when the user explicitly asks to checkpoint or save current progress.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档agents/openai.yaml241 B
- 参考文档example.html6.6 KB
03 SKILL.md 正文
Checkpoint a workspace session
Execution roots (required)
When the host executes commands inside Bash, replace the bash executable
shown below with "$BASH" to reuse that shell. This avoids selecting a different
Bash from PATH, such as the Windows WSL launcher inside a Git Bash session.
In a terminal outside Bash, select the installed Bash explicitly.
Use the exact roots supplied by the host attachment: KernelRoot is the trusted
Context OS product containing scripts/contextos.sh; ContextRoot owns tracked
identity and lifecycle state; and WorkingRoot is the ordinary application.
For an external attachment, require all three exact absolute paths and run:
bash <KernelRoot>/scripts/contextos.sh --context-root <ContextRoot> --working-root <WorkingRoot> <command>
Do not search upward or infer a root from cwd or the skill installation. The
kernel must validate the ignored local binding before strict lifecycle work. A
missing, moved, stale, linked, nested, or mismatched binding stops the workflow;
use the explicit project rebind proposal after a legitimate move. ContextRoot
owns all lifecycle writes. WorkingRoot is read-only evidence. The colocated
bash scripts/contextos.sh <command> compatibility form remains valid.
Throughout this procedure, resolve every context and local-artifact path beneath
ContextRoot. In split mode, spell local paths as absolute <ContextRoot>/...
paths and invoke every lifecycle command through the absolute KernelRoot wrapper
with both exact role options. In colocated mode, run the relative compatibility
commands from the colocated root.
Save continuity with minimal churn through the deterministic lifecycle kernel.
Procedure
-
Identify what was completed, any decisions, and whether a priority or open thread changed. Do not invent progress.
-
Create a reviewed JSON payload under
<ContextRoot>/.context-os/inputs/withprogressas one to three factual strings. Make each progress entry one self-contained sentence naming its subject and stating one fact; avoid label-prefixed fragments and multiple facts in one sentence, but keep a status and its qualifiers in the same sentence. Apply the same rule to handoff prose. Includecurrent_markdownonly when a priority shifted, a thread opened or closed, or a tracked task completed. When present, it is the complete desired ContextRootcurrent.mdbefore the kernel advances its date and history. Preserve unrelated content and ordering. -
Run exactly one matching form:
split: bash <KernelRoot>/scripts/contextos.sh --context-root <ContextRoot> --working-root <WorkingRoot> propose update --input <ContextRoot>/.context-os/inputs/<payload.json> colocated: bash scripts/contextos.sh propose update --input .context-os/inputs/<payload.json>The kernel owns session append behavior, dates, the single
Last Updatedline, and same-day history. Present every returned diff and the exact proposal digest. The digest binds the exact content but does not authenticate a human approver; rely on the host permission boundary for confirmation. -
Wait for explicit approval of that exact proposal. Then run:
split: bash <KernelRoot>/scripts/contextos.sh --context-root <ContextRoot> --working-root <WorkingRoot> apply <ContextRoot>/<proposal> --confirm <digest> --runtime <active-runtime> colocated: bash scripts/contextos.sh apply <proposal> --confirm <digest> --runtime <active-runtime>If any target changed after proposal creation, create and review a new proposal. Never bypass stale-write, path-containment, or locking checks.
-
If a durable decision was made, mention that
$endcan add it to the decision log; do not expand a checkpoint into a full close workflow. -
Report the receipt path and changed files. Do not edit lifecycle state directly, commit, push, or touch files only to refresh timestamps.
04 同仓库更多 Skills
avoid-ai-writing
Audit and rewrite content to remove AI writing patterns ("AI-isms"). Use this skill when asked to "remove AI-isms," "clean up AI writing," "edit writing for AI patterns," "audit writing for AI tells," or "make this sound less like AI." Pairs with writing-voice for full voice alignment.
contextos-workspace
Run Context OS continuity and lifecycle workflows in a user-selected Context OS workspace. Use when asked to inspect, set up, update, or close a Context OS session.
social-post
Write a platform-native social media post for a music release, show announcement, or general artist content. Load artist-context.md and promotion-strategy.md before running. Use when asked to "write a caption," "write a post for [platform]," or "help me announce [thing]."
press-outreach
Draft a cold pitch email to a music blog, playlist curator, or press contact. Load artist-context.md and promotion-strategy.md before running. Use when asked to "pitch [outlet]," "draft an email to [curator/blog]," or "write a press pitch."
skill-creator
Generate a new skill from a plain-language description — decides invocation control, arguments, and context cost, then scaffolds, validates, and tests it
update
Save a concise checkpoint through the canonical workspace update workflow. Use only when the user explicitly invokes update.