preen-enhancements
Misc Preen Enhancements
Use this skill when you need to evolve the preen ecosystem itself, not just run a preen pass.
Goals
- Keep Claude/Codex preen docs semantically aligned
- Prevent command-prefix drift (
/commandvs$command) - Manage categories from one machine-readable source
- Ensure guardrails enforce parity in pre-push and CI
Canonical Files
scripts/preen/registry.json- Source of truth for preen categoriesscripts/preen/generatePreenDocs.sh- Generates top-level preen docsscripts/checkPreenEcosystem.sh- Semantic parity + lint checks.claude/commands/preen.md- Generated target.codex/skills/preen/SKILL.md- Generated target
Workflow
- Update
scripts/preen/registry.jsonfor category additions/removals/ordering. - Regenerate top-level docs:
./scripts/preen/generatePreenDocs.sh
- Run strict ecosystem checks:
./scripts/checkPreenEcosystem.sh --strict
- Resolve any parity, command-style, or generation drift findings.
- Run impacted quality/tests for touched code paths.
- Commit with a focused message and proceed through the normal PR + merge queue flow.
Adding a New Preen Category
When adding a category (for example preen-foo):
- Add registry entry in
scripts/preen/registry.json. - Create paired docs:
.claude/commands/preen-foo.md.codex/skills/preen-foo/SKILL.md
- Ensure Codex uses
/commit-and-pushand/enter-merge-queue. - Regenerate docs and rerun strict checks.
Guardrails
- Never hand-edit generated top-level preen docs without rerunning the generator.
- Keep category scope focused: one meaningful fix per run by default.
- Prefer
rg-based discovery commands for speed and consistency. - Avoid introducing behavior changes when the intent is hygiene hardening.
More from a2f0/tearleads
commit-and-push
Commit staged changes and push to the remote using conventional commits with GPG signing. Use when you need to commit and push work, create a PR if missing, and wait for Gemini review before addressing feedback.
33rebase
Rebase the current branch onto the latest main branch, resolving conflicts by preferring upstream changes.
2preen
Stateful preening across all preen skills. Lands focused improvements, opens a PR, and enters merge queue.
1issue-slice-autopilot
Run a long-lived, multi-PR issue completion loop for complex issues by selecting the largest non-overlapping sane slice, implementing it, and then invoking $commit-and-push followed by $enter-merge-queue for each slice until the issue is complete.
1serena-bootstrap
Serena Bootstrap
1preen-knip
Proactively reduce knip findings by removing unused dependencies, exports, and files in coherent, low-risk slices. Use when maintaining code quality or during slack time.
1