Agent skill
bonsai
Maintain and groom config files in the current repository. Use when "bonsai", "tidy up", "prune configs", "clean up", "spring cleaning", or reviewing config health. Not for code quality review — use code-critic for that.
Install this agent skill to your Project
npx add-skill https://github.com/hairihou/dotfiles/tree/main/src/.config/claude/skills/bonsai
SKILL.md
Bonsai
Inspect config files in the current repository and perform focused maintenance. Each run, pick one or more items from the checklist below — do not try to do everything at once.
Scope: the current working directory (repository) only. Do not inspect home directory dotfiles, shell setup, or global tool configs unless the user explicitly asks.
First, explore the repository structure with Glob and Read to understand what files exist and how they are organized.
Checklist
Pick items relevant to the current state. Report findings, then propose changes for user approval.
Consistency
- Color theme alignment across terminal, multiplexer, and editor configs
- Git config: deprecated options or missing recommended settings
- Keybinding conflicts or gaps across tools
- Shell options: verify flags are still appropriate
Hygiene
- Commented-out code that should be removed or restored
- File ordering per project conventions
- TODO/FIXME/HACK comments
- Unnecessary blank lines or inconsistent formatting
Pruning
- Dead or broken symlinks
- Package lists: detect duplicates or entries no longer needed
- Scripts that duplicate existing tools or each other
- Unused aliases, functions, or shell options
- Version manager tools no longer used
Upgrades
- Config format changes from tool updates (breaking changes in new versions)
- Package lists: renamed or deprecated packages
- Tool versions: flag significantly outdated entries
Guidelines
- Use the Read tool for every file individually. Bulk reading causes misreads.
- Read before suggesting. Never propose changes to files you have not read.
- Scope changes narrowly. A bonsai session should produce a small, reviewable diff.
- Explain the "why" for each change, not just the "what".
- Do not auto-commit. Present findings and proposed changes for user approval.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
retrospect
Guided personal reflection that separates fact, interpretation, and emotion through structured inquiry. Use when "something feels off", "need to process this", "had a conflict", or decisions feel unclear. Not for technical decision analysis — use devils-advocate for that.
1on1-prep
Prepare for 1on1 meetings using a Psychological Safety x Responsibility framework. Use when preparing for a 1on1, noticing behavioral changes, or planning a difficult conversation with a report.
npm-update-report
Dependency update workflow with vulnerability assessment and verification. Use when asked to check outdated packages, bump dependencies, run audit, do periodic dependency maintenance, or when security vulnerabilities are reported.
session-insights
Analyze the current conversation for inefficiencies and improvement opportunities. Use when "how did this session go", "what went wrong", "what could I have done better", or reviewing session quality. Not for personal reflection — use retrospect. Not for logging work — use diary.
pr
Create or update a GitHub pull request. Use when asked to create a PR, submit for review, or push changes as a PR. Not for code review comments — use conventional-comments for that.
conventional-comments
Format code review comments using Conventional Comments labels and decorations. Use when writing inline review comments on a PR diff. Not for creating PRs — use pr for that. Not for complexity analysis — use code-critic for that.
Didn't find tool you were looking for?