Pending Change Triage
ASecurityTurn uncommitted repository changes into maintained knowledge before they are committed — decide what each working set establishes, fold it into the right subject's account, keep only artifacts that still earn a place, and plan the commits. Use when the working tree holds pending files or working sets from earlier sessions or agents, before a cleanup or commit, or when asked which changes to keep, commit, consolidate, or discard. Routes maintained-knowledge edits to knowledge-change-review.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 4, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add 99ways-io/minetique --skill pending-change-triage --agent claude-codeAre you the author of Pending Change Triage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/99ways-io-pending-change-triage)---
name: pending-change-triage
description: Turn uncommitted repository changes into maintained knowledge before they are committed — decide what each working set establishes, fold it into the right subject's account, keep only artifacts that still earn a place, and plan the commits. Use when the working tree holds pending files or working sets from earlier sessions or agents, before a cleanup or commit, or when asked which changes to keep, commit, consolidate, or discard. Routes maintained-knowledge edits to knowledge-change-review.
---
# Pending Change Triage
Pending work is material. Before it is committed, decide what it establishes, which subject's account that belongs in, and whether any artifact still earns a place once the account carries it. [Knowledge and artifacts](../../workflows.md#knowledge-and-artifacts) owns the test; this skill applies it to a working tree.
Read the material before deciding. Choices made from filenames, sizes, or flags keep residue and lose insight.
## 1. Inventory and safety
From the repository root:
```bash
python3 skills/pending-change-triage/scripts/inventory.py
python3 scripts/contributor.py audit
```
`inventory.py` groups pending paths by nearest `README.md` and flags literal credentials, capability URLs, email addresses, large files, and byte-identical copies of pending or tracked files. `contributor.py audit` maps disk and Git contributor ownership, prior file owners, touched areas, and credibility signals in one pass. Flags are leads; an unflagged file can still hold sensitive data, especially images.
Resolve safety before anything is committed, whatever the material's value: credentials and capability URLs (a credential already committed or pushed needs rotation — tell the user), personal data beyond what the evidence needs, and entity material outside its entity boundary.
Resolve attribution with the same care. Each claim, decision, preference, and correction names its actual speaker, resolved against `scripts/contributors.json`. Doctrine edits wait for the owner's approval. Claims attributed to the owner, text in the owner's voice, and changes to the owner's page that come from a session whose `python3 scripts/contributor.py whoami` reports `owner: no` stay proposals until the owner confirms them.
Pending work is wider than this working tree. Before a triage, a conclusion, or a handoff, also list linked worktrees (`git worktree list`), other checkouts of the vault on the same host (another OS user's clone, a root-owned copy), and pull requests that are open or were closed without merging (`gh pr list --state all`). When pull requests are squash-merged, `git branch -r --no-merged origin/main` also lists branches whose content already reached `main`; it cannot find stranded work by itself. Typical strays: artifacts recovered in a pull request that was closed unmerged, a pushed branch that never became a pull request, a handoff present only in a second checkout, and records waiting in an open pull request.
A checkout can have several live writers: concurrent Codex and Claude sessions, possibly under different OS users, can grow the pending set while a triage runs. Before triaging or committing there, look for live writers (files modified in the last minutes, running `codex` or `claude` processes) and leave a live session's files alone. Never `git stash -u` in a shared checkout: it lifts the other session's in-flight files out of its tree.
## 2. Map material to subjects
Working sets usually follow the episode that produced them (a fix, a QA pass, a launch day). Knowledge belongs to the subject they are about: a system, page, offer, experiment, or entity. For each subject, find its existing canonical account. Several working sets often describe one subject; one working set can touch several.
## 3. Synthesize with the accounts
Synthesize the material with the existing account. Update that account only when the synthesis changes a useful claim, boundary, decision, or open question; otherwise preserve it. When updating, preserve current state, decisions and their reasons (in the decider's words where authority matters), constraints, failure modes, verification status at its evidence level, and open items. Merge per-episode notes into the account; chronology compresses to decisions and lessons that change future action. Apply [knowledge-change-review](../knowledge-change-review/SKILL.md) to substantive changes of maintained knowledge, and [post-project-learning](../post-project-learning/SKILL.md) when a lesson reaches beyond the subject.
## 4. Decide each artifact after synthesis
Ask what a future agent would need from the artifact that the updated account and the system of record cannot give.
- **Absorbed** — remove it.
- **Authoritative home elsewhere** (code repository or PR, deployed system and its backups, CMS revisions, vendor objects, published packages, stable downloads) — replace with a reference precise enough to retrieve it.
- **Executable** — keep one current copy when it is the source of a running system with no other home or a tool someone will run again; previous versions live in Git or the system's backups. A one-shot script bound to a past state becomes a sentence in the account; a recurring step becomes a runbook section or skill.
- **Evidence** — keep it only when it is unrecoverable and a future decision may need to re-examine it: a person's own words establishing a decision, a primary source rich enough for questions not yet asked, the basis of a contested or high-stakes claim. Cite it from the claims that rest on it.
- **Images** — remove after recording what they showed, unless the visual itself is the knowledge and nothing live shows it. Images over about 1 MB (the inventory's `large` flag) leave the repository by default: reference them at an external archive or remove them, unless the owner has set another threshold.
- **Unfinished work** — stays resumable in its subject with its status.
Identical copies can carry a fact: record what the identity proves (a server snapshot equal to the repository copy verifies the mirror). A pair whose names claim different states signals a capture error; the evidence does not show what it claims.
Deleting an untracked file is permanent. Remove only absorbed material, and confirm the exact list with the user unless they have already authorized this kind of removal.
## 5. Verify and commit
Check that links in edited pages resolve, run `python3 scripts/validate_structure.py`, and run `python3 scripts/contributor.py audit --range origin/main..HEAD` before opening or merging a pull request. Commit by contributor (`git $(python3 scripts/contributor.py author-args --contributor <id>) commit ...`) and subject; never mix entities in one commit. Follow the repository's branch and PR practice and the user's Git authorization.
## Output
Per subject: what the account now says that it did not, artifacts kept with the reason each earns its place, and removals grouped by reason. Then blockers and a commit plan.
Ask the user only what the material cannot settle: a missing fact, an unresolved decision, or a question of authority. Housekeeping choices follow from the test.
Files in this skill
- SKILL.md
- agents/openai.yaml
- scripts/inventory.py
- scripts/test_inventory.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.