codex-skill-admin
Skill778 starsChanged 5 months agoMITView on GitHub
Codex-only skill administration for auditing, enabling, disabling, restoring, and verifying local Codex skills. Use when the user asks to manage Codex skills, reduce skill token load, close unused skills without uninstalling them, restore disabled skills, inspect current skill visibility, or automate skill enablement through Codex's official app-server protocol.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zjp1997720/codex-skill-adminword for word, first seen Jul 17, 2026
Other versions1 project uses a version of this.
Word for word · 1
- zjp1997720/codex-skill-admin★ 11100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-cli-model-bridgeSkill
- codex-doctorSkill
- codex-external-handoffSkill
- codex-handoffSkill
- codex-image-genSkill
- codex-model-routing-teamSkill
- codex-theme-studioSkill
- enterprise-clone-builderSkill
- gpt56-sol-pro-consultSkill
- html-expressSkill
- leadbookSkill
- light-plan-and-workSkill
- skill-open-sourcerSkill
- web-clipperSkill
- wechat-article-searchSkill
- wechat-stylerSkill
- workbuddy-cli-model-bridgeSkill
- wxmp-article-harvesterSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use Codex's official skill config API.
- Distinctive: line 12
Use the bundled script for normal work:
- Very specific: line 40
Run list to get the current total, enabled, and disabled counts.
- Very specific: line 41
Run audit-unused --days 30 to inspect high-confidence recent usage.
- Very specific: line 43
Run disable-unused --days 30 without --apply and inspect the dry-run output.
- Very specific: line 44
If the user asked to close unused or low-frequency skills, run disable-unused --apply.
- Very specific: line 45
Verify with verify, or with list --force-reload plus prompt-count.
- Distinctive: line 63
If the same skill appears through multiple equivalent paths, set path aliases before auditing:
- Distinctive: line 69
Use the platform path separator for multiple aliases.
- Distinctive: line 73
After an apply run:
- Very specific: line 79
If the result is wrong, run restore --backup-dir <backupDir> using the backup path from the apply output.
- Very specific: line 97
Use set for specific skill toggles only after listing or otherwise confirming the target name/path:
- Very specific: line 108
Read references/app-server-protocol.md only when the script fails or the Codex app-server protocol changes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Skill Admin
Use Codex's official skill config API. Do not edit SKILL.md frontmatter to disable a skill, and do not uninstall plugins unless the user explicitly asks for uninstall.
Quick Start
Use the bundled script for normal work:
SKILL_DIR="${CODEX_SKILL_ADMIN_DIR:-$HOME/.agents/skills/codex-skill-admin}"
if [ ! -d "$SKILL_DIR" ]; then
SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/codex-skill-admin"
fi
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" list --cwd "$PWD"
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" audit-unused --cwd "$PWD" --days 30
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" disable-unused --cwd "$PWD" --days 30
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" disable-unused --cwd "$PWD" --days 30 --apply
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" disable-unused --cwd "$PWD" --days 10 --max-uses 2
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" verify --cwd "$PWD"The script starts a temporary localhost codex app-server, calls:
skills/listskills/config/write
It saves apply-mode backups under:
${CODEX_HOME:-$HOME/.codex}/backup/skill-disable-unused-YYYYMMDD-HHMMSS/Workflow
- Run
listto get the current total, enabled, and disabled counts. - Run
audit-unused --days 30to inspect high-confidence recent usage. - Optionally add
--max-uses Nto include low-frequency skills. Example:--days 10 --max-uses 2targets enabled skills used in at most 2 distinct recent session/source files. - Run
disable-unused --days 30without--applyand inspect the dry-run output. - If the user asked to close unused or low-frequency skills, run
disable-unused --apply. - Verify with
verify, or withlist --force-reloadplusprompt-count. - Report counts, backup path, threshold parameters, and any limits of the usage evidence.
System skills are preserved by default. Use --include-system only when the user explicitly asks to consider system skills too.
The Codex desktop Skills tab count is a total discovered skill count. It is expected to stay unchanged after disabling skills. Treat enabledCount and availableSkillCount as the token-load success metrics.
Usage Evidence
The audit is intentionally conservative:
- Count actual
SKILL.mdreads from recent Codex session tool calls. - Count OMO dynamic session fingerprints that include
SKILL.md. - Count usage as distinct evidence source/session files, so repeated reads inside one session do not inflate
usageCount. - Ignore always-loaded "Available skills" lists, because they are not usage.
This is local evidence, not the product Profile page's server-side analytics.
If the same skill appears through multiple equivalent paths, set path aliases before auditing:
export CODEX_SKILL_ADMIN_PATH_ALIASES="/old/root=/new/root"Use the platform path separator for multiple aliases.
Verification
After an apply run:
- Run
verify --cwd "$PWD". - Confirm
enabledCountdropped and target skills appear inlist --force-reload --disabled. - Confirm
availableSkillCountdropped versus the pre-run count when disabled skills were previously prompt-visible. - Ignore the desktop UI tab count for token savings; it counts total discovered skills, including disabled ones.
- If the result is wrong, run
restore --backup-dir <backupDir>using the backup path from the apply output.
Backup files include local skill paths and usage evidence. Treat them as private machine-local diagnostics.
Restore
Restore a previous disable run:
SKILL_DIR="${CODEX_SKILL_ADMIN_DIR:-$HOME/.agents/skills/codex-skill-admin}"
if [ ! -d "$SKILL_DIR" ]; then
SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/codex-skill-admin"
fi
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" restore --backup-dir "${CODEX_HOME:-$HOME/.codex}/backup/skill-disable-unused-YYYYMMDD-HHMMSS"Direct Set
Use set for specific skill toggles only after listing or otherwise confirming the target name/path:
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" set --name codex-skill-admin --no-enabled
python3 "$SKILL_DIR/scripts/codex_skill_admin.py" set --name codex-skill-admin --no-enabled --applyWithout --apply, set prints a dry run and writes nothing.
Manual Protocol Notes
Read references/app-server-protocol.md only when the script fails or the Codex app-server protocol changes.
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.

