Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Capture learnings from the current session into the project-rules file (AGENTS.md, CLAUDE.md, or local override) so future sessions benefit. Use when the user says "revise the rules", "update AGENTS.md / CLAUDE.md with what we just learned", "save this to project memory", "remember this for next time", or at the end of a productive session when valuable context has emerged that is not yet documented. This complements agents-md-improver — improver audits, while this one captures.
.claude/skills/waybarrios-agents-md-revise/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 718% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 205% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 56% | 0% |
| case-12 | ✓→✗ | ▼ Worse | 120% | 0% |
Review the current session for learnings about working in this codebase, then update the project-rules file with context that would help future sessions be more effective.
Read ../agents-md-improver/references/project-rule-resolution.md, resolved relative to this loaded SKILL.md directory and not the consuming project's CWD or working directory, before target selection. Resolve the actual target client and phase instead of assuming that co-located files behave alike across OpenCode and Claude Code.
[REDACTED] and retain only the minimum location, type, and remediation evidence.Look back over the session and identify what context was missing that would have helped the agent work more effectively. Examples:
Be selective. Only capture things that:
Read the matrix before selecting a target. Use native file search or glob when available; otherwise recursively enumerate without silent result caps. Determine all of the following before proposing a write:
@ imports relative to each containing file. Track canonical visited paths for cycle detection, stop at the verified maximum of four import hops, and, before reading an import outside the project, obtain explicit user approval.Decide where each addition belongs:
AGENTS.md plus a Claude CLAUDE.md containing @AGENTS.md when both clients are required. Claude-only additions may follow the import.CLAUDE.local.md is Claude-native, but not OpenCode-native..agents.local.md and .claude.local.md are unsupported invented names. Warn about them and do not recommend them as targets.
If no effective file exists, propose the smallest supported layout for the identified clients and scope. Report any shadowed or omitted candidate with the client/version and startup or lazy phase that excludes it.
Keep it concise. The rules file is part of every prompt, so brevity matters. One line per concept when possible.
Format: <command or pattern> — <brief description>
Avoid:
Prefer:
pnpm i --frozen-lockfile after pulling")dev script binds to port 3000 — kill any other process on that port first")Never put secret values in any prompt-loaded file, including local, global, imported, configured, managed, remote, or gitignored rules. A local or gitignored rule file is not a secret store. Replace any encountered value with [REDACTED] and identify only its location and type.
For each addition, show the user the diff before applying. Format:
`markdown### Update: ./AGENTS.md **Why:** [one-line reason this matters for future sessions]
+ the addition — keep it brief]
If multiple additions go to the same file, group them under one header so the user can review the whole change in one view.
Ask the user explicitly: "Apply these changes?" Edit only files they approve.
Preserve the existing structure. Place additions in the most relevant section (e.g., a new build command goes under "Commands" if that section exists). If no obvious section fits, create one with a clear header.
If the user rejects an addition, do not retry it in the same session — they may have a reason. Move on.
agents-md-improver for the full maintenance loop: improver audits and identifies gaps; this one captures fresh session-specific learnings.Other measured skills in the registry, with their headline benchmark lift.