agents/skills/learn/SKILL.md
Capture learnings from mistakes and update agent context to prevent future issues
npx skillsauth add pkey/dotfiles learnInstall 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.
Extract learnings from agent mistakes or misunderstandings and propose updates to the appropriate context file. This skill can be invoked by the user or automatically by the agent when it recognizes an error.
The issue can come from:
Evaluate the scope of the learning to determine where it belongs:
| Scope | Target File | When to Use |
|-------|-------------|-------------|
| Skill-specific | $DOTFILES/agents/skills/<skill>/SKILL.md | Issue relates to a specific skill's behavior |
| Project-specific | ./AGENTS.md (local to current project) | Convention or pattern specific to this codebase |
| Universal | $DOTFILES/agents/AGENTS.md | General preference that applies everywhere |
| Permissions | $DOTFILES/agents/permissions.json | Commands that should be in allow/deny/ask lists |
1. Is this about a specific skill? → Update that skill's SKILL.md
2. Is this about command permissions? → Update permissions.json
3. Is this specific to the current project? → Update local AGENTS.md
4. Otherwise → Update global AGENTS.md
Present the proposed change in this format:
## Issue Identified
[Brief description of what went wrong]
## Proposed Learning
[The guideline/rule to add, written clearly and concisely]
## Target
- **File:** [path to file]
- **Reason:** [why this location was chosen]
## Proposed Change
[Show the exact addition or modification as a diff or code block]
Wait for user confirmation before applying the change.
Issue: Agent used grep instead of rg
## Issue Identified
Used grep instead of ripgrep (rg) for searching.
## Proposed Learning
- tools: Always use rg instead of grep
## Target
- **File:** $DOTFILES/agents/AGENTS.md
- **Reason:** This is a universal tool preference
## Proposed Change
Add under tools section:
- Always use rg instead of grep
Issue: Agent asked for permission to run cargo build every time
## Issue Identified
Agent repeatedly asked for permission to run cargo build.
## Proposed Learning
Add cargo commands to allow list.
## Target
- **File:** $DOTFILES/agents/permissions.json
- **Reason:** This is about command permissions
## Proposed Change
Add to "allow" array:
"Bash(cargo:*)"
Issue: Agent created components in wrong directory for this project
## Issue Identified
Created React components in src/ instead of src/components/.
## Proposed Learning
- All React components go in src/components/
## Target
- **File:** ./AGENTS.md (local)
- **Reason:** This is specific to this project's structure
## Proposed Change
Add under Architecture section:
- React components: Always place in src/components/
tools
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.