---
name: seal
description: Update Kompreni walkthroughs once the code they cover has been committed, or pushed. Rewrites a walkthrough written against uncommitted changes so it points at the commit its code landed in (dirty false, the real tip, no drift note), and adds GitHub permalinks once the commit is on the remote. Use after the code an uncommitted walkthrough covers has been committed, or after pushing, to add GitHub links. Edits only what its script edits.
argument-hint: "[walkthrough path]... [commit=<sha>]"
---
# Kompreni: seal walkthroughs to their commit
A walkthrough written before its code was committed has `dirty: true`, a drift note, and references that point at the working tree. Once the code is committed, this skill points the walkthrough at that commit. It finds the commit by content: each walkthrough records a hash of every file it covers (`kompreni.blobs`), and the script looks for the commit where every file has exactly those contents, so it works after a squash or rebase too.
`<explain>` below is the explain skill's folder: `${CLAUDE_PLUGIN_ROOT}/skills/explain` in a plugin install, otherwise the `explain` folder next to this skill's folder.
## Steps
1. Run the script. With no paths, seal every walkthrough in the repository:
```
python <explain>/scripts/seal.py seal --repo . --all
python <explain>/scripts/seal.py seal --repo . <walkthrough>... [--commit <sha>]
```
`commit=<sha>` becomes `--commit <sha>`. It is needed only for a walkthrough with no `kompreni.blobs` (written before fingerprints existed), and the reference check at that commit is then the only verification. `--dry-run` shows what would change.
2. For each walkthrough, report one line:
- **sealed** to `abc1234`;
- **links added** (the commit is on a remote GitHub branch), or already up to date;
- **waiting**: some files aren't committed yet. Name them;
- **not sealed, diverged**: a file was committed with different contents, so the code changed after the walkthrough was written. Name the files, and suggest `/kompreni:explain since=<the walkthrough's old tip>` or a new walkthrough for the difference. Don't force it.
- If the commit isn't pushed, say that running seal again after pushing adds the GitHub links.
3. For a sealed `.qmd` whose HTML sits next to it, outside a Quarto project, re-render it as the walkthrough skill's step 7.4 describes.
4. Never commit. The sealed file is an edit to a tracked file, or an untracked file: if the walkthrough was already committed, say that this edit needs a commit.
## Rules
- Edit only what the script edits. Never rewrite a walkthrough's prose by hand, and never use `--commit` to get past a "diverged" refusal.
- The script replaces the file only if `check_refs.py` passes at the commit; if it fails, the file is untouched. Report the errors it prints.
— ‹guest · 2026-12-02› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.