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 carterdea/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
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 HTML reports, research pages, explainers, briefs, dashboards, note indexes, annotated code reviews, planning/spec docs, or focused single-purpose editing/triage tools with copy-out export — front ends whose goal is comprehension or action rather than marketing conversion. Reach for this whenever the user wants a standalone HTML page, report, one-pager, explainer, or "quick HTML" to present or organize information, even if they just say "make an HTML file" without mentioning design. Not for multi-page sites, React/framework apps, or marketing landing pages.
development
Ship a Trello ticket end to end on any web app (Vercel, Fly.io, or other host — no Shopify): pull the latest main, read the card including Figma links, implement the change in a worktree, run the project's own tests/lint/typecheck, run de-slop and code-simplifier and fold the worthwhile cleanups in, QA desktop and mobile on a local Portless preview URL, capture screenshots, open or update the GitHub PR, link the PR and Trello to each other, attach screenshots to both, comment on the card, and move it to review. Use this whenever the user points you at a Trello card or ticket for a code task and wants it delivered as a reviewable PR — phrases like 'do this Trello ticket', 'ship this card', 'pick up this ticket and open a PR', 'update the PR for this card', or names a card/list/board with a feature or bug to implement. This is the default Trello-to-PR workflow for non-Shopify projects; for Shopify theme work use shopify-trello-delivery instead.
tools
Install or upgrade a quality baseline for Shopify theme repos. Use this whenever the user asks to add Shopify theme linting, Biome, Theme Check, Playwright accessibility checks, Vitest, Vite build tooling, lefthook hooks, GitHub Actions CI, Shopify Lighthouse CI, Claude Code PR review workflows, or a context-efficient run_silent.sh setup across Shopify sites.
development
Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.