Source profileQuality 84/100

majiayu000/spellbook/skills/codex-retrospective/SKILL.md

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.

Source repository stars
249
Declared platforms
1
Static risk flags
0
Last source update
2026-08-02
Source checked
2026-08-04

Decision brief

What it does—and where it fits

A structured self-improvement loop for Codex.

Best for

  • Use when you want Codex to review its own recent history (last N days or specific period) and improve its behavior.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexDeclaredSource recordInstall path and trigger
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/majiayu000/spellbook --skill "skills/codex-retrospective"
Safe inspection promptEditorial

Inspect the Agent Skill "codex-retrospective" from https://github.com/majiayu000/spellbook/blob/01c5d88b0139a80ac38bfe7206ea99f28b0fc999/skills/codex-retrospective/SKILL.md at commit 01c5d88b0139a80ac38bfe7206ea99f28b0fc999. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    The Retrospective Process

    You specify the time window or focus area: - "Last 14 days" - "The three big auth + payments threads from last month" - "All sessions involving the new Go service"

    "Last 14 days""The three big auth + payments threads from last month""All sessions involving the new Go service"
  2. 02

    Why This Exists

    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.

    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.
  3. 03

    Core Principle

    Minimal effective change, grounded in evidence from actual history.

    The smallest possible useful addition or editBacked by specific patterns observed in recent sessionsDesigned to prevent repetition of the same friction
  4. 04

    When to Trigger

    After a painful or repetitive session ("Codex should have known better by now")

    After a painful or repetitive session ("Codex should have known better by now")Periodically (weekly or monthly): "Do a retrospective on the last 7/30 days of my Codex usage"When codex-fluent reports that Codex is constantly re-asking for the same context or preferences
  5. 05

    1. Scope Definition

    You specify the time window or focus area: - "Last 14 days" - "The three big auth + payments threads from last month" - "All sessions involving the new Go service"

    "Last 14 days""The three big auth + payments threads from last month""All sessions involving the new Go service"

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score84/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars249SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
majiayu000/spellbook
Skill path
skills/codex-retrospective/SKILL.md
Commit
01c5d88b0139a80ac38bfe7206ea99f28b0fc999
License
MIT
Collected
2026-08-04
Default branch
main
View the original SKILL.md

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.

Why This Exists

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.

Core Principle

Minimal effective change, grounded in evidence from actual history.

Every output must be:

  • The smallest possible useful addition or edit
  • Backed by specific patterns observed in recent sessions
  • Designed to prevent repetition of the same friction

When to Trigger

  • After a painful or repetitive session ("Codex should have known better by now")
  • Periodically (weekly or monthly): "Do a retrospective on the last 7/30 days of my Codex usage"
  • When codex-fluent reports that Codex is constantly re-asking for the same context or preferences
  • After you have manually corrected the same class of mistake multiple times

The Retrospective Process

1. Scope Definition

You specify the time window or focus area:

  • "Last 14 days"
  • "The three big auth + payments threads from last month"
  • "All sessions involving the new Go service"

2. Evidence Collection Preflight

Before proposing any AGENTS.md update or tiny skill, Codex must build a small evidence inventory:

  • Scope: repo/project, time window, and focus area.
  • Sources checked: current AGENTS.md, relevant existing skills, repo docs, Memories/Chronicle, and local Codex session files when available.
  • Evidence handles: session IDs, memory IDs, file paths, PR/issue numbers, or dated incidents that can be checked later.
  • Runtime availability: distinguish "skill exists in source" from "skill is installed and triggerable in the active runtime" when that matters.
  • No-change path: if evidence is weak, stop with a concise "no high-confidence change" result instead of manufacturing proposals.

Every proposed update must map back to at least one concrete evidence handle.

3. History Analysis (The Skill Guides Codex)

Codex is instructed to look for:

  • Recurring mistakes or inefficient patterns
  • Things the user had to explain or correct repeatedly
  • High-friction moments (lots of back-and-forth, context loss, wrong assumptions)
  • Successful patterns worth encoding so they happen by default
  • Opportunities to extract tiny, reusable skills

4. Output — Strict Format

The skill forces Codex to produce output in this order:

  1. Evidence Inventory (scope, sources checked, and concrete handles)
  2. Retrospective Summary (short, evidence-based)
  3. Proposed AGENTS.md Updates (exact diff or append text only)
  4. New or Refined Minimal Skills (at most 1-2 tiny ones, full SKILL.md with frontmatter)
  5. Rationale + Evidence (which sessions/patterns drove each proposal)
  6. Application Plan (how to safely apply the changes)

5. Human Gate + Application

You review. The skill then helps you apply the minimal changes cleanly (never blindly overwriting large sections of AGENTS.md).

Relationship with codex-fluent

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:

  1. Run codex-retrospective on the last 30 days.
  2. Run codex-fluent diagnosis.
  3. Apply the best changes from both.

Hard Constraints on Output

  • Never propose large rewrites of AGENTS.md.
  • Never create big new skills. Tiny, focused, high-ROI only.
  • Every proposal must reference concrete history ("In the payment retry thread on May 3rd and the similar incident on May 18th...").
  • Do not propose changes until the evidence inventory exists and each proposal maps to a concrete handle.
  • If nothing high-confidence was found, say so clearly instead of manufacturing improvements.

Gotchas

  • Do not turn a single annoying session into a permanent rule unless it was unusually high impact. Prefer "no change" over a weak constitution update.
  • Do not rely on memory vibes. Each proposed update needs a concrete session, date range, file, PR, or repeated correction pattern that can be checked.
  • Keep generated AGENTS.md text short. If the proposed rule needs multiple paragraphs, it probably belongs in a tiny skill or a project doc instead.
  • Application is gated by the user. The retrospective can propose exact diffs, but it must not silently rewrite AGENTS.md or existing skills.

References

  • references/retrospective-prompt.md — The core prompt template used to drive Codex's self-analysis
  • references/agents-md-update-rules.md — Strict rules for what kind of changes are acceptable
  • references/minimal-skill-criteria.md — What qualifies as a "tiny useful skill" worth extracting
  • references/examples/ — Real (sanitized) retrospective outputs and the resulting AGENTS.md diffs

Success Looks Like

After 4–8 weeks of regular use:

  • Codex makes fewer basic assumption errors in your domain
  • You spend less time re-explaining preferences and constraints
  • Your AGENTS.md and skills folder feel like they were written by someone who has worked with you for a long time (because they were)
  • New projects ramp up faster because the constitution already encodes hard-won lessons

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.

Alternatives

Compare before choosing

Computed 10014,225

wanshuiyin/Auto-claude-code-research-in-sleep

kill-argument

Two-thread adversarial review: a fresh reviewer constructs the strongest 200-word rejection memo, then a second fresh reviewer defends the paper point-by-point and surfaces still-unresolved critical issues. Use when user says "kill argument", "adversarial review", "hostile review", "rebuttal preparation", "reviewer-2 simulation", or before submitting a theory paper that has already passed standard review rounds.

Computed 10014,225

wanshuiyin/Auto-claude-code-research-in-sleep

kill-argument

Two-thread adversarial review: a fresh reviewer constructs the strongest 200-word rejection memo, then a second fresh reviewer defends the paper point-by-point and surfaces still-unresolved critical issues. Use when user says "kill argument", "adversarial review", "hostile review", "rebuttal preparation", "reviewer-2 simulation", or before submitting a theory paper that has already passed standard review rounds.

Computed 97195

PramodDutta/qaskills

Pairwise Test Generator

Generate optimized test combinations using pairwise (all-pairs) testing algorithms to achieve maximum coverage with minimum test cases across multiple input parameters

Computed 97195

PramodDutta/qaskills

RAG Regression Testing

Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.