AI Skills Repository Maintainer
Use this skill only for maintaining AI_Skills_Collection. Do not use it for ordinary coding tasks in unrelated repositories.
Boundary
- Maintain source skills, profiles, README, registry, catalog, provenance, icon metadata, version/changelog metadata, and Codex App marketplace publication.
- Do not duplicate OpenAI system skills such as
skill-creator, skill-installer, or plugin-creator.
- Do not use this as a domain skill. Frontend taste, PPT planning, bioinformatics retrieval, writing, and statistics live in their own plugins or official capabilities.
- Treat
.agents/plugins/marketplace.json and plugins/codex/plugins/ as generated output.
- Keep external source intake temporary, reviewed, and provenance-recorded.
Plugin Refinement Companion Mode
Use this mode whenever the current task maintains AI_Skills_Collection and will change a formal central plugin's production behavior, including changes to:
skills/;
- plugin routing;
- runtime references or shared runtime;
- QA or regression behavior;
- generator or production scripts;
- Marketplace payload;
- profile exposure.
This mode is mandatory for production plugin refinement. It is a maintenance companion, not a second workflow engine and not a domain expert.
The installed plugin should be presented to users as AI Skills Maintainer; keep the internal plugin slug ai-skills-core unless a task provides strong compatibility evidence for a slug migration. Normal maintenance combinations are:
AI Skills Maintainer + Presentations;
AI Skills Maintainer + Clear Writing;
AI Skills Maintainer + Statistical Modeling.
The target plugin decides what is professionally correct. This maintainer decides whether the change is source-authoritative, generated, replayed, regression-tested, versioned, changeloged, and closed.
Task identity is a maintenance boundary. Use the workflow owner's canonical task-key contract; new Bridge / Reviewed Handoff tasks use semantic <scope-token>--<goal-token> keys, and legacy numbered keys are read/validate-only compatibility. Scope comes from the real repo/plugin/workflow boundary. Keep the human short label separate from the machine key, and do not add a display-title service or let a client/thread/sidebar title control branch names, results paths, or scheduled-review bindings.
Fixed flow:
- Identify the target plugin.
- Identify the domain owner plugin or official capability.
- Read the target plugin TODO, target plugin changelog, active source skill/reference/runtime/QA, Marketplace config, and version policy.
- Check whether the failure is an existing active-rule production regression, duplicate TODO,
PROJECT_LOCAL, CANDIDATE_GENERIC, or already solved.
- Freeze the maintenance boundary: what repository contract changes, what stays out of scope, and which existing layer owns the change.
- Keep professional judgment with the domain owner.
- Modify source authority first.
- Regenerate the generated layer.
- Install or reload the real production plugin when production behavior changed.
- Replay the original real failure or a public-safe equivalent frozen by the task.
- Run the cheap deterministic regression bank first, then an unrelated regression for the target plugin or affected shared path, escalating to broad/full gates when shared runtime/schema/generator, routing, Marketplace/profile, artifact review, credential/paid path, or cross-plugin user-visible behavior changed.
- Close or update the target plugin TODO.
- Bump the affected plugin version exactly once when the completed release changes production behavior.
- Update the affected plugin changelog with before -> after behavior.
- Apply the repository release/version contract.
- Validate source/generated/version/release parity before reporting completion.
ai-skills-core does not judge:
- PPT scientific quality or slide visual hierarchy;
- statistical correctness;
- medical imaging semantics;
- bioinformatics scientific workflow;
- prose scientific meaning.
Those decisions must be handled by the target domain plugin or official capability. For example, a presentations refinement uses workflow-core for process, ai-skills-core for maintenance closure, and presentations for slide/deck judgment.
Before editing plugin source in this mode, verify whether the current Codex identity has the production plugin installed and enabled. When a task requires production evidence, use ai-bridge plugin-replay --plugin ai-skills-core@yuukias-ai-skills or the exact plugin id reported by codex plugin list; reading this repository's source SKILL.md is useful context but is not proof of production invocation.
When the refinement is responding to a real artifact failure, keep the maintenance owner separate from artifact judgment:
- record whether the failure is a
PROCESS PASS / process-control failure, PRODUCT / ARTIFACT PASS failure, or both;
- ensure the Reviewed Handoff Plan/Reviewer has a real repo-safe artifact path, render, or Bridge Kit Text Review evidence locator when acceptance depends on artifact quality;
- do not accept CI, schema, protected-span, or Executor summary success as product/artifact PASS;
- if the final artifact cannot be read or viewed, the review condition is
WAITING_FOR_EVIDENCE / NEEDS_REVIEW, not PASS.
Private/text artifact review is owned by GPT_Codex_AI_Bridge_Kit Text Review. Do not implement another artifact transport or reviewer in AI_Skills_Collection; once Bridge Kit Text Review lands, consume its evidence and artifact identity in the maintainer/review contract.
Real regression case 044: a private rewritten_report.md was reported by the user to still contain reader-facing provenance, estimand, scientific gap, resource contract, and state of the art language that violated the frozen writing requirement, while review passed without reading the full artifact. Future maintenance of the same class must be blocked at the Reviewed Handoff artifact-aware review layer; this maintainer should route it there and should not rewrite the 044 scientific text.
Workflow
- Read root
AGENTS.md, README.md, TODO.md, scripts/codex_marketplace_config.json, profiles/, relevant workflow docs, and relevant tests.
- For Notion or GitHub intake, record the evidence boundary first: source page or repo, readable text/images/attachments, public-source verification, processing decision, target skill/reference, integration commit, and whether the external tracker has already been reconciled.
- Decide whether each external item is
merged, partially-merged, reference-only, reviewed-not-adopted, unresolved-asset, or rejected. Do not collapse several weak-evidence items into a single merge-selected claim.
- Route domain judgment to the right domain plugin or official capability. This skill controls repository maintenance; it does not decide frontend taste, PPT content, bioinformatics workflows, statistics, or medical-imaging methods by itself.
- Edit source files first:
skills/, profiles/, docs/provenance/, docs/plugin-todos/, docs/plugin-changelogs/, tests, and public docs.
- Regenerate derived registry/catalog/marketplace files only after source-layer changes are complete.
- Run repository validation gates with the local runtime Python when
python is not on PATH.
- Commit after validation, then reconcile external trackers only if the user requested it.
- Report generated-layer changes separately from source-layer changes.
Continuous real-world refinement
When maintenance comes from a real project using an AI_Skills plugin, first read:
TODO.md
docs/workflows/CONTINUOUS_REAL_WORLD_SKILL_REFINEMENT.md
docs/PLUGIN_MATURITY.md
docs/plugin-todos/README.md
docs/plugin-todos/<target-plugin>.md
Apply these rules:
- Project-owned research/product/code work stays in the project repo.
- A problem caused by an AI_Skills plugin should be recorded directly in the corresponding central plugin TODO, not duplicated into the project repo as a plugin TODO.
- A real project thread may add a minimal
status: NEW item directly to docs/plugin-todos/<plugin>.md with source, evidence, problem, and project-specific context.
- The project thread records the real failure; it does not decide the final generic rule or promotion status.
- Before triaging
NEW, compare against the current plugin TODO and active skill/reference/QA/runtime. Merge duplicate evidence instead of creating near-duplicate rules.
- If an active rule already exists but real output still fails, treat it as a production regression and inspect the consumer/runtime rather than adding another synonymous rule.
- Map each production regression to existing gates unless it proves a distinct capability, evidence type, failure semantics, normal entry, or owner boundary. Gate split/new gate decisions must explain old/new coverage and where historical regression samples move.
- Gate merge or retirement requires preserving historical regression coverage, should-not-change examples, and release/maturity implications in the Plan, RESULT, TODO, changelog, or tests. Do not let a capability disappear because its old gate was not convenient in the current batch.
- Narrow release checks require a written isolation argument and should-not-change evidence. If the change touches shared runtime/schema/generator, routing/default prompts, marketplace/profile exposure, artifact review, credential/paid transport, or cross-plugin user-visible behavior, use broad/full fallback gates.
- Regression and review evidence for a release must come from the same final candidate; grader/eval/rubric repairs must be reported separately from product repairs.
- If the issue is only project-specific, mark
PROJECT_LOCAL and do not promote it into active plugin behavior.
- Only the AI_Skills Planner/maintainer may turn a
NEW item into CANDIDATE_GENERIC, PROMOTE_NOW, SUPERSEDED, or REJECTED after triage.
- Do not promote every TODO into
SKILL.md. Freeze a promotion decision, target layer, boundary, real evidence, user-facing effect, and regression first.
- Prefer modifying an existing routing/reasoning/rendering/QA/writing/distribution layer over creating another skill/schema/state.
- After promotion, replay the original real failure and run an unrelated regression. Synthetic checks alone do not prove maturity.
- Reviewed Handoff refinement should be bounded and batch-based. Do not keep a watcher alive to invent new work after the real blocker is closed.
- Repository release version, two-part plugin release version, and capability maturity are separate; do not change package or plugin versions merely to express alpha/beta/stable maturity.
- Maintenance-only TODO/provenance files must not be copied into generated user-facing plugin payload unless they are intentionally promoted runtime references.
Version and changelog discipline
Before changing any repository or plugin version, read:
AGENTS.md
docs/workflows/PLUGIN_VERSIONING_AND_CHANGELOGS.md
VERSION # when present after the 5.0 epoch
scripts/codex_marketplace_config.json
CHANGELOG.md
docs/plugin-changelogs/<target-plugin>.md
docs/plugin-todos/<target-plugin>.md
Do not infer a version bump from diff size, commit count, TODO count, test count, CI PASS, or maturity labels.
Mandatory rules:
- Repository / CLI uses three-part releases. Patch is the default compatible release; minor requires a new repository-level user capability; major requires a breaking repository contract.
- Individual plugins use independent two-part releases such as
0.1 -> 0.2 -> 0.3 -> 1.0.
- Plugin version changes only when that plugin has a completed user-facing improvement batch with replay/regression/review evidence.
- If a bounded production plugin refinement changes user-facing behavior or workflow, passes its original-failure replay and unrelated regression, and is ready for delivery, bump that plugin exactly once in the same task. Do not leave the completed behavior change as
Unreleased with a deferred plugin version bump.
- A single plugin release normally causes a repository patch release, not a repository minor release.
- A plugin reaching
1.0 does not by itself cause a repository minor release.
- Baseline replay, TODO/provenance/maintenance-only docs, tests-only changes, or no-runtime-behavior changes do not bump plugin versions.
- If the bump cannot be justified exactly under the canonical policy, choose
NO_BUMP and return to Planner/user.
Every release plan/result must state:
Repository bump decision: NONE | PATCH | MINOR | MAJOR
Reason: ...
Affected plugins:
- <plugin>: NO_BUMP | <old> -> <new>
Reason: ...
Validation
Run the narrowest useful checks first, then the full gate before delivery:
python scripts/skills.py registry --write
python scripts/skills.py validate
python scripts/skills.py audit --all
python scripts/skills.py catalog --write
python scripts/build_codex_marketplace.py --write --validate --check --path-report
python -m unittest discover -s tests
For a formal release, also require relevant install/upgrade smoke, version/changelog/README consistency, generated-layer parity, and required GitHub CI.
1---2name: ai-skills-repository-maintainer3description: Maintain AI_Skills_Collection itself, including production plugin refinement contracts, source-first changes, generated parity, replay/regression gates, versions, changelogs, registry, catalog, marketplace, and profiles. Use only when the user is working on this repository or explicitly asks to maintain the central skill collection.4---5# AI Skills Repository Maintainer67Use this skill only for maintaining `AI_Skills_Collection`. Do not use it for ordinary coding tasks in unrelated repositories.89## Boundary1011- Maintain source skills, profiles, README, registry, catalog, provenance, icon metadata, version/changelog metadata, and Codex App marketplace publication.12- Do not duplicate OpenAI system skills such as `skill-creator`, `skill-installer`, or `plugin-creator`.13- Do not use this as a domain skill. Frontend taste, PPT planning, bioinformatics retrieval, writing, and statistics live in their own plugins or official capabilities.14- Treat `.agents/plugins/marketplace.json` and `plugins/codex/plugins/` as generated output.15- Keep external source intake temporary, reviewed, and provenance-recorded.1617## Plugin Refinement Companion Mode1819Use this mode whenever the current task maintains `AI_Skills_Collection` and will change a formal central plugin's production behavior, including changes to:2021- `skills/`;22- plugin routing;23- runtime references or shared runtime;24- QA or regression behavior;25- generator or production scripts;26- Marketplace payload;27- profile exposure.2829This mode is mandatory for production plugin refinement. It is a maintenance companion, not a second workflow engine and not a domain expert.3031The installed plugin should be presented to users as `AI Skills Maintainer`; keep the internal plugin slug `ai-skills-core` unless a task provides strong compatibility evidence for a slug migration. Normal maintenance combinations are:3233- `AI Skills Maintainer` + `Presentations`;34- `AI Skills Maintainer` + `Clear Writing`;35- `AI Skills Maintainer` + `Statistical Modeling`.3637The target plugin decides what is professionally correct. This maintainer decides whether the change is source-authoritative, generated, replayed, regression-tested, versioned, changeloged, and closed.3839Task identity is a maintenance boundary. Use the workflow owner's canonical task-key contract; new Bridge / Reviewed Handoff tasks use semantic `<scope-token>--<goal-token>` keys, and legacy numbered keys are read/validate-only compatibility. Scope comes from the real repo/plugin/workflow boundary. Keep the human short label separate from the machine key, and do not add a display-title service or let a client/thread/sidebar title control branch names, results paths, or scheduled-review bindings.4041Fixed flow:42431. Identify the target plugin.442. Identify the domain owner plugin or official capability.453. Read the target plugin TODO, target plugin changelog, active source skill/reference/runtime/QA, Marketplace config, and version policy.464. Check whether the failure is an existing active-rule production regression, duplicate TODO, `PROJECT_LOCAL`, `CANDIDATE_GENERIC`, or already solved.475. Freeze the maintenance boundary: what repository contract changes, what stays out of scope, and which existing layer owns the change.486. Keep professional judgment with the domain owner.497. Modify source authority first.508. Regenerate the generated layer.519. Install or reload the real production plugin when production behavior changed.5210. Replay the original real failure or a public-safe equivalent frozen by the task.5311. Run the cheap deterministic regression bank first, then an unrelated regression for the target plugin or affected shared path, escalating to broad/full gates when shared runtime/schema/generator, routing, Marketplace/profile, artifact review, credential/paid path, or cross-plugin user-visible behavior changed.5412. Close or update the target plugin TODO.5513. Bump the affected plugin version exactly once when the completed release changes production behavior.5614. Update the affected plugin changelog with before -> after behavior.5715. Apply the repository release/version contract.5816. Validate source/generated/version/release parity before reporting completion.5960`ai-skills-core` does not judge:6162- PPT scientific quality or slide visual hierarchy;63- statistical correctness;64- medical imaging semantics;65- bioinformatics scientific workflow;66- prose scientific meaning.6768Those decisions must be handled by the target domain plugin or official capability. For example, a `presentations` refinement uses `workflow-core` for process, `ai-skills-core` for maintenance closure, and `presentations` for slide/deck judgment.6970Before editing plugin source in this mode, verify whether the current Codex identity has the production plugin installed and enabled. When a task requires production evidence, use `ai-bridge plugin-replay --plugin ai-skills-core@yuukias-ai-skills` or the exact plugin id reported by `codex plugin list`; reading this repository's source `SKILL.md` is useful context but is not proof of production invocation.7172When the refinement is responding to a real artifact failure, keep the maintenance owner separate from artifact judgment:7374- record whether the failure is a `PROCESS PASS` / process-control failure, `PRODUCT / ARTIFACT PASS` failure, or both;75- ensure the Reviewed Handoff Plan/Reviewer has a real repo-safe artifact path, render, or Bridge Kit Text Review evidence locator when acceptance depends on artifact quality;76- do not accept CI, schema, protected-span, or Executor summary success as product/artifact PASS;77- if the final artifact cannot be read or viewed, the review condition is `WAITING_FOR_EVIDENCE / NEEDS_REVIEW`, not PASS.7879Private/text artifact review is owned by `GPT_Codex_AI_Bridge_Kit` Text Review. Do not implement another artifact transport or reviewer in `AI_Skills_Collection`; once Bridge Kit Text Review lands, consume its evidence and artifact identity in the maintainer/review contract.8081Real regression case 044: a private `rewritten_report.md` was reported by the user to still contain reader-facing `provenance`, `estimand`, `scientific gap`, `resource contract`, and `state of the art` language that violated the frozen writing requirement, while review passed without reading the full artifact. Future maintenance of the same class must be blocked at the Reviewed Handoff artifact-aware review layer; this maintainer should route it there and should not rewrite the 044 scientific text.8283## Workflow84851. Read root `AGENTS.md`, `README.md`, `TODO.md`, `scripts/codex_marketplace_config.json`, `profiles/`, relevant workflow docs, and relevant tests.862. For Notion or GitHub intake, record the evidence boundary first: source page or repo, readable text/images/attachments, public-source verification, processing decision, target skill/reference, integration commit, and whether the external tracker has already been reconciled.873. Decide whether each external item is `merged`, `partially-merged`, `reference-only`, `reviewed-not-adopted`, `unresolved-asset`, or `rejected`. Do not collapse several weak-evidence items into a single `merge-selected` claim.884. Route domain judgment to the right domain plugin or official capability. This skill controls repository maintenance; it does not decide frontend taste, PPT content, bioinformatics workflows, statistics, or medical-imaging methods by itself.895. Edit source files first: `skills/`, `profiles/`, `docs/provenance/`, `docs/plugin-todos/`, `docs/plugin-changelogs/`, tests, and public docs.906. Regenerate derived registry/catalog/marketplace files only after source-layer changes are complete.917. Run repository validation gates with the local runtime Python when `python` is not on `PATH`.928. Commit after validation, then reconcile external trackers only if the user requested it.939. Report generated-layer changes separately from source-layer changes.9495## Continuous real-world refinement9697When maintenance comes from a real project using an AI_Skills plugin, first read:9899```text100TODO.md101docs/workflows/CONTINUOUS_REAL_WORLD_SKILL_REFINEMENT.md102docs/PLUGIN_MATURITY.md103docs/plugin-todos/README.md104docs/plugin-todos/<target-plugin>.md105```106107Apply these rules:108109- Project-owned research/product/code work stays in the project repo.110- A problem caused by an AI_Skills plugin should be recorded directly in the corresponding central plugin TODO, not duplicated into the project repo as a plugin TODO.111- A real project thread may add a minimal `status: NEW` item directly to `docs/plugin-todos/<plugin>.md` with `source`, `evidence`, `problem`, and `project-specific context`.112- The project thread records the real failure; it does not decide the final generic rule or promotion status.113- Before triaging `NEW`, compare against the current plugin TODO and active skill/reference/QA/runtime. Merge duplicate evidence instead of creating near-duplicate rules.114- If an active rule already exists but real output still fails, treat it as a production regression and inspect the consumer/runtime rather than adding another synonymous rule.115- Map each production regression to existing gates unless it proves a distinct capability, evidence type, failure semantics, normal entry, or owner boundary. Gate split/new gate decisions must explain old/new coverage and where historical regression samples move.116- Gate merge or retirement requires preserving historical regression coverage, should-not-change examples, and release/maturity implications in the Plan, RESULT, TODO, changelog, or tests. Do not let a capability disappear because its old gate was not convenient in the current batch.117- Narrow release checks require a written isolation argument and should-not-change evidence. If the change touches shared runtime/schema/generator, routing/default prompts, marketplace/profile exposure, artifact review, credential/paid transport, or cross-plugin user-visible behavior, use broad/full fallback gates.118- Regression and review evidence for a release must come from the same final candidate; grader/eval/rubric repairs must be reported separately from product repairs.119- If the issue is only project-specific, mark `PROJECT_LOCAL` and do not promote it into active plugin behavior.120- Only the AI_Skills Planner/maintainer may turn a `NEW` item into `CANDIDATE_GENERIC`, `PROMOTE_NOW`, `SUPERSEDED`, or `REJECTED` after triage.121- Do not promote every TODO into `SKILL.md`. Freeze a promotion decision, target layer, boundary, real evidence, user-facing effect, and regression first.122- Prefer modifying an existing routing/reasoning/rendering/QA/writing/distribution layer over creating another skill/schema/state.123- After promotion, replay the original real failure and run an unrelated regression. Synthetic checks alone do not prove maturity.124- Reviewed Handoff refinement should be bounded and batch-based. Do not keep a watcher alive to invent new work after the real blocker is closed.125- Repository release version, two-part plugin release version, and capability maturity are separate; do not change package or plugin versions merely to express alpha/beta/stable maturity.126- Maintenance-only TODO/provenance files must not be copied into generated user-facing plugin payload unless they are intentionally promoted runtime references.127128## Version and changelog discipline129130Before changing any repository or plugin version, read:131132```text133AGENTS.md134docs/workflows/PLUGIN_VERSIONING_AND_CHANGELOGS.md135VERSION # when present after the 5.0 epoch136scripts/codex_marketplace_config.json137CHANGELOG.md138docs/plugin-changelogs/<target-plugin>.md139docs/plugin-todos/<target-plugin>.md140```141142Do not infer a version bump from diff size, commit count, TODO count, test count, CI PASS, or maturity labels.143144Mandatory rules:145146- Repository / CLI uses three-part releases. Patch is the default compatible release; minor requires a new repository-level user capability; major requires a breaking repository contract.147- Individual plugins use independent two-part releases such as `0.1 -> 0.2 -> 0.3 -> 1.0`.148- Plugin version changes only when that plugin has a completed user-facing improvement batch with replay/regression/review evidence.149- If a bounded production plugin refinement changes user-facing behavior or workflow, passes its original-failure replay and unrelated regression, and is ready for delivery, bump that plugin exactly once in the same task. Do not leave the completed behavior change as `Unreleased` with a deferred plugin version bump.150- A single plugin release normally causes a repository patch release, not a repository minor release.151- A plugin reaching `1.0` does not by itself cause a repository minor release.152- Baseline replay, TODO/provenance/maintenance-only docs, tests-only changes, or no-runtime-behavior changes do not bump plugin versions.153- If the bump cannot be justified exactly under the canonical policy, choose `NO_BUMP` and return to Planner/user.154155Every release plan/result must state:156157```text158Repository bump decision: NONE | PATCH | MINOR | MAJOR159Reason: ...160Affected plugins:161- <plugin>: NO_BUMP | <old> -> <new>162 Reason: ...163```164165## Validation166167Run the narrowest useful checks first, then the full gate before delivery:168169```bash170python scripts/skills.py registry --write171python scripts/skills.py validate172python scripts/skills.py audit --all173python scripts/skills.py catalog --write174python scripts/build_codex_marketplace.py --write --validate --check --path-report175python -m unittest discover -s tests176```177178For a formal release, also require relevant install/upgrade smoke, version/changelog/README consistency, generated-layer parity, and required GitHub CI.