[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SF8DAH7FNJB7R3M4VP5FY":3,"skill-same:01M72SF8DAH7FNJB7R3M4VP5FY":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M72SF8DAH7FNJB7R3M4VP5FY","speckit-specify",null,"Create or update the feature specification from a natural language feature description.","EHotwagner\u002FFS-Skia-UI","EHotwagner","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1645484?v=4","01M72S7CTBDPQDQHQJKKHY87K9","01M72S7CVFD0JN82RVX21NFEVC",2,"MIT","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-specify\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: \"speckit-specify\"\ndescription: \"Create or update the feature specification from a natural language feature description.\"\ncompatibility: \"Requires spec-kit project structure with .specify\u002F directory\"\nmetadata:\n  author: \"github-spec-kit\"\n  source: \"templates\u002Fcommands\u002Fspecify.md\"\n---\n\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Pre-Execution Checks\n\n**Check for extension hooks (before specification)**:\n- Discover hooks across **all** extension files (multi-file discovery), not just the central file:\n  - Read `.specify\u002Fextensions.yml` from the project root (if present) and collect entries under the `hooks.before_specify` key.\n  - Then enumerate every `.specify\u002Fextensions\u002F*\u002F*.yml` file in sorted order, parse each, and collect its `hooks.before_specify` entries too — so a hook registered only in a per-extension file (e.g. the `feedback` extension at `.specify\u002Fextensions\u002Ffeedback\u002Ffeedback.yml`) is still discovered and runs.\n  - Merge all collected entries and dedupe by `(extension, command)` (first occurrence wins, so a hook declared in both the central and a per-extension file runs once).\n  - If a file is absent, no hooks are registered, or its YAML cannot be parsed\u002Fis invalid, skip that file silently and continue.\n- For every `optional: true` hook that is discovered but not executed this phase, emit one line so the skip is a visible decision: `Note: optional hook {extension}:{command} is registered but was not run (skipped).`\n- Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.\n- Do **not** interpret or evaluate hook `condition` expressions:\n  - If the hook has no `condition` field, or it is null\u002Fempty, treat the hook as executable\n  - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation\n- For each executable hook, output the following based on its `optional` flag:\n  - **Optional hook** (`optional: true`):\n    ```\n    ## Extension Hooks\n\n    **Optional Pre-Hook**: {extension}\n    Command: `\u002F{command}`\n    Description: {description}\n\n    Prompt: {prompt}\n    To execute: `\u002F{command}`\n    ```\n  - **Mandatory hook** (`optional: false`):\n    ```\n    ## Extension Hooks\n\n    **Automatic Pre-Hook**: {extension}\n    Executing: `\u002F{command}`\n    EXECUTE_COMMAND: {command}\n\n    Wait for the result of the hook command before proceeding to the Outline.\n    ```\n\n## Outline\n\nThe text the user typed after `\u002Fspeckit-specify` in the triggering message **is** the feature description; assume it is available in this conversation even if `$ARGUMENTS` appears literally below. Do not ask the user to repeat it unless they provided an empty command.\n\nGiven that feature description, do this:\n\n1. **Generate a concise short name** (2-4 words) for the feature:\n   - Extract the most meaningful keywords to capture the feature's essence\n   - Use action-noun format when possible (e.g., \"add-user-auth\", \"fix-payment-bug\")\n   - Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)\n   - Keep it concise but descriptive enough to understand at a glance\n   - Examples:\n     - \"I want to add user authentication\" → \"user-auth\"\n     - \"Implement OAuth2 integration for the API\" → \"oauth2-api-integration\"\n     - \"Create a dashboard for analytics\" → \"analytics-dashboard\"\n     - \"Fix payment processing timeout bug\" → \"fix-payment-timeout\"\n\n2. **Branch creation** (optional, via hook):\n\n   If a `before_specify` hook ran successfully in the Pre-Execution Checks above, it will have created\u002Fswitched to a git branch and output JSON containing `BRANCH_NAME` and `FEATURE_NUM`. Note these values for reference, but the branch name does **not** dictate the spec directory name.\n\n   If the user explicitly provided `GIT_BRANCH_NAME`, pass it through to the hook so the branch script uses the exact value as the branch name (bypassing all prefix\u002Fsuffix generation).\n\n3. **Create the spec feature directory**:\n\n   Specs live under the default `specs\u002F` directory unless the user explicitly provides `SPECIFY_FEATURE_DIRECTORY`.\n\n   **Resolution order for `SPECIFY_FEATURE_DIRECTORY`**:\n   1. If the user explicitly provided `SPECIFY_FEATURE_DIRECTORY` (via environment variable, argument, or configuration), use it as-is\n   2. Otherwise, auto-generate it under `specs\u002F`:\n      - Check `.specify\u002Finit-options.json` for `branch_numbering`\n      - If `\"timestamp\"`: prefix is `YYYYMMDD-HHMMSS` (current timestamp)\n      - If `\"sequential\"` or absent: prefix is `NNN` (next available 3-digit number after scanning existing directories in `specs\u002F`)\n      - Construct the directory name `\u003Cprefix>-\u003Cshort-name>` (e.g., `003-user-auth` or `20260319-143022-user-auth`) and set `SPECIFY_FEATURE_DIRECTORY` to `specs\u002F\u003Cdirectory-name>`\n\n   **Create the directory and spec file**:\n   - `mkdir -p SPECIFY_FEATURE_DIRECTORY`\n   - Copy `.specify\u002Ftemplates\u002Fspec-template.md` to `SPECIFY_FEATURE_DIRECTORY\u002Fspec.md` as the starting point\n   - Set `SPEC_FILE` to `SPECIFY_FEATURE_DIRECTORY\u002Fspec.md`\n   - Persist the resolved path to `.specify\u002Ffeature.json`:\n     ```json\n     {\n       \"feature_directory\": \"\u003Cresolved feature dir>\"\n     }\n     ```\n     Write the actual resolved directory path value (for example, `specs\u002F003-user-auth`), not the literal string `SPECIFY_FEATURE_DIRECTORY`.\n     This allows downstream commands (`\u002Fspeckit-plan`, `\u002Fspeckit-tasks`, etc.) to locate the feature directory without relying on git branch name conventions.\n\n   **Snapshot an external-URL source spec into the feature directory**:\n   - If the feature input is an **external URL** (the source spec lives at a remote\n     location, e.g. a GitHub URL), then after fetching the source, write a snapshot to\n     `SPECIFY_FEATURE_DIRECTORY\u002Fsource-spec.md` with a header recording the source URL\n     and the fetch context, and have `spec.md` reference the in-repo\n     `source-spec.md` snapshot rather than the live URL. This captures provenance\n     in-repo so the specify phase is reproducible offline and does not silently\n     depend on a remote that may move or change.\n   - If the feature input is a **local file or inline text**, this snapshot step is an\n     explicit **no-op** — do not fabricate a redundant `source-spec.md` copy.\n   - **Multi-file external source (feature 085, FR-016).** When the source spec is **not a\n     single file** but a **directory\u002Ftree** of files at a remote (e.g. a GitHub folder of\n     `.md` parts), snapshot the whole set, not just one URL:\n     1. **Enumerate** the tree — for GitHub, the contents API\n        `https:\u002F\u002Fapi.github.com\u002Frepos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fcontents\u002F\u003Cpath>?ref=\u003Cref>` lists the\n        files (or use the `git\u002Ftrees\u002F\u003Cref>?recursive=1` API for a deep tree).\n     2. **Fetch each file** in a stable (sorted) order.\n     3. **Assemble** them into one `SPECIFY_FEATURE_DIRECTORY\u002Fsource-spec.md` with a top\n        header recording the source tree URL + ref + fetch context, and a **per-file header**\n        (`## \u003Crelative\u002Fpath>` + the file's own source URL) before each file's content, so the\n        composite is reproducible offline and each part's provenance is preserved. `spec.md`\n        references the assembled in-repo `source-spec.md`, never the live tree.\n\n   **IMPORTANT**:\n   - Create only one feature per `\u002Fspeckit-specify` invocation\n   - The spec directory name and the git branch name are independent — they may match, but that is the user's choice\n   - The spec directory and file are always created by this command, never by the hook\n\n4. Load `.specify\u002Ftemplates\u002Fspec-template.md` to understand required sections.\n\n5. Follow this execution flow:\n    1. Parse user description from arguments\n       If empty: ERROR \"No feature description provided\"\n    2. Extract key concepts from description\n       Identify: actors, actions, data, constraints\n    3. For unclear aspects:\n       - Make informed guesses based on context and industry standards\n       - Only mark with [NEEDS CLARIFICATION: specific question] if:\n         - The choice significantly impacts feature scope or user experience\n         - Multiple reasonable interpretations exist with different implications\n         - No reasonable default exists\n       - **LIMIT: Maximum 3 [NEEDS CLARIFICATION] markers total**\n       - Prioritize clarifications by impact: scope > security\u002Fprivacy > user experience > technical details\n    4. Fill User Scenarios & Testing section\n       If no clear user flow: ERROR \"Cannot determine user scenarios\"\n    5. Generate Functional Requirements\n       Each requirement must be testable\n       Use reasonable defaults for unspecified details (document assumptions in Assumptions section)\n    6. Define Success Criteria\n       Create measurable, technology-agnostic outcomes\n       Include both quantitative metrics (time, performance, volume) and qualitative measures (user satisfaction, task completion)\n       Each criterion must be verifiable without implementation details\n    7. Identify Key Entities (if data involved)\n    8. Return: SUCCESS (spec ready for planning)\n\n6. Write the specification to SPEC_FILE using the template structure, replacing placeholders with concrete details derived from the feature description (arguments) while preserving section order and headings.\n\n7. **Specification Quality Validation**: After writing the initial spec, validate it against quality criteria:\n\n   a. **Create Spec Quality Checklist**: Generate a checklist file at `SPECIFY_FEATURE_DIRECTORY\u002Fchecklists\u002Frequirements.md` using the checklist template structure with these validation items:\n\n      ```markdown\n      # Specification Quality Checklist: [FEATURE NAME]\n      \n      **Purpose**: Validate specification completeness and quality before proceeding to planning\n      **Created**: [DATE]\n      **Feature**: [Link to spec.md]\n      \n      ## Content Quality\n      \n      - [ ] No implementation details (languages, frameworks, APIs)\n      - [ ] Focused on user value and business needs\n      - [ ] Written for non-technical stakeholders\n      - [ ] All mandatory sections completed\n      \n      ## Requirement Completeness\n      \n      - [ ] No [NEEDS CLARIFICATION] markers remain\n      - [ ] Requirements are testable and unambiguous\n      - [ ] Success criteria are measurable\n      - [ ] Success criteria are technology-agnostic (no implementation details)\n      - [ ] All acceptance scenarios are defined\n      - [ ] Edge cases are identified\n      - [ ] Scope is clearly bounded\n      - [ ] Dependencies and assumptions identified\n      \n      ## Feature Readiness\n      \n      - [ ] All functional requirements have clear acceptance criteria\n      - [ ] User scenarios cover primary flows\n      - [ ] Feature meets measurable outcomes defined in Success Criteria\n      - [ ] No implementation details leak into specification\n      \n      ## Notes\n      \n      - Items marked incomplete require spec updates before `\u002Fspeckit-clarify` or `\u002Fspeckit-plan`\n      ```\n\n   b. **Run Validation Check**: Review the spec against each checklist item:\n      - For each item, determine if it passes or fails\n      - Document specific issues found (quote relevant spec sections)\n\n   c. **Handle Validation Results**:\n\n      - **If all items pass**: Mark checklist complete and proceed to step 8\n\n      - **If items fail (excluding [NEEDS CLARIFICATION])**:\n        1. List the failing items and specific issues\n        2. Update the spec to address each issue\n        3. Re-run validation until all items pass (max 3 iterations)\n        4. If still failing after 3 iterations, document remaining issues in checklist notes and warn the user\n\n      - **If [NEEDS CLARIFICATION] markers remain**:\n        1. Extract all [NEEDS CLARIFICATION: ...] markers from the spec\n        2. **LIMIT CHECK**: If more than 3 exist, keep only the 3 most critical (by scope\u002Fsecurity\u002FUX impact) and make informed guesses for the rest\n        3. For each clarification needed (max 3), present options to the user in this format:\n\n           ```markdown\n           ## Question [N]: [Topic]\n           \n           **Context**: [Quote relevant spec section]\n           \n           **What we need to know**: [Specific question from NEEDS CLARIFICATION marker]\n           \n           **Suggested Answers**:\n           \n           | Option | Answer | Implications |\n           |--------|--------|--------------|\n           | A      | [First suggested answer] | [What this means for the feature] |\n           | B      | [Second suggested answer] | [What this means for the feature] |\n           | C      | [Third suggested answer] | [What this means for the feature] |\n           | Custom | Provide your own answer | [Explain how to provide custom input] |\n           \n           **Your choice**: _[Wait for user response]_\n           ```\n\n        4. **CRITICAL - Table Formatting**: Ensure markdown tables are properly formatted:\n           - Use consistent spacing with pipes aligned\n           - Each cell should have spaces around content: `| Content |` not `|Content|`\n           - Header separator must have at least 3 dashes: `|--------|`\n           - Test that the table renders correctly in markdown preview\n        5. Number questions sequentially (Q1, Q2, Q3 - max 3 total)\n        6. Present all questions together before waiting for responses\n        7. Wait for user to respond with their choices for all questions (e.g., \"Q1: A, Q2: Custom - [details], Q3: B\")\n        8. Update the spec by replacing each [NEEDS CLARIFICATION] marker with the user's selected or provided answer\n        9. Re-run validation after all clarifications are resolved\n\n   d. **Update Checklist**: After each validation iteration, update the checklist file with current pass\u002Ffail status\n\n8. **Report completion** to the user with:\n   - `SPECIFY_FEATURE_DIRECTORY` — the feature directory path\n   - `SPEC_FILE` — the spec file path\n   - Checklist results summary\n   - Readiness for the next phase (`\u002Fspeckit-clarify` or `\u002Fspeckit-plan`)\n\n9. **Check for extension hooks**: After reporting completion, discover hooks across **all** extension files (multi-file discovery), not just the central file:\n   - Read `.specify\u002Fextensions.yml` from the project root (if present) and collect entries under the `hooks.after_specify` key.\n   - Then enumerate every `.specify\u002Fextensions\u002F*\u002F*.yml` file in sorted order, parse each, and collect its `hooks.after_specify` entries too — so a hook registered only in a per-extension file (e.g. the `feedback` extension at `.specify\u002Fextensions\u002Ffeedback\u002Ffeedback.yml`) is still discovered and runs on phase completion.\n   - Merge all collected entries and dedupe by `(extension, command)` (first occurrence wins, so a hook declared in both files runs once).\n   - **Hook execution precedence** (D1): when `settings.auto_execute_hooks: true` in `.specify\u002Fextensions.yml`, a **mandatory** hook (`optional: false`) **auto-runs** with no confirmation; an **optional** hook (`optional: true`) is **always surfaced** (\"To execute: `\u002F{command}`\") and is **never force-run** by `auto_execute_hooks`; a hook with a non-empty `condition` is **never** evaluated by this skill — evaluation is left to the executor and the notice reports the resolved decision. When `auto_execute_hooks: false`, even mandatory hooks are surfaced for confirmation.\n   - **Effective-hooks notice** (D2): after the merge + dedup by `(extension, command)`, emit **one** consolidated notice for the phase so the operator never hand-reconciles files — the promoted feedback hook (`optional: false`) appears as `auto-run`, never as a surfaced optional:\n     ```\n     ## Effective hooks for specify\n     - {extension}:{command} — auto-run        (mandatory; auto_execute_hooks=true)\n     - {extension}:{command} — surfaced        (optional)\n     - {extension}:{command} — skipped         (enabled: false)\n     - {extension}:{command} — condition-deferred\n     ```\n   - If a file is absent, no hooks are registered, or its YAML cannot be parsed\u002Fis invalid, skip that file silently and continue.\n   - For every `optional: true` hook that is discovered but not executed this phase, emit one line so the skip is a visible decision: `Note: optional hook {extension}:{command} is registered but was not run (skipped).`\n   - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.\n   - Do **not** interpret or evaluate hook `condition` expressions:\n     - If the hook has no `condition` field, or it is null\u002Fempty, treat the hook as executable\n     - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation\n   - For each executable hook, output the following based on its `optional` flag:\n     - **Optional hook** (`optional: true`):\n       ```\n       ## Extension Hooks\n\n       **Optional Hook**: {extension}\n       Command: `\u002F{command}`\n       Description: {description}\n\n       Prompt: {prompt}\n       To execute: `\u002F{command}`\n       ```\n     - **Mandatory hook** (`optional: false`):\n       ```\n       ## Extension Hooks\n\n       **Automatic Hook**: {extension}\n       Executing: `\u002F{command}`\n       EXECUTE_COMMAND: {command}\n       ```\n\n**NOTE:** Branch creation is handled by the `before_specify` hook (git extension). Spec directory and file creation are always handled by this core command.\n\n## Quick Guidelines\n\n- Focus on **WHAT** users need and **WHY**.\n- Avoid HOW to implement (no tech stack, APIs, code structure).\n- Written for business stakeholders, not developers.\n- DO NOT create any checklists that are embedded in the spec. That will be a separate command.\n\n### Section Requirements\n\n- **Mandatory sections**: Must be completed for every feature\n- **Optional sections**: Include only when relevant to the feature\n- When a section doesn't apply, remove it entirely (don't leave as \"N\u002FA\")\n\n### For AI Generation\n\nWhen creating this spec from a user prompt:\n\n1. **Make informed guesses**: Use context, industry standards, and common patterns to fill gaps\n2. **Document assumptions**: Record reasonable defaults in the Assumptions section\n3. **Limit clarifications**: Maximum 3 [NEEDS CLARIFICATION] markers — use only for critical decisions that significantly impact scope or UX, have multiple reasonable interpretations with different implications, or lack any reasonable default\n4. **Prioritize clarifications**: scope > security\u002Fprivacy > user experience > technical details\n5. **Think like a tester**: Every vague requirement should fail the \"testable and unambiguous\" checklist item\n6. **Common areas needing clarification** (only if no reasonable default exists):\n   - Feature scope and boundaries (include\u002Fexclude specific use cases)\n   - User types and permissions (if multiple conflicting interpretations possible)\n   - Security\u002Fcompliance requirements (when legally\u002Ffinancially significant)\n\n**Examples of reasonable defaults** (don't ask about these):\n\n- Data retention: Industry-standard practices for the domain\n- Performance targets: Standard web\u002Fmobile app expectations unless specified\n- Error handling: User-friendly messages with appropriate fallbacks\n- Authentication method: Standard session-based or OAuth2 for web apps\n- Integration patterns: Use project-appropriate patterns (REST\u002FGraphQL for web services, function calls for libraries, CLI args for tools, etc.)\n\n### Success Criteria Guidelines\n\nSuccess criteria must be:\n\n1. **Measurable**: Include specific metrics (time, percentage, count, rate)\n2. **Technology-agnostic**: No frameworks, languages, databases, or tools\n3. **User-focused**: Describe outcomes from a user\u002Fbusiness perspective, not system internals\n4. **Verifiable**: Can be tested\u002Fvalidated without knowing implementation details\n\n**Good examples**:\n\n- \"Users can complete checkout in under 3 minutes\"\n- \"System supports 10,000 concurrent users\"\n- \"95% of searches return results in under 1 second\"\n- \"Task completion rate improves by 40%\"\n\n**Bad examples** (implementation-focused):\n\n- \"API response time is under 200ms\" (too technical, use \"Users see results instantly\")\n- \"Database can handle 1000 TPS\" (implementation detail, use user-facing metric)\n- \"React components render efficiently\" (framework-specific)\n- \"Redis cache hit rate above 80%\" (technology-specific)\n","## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Pre-Execution Checks\n\n**Check for extension hooks (before specification)**:\n- Discover hooks across **all** extension files (multi-file discovery), not just the central file:\n  - Read `.specify\u002Fextensions.yml` from the project root (if present) and collect entries under the `hooks.before_specify` key.\n  - Then enumerate every `.specify\u002Fextensions\u002F*\u002F*.yml` file in sorted order, parse each, and collect its `hooks.before_specify` entries too — so a hook registered only in a per-extension file (e.g. the `feedback` extension at `.specify\u002Fextensions\u002Ffeedback\u002Ffeedback.yml`) is still discovered and runs.\n  - Merge all collected entries and dedupe by `(extension, command)` (first occurrence wins, so a hook declared in both the central and a per-extension file runs once).\n  - If a file is absent, no hooks are registered, or its YAML cannot be parsed\u002Fis invalid, skip that file silently and continue.\n- For every `optional: true` hook that is discovered but not executed this phase, emit one line so the skip is a visible decision: `Note: optional hook {extension}:{command} is registered but was not run (skipped).`\n- Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.\n- Do **not** interpret or evaluate hook `condition` expressions:\n  - If the hook has no `condition` field, or it is null\u002Fempty, treat the hook as executable\n  - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation\n- For each executable hook, output the following based on its `optional` flag:\n  - **Optional hook** (`optional: true`):\n    ```\n    ## Extension Hooks\n\n    **Optional Pre-Hook**: {extension}\n    Command: `\u002F{command}`\n    Description: {description}\n\n    Prompt: {prompt}\n    To execute: `\u002F{command}`\n    ```\n  - **Mandatory hook** (`optional: false`):\n    ```\n    ## Extension Hooks\n\n    **Automatic Pre-Hook**: {extension}\n    Executing: `\u002F{command}`\n    EXECUTE_COMMAND: {command}\n\n    Wait for the result of the hook command before proceeding to the Outline.\n    ```\n\n## Outline\n\nThe text the user typed after `\u002Fspeckit-specify` in the triggering message **is** the feature description; assume it is available in this conversation even if `$ARGUMENTS` appears literally below. Do not ask the user to repeat it unless they provided an empty command.\n\nGiven that feature description, do this:\n\n1. **Generate a concise short name** (2-4 words) for the feature:\n   - Extract the most meaningful keywords to capture the feature's essence\n   - Use action-noun format when possible (e.g., \"add-user-auth\", \"fix-payment-bug\")\n   - Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)\n   - Keep it concise but descriptive enough to understand at a glance\n   - Examples:\n     - \"I want to add user authentication\" → \"user-auth\"\n     - \"Implement OAuth2 integration for the API\" → \"oauth2-api-integration\"\n     - \"Create a dashboard for analytics\" → \"analytics-dashboard\"\n     - \"Fix payment processing timeout bug\" → \"fix-payment-timeout\"\n\n2. **Branch creation** (optional, via hook):\n\n   If a `before_specify` hook ran successfully in the Pre-Execution Checks above, it will have created\u002Fswitched to a git branch and output JSON containing `BRANCH_NAME` and `FEATURE_NUM`. Note these values for reference, but the branch name does **not** dictate the spec directory name.\n\n   If the user explicitly provided `GIT_BRANCH_NAME`, pass it through to the hook so the branch script uses the exact value as the branch name (bypassing all prefix\u002Fsuffix generation).\n\n3. **Create the spec feature directory**:\n\n   Specs live under the default `specs\u002F` directory unless the user explicitly provides `SPECIFY_FEATURE_DIRECTORY`.\n\n   **Resolution order for `SPECIFY_FEATURE_DIRECTORY`**:\n   1. If the user explicitly provided `SPECIFY_FEATURE_DIRECTORY` (via environment variable, argument, or configuration), use it as-is\n   2. Otherwise, auto-generate it under `specs\u002F`:\n      - Check `.specify\u002Finit-options.json` for `branch_numbering`\n      - If `\"timestamp\"`: prefix is `YYYYMMDD-HHMMSS` (current timestamp)\n      - If `\"sequential\"` or absent: prefix is `NNN` (next available 3-digit number after scanning existing directories in `specs\u002F`)\n      - Construct the directory name `\u003Cprefix>-\u003Cshort-name>` (e.g., `003-user-auth` or `20260319-143022-user-auth`) and set `SPECIFY_FEATURE_DIRECTORY` to `specs\u002F\u003Cdirectory-name>`\n\n   **Create the directory and spec file**:\n   - `mkdir -p SPECIFY_FEATURE_DIRECTORY`\n   - Copy `.specify\u002Ftemplates\u002Fspec-template.md` to `SPECIFY_FEATURE_DIRECTORY\u002Fspec.md` as the starting point\n   - Set `SPEC_FILE` to `SPECIFY_FEATURE_DIRECTORY\u002Fspec.md`\n   - Persist the resolved path to `.specify\u002Ffeature.json`:\n     ```json\n     {\n       \"feature_directory\": \"\u003Cresolved feature dir>\"\n     }\n     ```\n     Write the actual resolved directory path value (for example, `specs\u002F003-user-auth`), not the literal string `SPECIFY_FEATURE_DIRECTORY`.\n     This allows downstream commands (`\u002Fspeckit-plan`, `\u002Fspeckit-tasks`, etc.) to locate the feature directory without relying on git branch name conventions.\n\n   **Snapshot an external-URL source spec into the feature directory**:\n   - If the feature input is an **external URL** (the source spec lives at a remote\n     location, e.g. a GitHub URL), then after fetching the source, write a snapshot to\n     `SPECIFY_FEATURE_DIRECTORY\u002Fsource-spec.md` with a header recording the source URL\n     and the fetch context, and have `spec.md` reference the in-repo\n     `source-spec.md` snapshot rather than the live URL. This captures provenance\n     in-repo so the specify phase is reproducible offline and does not silently\n     depend on a remote that may move or change.\n   - If the feature input is a **local file or inline text**, this snapshot step is an\n     explicit **no-op** — do not fabricate a redundant `source-spec.md` copy.\n   - **Multi-file external source (feature 085, FR-016).** When the source spec is **not a\n     single file** but a **directory\u002Ftree** of files at a remote (e.g. a GitHub folder of\n     `.md` parts), snapshot the whole set, not just one URL:\n     1. **Enumerate** the tree — for GitHub, the contents API\n        `https:\u002F\u002Fapi.github.com\u002Frepos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fcontents\u002F\u003Cpath>?ref=\u003Cref>` lists the\n        files (or use the `git\u002Ftrees\u002F\u003Cref>?recursive=1` API for a deep tree).\n     2. **Fetch each file** in a stable (sorted) order.\n     3. **Assemble** them into one `SPECIFY_FEATURE_DIRECTORY\u002Fsource-spec.md` with a top\n        header recording the source tree URL + ref + fetch context, and a **per-file header**\n        (`## \u003Crelative\u002Fpath>` + the file's own source URL) before each file's content, so the\n        composite is reproducible offline and each part's provenance is preserved. `spec.md`\n        references the assembled in-repo `source-spec.md`, never the live tree.\n\n   **IMPORTANT**:\n   - Create only one feature per `\u002Fspeckit-specify` invocation\n   - The spec directory name and the git branch name are independent — they may match, but that is the user's choice\n   - The spec directory and file are always created by this command, never by the hook\n\n4. Load `.specify\u002Ftemplates\u002Fspec-template.md` to understand required sections.\n\n5. Follow this execution flow:\n    1. Parse user description from arguments\n       If empty: ERROR \"No feature description provided\"\n    2. Extract key concepts from description\n       Identify: actors, actions, data, constraints\n    3. For unclear aspects:\n       - Make informed guesses based on context and industry standards\n       - Only mark with [NEEDS CLARIFICATION: specific question] if:\n         - The choice significantly impacts feature scope or user experience\n         - Multiple reasonable interpretations exist with different implications\n         - No reasonable default exists\n       - **LIMIT: Maximum 3 [NEEDS CLARIFICATION] markers total**\n       - Prioritize clarifications by impact: scope > security\u002Fprivacy > user experience > technical details\n    4. Fill User Scenarios & Testing section\n       If no clear user flow: ERROR \"Cannot determine user scenarios\"\n    5. Generate Functional Requirements\n       Each requirement must be testable\n       Use reasonable defaults for unspecified details (document assumptions in Assumptions section)\n    6. Define Success Criteria\n       Create measurable, technology-agnostic outcomes\n       Include both quantitative metrics (time, performance, volume) and qualitative measures (user satisfaction, task completion)\n       Each criterion must be verifiable without implementation details\n    7. Identify Key Entities (if data involved)\n    8. Return: SUCCESS (spec ready for planning)\n\n6. Write the specification to SPEC_FILE using the template structure, replacing placeholders with concrete details derived from the feature description (arguments) while preserving section order and headings.\n\n7. **Specification Quality Validation**: After writing the initial spec, validate it against quality criteria:\n\n   a. **Create Spec Quality Checklist**: Generate a checklist file at `SPECIFY_FEATURE_DIRECTORY\u002Fchecklists\u002Frequirements.md` using the checklist template structure with these validation items:\n\n      ```markdown\n      # Specification Quality Checklist: [FEATURE NAME]\n      \n      **Purpose**: Validate specification completeness and quality before proceeding to planning\n      **Created**: [DATE]\n      **Feature**: [Link to spec.md]\n      \n      ## Content Quality\n      \n      - [ ] No implementation details (languages, frameworks, APIs)\n      - [ ] Focused on user value and business needs\n      - [ ] Written for non-technical stakeholders\n      - [ ] All mandatory sections completed\n      \n      ## Requirement Completeness\n      \n      - [ ] No [NEEDS CLARIFICATION] markers remain\n      - [ ] Requirements are testable and unambiguous\n      - [ ] Success criteria are measurable\n      - [ ] Success criteria are technology-agnostic (no implementation details)\n      - [ ] All acceptance scenarios are defined\n      - [ ] Edge cases are identified\n      - [ ] Scope is clearly bounded\n      - [ ] Dependencies and assumptions identified\n      \n      ## Feature Readiness\n      \n      - [ ] All functional requirements have clear acceptance criteria\n      - [ ] User scenarios cover primary flows\n      - [ ] Feature meets measurable outcomes defined in Success Criteria\n      - [ ] No implementation details leak into specification\n      \n      ## Notes\n      \n      - Items marked incomplete require spec updates before `\u002Fspeckit-clarify` or `\u002Fspeckit-plan`\n      ```\n\n   b. **Run Validation Check**: Review the spec against each checklist item:\n      - For each item, determine if it passes or fails\n      - Document specific issues found (quote relevant spec sections)\n\n   c. **Handle Validation Results**:\n\n      - **If all items pass**: Mark checklist complete and proceed to step 8\n\n      - **If items fail (excluding [NEEDS CLARIFICATION])**:\n        1. List the failing items and specific issues\n        2. Update the spec to address each issue\n        3. Re-run validation until all items pass (max 3 iterations)\n        4. If still failing after 3 iterations, document remaining issues in checklist notes and warn the user\n\n      - **If [NEEDS CLARIFICATION] markers remain**:\n        1. Extract all [NEEDS CLARIFICATION: ...] markers from the spec\n        2. **LIMIT CHECK**: If more than 3 exist, keep only the 3 most critical (by scope\u002Fsecurity\u002FUX impact) and make informed guesses for the rest\n        3. For each clarification needed (max 3), present options to the user in this format:\n\n           ```markdown\n           ## Question [N]: [Topic]\n           \n           **Context**: [Quote relevant spec section]\n           \n           **What we need to know**: [Specific question from NEEDS CLARIFICATION marker]\n           \n           **Suggested Answers**:\n           \n           | Option | Answer | Implications |\n           |--------|--------|--------------|\n           | A      | [First suggested answer] | [What this means for the feature] |\n           | B      | [Second suggested answer] | [What this means for the feature] |\n           | C      | [Third suggested answer] | [What this means for the feature] |\n           | Custom | Provide your own answer | [Explain how to provide custom input] |\n           \n           **Your choice**: _[Wait for user response]_\n           ```\n\n        4. **CRITICAL - Table Formatting**: Ensure markdown tables are properly formatted:\n           - Use consistent spacing with pipes aligned\n           - Each cell should have spaces around content: `| Content |` not `|Content|`\n           - Header separator must have at least 3 dashes: `|--------|`\n           - Test that the table renders correctly in markdown preview\n        5. Number questions sequentially (Q1, Q2, Q3 - max 3 total)\n        6. Present all questions together before waiting for responses\n        7. Wait for user to respond with their choices for all questions (e.g., \"Q1: A, Q2: Custom - [details], Q3: B\")\n        8. Update the spec by replacing each [NEEDS CLARIFICATION] marker with the user's selected or provided answer\n        9. Re-run validation after all clarifications are resolved\n\n   d. **Update Checklist**: After each validation iteration, update the checklist file with current pass\u002Ffail status\n\n8. **Report completion** to the user with:\n   - `SPECIFY_FEATURE_DIRECTORY` — the feature directory path\n   - `SPEC_FILE` — the spec file path\n   - Checklist results summary\n   - Readiness for the next phase (`\u002Fspeckit-clarify` or `\u002Fspeckit-plan`)\n\n9. **Check for extension hooks**: After reporting completion, discover hooks across **all** extension files (multi-file discovery), not just the central file:\n   - Read `.specify\u002Fextensions.yml` from the project root (if present) and collect entries under the `hooks.after_specify` key.\n   - Then enumerate every `.specify\u002Fextensions\u002F*\u002F*.yml` file in sorted order, parse each, and collect its `hooks.after_specify` entries too — so a hook registered only in a per-extension file (e.g. the `feedback` extension at `.specify\u002Fextensions\u002Ffeedback\u002Ffeedback.yml`) is still discovered and runs on phase completion.\n   - Merge all collected entries and dedupe by `(extension, command)` (first occurrence wins, so a hook declared in both files runs once).\n   - **Hook execution precedence** (D1): when `settings.auto_execute_hooks: true` in `.specify\u002Fextensions.yml`, a **mandatory** hook (`optional: false`) **auto-runs** with no confirmation; an **optional** hook (`optional: true`) is **always surfaced** (\"To execute: `\u002F{command}`\") and is **never force-run** by `auto_execute_hooks`; a hook with a non-empty `condition` is **never** evaluated by this skill — evaluation is left to the executor and the notice reports the resolved decision. When `auto_execute_hooks: false`, even mandatory hooks are surfaced for confirmation.\n   - **Effective-hooks notice** (D2): after the merge + dedup by `(extension, command)`, emit **one** consolidated notice for the phase so the operator never hand-reconciles files — the promoted feedback hook (`optional: false`) appears as `auto-run`, never as a surfaced optional:\n     ```\n     ## Effective hooks for specify\n     - {extension}:{command} — auto-run        (mandatory; auto_execute_hooks=true)\n     - {extension}:{command} — surfaced        (optional)\n     - {extension}:{command} — skipped         (enabled: false)\n     - {extension}:{command} — condition-deferred\n     ```\n   - If a file is absent, no hooks are registered, or its YAML cannot be parsed\u002Fis invalid, skip that file silently and continue.\n   - For every `optional: true` hook that is discovered but not executed this phase, emit one line so the skip is a visible decision: `Note: optional hook {extension}:{command} is registered but was not run (skipped).`\n   - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.\n   - Do **not** interpret or evaluate hook `condition` expressions:\n     - If the hook has no `condition` field, or it is null\u002Fempty, treat the hook as executable\n     - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation\n   - For each executable hook, output the following based on its `optional` flag:\n     - **Optional hook** (`optional: true`):\n       ```\n       ## Extension Hooks\n\n       **Optional Hook**: {extension}\n       Command: `\u002F{command}`\n       Description: {description}\n\n       Prompt: {prompt}\n       To execute: `\u002F{command}`\n       ```\n     - **Mandatory hook** (`optional: false`):\n       ```\n       ## Extension Hooks\n\n       **Automatic Hook**: {extension}\n       Executing: `\u002F{command}`\n       EXECUTE_COMMAND: {command}\n       ```\n\n**NOTE:** Branch creation is handled by the `before_specify` hook (git extension). Spec directory and file creation are always handled by this core command.\n\n## Quick Guidelines\n\n- Focus on **WHAT** users need and **WHY**.\n- Avoid HOW to implement (no tech stack, APIs, code structure).\n- Written for business stakeholders, not developers.\n- DO NOT create any checklists that are embedded in the spec. That will be a separate command.\n\n### Section Requirements\n\n- **Mandatory sections**: Must be completed for every feature\n- **Optional sections**: Include only when relevant to the feature\n- When a section doesn't apply, remove it entirely (don't leave as \"N\u002FA\")\n\n### For AI Generation\n\nWhen creating this spec from a user prompt:\n\n1. **Make informed guesses**: Use context, industry standards, and common patterns to fill gaps\n2. **Document assumptions**: Record reasonable defaults in the Assumptions section\n3. **Limit clarifications**: Maximum 3 [NEEDS CLARIFICATION] markers — use only for critical decisions that significantly impact scope or UX, have multiple reasonable interpretations with different implications, or lack any reasonable default\n4. **Prioritize clarifications**: scope > security\u002Fprivacy > user experience > technical details\n5. **Think like a tester**: Every vague requirement should fail the \"testable and unambiguous\" checklist item\n6. **Common areas needing clarification** (only if no reasonable default exists):\n   - Feature scope and boundaries (include\u002Fexclude specific use cases)\n   - User types and permissions (if multiple conflicting interpretations possible)\n   - Security\u002Fcompliance requirements (when legally\u002Ffinancially significant)\n\n**Examples of reasonable defaults** (don't ask about these):\n\n- Data retention: Industry-standard practices for the domain\n- Performance targets: Standard web\u002Fmobile app expectations unless specified\n- Error handling: User-friendly messages with appropriate fallbacks\n- Authentication method: Standard session-based or OAuth2 for web apps\n- Integration patterns: Use project-appropriate patterns (REST\u002FGraphQL for web services, function calls for libraries, CLI args for tools, etc.)\n\n### Success Criteria Guidelines\n\nSuccess criteria must be:\n\n1. **Measurable**: Include specific metrics (time, percentage, count, rate)\n2. **Technology-agnostic**: No frameworks, languages, databases, or tools\n3. **User-focused**: Describe outcomes from a user\u002Fbusiness perspective, not system internals\n4. **Verifiable**: Can be tested\u002Fvalidated without knowing implementation details\n\n**Good examples**:\n\n- \"Users can complete checkout in under 3 minutes\"\n- \"System supports 10,000 concurrent users\"\n- \"95% of searches return results in under 1 second\"\n- \"Task completion rate improves by 40%\"\n\n**Bad examples** (implementation-focused):\n\n- \"API response time is under 200ms\" (too technical, use \"Users see results instantly\")\n- \"Database can handle 1000 TPS\" (implementation detail, use user-facing metric)\n- \"React components render efficiently\" (framework-specific)\n- \"Redis cache hit rate above 80%\" (technology-specific)\n",{"name":5,"metadata":23,"description":7,"compatibility":26},{"author":24,"source":25},"github-spec-kit","templates\u002Fcommands\u002Fspecify.md","Requires spec-kit project structure with .specify\u002F directory","main","f943406829a9218b2882e09eb88d4ddb539c5e72",".claude\u002Fskills\u002Fspeckit-specify",0,"https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI","https:\u002F\u002Fgithub.com\u002FEHotwagner","2026-06-16 16:16:52",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add EHotwagner\u002FFS-Skia-UI --skill speckit-specify",{"tool":40,"command":41},"bunx","bunx skills add EHotwagner\u002FFS-Skia-UI --skill speckit-specify",{"tool":43,"command":44},"pnpm","pnpm dlx skills add EHotwagner\u002FFS-Skia-UI --skill speckit-specify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-specify\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M72SGYR4T02T1HTS175E0V86","fs-skia-ui-widgets","Generated product guidance for Skia-rendered FS.Skia.UI Controls, rich text, chart controls, graph controls, DataGrid, and custom wrappers.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-ui-widgets\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M72SGVZJR1B117QK7TCC6E0J","fs-skia-testing","Assert generated-product expectations and evidence in a governed FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-testing\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M72SGTC5HZYEVVVZT4X51AZ3","fs-skia-skiaviewer","Wire a generated FS.Skia.UI product to the desktop viewer host.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-skiaviewer\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M72SGS47RPYPC9JTC39CC6EF","fs-skia-scene","Build pure scene descriptions in a generated FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-scene\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M72SGQF4G76C4NGSF69KZRRF","fs-skia-keyboard-input","Map keyboard input to product commands in a generated FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-keyboard-input\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M72SGNJP3PMSS2VRP98G7Z42","fs-skia-elmish","Drive a generated FS.Skia.UI product through the pure Elmish adapter.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-elmish\u002FSKILL.md",[],[]]