agents/skills/optimize/SKILL.md
Analyze the current conversation to identify new skills, scripts, aliases, or rules that would speed up similar work next time
npx skillsauth add pkey/dotfiles optimizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review the entire current conversation to find friction, repetition, and missing automation. Propose concrete artifacts that would make the next similar session faster.
Scan the full conversation for:
For each finding, propose one of these artifact types:
| Artifact | Location | When |
|----------|----------|------|
| Skill | $DOTFILES/agents/skills/<name>/SKILL.md | Multi-step workflow the agent should know how to do |
| Alias | $DOTFILES/aliases.sh | One-liner command shortcut |
| Shell function | $DOTFILES/tools/<name>.sh | Reusable function (auto-sourced by .zshrc) |
| Bin script | $DOTFILES/bin/<name> | Standalone executable |
| Agent rule | $DOTFILES/agents/AGENTS.md or project AGENTS.md | Context/preference the agent was missing |
| Package | $DOTFILES/packages.yaml | CLI tool that should be installed |
Skills follow this directory structure (all subdirectories are optional):
skills/<name>/
├── SKILL.md
├── scripts/ # Executable scripts bundled with the skill
├── references/ # Supporting documentation
└── assets/ # Templates, configs, etc.
When a proposal includes both a skill update and a supporting script, the script goes in the skill's scripts/ directory — not in $DOTFILES/bin/.
Present each proposal as:
### <N>. <artifact type>: <name>
**Problem:** What went wrong or was slow in this conversation.
**Proposal:** What to create and what it does.
**Location:** Target file path.
**Implementation:**
<code block with the full artifact content>
After listing all proposals, ask:
$DOTFILES/aliases.sh, $DOTFILES/tools/, and $DOTFILES/agents/skills/ firsttools
Use when working with git worktrees in pkey's repos — creating a branch, switching between worktrees, removing one, or starting a stacked PR with Graphite. The user has shell helpers (gwt, gwtn, gwtc, gwtl, gwtm, gwtrm, gwtrmf, gwtp) sourced from ~/dotfiles/tools/git-worktree.sh that enforce a consistent layout under ~/worktrees/<repo>/<branch>. Prefer these over raw `git worktree` commands so layout and main-worktree protection stay consistent.
tools
Reference for Helix editor keybindings, commands, and configuration. Use when the user asks about Helix shortcuts, how to do X in Helix, Helix config options, or how to set up language servers/themes in Helix.
development
Google Sheets: Read and write spreadsheets.
development
Google Sheets: Read values from a spreadsheet.