Capture session learnings into AGENTS.md or CLAUDE.md. Triggers on /revise-agents-md and /revise-claude-md.
npx claudepluginhub pgoell/pgoell-claude-tools --plugin agent-system-managementThis skill uses the workspace's default tool permissions.
Review the current session for context that was missing and would have helped the host agent. Propose targeted additions to the right agent-instruction file by scope.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
Review the current session for context that was missing and would have helped the host agent. Propose targeted additions to the right agent-instruction file by scope.
| Capability | Claude Code | Codex |
|---|---|---|
| Find files | Glob / Grep | shell (find, grep) |
| Read a file | Read | shell (cat) |
| Edit a file | Edit | apply_patch / shell heredoc |
| User confirmation | AskUserQuestion | ask_user / built-in approval prompt |
| Shell commands | Bash | shell |
The skill body refers to actions abstractly. The host agent maps to its own tool inventory.
What context was missing during this session that would have helped the host agent?
Find every agent-instruction file in scope (project + user-global), dedupe symlinked pairs via realpath:
{
find . \( \
-name "AGENTS.md" \
-o -name "AGENTS.local.md" \
-o -name "CLAUDE.md" \
-o -name "CLAUDE.local.md" \
-o -name ".claude.md" \
-o -name ".claude.local.md" \
\) -not -path '*/node_modules/*' -not -path '*/.git/*' 2>/dev/null
ls ~/.claude/CLAUDE.md ~/.codex/AGENTS.md 2>/dev/null
} | xargs -I{} realpath {} | sort -u
When two paths share the same realpath, treat them as one logical file. Edits target the canonical realpath.
Decide where each addition belongs before drafting it:
| Scope | Target file | Examples |
|---|---|---|
| Project-shared | AGENTS.md / CLAUDE.md (canonical) | Build commands, this codebase's quirks, team-wide conventions |
| Project-local | AGENTS.local.md / CLAUDE.local.md | Your personal overrides for this project, not for the team |
| User-global | ~/.claude/CLAUDE.md / ~/.codex/AGENTS.md | Cross-project rules: writing style, tool preferences, system-wide preferences |
If a learning is generic enough to apply to other projects, route it to the user-global file rather than this project's AGENTS.md. Avoid duplication: if a rule already exists in the user-global file, don't restate it project-locally.
Keep it concise, one line per concept. Agent-instruction files are part of the prompt, so brevity matters.
Format: <command or pattern>, <brief description>
Avoid:
For each addition:
### Update: ./AGENTS.md
**Why:** [one-line reason]
```diff
+ [the addition; keep it brief]
```
Group by target file. Show all proposed edits to one file together.
Ask if the user wants to apply the changes. Only edit files they approve. Use the right edit tool per Platform Adaptation. Edit the canonical realpath target only; symlinks update automatically.