| name | codex-self-improvement |
|---|---|
| description | Mine recent Codex sessions, memories, rollout summaries, Chronicle if available, existing skills, custom agents, and automations to identify repeated manual workflows worth packaging. Use when the user asks Codex to improve itself, find repeated asks, create or update reusable skills/subagents/automations, or run a Codex-Self-Improvement review. |
Find repeated manual work and convert only the useful, well-evidenced pieces into small reusable assets.
Use evidence in this order:
- Recent Codex sessions and task summaries.
- Codex Memories and rollout summaries.
- Chronicle, if enabled, for discovery only. Confirm important details in the source system before acting.
- Existing skills, custom agents, and automations.
If a source is unavailable, say so and continue with the available evidence.
Package a candidate only when all are true:
- It occurred at least twice, or is clearly likely to recur and costly to repeat.
- Inputs, procedure, output, and stopping condition are stable.
- Packaging materially improves speed, quality, consistency, or reliability.
- It is not already adequately covered.
Otherwise mark it Skip or Needs more evidence.
Skill: reusable workflow or playbook that a future Codex instance should follow.Custom subagent: bounded specialist role or investigation task suitable for delegation.Automation: scheduled or recurring check, report, reminder, or monitor.Extend existing: update an existing asset instead of creating a duplicate.Skip: one-off, ambiguous, sensitive, weakly evidenced, or already covered.
Prefer the smallest useful form. Avoid broad wrappers around already-good skills like code review, debugging, planning, or writing.
- Inventory existing assets first.
- Skills:
~/.codex/skills, project-localskills/, and known plugin skills. - Agents:
~/.codex/agents. - Automations:
~/.codex/automations/*/automation.toml.
- Skills:
- Mine recent work.
- Use
session_index.jsonlfor thread names and recency. - Use
history.jsonlfor user prompts and repeated asks. - Search
~/.codex/memories/MEMORY.mdfor task groups and rollout pointers. - Open only the most relevant rollout summaries when exact evidence is needed.
- Use
- Produce a compact shortlist before editing anything.
- Repeated workflow.
- Supporting evidence and dates.
- Frequency/confidence.
- Recommended form.
- Why it is or is not worth creating.
- Create or extend only high-confidence missing items.
- Use
skill-creatorrules for skills. - Keep skill bodies short and operational.
- Keep agents bounded, read-only by default unless their role is execution.
- Use automations only for recurring checks with a clear cadence and output.
- Use
- Validate.
- Skills: run
quick_validate.py; if default Python lacksyaml, use the known-good PyYAML path if available. - Agents: parse or structurally inspect TOML.
- Automations: view the saved automation and verify schedule/status/prompt.
- Skills: run
- Finish with what changed and what was deliberately skipped.
## Shortlist
| Workflow | Evidence | Confidence | Form | Decision |
|---|---:|---:|---|---|
## Created or Extended
- Asset path, what it does, validation.
## Deliberately Skipped
- Candidate and reason.
## Needs More Evidence
- Candidate and missing proof.- Do not create speculative, overlapping, or vague assets.
- Do not mutate production systems while mining evidence.
- Do not overfit to a single dramatic session.
- Do not present memory-derived facts as current when live verification is cheap and relevant.
- Keep created assets narrow enough that future Codex instances can trigger them reliably.