codex/skills/auto/SKILL.md
Orchestrate evidence-backed autonomous improvements to the local Codex skills ecosystem. Use when asked to auto-update skills, optimize skills from session evidence, bootstrap per-skill AUTO.md policies, scan skills for improvement candidates, create autonomous skill improvement PRs, or inspect auto-update status.
npx skillsauth add tkersey/dotfiles autoInstall 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 auto to run closed-loop, evidence-backed skill ecosystem maintenance without replacing the skills that already own the core work:
$seq mines sessions, memories, reports, routing gaps, and usage patterns.$refine performs the actual skill edit.$ship creates or updates PRs with validation proof.$land handles merge checks, review/CI guardrails, merge, and cleanup.The helper scripts are deterministic guardrails and status scanners. The agent owns judgment-heavy steps: evidence interpretation, candidate selection, semantic self-checks, $refine, $ship, and $land.
.autoupdate, durable local state, or durable local report directories.seq, refine, cron, auto, ship, land, or .system/*.Run scripts from the repo root unless otherwise noted.
codex/skills/auto/scripts/auto-scan
codex/skills/auto/scripts/auto-bootstrap-policies
codex/skills/auto/scripts/auto-optimize-one prepare --skill <skill> --evidence-class <class> --problem-slug <slug> --evidence-summary "<sanitized summary>"
codex/skills/auto/scripts/auto-optimize-one finalize --skill <skill> --evidence-class <class> --problem-slug <slug> --evidence-summary "<sanitized summary>"
codex/skills/auto/scripts/auto-status
codex/skills/auto/scripts/auto-validate-corpus codex/skills
auto scanUse scripts/auto-scan as a read-only candidate inventory.
auto-scan.$seq command templates over the recent 90-day window, including memory evidence when useful.repeated_session_evidenceexplicit_user_feedbackclear_validation_failureclear_routing_failurethin_usage_signalstale_metadata_signaltrigger_overlap_signalworkflow_ambiguity_signalmissing_validation_guidanceThe scan output includes candidate skill, protected/ineligible status, evidence class, sanitized evidence summary, suggested next action, AUTO.md presence, and optimize-one eligibility.
auto bootstrap-policiesUse scripts/auto-bootstrap-policies for the one-time policy rollout.
git status --porcelain.auto/bootstrap-policies.codex/skills, excluding protected skills.SKILL.md, agents/openai.yaml, scripts/, references/, and assets/ when present.$seq dry-run evidence from the recent 90-day window and memories where useful.AUTO.md for every ordinary skill, including low-evidence skills.AUTO.md reference to each participating skill's SKILL.md.codex/skills/auto/scripts/auto-validate-corpus codex/skills$ship to open one bulk PR. The bootstrap PR must not self-merge and requires human merge.AUTO.md is advisory guidance, not a hard constraint. Read and consider it, but override it when evidence and model judgment justify doing so.
auto optimize-oneUse scripts/auto-optimize-one for at most one autonomous optimization.
auto-scan and select at most one ordinary skill.main, run auto-optimize-one prepare with the selected skill, strong evidence class, short problem slug, and sanitized evidence summary.SKILL.md.AUTO.md if present.$refine to make the smallest useful skill edit.auto-optimize-one finalize.$ship to create or update a PR.$land to finish the PR only when its guardrails pass.Do not merge if there are unresolved review threads, unresolved requested changes, failing or pending required checks, missing required approvals, merge conflicts, GitHub branch protection blocks, or repository policy blocks. If $land is blocked, leave the PR open and stop.
If GitHub PR creation is unavailable, keep a local branch and passing commit only, do not locally merge, and print the branch name and blocker.
auto statusUse scripts/auto-status to inspect current auto-update state.
It prints current git branch, dirty worktree state, local and remote auto/* branches, open and recently closed auto/* PRs, recent auto commits, tool availability, quick validator presence, dependent skill directory presence, protected-skill status, and latest validation output when available in the current shell context.
AUTO.md Policy ShapeEach ordinary skill should eventually have:
codex/skills/<skill>/AUTO.md
Use this loose prose structure:
# AUTO
## Update Intent
## Allowed Changes
## Discouraged Changes
## Evidence Cues
## Validation Expectations
## Examples of Safe Edits
Keep policy text conservative, advisory, and specific to the target skill.
tools
Convert markdown plans into beads with dependencies using br CLI. Use when creating task graphs, polishing beads before implementation, or bridging planning to agent swarm execution.
development
Orchestrate Codex skill optimization during active sessions through $cas goal control, $shadow single-session evidence, $tune diagnosis/refinement briefs, and the skill-optimizer custom subagent. Trigger for $opt, skill optimization loops, session-driven skill tuning, meta-skill audits, or explicit validated skill edits. Do not use for general code optimization, product optimization, or performance tuning.
development
Run a targeted fresh-eyes blunder pass over code, specs, plans, adjudications, closure gates, skill edits, or negative-evidence ledgers. Trigger when asked to reread with fresh eyes, find obvious bugs, catch mistakes/oversights/omissions, check for embarrassing misses, or perform a second independent blunder pass before closure. Do not use as a substitute for implementation, adjudication, or verification; use it as the final falsification/check pass for those workflows.
development
Explicitly shadow, tail, watch, follow, monitor, supervise, or companion exactly one Codex session id/path through `$seq`, then apply a named target skill as an interpretation/reporting/proposal/action lens until the watched session stops.