Skillopt setup
Skill stark-ai-de/agent-skills/incubator/skills/skill-maintenance/skillopt-setup
Public Agent Skills for Codex operations, Cursor operations, Claude operations, repo maintenance, skill maintenance, productivity, and engineering workflows.
npx -y skills add stark-ai-de/agent-skills --skill skillopt-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Set up Microsoft SkillOpt for Agent Skills improvement. Use when installing SkillOpt, preparing per-skill train/val/test eval splits, configuring Codex CLI or provider-backed execution, running SkillOpt against SKILL.md bodies, reviewing best_skill.md, or importing optimized skill changes. Do not use for ordinary skill authoring or manual repo validation.
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
12.9 KB, ~2.7k tokens by cl100k_base, as published. Nobody here has run it
SkillOpt Setup
Goal
Set up and operate a local SkillOpt workflow that improves one Agent Skill at a time while preserving frontmatter, validation, and public-proof boundaries.
When to use
- Installing or checking Microsoft SkillOpt for this repo.
- Preparing SkillOpt train/val/test data from
skill-evals/. - Configuring provider-backed, hybrid Codex CLI, or exploratory all-Codex CLI execution.
- Running SkillOpt for a target
SKILL.md. - Reviewing, summarizing, or importing
best_skill.md. - Creating public run evidence without committing raw transcripts.
When not to use
- Ordinary skill authoring or manual
SKILL.mdreview. - Trigger-description tuning only.
- Repo validation without SkillOpt.
- Directly implementing an optimized skill before review.
Inputs to inspect
- Target skill path under
skills/orincubator/skills/. skill-evals/<skill>/README.md,cases/,fixtures/,expected/,rubric.md, andruns/.- Current
SKILL.mdfrontmatter and body. .gitignoreandAGENTS.mdsafety rules.- Local
.agents/tools/SkillOptstate, if present. - Local
.agents/artifact audit when mining prior setup work or troubleshooting stale workspaces. - Local
uvavailability and local Python 3.10+ compatibility. - Local Codex CLI availability and login state if Codex mode is requested.
- Visual assertion cases, render-capable requirements, and draw.io Desktop CLI availability when target evals need PNG/SVG artifacts.
Workflow
Guide the user through setup as a short wizard. Ask one decision at a time unless the user already supplied the answer; do not dump every command or option before the relevant step.
- Wizard step: target. Identify exactly one target skill and whether it is incubator or promoted. If missing or ambiguous, ask which skill should be optimized.
- Wizard step: existing setup. Immediately inspect
.agents/tools/SkillOpt,.agents/tools/SkillOpt.commit, and.agents/skillopt-work. If any exist, ask whether to remove the current local setup or reuse/update it before dry-run or production setup. Cleanup is global to the local SkillOpt setup and must not remove.agents/skills/. - If the user chooses cleanup, run
setup-skillopt-local.mjs --cleanup-only --approvedyourself before setup. Do not present cleanup as a copy-paste command. - When the user asks to move prior
.agents/learnings into the skill, runaudit-skillopt-local-artifacts.mjsfirst. Promote only sanitized scripts, references, templates, eval cases, or curated summaries; never promote raw clones, installed skill copies, data splits, run outputs, transcripts, or readiness diagnostics. - Wizard step: setup goal. Explain the recommended branches:
- easiest no-provider path:
codex-cli-all, exploratory, uses Codex CLI login for rollouts, semantic judging, and adapter-managed reflection; keep slow update and meta skill disabled in this mode because those upstream epoch-boundary mechanisms call the provider-backed optimizer path, - best official-parity path:
hybrid-codex-targetornative-provider, provider-backed optimizer/reflection, requires credentials and model pins.
- Wizard step: Python. Prefer
uv. Ifuvis missing, ask whether to installuvor explicitly use compatible local Python 3.10+. - Wizard step: data quality. Run readiness or split preparation early enough to report positive, validation, and test counts. Official-parity proof needs at least 20 positive cases, 5 validation cases, and 5 test cases; otherwise classify the run as exploratory or blocked for proof.
- Wizard step: execution and visual readiness. Require the bounded strict-config capability probe for every active Codex target, judge, or reflection role, including text-only cases. If any cases declare
visual_assertions, also checkvisualArtifactReadiness, generatedtool_rollout_for_visual_assertions, andvisual_eval_policy. Visual Codex cases may use bounded file edits and shell commands only under the enforced read-isolated rollout permission profile, for copied helper scripts, draw.io XML, validation, and requested PNG/SVG exports; non-visual Codex rollouts remain text-only with no workspace read or write grant. If draw.io CLI is missing, use the generateddata-text-onlysplit and report that full visual proof still requires the renderer. Native-providerautomode must also selectdata-text-onlybecause provider chat targets cannot create local artifacts. - Wizard step: best-practice configuration. For official-parity, require provider credential presence plus
SKILLOPT_OPTIMIZER_MODEL,SKILLOPT_TARGET_MODEL, and judge model pins. Forcodex-cli-all, preserve exploratory defaults, require slow update/meta skill to stay disabled, and report which upstream provider-backed behavior is bypassed. - Wizard step: dry-run. Ask whether the user wants a dry-run first unless already answered. If yes, run setup without
--approved, report the dry-run result only, and ask whether to continue. Do not show production setup commands or SkillOpt training commands after dry-run. - Wizard step: production setup. If the user skips dry-run or approves continuation, run production-grade setup with
--approved, using.agents/as the persistent workspace and passing--existing-setup-choice reusewhen reuse was chosen. - Prepare or update the ignored SkillOpt workspace, split JSON, local adapter, target manifest, and mode/profile config.
- When the user wants a guaranteed training-ready setup, use
--strict-training-ready; block rather than hand off a training command if credentials, model pins, Codex probe, visual artifact readiness, adapter patches, or refreshed target manifest checks are missing. - After successful production setup, recommend the paste-ready new-terminal SkillOpt command. It must stream logs, print explicit success/failure, run artifact verification, show a compact summary, and run
best_skill.mddry-run adoption preview. - Include manual rerun commands with short descriptions for artifact verification, run summary, dry-run adoption preview, eval-only evaluation, and optional WebUI.
- Offer current-session execution only as an explicit option:
Should I run SkillOpt training for <target-skill> in this agent session anyway? - Inspect
best_skill.md, diff it against the original skill body, validate adoption gates, ask before tracked writes, and save only curated public evidence underskill-evals/<target>/runs/.
Safety rules
- Never print or persist secrets.
- Never copy, inspect, or commit Codex auth tokens.
- Never commit
.agents/output. - Never move
.agents/content without first classifying it with the local artifact audit. - Never overwrite
SKILL.mdwithout explicit approval. - Never install
uv, create Python environments, or install Python packages without explicit setup approval. - Preserve frontmatter unless the user explicitly requests a description or frontmatter optimization pass.
- For promoted skills, require a
metadata.versionbump before final validation. - In Codex CLI mode, allow no live web search or network access. Every target, judge, and reflection launch must use a verified strict read-isolated permission profile and a minimal environment. Allow shell/file operations only inside the visual rollout workspace profile for
visual_assertionscases; browser, hosted, install, network, inherited trainer secrets, and out-of-workspace reads remain disabled. - Treat SkillOpt-Sleep as a separate
v0.2.0companion surface, not the default Agent Skills training workflow; do not harvest transcripts or configure sleep cycles unless the user explicitly asks for SkillOpt-Sleep. - Treat readiness and dry-run as read-only: use
--no-codex-probethere, reuse existing successful probe diagnostics when present, and ask before running a new Codex login probe because it writes ignored diagnostics under.agents/skillopt-work/_readiness.
References
Read only when needed:
references/runbook.mdreferences/credential-modes.mdreferences/official-best-practices.mdreferences/codex-cli-runner.mdreferences/local-openai-gateway.mdreferences/local-artifact-audit.mdreferences/data-schema.mdreferences/adapter-contract.mdreferences/adoption-policy.mdreferences/troubleshooting.md
Scripts
scripts/check-skillopt-readiness.mjsscripts/audit-skillopt-local-artifacts.mjsscripts/setup-skillopt-local.mjsscripts/probe-codex-cli.mjsscripts/codex-local-openai-chat-gateway.mjsscripts/probe-openai-compatible-endpoint.mjsscripts/prepare-skillopt-split.mjsscripts/prepare-local-skillopt-adapter.mjsscripts/summarize-skillopt-run.mjsscripts/verify-skillopt-run-artifacts.mjsscripts/apply-skillopt-best.mjs
Output format
Return:
- Target skill and current maturity state
- Startup mode note, selected SkillOpt execution mode, and run profile
- Whether optimizer credentials are needed for that mode
- Selected Python setup path:
uv,local, or user choice needed - Setup readiness, training readiness, proof status, proof blockers, data-floor status, and model-pin gaps
- Visual artifact readiness and render-tool blockers when evals include
visual_assertions - Generated or planned local paths
- Existing setup state, local artifact audit result, and early cleanup choice, when present
- Dry-run result or production-grade setup result
- If this is only a dry-run: the next wizard question, with no production setup command and no SkillOpt training command
- If production setup succeeded: recommended new-terminal SkillOpt training command, post-training commands, and optional current-session execution question
- Validation result
Completion criteria
- SkillOpt workspace is ready or the missing prerequisites are explicit.
- The run proof is classified as
ready,ready_with_gaps,blocked,partial, orexploratory. - Existing setup was reused by explicit choice, cleaned up by explicit choice before setup, or reported as absent.
- Data splits and config exist for the target skill.
- Codex CLI mode has passed a login probe if selected.
- Visual assertion cases either have an artifact-capable Codex target, render-capable readiness (
drawioordiagrams.neton PATH), a supported strict permission profile, and a visual smoke path, or the active run uses the generateddata-text-onlysplit withvisualArtifactReadiness.status=text_only_ready. Every active Codex target, judge, or reflection role still requires strict isolation on a text-only split. - Setup output tells the user exactly how to start SkillOpt training for the selected target skill in a new terminal, automatically prints the compact result summary and dry-run adoption preview after successful training, and provides manual rerun commands for summary, adoption preview, eval-only, and optional WebUI.
- Any training or eval run has a clear output path, artifact verification status, and summary.
best_skill.mdadoption is reviewable, reversible, and approved.- Repository validation commands are listed or completed.
Failure modes
- If SkillOpt cannot be installed, report the failing prerequisite and command.
- If Codex CLI mode is requested but
codex execfails, report the probe failure without printing auth material. - If eval cases are insufficient, propose additional cases before training.
- If visual assertion cases exist but draw.io CLI is missing, auto-select
visual_eval_policy: text-onlywhen possible, reportvisualArtifactReadiness.status=text_only_ready, and do not scale full visual loops until the CLI is installed or exposed. Native-providerautomode also selects text-only even when draw.io exists. If the user forcesfull, reportmissing_drawio_clifor a Codex target orunsupported_visual_target_backendfor a provider target. - If the installed Codex CLI rejects the strict permission profile, fail closed for every active Codex target, judge, and reflection role. A text-only split bypasses only draw.io readiness, not read isolation; use a compatible Codex version or a supported provider-only text path.
- If
best_skill.mdchanges frontmatter or weakens safety, reject adoption. - If run evidence contains sensitive data, do not persist it publicly.
What ships with it: 38 files
638.6 KB alongside SKILL.md, 11 of them executable
assets/
- agent-skills-benchmark/adapter.py.template14.4 KB
- agent-skills-benchmark/codex_cli_reflector.py.template27.5 KB
- agent-skills-benchmark/config.codex-cli-all.yaml1.5 KB
- agent-skills-benchmark/config.hybrid-codex-target.yaml1.7 KB
- agent-skills-benchmark/config.native-provider.yaml1.3 KB
- agent-skills-benchmark/dataloader.py.template6.6 KB
- agent-skills-benchmark/evaluator.py.template62.5 KB
- agent-skills-benchmark/prompts/analyst_error_full_rewrite.md215 B
- agent-skills-benchmark/prompts/analyst_error.md193 B
- agent-skills-benchmark/prompts/analyst_success_full_rewrite.md157 B
- agent-skills-benchmark/prompts/analyst_success.md183 B
- agent-skills-benchmark/prompts/codex_cli_reflect_failure.md202 B
- agent-skills-benchmark/prompts/codex_cli_reflect_success.md186 B
- agent-skills-benchmark/README.md1.7 KB
- agent-skills-benchmark/rollout.py.template143.7 KB
- agent-skills-benchmark/schemas/codex_cli_patch.schema.json1.2 KB
- agent-skills-benchmark/schemas/codex_cli_rollout.schema.json854 B
references/
- adapter-contract.md5.8 KB
- adoption-policy.md1.0 KB
- codex-cli-runner.md3.3 KB
- credential-modes.md5.8 KB
- data-schema.md7.7 KB
- local-artifact-audit.md1.9 KB
- local-openai-gateway.md5.1 KB
- official-best-practices.md4.1 KB
- runbook.md20.0 KB
- troubleshooting.md5.8 KB
scripts/
- apply-skillopt-best.mjsruns13.9 KB
- audit-skillopt-local-artifacts.mjsruns22.0 KB
- check-skillopt-readiness.mjsruns99.6 KB
- codex-local-openai-chat-gateway.mjsruns51.6 KB
- prepare-local-skillopt-adapter.mjsruns25.4 KB
- prepare-skillopt-split.mjsruns22.9 KB
- probe-codex-cli.mjsruns4.3 KB
- probe-openai-compatible-endpoint.mjsruns7.9 KB
- setup-skillopt-local.mjsruns40.9 KB
- summarize-skillopt-run.mjsruns17.9 KB
- verify-skillopt-run-artifacts.mjsruns7.4 KB