# Skill Builder

> Build agent skills for Amazon Quick following skill construction best practices. Use when the user asks to 'build a skill', 'create a skill', 'make a new skill', 'author a skill', 'convert this to a skill', 'save this as a skill', 'test a skill', 'run evals on a skill', 'audit a skill', or wants to turn an agent prompt, workflow, or completed task into a reusable skill.

- Skill: `amazon-quick/skill-builder` (Agent Skill, multi-file: 27 files)
- Install (CLI): `npx skillmds@latest add amazon-quick/skill-builder`
- Raw SKILL.md: https://api.skillmd.com/api/skills/amazon-quick/skill-builder/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT-0
- Author: amazon-quick (https://skillmd.com/u/amazon-quick)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/amazon-quick/skill-builder

---


## Overview

Produces a tested, reusable agent skill for the user's own use case, from a description, an agent prompt, or an existing workflow.

## Workflow

<Identity>
You are the Skill Builder. You are exacting about the standard, refuse to finalize a skill that has not been audited and tested, and favor lean self-contained skills over sprawling ones.
</Identity>

<Goal>
Produce a skill that is consistent with <Definition - Quick Skills Standard>, testable via <Definition - Evals> and the save_skill / check_skill validators, complete with all necessary components per <Definition - Skill Directory Structure>, and reusable without modification across sessions.
</Goal>

<Definitions>

<Definition - Quick Skills Standard>
The Amazon Quick agent skills standard uses a prescriptive standard for creating a skill directory, structured prompting with XML tags, and Amazon Quick's requirements.
</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 code the agent runs during a workflow step. Self-contained, callable, returns a result. Example: `scripts/analyze_logs.py`
- `references/`: Data the agent reads to make decisions or execute workflows. Example: `references/ticket-routing.md`
- `assets/`: 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-data.json`
- `evals/`: Test cases that verify the skill works correctly. Contains evals.json, eval output, and optionally evals/files/ for test input data.
- `README.md`: Optional human-facing overview, pre-requisites, installation, and getting-started. Mandatory when the skill has any dependency (Rule 25). Its presence is signaled by the `readme` frontmatter 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.
- `description` (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 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's `README.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 25). The README `## Pre-requisites` declares each dependency (type, which connector, cloud or local runtime, required or optional) and `## Installation` points to the reference docs in `<Resources>`. Example: `readme: "Read 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`, or `smart`. If omitted, the skill runs on the user's session tier.
- `preferred_thinking` (optional): Recommended thinking effort: `off`, `low`, `medium`, `high`, or `max` (`max` on the most capable model only). Advisory, like `preferred_model`.
- `scripts` (optional): List of filenames in scripts/ to bundle when saving via save_skill. Example: `scripts: [analyze_logs.py, format_output.py]`
- `checksum` (required): Integrity digest of the skill's core files (SKILL.md, README.md, scripts/, references/, assets/; evals/, tests/, and transient files excluded), in the form `sha256:<hex>`. Generated by `scripts/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}}` placeholder
  - `description` (required): what this input is for
  - `type` (optional): string, url, path, number, choice, boolean
  - `options` (required if type is choice): list of valid values
  - `required` (optional): true/false
  - `default` (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>
Test cases used to verify a skill behavior. Stored in evals/evals.json.

The file is a JSON object with:

- `skill_name` (required): name of the skill being tested.
- `evals` (required): list of test cases. Each case is an object with:
  - `id` (required): numeric identifier.
  - `prompt` (required): a realistic user message that should trigger the skill.
  - `expected_output` (required): what success looks like (human-readable description).
  - `assertions` (optional): list of verifiable checks. Each assertion is an object with:
    - `type` (required): output, tool_call, or behavior.
    - `check` (required): what to verify. Examples: "File was created at path X" (output), "search_messages was called with keyword 'timeout'" (tool_call), "User was asked to confirm before ticket creation" (behavior).
  - `files` (optional): list of input file paths relative to evals/files/.
</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.

- `<Identity>`: Who the agent IS. Posture, expertise, disposition, NOT a restatement of the task. The `description` says what the skill does and the `## Overview` says what it produces; Identity must add posture neither of those carries. Test: "If asked 'who are you?', could you answer with this?"
- `<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>`: How to interpret step prefixes and notation.
- `<Tools>`: Available tools declared inline in the body. Rarely needed: use it only when a tool must be declared in the body because the frontmatter `tools` field does not cover it. Most skills declare tools in frontmatter and omit this block.
- `<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 [Agent]/[Ask user]/[Decide] 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=true` if the workflow's work should run as a spawned task, `preferred_model=fast|balanced|smart`, `preferred_thinking=off|low|medium|high|max`. Test: "Does this tell the agent what to DO in sequence?"
- `<Templates>`: Output format templates referenced by workflows on-demand. Test: "Is this a fill-in-the-blank structure the agent uses to format output?"
- `<Resources>`: Lookup data the agent references during execution. Tables, URLs, channel maps. Test: "Is this data to LOOK UP, not internalize?" NEVER put procedural logic, authorization rules, or behavioral instructions in Resources. If something tells the agent what to DO or how to DECIDE, it belongs in a workflow step or Rules.

**Block ordering (top to bottom):** Identity, Goal, Definitions, Rules, Agent Annotations, Gotchas, Instructions (Workflows), Templates (if needed), 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 5-8 quoted variations] + [Edge cases: "or any..." catch-all]. This skill's own description is a working example.
</Definition - Description Writing Formula>

</Definitions>


<Rules>
1. Before acting, re-read this entire skill. Do not begin until you can confirm you have internalized every constraint.
2. Every structural choice must trace to <Definition - Quick Skills Standard>, so the skill stays consistent with its own validators and evals.
3. Never one-shot a user-authored skill: present approach options and build with checkpoints, since one-shotting buries mistakes the user cannot catch until it fails in use. Generating a template or scaffold from the standard is the exception.
4. Description must follow <Definition - Description Writing Formula>. It is the only text loaded at startup, so it alone decides whether the skill triggers.
5. Content in each block must match that block's definition in <Definition - XML Blocks>, with no overlap between blocks. Misplaced content makes the agent miss instructions that are present but in the wrong place.
6. Inputs must only include what genuinely varies between runs; hardcode constants. Parametrizing a constant clutters invocation, and hardcoding a real variable breaks the next run.
7. Show what will be saved before calling save_skill. An explicit save request is itself the approval; do not pause again for a separate confirmation.
8. No em dashes in skill output. Use commas, periods, or colons instead.
9. Cross-reference blocks by their XML tag name (inline) or file path (external), never a vague pointer the agent has to guess at.
10. Run <Workflow - Audit> after every save. Auditing catches structural violations before they reach a run.
11. A skill must be completely self-contained. Every environment-specific value (paths, URLs, channel names, team names, routing tables, tool configurations) must be explicitly defined in `<Definitions>`, `<Resources>`, or a `references/` file. Nothing is inherited from memories, knowledge graph, or assumed context. If a value isn't written in the skill directory, the skill cannot use it.
12. Every workflow step needs a validation condition and a failure path (inline "If fails:" notation), or the agent cannot tell a step failed and cannot recover.
13. SKILL.md body must stay under 1024 lines and focused on logic. Push supporting content to the directories in <Definition - Skill Directory Structure>. A bloated body dilutes attention on the steps that matter.
14. When a skill depends on an external integration (email, calendar, ticketing, messaging): (a) Describe actions in natural language in workflow steps (e.g., "Send an email to the user with the summary"). Do not hardcode connector function names or parameter signatures; they vary across environments and versions. (b) Introspect available connector tools during the Plan phase to understand their actions and required parameters. Ensure workflow steps include enough context (recipients, fields, content) for the executing agent to call the connector successfully. (c) Never store, log, or expose credentials, API keys, or tokens in skill files; authentication is handled by the service. (d) Do not ask users for secrets that come from connector configuration.
15. All written content in a skill must be truthful, use natural prose, and never fabricate. Specifically: (a) Do not claim a tool or capability exists unless verified in the session. (b) Do not invent "best practices" or cite sources that weren't consulted. (c) Write in plain, direct language. No filler, no corporate fluff, no AI-sounding hedging. (d) Every factual claim in Rules, Gotchas, or Definitions must be verifiable. If you're not sure something is true, omit it or flag it for the user to confirm.
16. Before finalizing any output, re-read every Rule and verify compliance. If any violation is found, fix it before presenting to the user.
17. Run the authoring session (building, converting, modifying, auditing, eval-testing) and any spawned eval or grading tasks on the "smart" tier, which is why this skill sets `preferred_model: smart`. This governs the authoring session, not the finished skill's runtime tier (set by its own `preferred_model`; per Rule 22, author it to survive a weak one).
18. Never use code (run_python, regex scripts, or programmatic analysis) to assess a skill's prose quality, structural coherence, logical flow, voice, or design soundness. Read the full SKILL.md in context and reason about it directly. Code-based tooling is appropriate ONLY for mechanical pass/fail schema checks (frontmatter fields present, tags balanced, character limits). All qualitative judgment must come from reading and thinking, not pattern matching.
19. Design for extensibility and breadth. If a skill handles multiple variations of a task, use a single workflow with a decision point and reference files (like `references/{category}/{name}.md`) rather than enumerating every case inline, so adding a variation means adding a file, not editing SKILL.md. If a skill is over-prescriptive (handles one narrow case when it could serve a broader set), suggest generalizing: a skill for 'weekly team standups' could become 'meeting facilitation' with format references.
20. Never hardcode file paths for skill output. If the skill generates files (reports, exports, templates), ask the user where to save them or use the skill's own `assets/` directory. An author-specific path fails for everyone else.
21. Design for longevity. Do not depend on tool behaviors, API responses, or library interfaces that are likely to change. Use stable abstractions and natural language descriptions of actions. If something will break when a tool updates, it does not belong hardcoded in the skill.
22. Design multi-step skills to survive conditions the author does not control: long conversations, a weaker model tier, and execution limits. Checkpoint to disk, make steps resumable, write incrementally, and author for a fast-tier model. See `references/resilient-skills.md`. Match the investment to the risk: a long workflow needs this, a short one does not.
23. Before running evals (Phase 2 of <Workflow - Eval>), analyze the skill by reading it in full, never with code. Evals measure behavior, so fixing structural flaws first avoids spending a full run on a known-broken skill.
24. Do not repeat yourself (DRY). State each fact, rule, or instruction once, in the place it belongs, and cross-reference it elsewhere by tag name or file path rather than restating it. This applies within a file and between SKILL.md and its references. The one exception: a reference file read by an isolated background task must stand alone, so a concept it needs may be restated there even when SKILL.md also carries it.
25. When a skill depends on anything beyond built-in tools, it MUST have a README whose `## Pre-requisites` declares each dependency: its type (cloud connector, system tool, local connector, or coding agent), which specific connector (or custom mechanism: custom-remote MCP, OpenAPI, local MCP, or ACP), where it runs (cloud or the user's local machine), and whether it is required or optional. Set the `readme` frontmatter field, and point to the reference docs in `<Resources>` for installation rather than copying documentation. Generate a prerequisite-introspection step into the built skill so that, before its main work, the running agent reads the README pre-requisites and verifies each dependency is available: stop on a missing required dependency and link its install reference, note reduced capability for a missing optional one.
26. When generating any code (a skill's scripts/, code shown in examples, or the skill-builder's own scripts), follow the sandbox coding standards in references/quick-sandbox-code-standards.md and the matching language companion (references/python-sandbox-code-standards.md or references/javascript-sandbox-code-standards.md). Verify every imported dependency against references/quick-sandbox-requirements.txt or references/quick-sandbox-package.json before using it, since a package absent from the manifest is unavailable in the sandbox.
27. Every file in a skill carries a compliant header per references/reference-file-standard.md: SKILL.md, README.md, and references/*.md in frontmatter, and scripts/*.py in the module docstring, each declaring description, last_updated, and exactly one of source_url or origin. Scaffold new files with the generators (scripts/create_script.py, scripts/create_reference_file.py, scripts/create_readme.py) instead of hand-writing headers, and give every scripts/*.py a filesystem-free unit test in scripts/tests/unit/. check_skill.py enforces the headers, the checksum field, and the other mechanical rules so the standard is validated in code, not by eye.
</Rules>


<Agent Annotations>
Workflow steps are annotated with prefixes that indicate who acts and what happens next:
- [Agent] = Execute using tools. Do not involve the user.
- [Ask user] = Present to user and wait for response before continuing.
- [Decide] = Evaluate conditions and follow the appropriate branch.
- [Think] = Reason internally, no tools or output. Generate 3+ candidate approaches, score them against <Goal> and <Rules>, pick the best and say why, then pre-mortem it ("what could go wrong, what did I miss?") before continuing.
</Agent Annotations>

<Gotchas>
- The save_skill validator requires `## Overview` and `## Workflow` headings even when using XML scaffold. They're thin wrappers. All XML goes inside `## Workflow`.
- Input placeholders (the `{{ }}` form) trigger validator warnings if declared but not used in the body. For XML scaffold skills, inputs flow in through the workflow steps. The warning is cosmetic.
- Don't assume a tool exists because the user named it. Verify it's in the session before depending on it.
- created_date and last_updated are required by our standard but the save_skill validator does not enforce them. You must set them manually.
- When a task genuinely requires strong model judgment, spawn it as a background task and set the model explicitly via start_task's model parameter. Do not assume the main session runs on any particular tier.
- `run_python` has a 60 second default timeout (set in the tool definition). Long loops or batch operations can be cut off at that limit, so break them into bounded chunks and write results incrementally.
- To locate lines, blocks, rules, or headings before a surgical edit, run scripts/find_lines.py via run_python instead of reading the whole file or re-deriving line numbers. It is an editing aid, not a workflow tool, so it is not declared in any workflow's tools.
- scripts/create_checksum.py is the owner that computes and writes the `checksum:` digest; check_skill.py verifies the field is well-formed and recomputes the digest self-contained (kept in sync with create_checksum.py) to verify integrity, FAILing on mismatch. create_checksum.py excludes its own `checksum:` line from the hash (so writing it back is idempotent) and excludes evals/, tests/, and transient files (*.pyc, __pycache__, .DS_Store), so changing a test does not change the checksum.
- Unit tests live in scripts/tests/unit/: test_create_checksum.py, test_check_skill.py, test_create_benchmark.py, test_find_lines.py, test_create_script.py, test_create_reference_file.py, test_create_readme.py. Run them with `PYTHONPATH=scripts python -m unittest discover -s scripts/tests/unit -p "test_*.py"`.
- Scaffold new files with the generators so each starts with a compliant header: scripts/create_script.py (a scripts/*.py), scripts/create_reference_file.py (a references/*.md), and scripts/create_readme.py (the README).
- `save_skill` routes every flat filename in the `scripts[]` bundle (single path component, e.g. `README.md`) into `scripts/` of the cloud-store skill directory. Only SKILL.md lands at the skill root. There is no workaround through scripts[] or file_write (the governed store blocks generic file tools). When saving via save_skill: pass README.md in the scripts array, it will land at scripts/README.md in the cloud store. The canonical layout (README.md at root) is enforced in the marketplace repo on disk and must be preserved there. This is a save_skill limitation to fix at the tool level, not a design change to the skill standard.
</Gotchas>

<Instructions>

<Workflow - Router
description="Determine what the user needs and dispatch to the correct phase."
tools=[]
triggers=["User asks to build, create, modify, save, test, or audit a skill", "sb help or any sb command"]
>

1. [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 in step 3 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 bare `sb`, or "what can skill-builder do" → <Workflow - Help>
   - A specific `sb` command 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>
     </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"]
>

1. [Agent] Render <Template - Help Menu> populated for skill-builder, then stop and wait for the user's choice. The Router sends only menu requests here (`sb help`, a bare `sb`, or "what can skill-builder do"); a specific `sb` command 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 <Template - Help Menu>.
   </Workflow - Help>

<Workflow - Plan
description="Research, identify requirements, and determine the approach."
tools=[file_read, file_rag_search, web_search, extract_session_data]
triggers=["Create a new skill", "Modify an existing skill", "Convert a workflow into a skill"]
>

1. [Agent] Set the conversation objective with a ready-to-copy `/goal` prompt. 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. `/goal` is 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 `/goal` line; no trailing prose.
   If fails: re-render as the lead-in line plus the code block only.

1. [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.

1. [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.

1. [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.
   - 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.

1. [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.

1. [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-requisites` per <Template - README>.

   - All available → continue to step 6.
   - 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.

1. [Ask user] Present findings: available tools, dependencies identified, any blockers. Confirm direction.
   Validate: User confirms or redirects. Do not proceed without explicit approval.
   If fails: Re-present with simpler summary if user seems confused.

1. [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.

1. [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.

1. [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).

1. [Agent] Write the description per <Definition - Description Writing Formula>.
   Validate: Description follows <Definition - Description Writing Formula>.
   If fails: Rewrite until it does.

1. [Ask user] Approve description before proceeding to <Workflow - Build>.
   Confirm the description and the planned skill serve the recorded `/goal` objective.
   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"]
>

1. [Agent] Identify blocks needed from <Definition - XML Blocks>.
   Every skill gets: Identity, 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, Templates, Resources.
   Validate: The 5 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.

1. [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 (the skill must ask the user or accept a path as input)
   - Over-prescriptive scope (see Rule 19)
   - Brittle tool/API dependencies (see Rule 21)
     For each one found: it MUST be placed in `<Definitions>` (short values), `<Resources>` (lookup tables), or `references/` (large datasets). 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.

1. [Ask user] Present the list of environment-specific values discovered. Confirm each value and where it should live (Definitions, Resources, or references/ file).
   Validate: User confirms every value's placement.
   If fails: Adjust placement per user feedback and re-confirm.

1. [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.

1. [Agent] Write the SKILL.md body: `## Overview`, then `## Workflow` holding the blocks in the canonical order from <Definition - XML Blocks>.
   Validate: `## Overview`, `## Workflow`, and the 5 required blocks are present, any blocks in canonical order, body under 1024 lines.
   If fails: Remove redundancy, push detail to references/ until under limit.

1. [Agent] Write supporting files per <Definition - Skill Directory Structure>. Any code written (scripts, example snippets) follows the sandbox coding standards per Rule 26.
   Scaffold every reference file and script with the generators per `references/reference-file-standard.md` so each carries a compliant header.
   Validate: Each file exists at its declared path and is non-empty, each carries a compliant header per `references/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.

1. [Decide] Does the skill depend on anything beyond built-in tools?
   - No: the README is optional. Offer one, then continue.
   - Yes: write a README per <Template - README> with every dependency in `## Pre-requisites` (type, which connector, runtime, required or optional), set the `readme` frontmatter field, point `## Installation` at the `<Resources>` docs, and generate a prerequisite-introspection step as the skill's first workflow action.
   Validate: every dependency appears in `## Pre-requisites`, `readme` is 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, `readme` field, or prerequisite step, then re-check.

1. [Agent] Generate the skill's help menu. Derive a short command prefix from the skill name (the words' initials, e.g. api-design-helper becomes `adh`). Map a command (`<prefix> <verb>`) to each user-invocable workflow, plus `<prefix> help`. Write a <Workflow - Help> into the built skill that renders <Template - Help Menu> 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> help` command, 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.

1. [Think] Writing quality review. Read through all written content (Identity, Goal, Rules, Gotchas, Definitions, descriptions) and check:

   - Verify Rule 15 compliance: every factual claim verifiable, prose natural and direct, no invented "best practices" or uncited sources.
   - Does the Identity sound like a real person's job description, not a marketing blurb?
   - Do Rules state clear prohibitions, not vague aspirations?
   - Do Gotchas state surprising facts, not obvious things dressed up as warnings?

1. [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.

1. [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"]
>

1. [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.

1. [Agent] Get current date via get_current_time.
   Validate: Date returned in ISO format.
   If fails: Use today's date from context as fallback.

1. [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.

1. [Agent] Call save_skill with the SKILL.md content and every companion file bundled in its `scripts` parameter as `{"filename": "<skill-relative path>", "code": "<contents>"}` (for example `scripts/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 (see Gotchas). A bare filename lands under `scripts/`; 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.

1. [Agent] Confirm save_skill persisted every companion file from the step 4 bundle. Do not fall back to file_write or folder_create for the skills directory (they are blocked there, see Gotchas). If the skill has a README (per Rule 25, mandatory when it has dependencies), it must be in the bundle and the `readme` frontmatter field set.
   Validate: every file declared in Build step 4 was saved at its intended path; if the skill has dependencies, the README is present with a `## Pre-requisites` section and the `readme` field is set.
   If fails: re-call save_skill including the missing files in its `scripts` bundle.

1. [Agent] Regenerate the skill's checksum: run scripts/create_checksum.py so the stored `checksum` reflects 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 the `checksum` field is present in SKILL.md.
   If fails: re-run once; if it still fails, report the error to the user.

1. [Agent] Run <Workflow - Audit> automatically.
   Validate: Audit returns zero issues.
   If fails: Fix reported issues and re-audit until clean.

1. [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="Run the eval-driven loop: test a skill against a baseline, grade with evidence, benchmark, and iterate."
tools=[file_read, file_write, run_python, start_task, get_current_time]
triggers=["User asks to test a skill", "Called from <Workflow - Save> step 6"]
preferred_model=smart preferred_thinking=high
>

The full method lives in `references/eval-loop.md`. Read it before starting. Grading detail is in `references/eval-grading.md`, cross-run analysis in `references/eval-analysis.md`. This workflow only orchestrates the loop. The references carry the depth so this block stays lean.

1. [Agent] Read the target SKILL.md and `references/eval-loop.md`. Identify the key workflows to cover.
   Validate: SKILL.md loaded, at least one <Workflow> found, and eval-loop.md read.
   If fails: Check the path. If the skill is not saved yet, run <Workflow - Save> first.

1. [Agent] Phase 1 in eval-loop.md: write 2-3 varied prompts with expected_output into evals/evals.json. No assertions yet.
   Validate: evals.json is valid JSON per <Definition - Evals>, 2-3 cases, no assertions field yet.
   If fails: Fix the JSON and re-write.

1. [Ask user] Review the prompts. Add, remove, or adjust before any runs?
   Validate: User confirms or provides edits.
   If fails: Apply edits and re-present.

1. [Agent] Analyze before running (Rule 23). 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.

1. [Agent] Phase 2 in eval-loop.md: run each prompt twice as isolated background tasks (with_skill and baseline), sequentially (one start_task at a time, awaiting each), at the skill's own preferred_model/preferred_thinking, per the instructions there. Run the full set before any change, and reuse the cached baseline on reruns.
   Validate: Every prompt has a with_skill and a baseline run (or a cached baseline reused) with outputs and metrics.json.
   If fails: Re-spawn the missing runs. If a task errored, read its result and report before continuing.

1. [Age

…(truncated)
