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
Invokes Apple's macOS 27 fm command-line tool from a local Mac to use the on-device system model or Private Cloud Compute, including instructions, image prompts, schema-constrained JSON, and noninteractive automation. Use when the user asks to run Apple Foundation Models through fm, compare system versus pcc, generate structured output, or automate fm without Swift or an app.
development
Compile historical Codex sessions into governed counterfactual evidence, evaluate an existing owner-applied candidate through blinded paired HCTP trials, and fold observable evidence into RUN, OBSERVE, or STOP. Use for `$hylo`, CRF extraction, counterfactual replay, source-governed direct or historical trials, sealed evidence, paired baseline/candidate evaluation, causal frontiers, or evidence-governed improvement.
testing
Ensure a `ledger` command is available on PATH; materialize, validate, record, replay, and project requested Actuating artifacts without taking semantic or execution authority; coordinate the shared Learnings/Synesthesia/Negative Ledger lifecycle checkpoint and repo-local source-memory reconciliation; address Universalist plans and receipts; and perform pure artifact validation.
testing
Classify and quotient review findings, failing tests, incidents, bug reports, migration failures, and other witnessed falsifiers against accepted intent and the current Construction. Author counterexample-set/v1 without selecting repairs, counting review credit, or granting mutation.