agents/skills/self-improve/SKILL.md
Codex-specific, session-driven self-improvement for Codex behavior and project instructions. Use when the user asks to inspect past Codex sessions, run a "dream" pass over prior interactions, mine repeated user corrections/preferences, improve or draft skills, update repo/project `AGENTS.md` guidance, or propose durable edits to global `~/.codex/AGENTS.md`.
npx skillsauth add jxnl/dots self-improveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this Codex-specific skill to inspect prior Codex threads and generate evidence-backed improvement proposals for three targets: skills, project-local AGENTS.md, and global ~/.codex/AGENTS.md.
This skill depends on Codex's local session system (~/.codex/state_5.sqlite plus rollout JSONL files under ~/.codex/sessions and ~/.codex/archived_sessions). It is not intended to work unchanged in non-Codex agent runtimes.
Run the session browser to identify candidate threads:
python3 scripts/self_improve.py list --limit 25 --archived all
Render specific sessions as readable transcripts when you need direct evidence:
python3 scripts/self_improve.py show <thread-id>
Run a dream pass to mine repeated user corrections and workflow preferences:
python3 scripts/self_improve.py dream --limit 250 --days 365 --min-support 2 --min-confidence 0.6 --emit-patch
Run a skill audit when you want per-skill SKILL.md improvements instead of global/project instruction updates:
python3 scripts/self_improve.py skill-audit --limit 500 --days 365 --min-support 1 --min-confidence 0.6 --emit-patch
Read the proposal buckets and decide what to patch:
Skills: tighten existing SKILL.md, add scripts/references, or create a new skill.Project AGENTS.md: update the nearest repo/vault instruction file for a project-specific preference.Global AGENTS.md: add durable defaults that should apply across all repos.When the user asks about frustration or persistence, inspect cited examples with show and specifically look for repeated continue, keep going, don't stop, Come on, and “can't you just...” messages before proposing global behavior rules.
~/.codex/state_5.sqlite as the authoritative session index.threads.rollout_path to load full rollout JSONL transcripts from ~/.codex/sessions/... or ~/.codex/archived_sessions/....~/.codex/session_index.jsonl as an incomplete convenience index, not the source of truth.~/.codex/memories/MEMORY.md and ~/.codex/memories/memory_summary.md as supporting context only. Do not write them by default.SKILL.md, project AGENTS.md, or global ~/.codex/AGENTS.md until the user explicitly approves the proposed edits.Support as deduped thread clusters, not raw thread IDs, so same-day retries of one task do not inflate one proposal.Confidence to suppress one-off task noise. If a proposal still reads like a transient implementation ask, inspect its cited sessions with show before patching.AGENTS.md, do not also copy the same rule into global ~/.codex/AGENTS.md unless it clearly applies across repos.AGENTS.md from the session cwd; prefer the closest existing AGENTS.md/AGENTS.MD, then repo root, then cwd/AGENTS.md.~/.codex/skills or ~/.agents/skills when the transcript or cwd makes that unambiguous; otherwise propose a new skill path under ~/.codex/skills/<name>/SKILL.md.skill-audit when the question is “which existing skills should be improved?” because it suppresses suggestions already present in each target SKILL.md and emits only uncovered rules per skill.scripts/self_improve.py provides list, show, dream, and skill-audit subcommands.tools
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
development
Use when Codex needs to write, rewrite, critique, or reply on Twitter/X in Jason Liu's personal voice. Trigger for requests like "tweet like me", "write this in my style", "make this sound like Jason", "draft a reply", or when Jason asks for Twitter copy about Codex, product building, feedback, launches, quote-tweets, or operator/value takes.
development
Build or refine single-file information-first HTML artifacts, especially index.html or text.html pages, with strong information hierarchy, restrained styling, accessible semantics, and minimal AI-generated frontend tells. Use when creating static HTML reports, research pages, explainers, briefs, dashboards, note indexes, or simple front ends whose goal is comprehension rather than marketing conversion.
tools
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.