Overview
Produces a tested, reusable production ready agent skill.
Workflow
<Definition - Quick Skills Standard> The Amazon Quick agent skills standard uses a prescriptive standard for creating a skill directory following prescriptive, prompting, and engineering best practices. We use XML tags to help Quick parse complex prompts unambiguously, especially when your prompt mixes instructions, context, examples, and variable inputs. Each type of content gets its own tag. </Definition - Quick Skills Standard>
<Definition - Skill Directory Structure> A skill is a directory containing:
SKILL.md: The only required file. Contains YAML frontmatter (metadata for discovery) and a markdown body (instructions for execution).scripts/: Executable python or JavaScript code the agent runs during a workflow step. Self-contained, callable, returns a result.references/: Data the agent reads to make decisions or execute workflows. Example:references/ticket-routing.mdassets/: Static resources that shape or appear in the deliverable. Templates the agent fills in, schemas to validate against, images to include. The user receives these. Example:assets/my-static-data.json,assets/README.md, orassets/my-skill-icon.svg.evals/: Test cases that verify the skill works correctly. Contains evals.json, eval output, and optionally evals/files/ for test input data.assets/README.md: Optional human-facing overview, pre-requisites, installation, and getting-started. Mandatory when the skill has any dependency (Rule 21). Its presence is signaled by thereadmefrontmatter field. </Definition - Skill Directory Structure>
<Definition - Frontmatter>
The YAML block between --- delimiters at the top of SKILL.md. All possible fields:
name(required): Kebab-case identifier. Lowercase + hyphens only, max 64 chars. Must match directory name.display_name(optional): Human-friendly name shown in UI.icon(optional): Emoji identifier. Alternatively, if using Quick you can reference the path to your SVG icon. e.g.assets/icon.svgdescription(required): Max 1024 chars. What the skill does and when to use it. Imperative phrasing, include trigger keywords. When a user asks what version of the skill they are on, refer them to the last_updated field.created_date(required): ISO date the skill was first created. Format: YYYY-MM-DD.last_updated(required): ISO date the skill was last modified. Format: YYYY-MM-DD.tools(optional): Built-in (system connectors) Amazon Quick tools this skill calls directly (e.g.,file_read,web_search). Anything that needs an external integration (a connector, local MCP, or coding agent) is documented in the README## Pre-requisites, not here.readme(optional): Instruction for the agent about the skill'sREADME.md, present only when a README exists. It is the machine-readable signal that the agent must read the README before running, which is mandatory when the skill has any dependency (Rule 21). The README## Pre-requisitesdeclares each dependency (type, which connector, cloud or local runtime, required or optional) and## Installationpoints to the reference docs in<Resources>. Example:readme: "Read assets/README.md before running. Its ## Pre-requisites lists required connectors; verify each is available and stop if a required one is missing."preferred_model(optional): Recommended model tier:fast,balanced,smart,auto.autopicks the model and thinking effort for you, so omitpreferred_thinkingwith it. If omitted, the skill runs on the user's session tier.preferred_thinking(optional): Recommended thinking effort:off,low,medium, orhigh. Advisory, likepreferred_model.checksum(required): Integrity digest of the skill's core files (SKILL.md, assets/README.md, scripts/, references/, assets/; evals/, tests/, and transient files excluded), in the formsha256:<hex>. Generated byscripts/create_checksum.py(its single owner), which excludes this line from its own hash so writing it back is idempotent. Regenerated on save; check_skill.py requires it and verifies it is present and well-formed on audit.inputs(optional): Parameters that vary between invocations. Each input has:name(required): identifier used as{{name}}placeholderdescription(required): what this input is fortype(optional): string, url, path, number, choice, booleanoptions(required if type is choice): list of valid valuesrequired(optional): true/falsedefault(optional): value if not provided </Definition - Frontmatter>
<Definition - Progressive Disclosure> Skill description loaded at startup for all skills. Full SKILL.md loaded on activation. Other files loaded on demand during execution. </Definition - Progressive Disclosure>
<Definition - Evals> The tests that measure whether a skill does its job better than the agent alone. Everything is defined in evals/evals.json. Each eval run appends one line of results to evals/results.jsonl, so scores can be compared over time.
evals.json is a JSON object with:
skill_name(required): name of the skill being tested.settings(optional):repeats, how many times each case runs per configuration. Default 3.targets(optional): the bars the scorecard reports against. Nothing blocks on them, and the user sets them. Defaults:pass_rate0.9,min_lift0 (judged after the margin of error),max_regressions0,consistency1.0.cases(required): list of test cases. Each case has:id(required): stable kebab-case identifier, never reused.prompt(required): a realistic user message. Do not name the skill, so the run shows whether the description triggers it.should_trigger(optional, default true): false marks a negative control, a prompt the skill must not activate on. Negative controls run only with the skill, never as a baseline.replies(optional): scripted user answers, in order, for the skill's [Ask user] steps, so checks after the first question can be reached.files(optional): input files under evals/files/, including canned connector or Quick data responses the run reads instead of calling the live service.checks(required): pass/fail checks, written before any run and changed only on purpose. Each has a stableid, atype(outcome: the result is correct;process: the right steps happened;triggering: the skill activated, or stayed off), andcheck(what to verify). </Definition - Evals>
<Definition - XML Blocks> Each block type and what belongs in it. Some carry a "Test:" placement check, a question an author asks to decide whether a piece of content belongs in that block. It is an authoring aid, not something the running agent executes.
<Goal>: Success criteria. Measurable outcomes you could evaluate a run against.<Rules>: Your behavioral constraints on the agent. Test: "Would the agent's default behavior violate YOUR standards without this?"<Definitions>: Terms the agent would otherwise misinterpret.<Agent Annotations>: See for definition<Gotchas>: Non-obvious environment facts that contradict likely assumptions. Test: "Would the agent make a FACTUAL ERROR without this?"<Instructions>: Wrapper containing all<Workflow>blocks.<Workflow - X>: Step-by-step procedures using prefixes. Required inline attributes:description="...",tools=[built_in_tool, ...],triggers=["when X", "when Y"]. Optional advisory execution hints (guidance to the orchestrating agent, not service-enforced):background=trueif the workflow's work should run as a spawned task. Test: "Does this tell the agent what to DO in sequence?"<Resources>: Files and URLs the agent loads on demand, one<Resource key="...">entry each. e.g.<Resource key="amazon-quick-desktop">https://docs.aws.amazon.com/quick/latest/userguide/amazon-quick-desktop.html</Resource>. Workflow steps cite an entry by key, e.g.<Resource key="amazon-quick-desktop">.
Block ordering (top to bottom): Goal, Definitions, Rules, Agent Annotations, Gotchas, Instructions (Workflows), Resources (if needed). The agent reads sequentially: context and constraints before procedures, lookup data last. </Definition - XML Blocks>
<Definition - Description Writing Formula>
Format: [What it does, one sentence] + [Trigger phrases: "Use when asked to..." with 3-6 quoted variations, including the help command <prefix> help]. The prefix is the initials of the skill name, e.g. api-design-helper is adh.
</Definition - Description Writing Formula>
<Definition - Run Metrics>
Every skill records each workflow run in a local SQLite database with scripts/record_event.py. When the Router dispatches a workflow, record start with the skill name, its frontmatter checksum as the version, and the workflow name, and keep the printed run_id. When that workflow and any workflow it hands off to are done, record end with completed, failed, or stopped and the number of tool calls made. Ask the user once per session where to keep the database file. Metrics never block a workflow: if the user declines or recording fails, continue without them.
</Definition - Run Metrics>
<Workflow - Router description="Determine what the user needs and dispatch to the correct phase." tools=[run_python] triggers=["User asks to build, create, modify, save, test, or audit a skill", "sb help or any sb command"]
-
[Decide] What is the user asking? Validate: Exactly one path is chosen. If ambiguous, ask user to clarify before proceeding.
- Create a new skill → <Workflow - Plan>
- Modify an existing skill → <Workflow - Plan> (load existing skill as context first)
- Convert a just-completed workflow into a skill → <Workflow - Plan> (use extract_session_data during introspection to pull tools and context from the live session)
- Continue building a skill already planned → <Workflow - Build>
- Save a skill that's ready → <Workflow - Save>
- Test a skill → <Workflow - Eval>
- Check a skill against the standard → <Workflow - Audit>
sb help, a baresb, or "what can skill-builder do" → <Workflow - Help>- A specific
sbcommand dispatches straight to its workflow:sb plan→ <Workflow - Plan>,sb build→ <Workflow - Build>,sb save→ <Workflow - Save>,sb eval→ <Workflow - Eval>,sb audit→ <Workflow - Audit>
-
[Agent] Before dispatching, record the run start per <Definition - Run Metrics>. Validate: record_event.py printed a run_id, or the user declined metrics. If fails: dispatch without metrics.
-
[Agent] When the dispatched workflow, and any workflow it hands off to, is done, record the run end per <Definition - Run Metrics>. Validate: record_event.py confirmed the end, or no run was started. If fails: continue without metrics. </Workflow - Router>
<Workflow - Help description="Render the skill-builder command menu, or dispatch a specific sb command." tools=[] triggers=["sb help", "sb", "User asks what skill-builder can do or how to use it"]
- [Agent] Render populated for skill-builder, then stop and wait for the user's choice. The Router sends only menu requests here (
sb help, a baresb, or "what can skill-builder do"); a specificsbcommand is dispatched by the Router straight to its workflow. Validate: the menu lists every command with a one-line description. If fails: re-render from . </Workflow - Help>
<Workflow - Plan description="Research, identify requirements, and determine the approach." tools=[file_read, file_rag_search, web_search, url_fetch, extract_session_data] triggers=["Create a new skill", "Modify an existing skill", "Convert a workflow into a skill"]
-
[Agent] Set the conversation objective with a ready-to-copy
/goalprompt. From the user's opening description of what they want, draft a one-line objective and output it as a single fenced code block containing only the/goal ...line, preceded by exactly one lead-in sentence: "Copy this to set the goal of the conversation (edit as needed):". Output nothing after the code block./goalis Amazon Quick's native command that runs the session in goal-completion mode, so the agent works until the objective is met and self-checks before handing back. If the user opened cold with no description, ask for the objective in one sentence first, then produce the block. Example output:/goal Build a skill that <does X> so that <outcome>.Validate: output is one lead-in line plus one code block containing only a
/goalline; no trailing prose. If fails: re-render as the lead-in line plus the code block only. -
[Ask user] What should this skill do? Accept:
- A description of the desired behavior
- An agent prompt to convert
- A file path to a document or runbook Validate: User provides at least one of the above. If vague, ask a clarifying question. If fails: Re-ask with examples of each input type.
-
[Agent] If a file path was provided, read it via file_read. Validate: File content loaded successfully and is non-empty. If fails: Report "file not found" or "file empty" to user and ask for alternative input.
-
[Agent] Introspection. Check what's already available:
- Tools in the current session (core registry + connected connectors)
- For each connector the skill will use: introspect its available actions and required parameters. Understand what data the connector needs (recipients, subject lines, body content, channel names, ticket fields, etc.) so the skill collects the right inputs from the user and workflow steps provide sufficient context for the agent to call the connector correctly at runtime. If the connector is not connected in this session, read its docs instead: for a web connector, load with url_fetch, find the connector under "Integration-specific guides", open its guide, and read the "Available actions" table; for any other type, use its doc in .
- Skills that already exist (could we extend one instead of creating new?)
- Knowledge graph and memories for prior work on this topic
- Data sources and integrations the user has access to Validate: At least one relevant tool or data source identified. For each connector dependency, the agent can describe what parameters it requires. If fails: Note "no existing tools found" and continue. The skill may need new MCPs.
-
[Agent] Public research. Search the web for:
- Relevant MCPs (local or remote) that might be needed
- Existing patterns, implementations, or libraries Validate: Search returned results (even if none are relevant). If fails: Note "no relevant patterns found online" and continue with what's available.
-
[Decide] Are all required tools/MCPs/connectors available? Validate: A clear yes/no determination is made for every dependency. For each dependency, record its type, which connector, runtime (cloud or local), and required or optional, so Build can write the README
## Pre-requisitesper Rule 21.- All available → continue to presenting findings.
- Exists but not connected → tell user to enable in Settings. Pause.
- Doesn't exist → present options: build with placeholder, build the MCP first, or scope to what's available.
-
[Ask user] Present findings: available tools, dependencies identified, any blockers, and whether the planned skill risks the 500-line SKILL.md limit (Rule 11) and what would move out. Confirm direction. Validate: User confirms or redirects. Do not proceed without explicit approval. If fails: Re-present with simpler summary if user seems confused.
-
[Agent] Suggest 2-3 skill name options. Names must be:
- Kebab-case per <Definition - Frontmatter>
- Descriptive of what the skill DOES, not what it's about
- Short (2-3 words, e.g.,
quick-ticket-agent,field-signal-harvester) Validate: all names are valid kebab-case per <Definition - Frontmatter>. If fails: Regenerate compliant names.
-
[Ask user] Confirm: name, trigger phrase, inputs, dependencies. User always has final say on naming. Validate: User explicitly confirms or provides alternatives. If fails: Do not assume silence is approval. Re-ask.
-
[Ask user] How do you want to build this?
- Section by section (review each block together)
- Draft then review (I write a first pass, we iterate) Validate: User picks one approach. If fails: Default to "section by section" (safer, more checkpoints).
-
[Agent] Write the description per <Definition - Description Writing Formula>. Validate: Description follows <Definition - Description Writing Formula>. If fails: Rewrite until it does.
-
[Ask user] Approve description before proceeding to <Workflow - Build>. Confirm the description and the planned skill serve the recorded
/goalobjective. Validate: Explicit "yes" or equivalent from user. If fails: Revise description per user feedback and re-present. </Workflow - Plan>
<Workflow - Build description="Construct the skill section by section or as a draft, per the approach chosen in Plan." tools=[file_read, file_write, folder_create, get_current_time] triggers=["Called from <Workflow - Plan> after user approves direction"]
-
[Agent] Identify blocks needed from <Definition - XML Blocks>. Every skill gets: Goal, Rules, Agent Annotations, Instructions (with at least one Workflow). Optional (include only if needed): Gotchas (only when real non-obvious facts exist, do not invent filler), Definitions, Resources. Validate: The 4 required blocks are present, each optional block included only when it earns its place. If fails: Cross-reference <Definition - XML Blocks> and add missing blocks.
-
[Agent] Implicit assumptions audit. Scan every workflow step and ask: "Does this reference a value that only works in the skill author's environment?" Catch ALL of:
- File/folder paths (Obsidian vaults, output directories, config locations)
- URLs and endpoints (dashboards, wikis, internal tools)
- Channel/group names (Slack channels, Teams groups, distribution lists)
- People/team names and aliases
- Routing tables, category lists, priority tiers
- Tool configurations or API-specific values
- Vague integration references (e.g., "send a notification" without specifying which integration or what data to include in the message)
- Hardcoded output file paths (see Rule 16)
- Over-prescriptive scope (see Rule 15)
- Brittle tool/API dependencies (see Rule 17)
For each one found: it MUST be placed in
<Definitions>(short values),<Resources>(lookup tables),references/(large datasets), or an input (a value that changes between runs, per Rule 6, including output paths per Rule 16). No value that varies by environment or breaks over time can appear only inside a workflow step. Validate: Produce a list of all findings with proposed placement. Include any extensibility or longevity concerns. If fails: Re-scan. If truly none found, document "no issues detected" and continue.
-
[Ask user] Present the list of environment-specific values discovered. Confirm each value and where it should live (Definitions, Resources, references/ file, or an input). Validate: User confirms every value's placement. If fails: Adjust placement per user feedback and re-confirm.
-
[Agent] Identify supporting files per <Definition - Skill Directory Structure>:
- Lookup tables, routing maps, URL lists →
references/ - Templates, schemas, static resources →
assets/ - Executable helper scripts →
scripts/ - Everything else stays in SKILL.md body Validate: Every file is assigned to exactly one directory. If fails: Re-categorize using the taxonomy test for each directory type.
- Lookup tables, routing maps, URL lists →
-
[Agent] Write the SKILL.md body:
## Overview, then## Workflowholding the blocks in the canonical order from <Definition - XML Blocks>. For a minimal complete example, read . Validate:## Overview,## Workflow, and the 4 required blocks are present, any blocks in canonical order, body under 500 lines. If fails: Remove redundancy, then move content out in the order Rule 11 gives until under the limit. -
[Agent] Write supporting files per <Definition - Skill Directory Structure>. Any code written (scripts, example snippets) follows the sandbox coding standards per Rule 22. Scaffold every reference file and script with the generators per
references/reference-file-standard.mdso each carries a compliant header. Validate: Each file exists at its declared path and is non-empty, each carries a compliant header perreferences/reference-file-standard.md, and any generated code follows references/quick-sandbox-code-standards.md and its language companion with every import present in the applicable manifest. If fails: Regenerate missing files or correct code that violates the sandbox standards. -
[Decide] Does the skill depend on anything beyond built-in tools?
- No: the README is optional. Offer one, then continue.
- Yes: scaffold the README with scripts/create_readme.py, fill
## Pre-requisitesper Rule 21, set thereadmefrontmatter field, point## Installationat the<Resources>docs, and generate a prerequisite-introspection step as the skill's first workflow action. Validate: every dependency appears in## Pre-requisites,readmeis set, and a prerequisite step exists that introspects each dependency and links the install reference for missing required ones. If fails: add the missing README section,readmefield, or prerequisite step, then re-check.
-
[Agent] Generate the skill's help menu. Use the command prefix from <Definition - Description Writing Formula>. Map a command (
<prefix> <verb>) to each user-invocable workflow, plus<prefix> help. Write a <Workflow - Help> into the built skill that renders populated with these commands, and wire the commands into the built skill's <Workflow - Router> and its triggers: menu requests (<prefix> help, a bare<prefix>) route to <Workflow - Help>, and each<prefix> <verb>routes straight to its workflow. Validate: the built skill has a <Workflow - Help>, a<prefix> helpcommand, one command per user-invocable workflow, and its Router dispatches each<prefix> <verb>to the matching workflow. If fails: add the missing help workflow, commands, or router entries, then re-check. -
[Agent] Add run metrics to the built skill: copy scripts/record_event.py into its scripts/, copy <Definition - Run Metrics> into its Definitions, and add the record-start and record-end steps to its Router (with run_python in the Router's tools). Validate: the built skill has scripts/record_event.py, the definition, and Router steps that record the start and the end. If fails: add the missing piece, then re-check.
-
[Think] Writing quality review. Read through all written content (Goal, Rules, Gotchas, Definitions, descriptions) and check:
- Verify Rule 25 compliance: every factual claim verifiable, prose natural and direct, no invented "best practices" or uncited sources.
- Do Rules state clear prohibitions, not vague aspirations?
- Do Gotchas state surprising facts, not obvious things dressed up as warnings?
-
[Agent] Present full preview (SKILL.md + file tree) to user. Validate: Preview shows the complete SKILL.md content plus all supporting file paths. If fails: Ensure nothing was omitted. Re-present.
-
[Decide] User approves → proceed to <Workflow - Save>. User wants changes → adjust and re-preview. Validate: Clear approval signal from user. If fails: Ask "What would you like me to change?" and loop back to relevant step. </Workflow - Build>
<Workflow - Save description="Persist the skill directory and set metadata." tools=[get_current_time, save_skill, file_read] triggers=["Called from <Workflow - Build> after user approves preview", "User asks to save an existing skill draft directly"]
-
[Agent] If the skill was not built in this session (the user pointed at an existing draft), read that draft via file_read and show its content as the preview. An explicit save request is the approval per Rule 7, so continue without pausing. Validate: The SKILL.md content to save is loaded, from this session's Build or the provided draft. If fails: Ask the user for the draft path.
-
[Agent] Get current date via get_current_time. Validate: Date returned in ISO format. If fails: Use today's date from context as fallback.
-
[Agent] Set created_date (if new skill) and last_updated (always) in frontmatter. Validate: created_date and last_updated are set. If fails: Re-set manually.
-
[Agent] Call save_skill with the SKILL.md content and every companion file bundled in its
scriptsparameter as{"filename": "<skill-relative path>", "code": "<contents>"}(for examplescripts/analyze.py,references/routing.md,assets/template.json). Bundling is the only way to write a skill's companion files: generic file_write into the skills directory is blocked. A bare filename lands underscripts/; a relative path is preserved at that path. Validate: save_skill returns success and reports the bundled files as written. If fails: Check for validator errors (missing ## Overview or ## Workflow, a hallucinated tool, or an absolute or..filename that rejects the whole save). Fix and retry once. -
[Agent] Regenerate the skill's checksum: run scripts/create_checksum.py so the stored
checksumreflects the final files. Do this after all files are written and before the audit, so the audit sees a current checksum. Validate: create_checksum.py exits 0 and thechecksumfield is present in SKILL.md. If fails: re-run once; if it still fails, report the error to the user. -
[Agent] Run <Workflow - Audit> automatically. Validate: Audit returns zero issues. If fails: Fix reported issues and re-audit until clean.
-
[Ask user] Generate eval test cases via <Workflow - Eval>? Validate: User responds yes or no. If fails: Default to generating evals (better to have them). </Workflow - Save>
<Workflow - Eval description="Measure a skill against the agent alone: run fixed checks with and without the skill, grade them, and score the results over time." tools=[file_read, file_write, run_python, start_task, get_current_time] triggers=["User asks to test a skill", "Called from <Workflow - Save>"]
-
[Agent] Read the target SKILL.md and
references/evals.md. Validate: SKILL.md loaded, at least one found, and evals.md read. If fails: Check the path. If the skill is not saved yet, run <Workflow - Save> first. -
[Agent] Write or update evals/evals.json per <Definition - Evals> and
<step-1-define>in evals.md, with fixed checks for every user-invocable workflow and at least one negative control. Validate: evals.json parses, and every case and check has an id. If fails: Fix the JSON and re-write. -
[Ask user] Review the cases, checks, and targets. Add, remove, or adjust before any runs? Validate: User confirms or provides edits. If fails: Apply edits and re-present.
-
[Agent] Analyze before running (Rule 19). Read the full SKILL.md and reason directly, no code, about structure, step order, claim verifiability, and voice. Fix what you find before spawning any runs. Validate: Analysis is written and any blocking issues resolved. If fails: Resolve the issues. If the skill needs a rewrite, return to <Workflow - Build> first.
-
[Agent] Run every case per
<step-2-run>in evals.md, then grade every run per<step-3-grade>. Validate: Every run has outputs, metrics.json, and a grading.json with a verdict for each check id. If fails: Re-run or re-grade the missing runs. If a task errored, read its result and report before continuing. -
[Agent] Score the iteration per
<step-4-score>in evals.md, then read the results per<reading-the-results>. Validate: create_benchmark.py appended a line to evals/results.jsonl and printed the scorecard, and each note names a case or check with a number. If fails: Fix the run folders the script reported, then re-run it. -
[Ask user] Present the scorecard and notes. Change the skill, keep it, or add cases? Validate: User picks a direction. If fails: Summarize the results plainly and re-ask. Iteration reruns this workflow, comparing against the last saved result. </Workflow - Eval>
<Workflow - Audit description="Check a skill against the Quick Skills standard." tools=[file_read, run_python] triggers=["User asks to audit a skill", "Called from <Workflow - Save>"]
-
[Agent] Load the target skill via file_read. Validate: SKILL.md content loaded and non-empty. If fails: Check path. If skill doesn't exist, inform user.
-
[Agent] Run scripts/check_skill.py via run_python for all mechanical checks (its docstring lists them), which now include checksum integrity (it recomputes the digest and FAILs on mismatch) and non-blocking staleness WARNINGs. This is the mechanical half only (Rule 14); the checks below are qualitative and done by reading. Validate: check_skill.py exits 0. Staleness WARNINGs do not affect the exit code and are handled in the staleness step below. If fails: Fix each reported failure and re-run until it exits 0. A checksum-mismatch FAIL means files changed without regenerating, so run scripts/create_checksum.py, then re-run.
-
[Agent] Check directory structure against <Definition - Skill Directory Structure>. Validate: No files in wrong directories. evals/ exists. If fails: Log misplaced files as issues.
-
[Agent] Check dependency documentation. Determine whether the skill uses anything beyond built-in tools (inspect workflow steps and tools for connectors, MCP, or coding agents). Validate: if it has any dependency, README.md exists with a
## Pre-requisitessection declaring each dependency (type, which connector, runtime, required or optional), thereadmefrontmatter field is set, and## Installationpoints to reference docs rather than copying them. If it has no dependency, no README is required. If fails: Log the missing README,## Pre-requisitesentries,readmefield, or copied-documentation violation as an issue with the fix. -
[Decide] Review staleness from check_skill.py, which flags SKILL.md and any assets/README.md, references/.md, or scripts/.py that is stale per the staleness rule in
references/reference-file-standard.md. Validate: a branch is chosen for the reported staleness WARNINGs (none, SKILL.md, or a reference/script file).- None → the skill is current; continue.
- SKILL.md stale → recommend a full re-evaluation via <Workflow - Eval> and a review of every Rule, Gotcha, and workflow step against the current standard.
- A reference or script stale → regenerate each file that has a
source_urlfrom that source, and review eachorigin: originalfile by hand. After refreshing any file, bump itslast_updatedand rerun <Workflow - Save> so the checksum is regenerated. If fails: if the warnings are unclear, list the flagged files and ask the user how to proceed.
-
[Agent] Check each XML block's content against its definition in <Definition - XML Blocks>. Validate: Each block's content matches its definition. No content in wrong blocks. If fails: Log misplaced content with recommendation for correct block.
-
[Agent] Report findings: pass/fail per check, specific issues to fix. Validate: Report contains at least one finding per check category (even if "pass"). If fails: Re-run checks that produced no output.
-
[Decide] Issues found → present fixes to user. No issues → report clean. Validate: Clear resolution: either fixes presented or clean bill of health. If fails: Summarize ambiguous findings and ask user for guidance. </Workflow - Audit>


