Codex Retrospective logo

Codex Retrospective

Community
majiayu000
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.

Overview

Publishermajiayu000
Repositoryspellbook
Skill namecodex-retrospective
Stars
280
Forks
26
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by majiayu000 on GitHub. Read the source before you install it.

Installation

Install the Codex Retrospective AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/majiayu000/spellbook.git /tmp/spellbook
mkdir -p .claude/skills
cp -r /tmp/spellbook/skills/codex-retrospective .claude/skills/codex-retrospective
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Retrospective in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Retrospective on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Retrospective is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codex Retrospective AI skill do?

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.

Why use Codex Retrospective on TypingMind?

Because you install it once and use it with any model. Codex Retrospective is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Retrospective in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/majiayu000/spellbook/tree/main/skills/codex-retrospective. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codex Retrospective?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Retrospective?

As many as you like. As long as a model supports skills, you can use Codex Retrospective with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Retrospective AI skill free?

Yes. It is published on GitHub by majiayu000 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇