majiayu000/spellbook-codex-retrospective
Use when you want Codex to review its own recent history (last N days or specific period) and improve its behavior. Produces minimal, high-signal updates to AGENTS.md and tiny reusable skills. The goal is long-term fluency — Codex gradually becomes better at your specific style, constraints, and workflows.
npx skills add https://github.com/majiayu000/spellbook --skill codex-retrospective
A structured self-improvement loop for Codex.
This skill turns Codex from a one-off collaborator into a system that gets meaningfully better at working with you over time by systematically eating its own usage history.
Most people improve their agent usage by manually maintaining AGENTS.md or skills when they notice problems. This skill makes that process deliberate, regular, and high-leverage.
It is directly inspired by strong practices from heavy users (especially Greg Brockman's emphasis on updating the "constitution" from real failures and friction), but executed as a repeatable arsenal-style workflow.
Minimal effective change, grounded in evidence from actual history.
Every output must be:
codex-fluent reports that Codex is constantly re-asking for the same context or preferencesYou specify the time window or focus area:
Before proposing any AGENTS.md update or tiny skill, Codex must build a small
evidence inventory:
Every proposed update must map back to at least one concrete evidence handle.
Codex is instructed to look for:
The skill forces Codex to produce output in this order:
You review. The skill then helps you apply the minimal changes cleanly (never blindly overwriting large sections of AGENTS.md).
These two skills are designed to be used together:
codex-retrospective finds behavioral and knowledge improvements (better defaults, new rules, extracted skills).codex-fluent finds state and context hygiene improvements (session bloat, missing handoffs, archive opportunities).A good monthly ritual for serious users:
codex-retrospective on the last 30 days.codex-fluent diagnosis.unusually high impact. Prefer "no change" over a weak constitution update.
date range, file, PR, or repeated correction pattern that can be checked.
paragraphs, it probably belongs in a tiny skill or a project doc instead.
but it must not silently rewrite AGENTS.md or existing skills.
references/retrospective-prompt.md — The core prompt template used to drive Codex's self-analysisreferences/agents-md-update-rules.md — Strict rules for what kind of changes are acceptablereferences/minimal-skill-criteria.md — What qualifies as a "tiny useful skill" worth extractingreferences/examples/ — Real (sanitized) retrospective outputs and the resulting AGENTS.md diffsAfter 4–8 weeks of regular use:
Start with a focused 7- or 14-day retrospective on a project where you've felt the most friction recently. The pattern will become natural quickly.
Take majiayu000/spellbook-codex-retrospective from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.