execute-skill-using-skills-rules
execute-skill-using-skills-rules
What you can do
execute-skill-using-skills-rules gives you three practices you can drop into any agent or repo layout.
What to point at: Treat the skill being directly executed by the user or the agent as the center of attention — the --skill-root package. Read its rules/, run scanners against that skill, and validate its output.
-
When an agent uses a skill to produce output, have it read that skill's rules first — Before substantive work, go through
rules/*.mdand the Bundled rules block inSKILL.md. The point is not "I saw the headings"; it is using the skill according to those rules (constraints, DO/DON'T, examples), not generic habits or a skim ofSKILL.mdalone. You can make that a hard gate: no main task until the pass is done. Walk it with quality-steps-checklist.md § Step 1. -
Validate output against the rules — Do both: an AI / rules pass (read
rules/*.mdand bundled rules; judge whether the deliverable fits — not only "scanners green") and a scanner pass (run_scanners.pyon--workspace). Treat that pair as the normal "does this match the rules?" workflow. Save scanner output somewhere durable (for examplescanner-report/); fix failures and re-run; the rules pass still matters even when scanners pass. -
After something is wrong, follow the correction process — See
guidance/log-and-fix-skill-errorsfor the full loop: identify, log, re-generate, iterate on the output until correct, then optionally improve the source. Put the log under the engagement or project tree — not inside the installed skill package.
The Target Skill Layout
For this skill to work the target skill must have rules/*.md — the rule files produced when you build the skill with the flow that creates those rules. Otherwise the executor has nothing real to run.