The skill guides an agent to inspect session and repository evidence, rank potential improvements, and propose changes to tools, checks, skills, or documentation. It requires user approval before applying changes and includes learning loops for corrections, skill drift, and durable memory-store patterns.
The canonical home for this skill is retro in jellydn/my-ai-tools
Inspect a real coding session and propose improvements to the agent's environment, not the product code. The goal is to make the next run easier to navigate and harder to get wrong.
This is human-in-the-loop. Present findings first; do not edit steering files, standards, hooks, CI, or skills until the user chooses which findings to apply.
Use when:
The default target is the current session. If the user names a count or date range, inspect that exact range. If session history is unavailable, say so and review the repository evidence only.
Read the real sources before judging:
AGENTS.md, CLAUDE.md, GLOSSARY.md, GLOSSARY-MAP.md, and repository-local steering files.CODING_STANDARDS.md or equivalent review guidance.package.json, pyproject.toml, Makefile, task runner, hooks, and CI workflows.Do not infer a recurring mistake from one suspicious line. Tie every finding to concrete evidence from the session or repository.
Rank findings by severity and expected leverage. For each, record:
Finding: what happened
Evidence: session message, command, file, or diff
Prevention: the smallest environment change that would stop it
Owner: repo check | agent skill | steering file | tool | documentation
Cost: maintenance and false-positive riskInspect these categories:
Treat a human correction as training data for the workflow, not as a one-off preference:
Do not add vague rules such as “make it better” or blindly encode every edit as a universal instruction. Keep only lessons that held up on real work. If a lesson is mechanical and stable, prefer a linter, test, hook, or CI check over more prose. Keep shared rules in the main skill and context-specific rules in a linked reference or style file so the skill does not grow indiscriminately.
Could the agent have found the right file, command, dependency, or domain term sooner? Prefer a short navigation pointer or a GLOSSARY.md entry over a large instruction block.
Could a deterministic test, linter, typecheck, pre-commit hook, or CI job catch the mistake? Read the existing check commands first. If a check exists but is not wired or is silently broken, fix the wiring rather than inventing another check.
Mechanical mistakes belong in automation: banned APIs, required file locations, schema shape, generated-file drift, import rules, or formatting. A sentence saying “remember to do this” is not a guardrail.
Reserve CODING_STANDARDS.md for judgement calls that automation cannot decide: cross-file consistency, design fit, naming in context, and review expectations. Put reviewer-facing rules there, not implementation trivia.
Remove no-op advice and move detailed procedures into skills or docs. Keep AGENTS.md and equivalent files short, navigational, and high-signal. Check for stale names such as CONTEXT.md; this repository uses GLOSSARY.md when that convention applies.
Look for repeated broad searches, redundant reads, missing filters, or expensive calls that a narrow command could replace. Recommend a tool or script change only when it reduces repeated cost without hiding important output.
Identify information the agent needed but could not access: logs, service status, readonly API data, fixtures, schemas, or architecture notes. Prefer safe readonly access and concise pointers.
When an installed or existing skill repeatedly needs correction, compare the same input across the old and revised versions. Treat the difference as evidence of skill drift: the user's standard moved, the skill was underspecified, or the rule was too literal. Record the smallest durable change and its verification result.
A retrospective that only looks at one session forgets on the next one. Also mine the durable stores, so repeated lessons become repository changes instead of re-learned memories:
~/.ai-tools/MEMORY.md: qmd collections for project learnings (qmd search), agentmemory for session findings (memory_recall), and ~/.ai-tools/MEMORY.md / agent-memory.md themselves.configs/token-efficiency.md, configs/experiment-workspaces.md), or a skill change.configs/amp/plugins/my-ai-tools-skills/skills/<name>/), so the
installed plugin and the skills source stay identical; verify with
diff -qr before pushing. Run
./scripts/sync-token-efficiency.sh after editing canonical sections, and
./scripts/sync-token-efficiency.sh --check before pushing.This keeps the loop human-approved (the Output rules still apply) but gives it a destination: memory stores hold observations, the repository holds rules.
Present the result in this order:
For each candidate, include the exact target path and a proposed patch shape. Do not silently apply it. When the user approves, make one focused change at a time, run the relevant checks, and report the result.
AGENTS.md into a procedural manual.jellydn/my-ai-tools
1524f4a
qmdqmd searchdiffsync-token-efficiency.shmemory_recallCanonical home
since Nov 30, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.