th-tooling
Use for hygiene of this machine's AI-tooling harness — the ~/.dotfiles repo, the ai-bootstrap skills tree, and the installed tool homes (~/.claude, ~/.codex, ~/.gemini): auditing real skill usage from transcripts, archiving unused skills, reviewing dotfiles for conflicting aliases/config, refreshing snapshot state (skill symlinks, submodules, mirrored assets), transcript disk retention, compacting agent memory (AGENTS.md notes, bd memories), and auditing MCP/permission/hook config against actual use. Route to exactly one subskill per task. Triggers: "audit my skills", "which skills are unused", "review my dotfiles", "clean up my zshrc", "refresh snapshots", "old transcripts eating disk", "compact my notes to self", "audit my MCP servers", "harness hygiene".
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- th-tooling
- metadata
- { "owner": "tze", "status": "active", "authors": [ "tze", "Claude Fable 5" ], "last_reviewed": "2026-06-12" }
- description
- Use for hygiene of this machine's AI-tooling harness — the ~/.dotfiles repo, the ai-bootstrap skills tree, and the installed tool homes (~/.claude, ~/.codex, ~/.gemini): auditing real skill usage from transcripts, archiving unused skills, reviewing dotfiles for conflicting aliases/config, refreshing snapshot state (skill symlinks, submodules, mirrored assets), transcript disk retention, compacting agent memory (AGENTS.md notes, bd memories), and auditing MCP/permission/hook config against actual use. Route to exactly one subskill per task. Triggers: "audit my skills", "which skills are unused", "review my dotfiles", "clean up my zshrc", "refresh snapshots", "old transcripts eating disk", "compact my notes to self", "audit my MCP servers", "harness hygiene".
- compatibility
- audit-skill-hygiene requires uv (Python 3.9+) and reads local Claude Code / Codex transcripts; all subskills assume the ~/.dotfiles + ai-bootstrap layout.
02 资源文件 1
- 参考文档agents/openai.yaml271 B
03 SKILL.md 正文
TH Tooling
Superskill router for keeping the AI-tooling harness clean as cruft
accumulates over months of use. Three subskills live under subskills/,
each a complete skill package. They are not in the global catalog —
discover them lazily and load at most one per task.
/th-engineering governs the quality of a change; /th-projects governs a
project's knowledge architecture; this superskill governs the harness
itself: which skills are installed, what the dotfiles configure, and
whether snapshot state (symlinks, submodules, mirrors) is fresh.
Discover subskills
PKG="$(dirname "<absolute-path-to-this-SKILL.md>")"
find "$PKG/subskills" -maxdepth 2 -name SKILL.md
rg -n "^name:|^description:" "$PKG"/subskills/*/SKILL.md
Routing table
| Task intent | Subskill | Typical trigger |
|---|---|---|
| Measure real skill usage from Claude Code / Codex transcripts; recommend archiving non-new skills with no real usage in the window. | subskills/audit-skill-hygiene/SKILL.md | "audit my skills", "which skills are unused", "frontmatter is bloating my context" |
| Review dotfiles (rc files, aliases, env, tool config) for conflicts, dead config, and best practices — without touching secret files. | subskills/dotfiles-review/SKILL.md | "review my dotfiles", "clean up my zshrc", "are my aliases conflicting" |
| Re-run every snapshot/mirror flow so installed state matches source: skill symlinks, git submodules, plugin updates. Also hosts the read-only harness doctor (all verify checks, no refresh). | subskills/refresh-snapshots/SKILL.md | "refresh snapshots", "update submodules", "relink skills", "is my harness healthy" |
| Disk retention for session transcripts and tool logs: inventory, age-tiered compress/delete policy, audit-window trade-off. | subskills/transcript-retention/SKILL.md | "transcripts eating disk", "clean up old sessions" |
| Compact append-only agent memory: AGENTS.md notes-to-self, bd memories — dedupe, merge superseded, retire orphans, keep guardrails. | subskills/memory-hygiene/SKILL.md | "AGENTS.md is huge", "compact my notes", "stale memories" |
| Audit non-skill context surfaces: MCP servers, permission allowlists, hooks — configured vs. actually used in transcripts. | subskills/config-surface-audit/SKILL.md | "audit my MCP servers", "stale permissions", "config bloat" |
| Hand the user a script to run themselves when a step needs sudo, a TTY, or is otherwise blocked in the agent's sandbox; read results back from disk instead of paste-back. | subskills/user-run-scripts/SKILL.md | "I need sudo for this", "this needs your password", "run this yourself" |
Routing rules
- Measure vs. act: "what is unused / what should go" → audit-skill-hygiene.
Actually moving skills to
skills/archive/is part of that subskill's output contract; the move itself needs no other subskill. - Config content vs. installed state: questions about what the dotfiles say (aliases, exports, rc files) → dotfiles-review; questions about whether what's installed matches the repo (links, submodules, mirrors) → refresh-snapshots.
- Full hygiene pass: run all three as parallel subagents, each given the
absolute path to its
subskills/<name>/SKILL.md, the scope, and an output contract of findings + proposed commands. Synthesize before acting. - Fallback: harness-adjacent but no row fits (e.g. authoring a new skill
→
/th-engineeringskill-standards; bootstrap.sh logic changes → plain engineering work). Do not load a subskill to browse. - user-run-scripts is not harness-specific: unlike the other five subskills, it applies to any task, in any project, where a step is blocked in the agent's own sandbox (sudo, TTY, other manual steps). It lives here for lack of a better home in this repo's skill tree, not because it audits or cleans this machine's AI-tooling harness.
Shared invariants (all subskills)
- Recommendations over silent action: archive moves, dotfile edits, and submodule advances are proposed with evidence (counts, file:line, command output) before being applied.
- Never read or quote secret material: anything gitignored, under
credentials/, or into_source/machine_specific/to_source/passwordsis out of bounds (verify withgit check-ignorewhen unsure). - Non-destructive by default: prefer
skills/archive/moves and idempotent re-runs over deletion; everything must be restorable with onegit mvor one bootstrap re-run.
04 同仓库更多 Skills
progress-dashboard
Use when asked to "give this session a dashboard", "show loop progress", "monitor subagents", or "steer this run in a browser": a durable local workspace for current work, findings, agents, measured usage and feedback.
spec-concretization
Use when specs and implementation must be fully reconciled in both directions — code doing things no spec describes, specs requiring things the code doesn't do yet, or the two disagreeing — and the result must land as vision-gated spec updates plus a complete, backlog-deduplicated work plan. Also the read-only audit form ("does code match the spec?"), and re-runs that must not duplicate prior findings. Triggers: "reconcile spec vs implementation", "does code match the spec", "what's implemented but undocumented", "what's specified but not built", "the code is ahead of the spec", "plan the work to finish the spec", "concretize the specs".
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.