Skill Manager
Preserve confirmed agent lessons as concise, durable skill guidance. Follow the
active repository and host instructions; this skill does not replace them.
Modes
log-skill-discovery: inspect execution evidence for repeated behavior,
prompt boilerplate, missing guidance, and reusable workflow lessons.
existing-skill-optimization: inspect a current skill for unnecessary prose,
duplicated mechanics, misplaced resources, and context-heavy read paths.
Read refactor-placement.md before changing
placement.
new-skill-final-check: after a new skill is drafted and mechanically valid,
verify its behavior and side effects before reporting it complete.
Stop at a proposal when the finding belongs to product architecture, backlog
shaping, runtime implementation, or another system owner.
Stage contract
DISCOVERY: inspect and report evidence-backed findings; stop without a gate
or edit when no exact candidate is requested.
CANDIDATE: define one exact bundle and separate mechanical validation,
semantic/behavioral gate, and human approval. Gate success is not approval.
APPLY: edit only after unambiguous approval for that exact bundle.
FINAL-CHECK: run mechanical checks, then semantic/behavioral validation,
then any repository-local governance checks.
Workflow
- Read the target skill, its direct references, applicable repository
instructions, and the evidence that exposed the problem. State missing
sources rather than filling them with assumptions.
- Group findings into a small set of reusable themes. Separate skill guidance
from scripts, runtime changes, product work, and one-off local corrections.
- Prepare one exact candidate bundle with affected paths, evidence, expected
impact, risk, and validation.
- For
existing-skill-optimization, run $instruction-validity-gate on the
exact candidate before approval or application. Mechanical validation does
not replace semantic/behavioral validation or human approval.
- Propose only an
APPLY bundle. Obtain text approval that unambiguously
refers to it before editing, unless the current user request already grants
that exact authority.
- Apply only the approved skill changes. Do not create a parallel approval
store or silently expand the bundle.
- For
new-skill-final-check, run the system quick_validate.py on the draft,
then run $instruction-validity-gate before finalization. After a
gate-driven rewrite, rerun both in that order.
- Rerun the gate when applied text differs materially from the passing
candidate. Material changes may alter trigger, scope, authority, workflow,
success or stop conditions, dependencies, or observed behavior; formatting
and spelling alone are not material.
- Treat
HOLD as unfinished and report missing evidence. For REJECT, make a
bounded rewrite within the gate's retry limit or discard the candidate. If
the gate cannot be loaded, stop at HOLD; do not copy its protocol here.
- Run focused validation and every applicable repository governance check.
Commit only when the user and repository workflow authorize it.
Placement
Read refactor-placement.md for placement
decisions. Keep repository-specific commands, paths, role routing, and service
policy in repository instructions or references, not in this global skill.
Validation
Use system skill-creator guidance for skill changes. Validate every changed
folder containing SKILL.md with:
cmd /c py -3 -X utf8 C:\Users\sedho\.codex\skills\.system\skill-creator\scripts\quick_validate.py <skill-folder>
quick_validate.py is mechanical validation only; keep semantic/behavioral
validation, human approval, and repository-local governance checks separate.
For shared references, validate each consuming skill. For executable helpers,
run the smallest direct syntax or behavior check. Read
agent-guidance-test-policy.md before
adding or changing agent-guidance tests.
1---2name: skill-manager3description: 実行証拠から再利用可能な汎用 multi-agent skill guidance を抽出し、global skill の監査・候補化・最終検証・承認済み変更を管理する。実行logからskill候補を探す、既存skillを最適化する、または新規skillをsemantic・behavioralに検証するときに使う。product architecture、backlog、CentralDockyard 固有の task-service/runtime-service/system assertion、repo-local tests/runner は対象外。4---56# Skill Manager78Preserve confirmed agent lessons as concise, durable skill guidance. Follow the9active repository and host instructions; this skill does not replace them.1011## Modes1213- `log-skill-discovery`: inspect execution evidence for repeated behavior,14 prompt boilerplate, missing guidance, and reusable workflow lessons.15- `existing-skill-optimization`: inspect a current skill for unnecessary prose,16 duplicated mechanics, misplaced resources, and context-heavy read paths.17 Read [refactor-placement.md](references/refactor-placement.md) before changing18 placement.19- `new-skill-final-check`: after a new skill is drafted and mechanically valid,20 verify its behavior and side effects before reporting it complete.2122Stop at a proposal when the finding belongs to product architecture, backlog23shaping, runtime implementation, or another system owner.2425## Stage contract2627- `DISCOVERY`: inspect and report evidence-backed findings; stop without a gate28 or edit when no exact candidate is requested.29- `CANDIDATE`: define one exact bundle and separate mechanical validation,30 semantic/behavioral gate, and human approval. Gate success is not approval.31- `APPLY`: edit only after unambiguous approval for that exact bundle.32- `FINAL-CHECK`: run mechanical checks, then semantic/behavioral validation,33 then any repository-local governance checks.3435## Workflow36371. Read the target skill, its direct references, applicable repository38 instructions, and the evidence that exposed the problem. State missing39 sources rather than filling them with assumptions.402. Group findings into a small set of reusable themes. Separate skill guidance41 from scripts, runtime changes, product work, and one-off local corrections.423. Prepare one exact candidate bundle with affected paths, evidence, expected43 impact, risk, and validation.444. For `existing-skill-optimization`, run `$instruction-validity-gate` on the45 exact candidate before approval or application. Mechanical validation does46 not replace semantic/behavioral validation or human approval.475. Propose only an `APPLY` bundle. Obtain text approval that unambiguously48 refers to it before editing, unless the current user request already grants49 that exact authority.506. Apply only the approved skill changes. Do not create a parallel approval51 store or silently expand the bundle.527. For `new-skill-final-check`, run the system `quick_validate.py` on the draft,53 then run `$instruction-validity-gate` before finalization. After a54 gate-driven rewrite, rerun both in that order.558. Rerun the gate when applied text differs materially from the passing56 candidate. Material changes may alter trigger, scope, authority, workflow,57 success or stop conditions, dependencies, or observed behavior; formatting58 and spelling alone are not material.599. Treat `HOLD` as unfinished and report missing evidence. For `REJECT`, make a60 bounded rewrite within the gate's retry limit or discard the candidate. If61 the gate cannot be loaded, stop at `HOLD`; do not copy its protocol here.6210. Run focused validation and every applicable repository governance check.63 Commit only when the user and repository workflow authorize it.6465## Placement6667Read [refactor-placement.md](references/refactor-placement.md) for placement68decisions. Keep repository-specific commands, paths, role routing, and service69policy in repository instructions or references, not in this global skill.7071## Validation7273Use system `skill-creator` guidance for skill changes. Validate every changed74folder containing `SKILL.md` with:7576```text77cmd /c py -3 -X utf8 C:\Users\sedho\.codex\skills\.system\skill-creator\scripts\quick_validate.py <skill-folder>78```7980`quick_validate.py` is mechanical validation only; keep semantic/behavioral81validation, human approval, and repository-local governance checks separate.82For shared references, validate each consuming skill. For executable helpers,83run the smallest direct syntax or behavior check. Read84[agent-guidance-test-policy.md](references/agent-guidance-test-policy.md) before85adding or changing agent-guidance tests.