matthewwong525/WongStack / .agents/plugins/loop/skills/save
save
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.8 KB |
| references/checkpoint-evidence.md | markdown | 2.0 KB |
| references/git-gate.md | markdown | 3.0 KB |
| references/named-secrets.md | markdown | 2.4 KB |
| references/new-plan.md | markdown | 1.2 KB |
| references/preconditions.md | markdown | 901 B |
| scripts/change-candidates.sh | script | 227 B |
| scripts/checkpoint-evidence.mjs | script | 7.0 KB |
| scripts/checkpoint.mjs | script | 26.4 KB |
| scripts/delivery-route.mjs | script | 2.0 KB |
| scripts/preview-url.shexecutable | script | 4.5 KB |
| scripts/render-pr-body.mjs | script | 5.0 KB |
| scripts/saved-revision.mjs | script | 7.6 KB |
| scripts/wait-for-checks.shexecutable | script | 8.9 KB |
references/named-secrets.md
View on GitHub# Preserve explicitly named secrets
Save keeps every credential the user **explicitly supplied or rotated under a known variable name** this session. Never pattern-match token-shaped strings, guess a name for an opaque value, or treat every pasted string as a credential. If an earlier producer, such as setup, already saved one, verify that durable copy instead of making another. [The secrets convention](https://github.com/matthewwong525/WongStack/blob/main/wiki/development/secrets.md) owns the files. For each named secret:
1. Resolve `PRIMARY_ROOT` with [the shared lookup](https://github.com/matthewwong525/WongStack/blob/main/wiki/development/secrets.md#the-two-files). A non-zero exit stops the save before writing; never fall back to a linked checkout.
2. Pick the live file holding the variable's role — the root `.env` for credentials tools use, the stack's runtime file (`app/.dev.vars`) for secrets the app reads — and its declared example (`.env.example` by default). Prove from the primary worktree that the live file is ignored. If the committed ignore rule exists only on the active branch, the repository-common `info/exclude` may take the same wildcard/negation pair as immediate protection; re-check, and stop if still not ignored.
3. No live file → create it from the **active branch's** example. Replace only the exact `KEY=` line or append that one line; never regenerate the file or print the value.
4. In a linked worktree, [`worktree-secrets.mjs`](https://github.com/matthewwong525/WongStack/blob/main/.agents/loop/worktree-secrets.mjs) `status` lists a seeded [branch copy](https://github.com/matthewwong525/WongStack/blob/main/wiki/development/secrets.md#worktrees-and-branch-copies) under `seeded`: give it the same one-line edit. Preserve any other, [unseeded](https://github.com/matthewwong525/WongStack/blob/main/wiki/development/secrets.md#unseeded-linked-worktree-copies) live file and report only that it needs reconciling. Never print or compare values, delete a file, or bulk-merge.
5. A new variable adds a blank `KEY=` to the active branch's example, saying what it is and where to get it; a value-only rotation makes no example diff.
Then return to the main procedure. Handled values stay only in working memory, for its exclusion check, which still runs; never on a durable surface ([credential exclusion](../SKILL.md#1-protect-credentials-and-select-the-route)).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |