self-improve
Skill0 starsChanged 13 days agoApache-2.0View on GitHub
Audit and improve Codex operating guidance: skills, curated project memory, AGENTS.md, and relevant configuration. Use for explicit self-improve requests, routine wrap-up drift checks, stale or conflicting guidance, or an approved cleanup. Route release-wide OACP migrations and context-budget audits to audit-oacp-skills. Do not hand-edit generated Codex memories or installed plugin/system artifacts.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- DYNO-SOFT/self-improving-looptheir own version, first seen Nov 8, 2026
- linxule/carreltheir own version, first seen Nov 8, 2026
- naman10parikh/wikimemtheir own version, first seen Nov 8, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 8, 2026
- sergeeey/Claude-cod-top-2026their own version, first seen Nov 1, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +6 more from naman10parikh
- +2 more from aaronjmars
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- aaronjmars/aeon★ 789same name
- aeonfun/aeon★ 789same name
- forefy/.context★ 153same name
- eai-org/agent-toolkit★ 85same name
- nitinjain999/platform-skills★ 71same name
- aaronjmars/miroshark-aeon★ 20same name
- MiroShark/miroshark-aeon★ 20same name
26 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- check-inboxSkill
- check-inboxSkill
- debriefSkill
- debriefSkill
- doctorSkill
- doctorSkill
- oacpSkill
- oacpSkill
- org-memory-synthesisSkill
- org-memory-synthesisSkill
- review-loop-authorSkill
- review-loop-authorSkill
- review-loop-reviewerSkill
- review-loop-reviewerSkill
- self-improveSkill
- wrap-upSkill
- wrap-upSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Do not turn routine wrap-up into a release-wide audit without such evidence.
- Very specific: line 32
Treat audit, review, diagnosis, report, and --dry-run requests as read-only.
- Very specific: line 40
Use the active Skills catalog and exact locators first.
- Distinctive: line 80
If a dependent is outside the approved scope, report it as follow-up instead of editing it.
- Very specific: line 102
Check trigger behavior, workflow inputs/outputs, stopping conditions, approval boundaries, safety, current paths/commands/config, …
- Distinctive: line 123
every proposed change number.
- Distinctive: line 128
Do not edit before approval unless the original request already authorized the exact change.
- Very specific: line 137
Keep installed/plugin/system/provider artifacts read-only.
- Very specific: line 139
Before editing OACP runtime memory, acquire the project's .memory-write.lock.
- Distinctive: line 148
When context measurement was warranted, compare with the same tokenizer and explain increases as well as reductions.
- Distinctive: line 189
If acquisition fails, leave the existing directory untouched and defer all runtime-memory edits.
- Distinctive: line 207
Commit, push, PR creation, merge, and messaging are separate actions.
- Distinctive: line 219
Keep changes surgical. Do not invent current facts, hardcode ephemeral model or release details, or let an audit drift into unapproved …
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Self-improve
Audit the durable guidance layer, prove how it behaves in the active runtime, and apply only approved changes. Verify current capabilities from live evidence and official sources rather than hardcoding release or model names.
Scope and depth
| Request | Review scope |
$self-improve | Skills used this session, curated project memory, AGENTS.md, and relevant config |
$self-improve skills | Skills actually used this session |
$self-improve memory | Curated project memory only |
$self-improve agents-md, config, or claude-md | AGENTS.md and relevant Codex config |
$self-improve <skill-name> | The named skill, its effective-state chain, and editable source |
| Wrap-up caller | Session-delta targets first; broaden only on evidence of drift |
An explicit or natural-language self-improve request performs the requested scope. A wrap-up caller starts with skills used, guidance/memory/config changed, and failures, workarounds, conflicts, or discovery gaps observed this session. Do not turn routine wrap-up into a release-wide audit without such evidence.
Route major Codex model/app/CLI or OACP release migrations, multi-skill
capability changes, and context-budget audits to $audit-oacp-skills. Route a
changelog summary without guidance-impact analysis to $codex-changelog.
Treat audit, review, diagnosis, report, and --dry-run requests as read-only.
Under dry run, report proposals without applying edits, committing, publishing,
writing memory, or writing pass markers. A numbered
approval authorizes only its listed local edits. Commit, push, PR, merge,
messaging, and other external writes remain separate unless explicitly listed.
1. Resolve targets and ownership
Use the active Skills catalog and exact locators first. Read every selected
SKILL.md completely, then load only the references or scripts required for
the selected scope.
Classify each target before proposing edits:
- Authored source: editable only after approval.
- Symlinked skill or guidance: edit the resolved source and name its repo.
- Installed artifact: plugin cache, bundled/system skill, or provider resource; inspect read-only and locate an authoring/update path.
- Cross-runtime namesake: report drift without synchronizing another runtime automatically.
Generated Codex memory under ${CODEX_HOME:-$HOME/.codex}/memories/ is
generated state, not hand-maintained project memory, including other
runtime-declared generated memory directories. Do not hand-edit or apply
line-budget trimming to it. Inspect configuration through an explicit key
allowlist and redact tokens, credentials, environment values, and private
endpoints. Never broadly search credential-adjacent config or session trees.
Load only the applicable section of references/audit-checks.md for detailed skill, curated-memory, or AGENTS/config checks. The public package keeps these direct checks in one installed reference; private source-file layout is not a runtime dependency.
2. Prove effective state
For every target, verify the relevant chain:
authored source -> discovery/configuration -> callers/dependents -> observed behaviorSource validity alone is insufficient. Check applicable auxiliary metadata,
canonical discovery paths, symlinks, manifests, hooks, setup generators, and
direct skill/AGENTS callers within explicit authored roots. Run one live or
test probe when available. Mark an unavailable probe as unverified; do not
silently treat authored intent as effective behavior.
If a dependent is outside the approved scope, report it as follow-up instead of editing it. This step must catch valid-but-undiscoverable skills, stale caller syntax, generated configuration that differs from its source, and scripts whose documented effect is not observable.
For current OpenAI/Codex behavior, use $openai-docs or $codex-changelog as
appropriate. Capability-check unstable CLI surfaces and distinguish authored,
configured, and runtime-observed states.
3. Analyze and capture acceptance evidence
Use these tags:
| Tag | Meaning |
[FIX] | Clear bug or incorrect instruction |
[STALE] | Time-sensitive content is outdated |
[GAP] | Required workflow, wiring, or safety coverage is missing |
[CONFLICT] | Sources or effective states disagree |
[STRUCTURAL] | The workflow needs architectural rather than surgical work |
[BLOAT] | Content can move or disappear without losing required behavior |
Check trigger behavior, workflow inputs/outputs, stopping conditions, approval
boundaries, safety, current paths/commands/config, ownership, duplication, run
learnings, and validation. Promote repeatable run lessons with
$consolidate-learnings; never append a second procedure as a learned log.
For every proposed change, define a before/after acceptance probe and capture
its current result before editing. Use context measurement only when the
finding concerns a hot-path skill, progressive disclosure, a release-wide
migration, or a context budget. Reuse $audit-oacp-skills measurement with the
same tokenizer for the comparison; routine correctness fixes do not require a
token baseline.
4. Report and request approval
Group findings by requested scope. For each finding provide the target and line
when available, live evidence, impact, specific outcome, and acceptance probe.
Say No issues found for an in-scope category with no findings.
End a changeable audit with a self-contained numbered menu containing:
- the recommended choice first when clear;
- every proposed change number;
- target files/repos and exact outcomes;
- allowed replies:
all,none, or item numbers; - whether commit, push, PR, messaging, or another external action is included.
Do not edit before approval unless the original request already authorized the exact change.
5. Apply and verify approved changes
- Re-read every live target and nearest
AGENTS.md; confirm repo, branch, status, ownership, and unrelated concurrent changes. - Preserve user and other-agent work. In a shared skills repository, edit
only Codex-owned
codex/or explicitly approved shared files. - Keep installed/plugin/system/provider artifacts read-only. Coordinate with another runtime only when messaging is authorized.
- Before editing OACP runtime memory, acquire the project's
.memory-write.lock; defer when another valid writer holds it and remove a lock created by this run on exit. - Apply only approved edits with
apply_patch, inspect the diff, and confirm the intended files changed. - Re-run the exact acceptance probe captured before editing, followed by proportional project-native validation. For a changed skill, run the skill validator, check frontmatter and direct links, exercise representative positive/negative triggers, and verify effective discovery when applicable.
- When context measurement was warranted, compare with the same tokenizer and explain increases as well as reductions. Lower token count is not a correctness result.
For an OACP runtime-memory edit, use an explicit owner token because a shell
trap cannot span separate Codex tool calls. Never remove a valid writer lock
solely because it is old.
Acquire before the first edit:
: "${OACP_ROOT:?resolve the project's explicit OACP memory home first}"
: "${PROJECT:?resolve the OACP project from its binding first}"
LOCK_DIR="$OACP_ROOT/projects/${PROJECT}/.memory-write.lock"
LOCK_OWNER_FILE="$(mktemp)"
python3 - "$LOCK_OWNER_FILE" <<'PY'
import datetime
import json
import secrets
import socket
import sys
owner = {
"token": secrets.token_hex(16),
"host": socket.gethostname(),
"created_at_utc": datetime.datetime.now(datetime.timezone.utc).isoformat(),
}
with open(sys.argv[1], "w", encoding="utf-8") as handle:
json.dump(owner, handle)
PY
chmod 600 "$LOCK_OWNER_FILE"
if mkdir "$LOCK_DIR" 2>/dev/null; then
chmod 700 "$LOCK_DIR"
cp -- "$LOCK_OWNER_FILE" "$LOCK_DIR/owner"
chmod 600 "$LOCK_DIR/owner"
echo "Memory lock acquired"
else
echo "Memory lock held by another writer; defer memory edits"
fiIf acquisition fails, leave the existing directory untouched and defer all runtime-memory edits. Lock recovery requires separately proving the prior writer is gone; age alone is never proof. Release after the last edit, including an edit failure, only when the stored owner is byte-identical to this run's token:
if [ -d "$LOCK_DIR" ] && cmp -s "$LOCK_OWNER_FILE" "$LOCK_DIR/owner"; then
command rm -f -- "$LOCK_DIR/owner"
rmdir -- "$LOCK_DIR"
else
echo "Memory lock ownership changed or was not acquired; refusing release"
fi
command rm -f -- "$LOCK_OWNER_FILE"6. Commit or publish only when requested
Commit, push, PR creation, merge, and messaging are separate actions. When
explicitly requested, follow each owning repo's AGENTS.md, reconfirm its root,
branch, and status, stage only approved files, and keep repositories
independent. Runtime memory and unrelated untracked state are never included
merely because guidance changed.
7. Summarize
Report scope and sources, effective-state evidence, findings applied or deferred, files changed by owning repo, exact validation and before/after probe results, external-action state, and remaining risks.
Keep changes surgical. Do not invent current facts, hardcode ephemeral model or release details, or let an audit drift into unapproved runtime namespaces.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

