[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7590E4VMADR1TE8ZRFZKTF9":3,"skill-same:01M7590E4VMADR1TE8ZRFZKTF9":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7590E4VMADR1TE8ZRFZKTF9","ag-generate-spec",null,"Create or update a product-discovery SPEC (requirements doc) for user review. Use when turning RESEARCH findings plus user intent into a reviewable requirements artifact before INNOVATE\u002FPLAN.","ngxccc\u002Fagent-skills-kit","ngxccc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163379246?v=4","01M758XVG64QK26AGK0WKB26TB","Ngoc Tran","01M758XVHB8J6MHV0YTBVDBXCA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-generate-spec\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ag-generate-spec\ndescription: Create or update a product-discovery SPEC (requirements doc) for user review. Use when turning RESEARCH findings plus user intent into a reviewable requirements artifact before INNOVATE\u002FPLAN.\ntrigger_keywords: spec, requirements doc, product discovery, what and why, requirements artifact\nlayer: contract\n---\n\n# Generate SPEC\n\n## When to Apply\n\nUse this skill when working with ag-generate-spec workflows, tasks, or system specifications.\n\n## How to Use\n\nRefer to the workflow instructions and command references detailed below.\n\n> **Output style:** Follow `process\u002Fdevelopment-protocols\u002Fcommunication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.\n\nUse this skill to produce the authoritative **product-discovery SPEC** artifact for a task — a plain-language requirements document written for **user review**, not for an engineer.\n\nA SPEC captures **what the user wants and why** so the user can read it, recognize their own intent, and confirm \"yes, build that\" before any approach or code is chosen. It is the bridge between RESEARCH (the facts) and INNOVATE (the how). PLAN cannot start until a SPEC exists for non-trivial work.\n\n**SPEC consumes:** RESEARCH findings + the user's stated intent\u002Fbrainstorm. It does **NOT** consume a chosen approach or a Decision Summary — no approach exists yet at SPEC time.\n\nNormal output is one SPEC file: `{slug}_SPEC_{dd-mm-yy}.md`.\n\nFor a phase program, the program-level (umbrella) SPEC is written once during the outer loop and governs every inner phase. Use `templates\u002Fprogram-spec-template.md` for that case. The inner loop never writes a SPEC.\n\n## Workflow\n\n1. Read `references\u002Fspec-contract.md` for the full section-by-section writing rules.\n2. Run `date +%d-%m-%y` before choosing the filename.\n3. Confirm the inputs are present: RESEARCH findings + the user's stated intent. If neither is present, emit `SPEC_INTENT_BLOCKED` instead of writing.\n4. Read `process\u002Fcontext\u002Fall-context.md` first, then load the relevant context group. When the work touches testing\u002Fverification, read `process\u002Fcontext\u002Ftests\u002Fall-tests.md` so acceptance-criteria scenarios are grounded in the real test-context chain.\n5. Save the SPEC inside the task folder alongside the plan: `process\u002Ffeatures\u002F{feature}\u002Factive\u002F{slug}_{date}\u002F{slug}_SPEC_{date}.md` (or `process\u002Fgeneral-plans\u002Factive\u002F{slug}_{date}\u002F{slug}_SPEC_{date}.md`). For a phase program, the umbrella task folder holds `{program-slug}_SPEC_{date}.md`. Per task-folder artefact colocation, never write to the deprecated sibling `reports\u002F` or `references\u002F` dirs.\n6. Write the SPEC sections in canonical order (see `references\u002Fspec-contract.md`):\n   - `## Summary`\n   - `## User Stories \u002F Jobs To Be Done`\n   - `## What The User Wants (Behavioral Outcomes)`\n   - `## Flow \u002F State Diagram` (ASCII)\n   - `## Acceptance Criteria (Testable Outcomes)` — each criterion carries `proven by:` + `strategy:`\n   - `## Out Of Scope`\n   - `## Constraints`\n   - `## Open Questions`\n   - `## Background \u002F Research Findings`\n7. Keep the document oriented for **user review**: plain language, no file paths, no library names, no schema or code. Anything engineer-only moves to Background or a later phase.\n8. Each acceptance criterion MUST be provable by comprehensive tests, with a fully-automated E2E\u002Fintegration gate wherever the behavior is automatable. Agent-Probe \u002F Known-Gap stand only as an explicitly-justified residual. Vacuous-green is banned.\n9. If `## Open Questions` is non-empty at finalize (interactive session): emit `SPEC_INTENT_BLOCKED` and stop. Under \u002Fgoal: record each as a backlog note and continue.\n10. Once Open Questions is empty\u002F\"None\" (or backlogged under \u002Fgoal): save the file and the agent emits `PHASE_COMPLETE: SPEC`.\n\n## Important Rules\n\n- The SPEC is written for a human reviewer. If a sentence only makes sense to an engineer, rewrite it or move it to Background.\n- Do NOT choose an implementation approach (INNOVATE's job, downstream), write implementation steps (PLAN), make schema decisions, or include code\u002Flibrary references.\n- Do NOT modify any file except the SPEC file being created.\n- Acceptance-criteria scenarios must be grounded in the RESEARCH test-context-discovery, not invented here.\n- Once INNOVATE\u002FPLAN begins the SPEC is frozen — later scope gaps go to the phase report `## SPEC Gaps` heading and a backlog note, never an edit to the SPEC.\n- For a phase program, write the umbrella SPEC once; the inner loop reads it and never writes a per-phase SPEC.\n\n## Required SPEC Sections\n\nEvery SPEC file must include all of the following, in this order:\n\n- `## Summary` — one plain-language paragraph: what changes for the user and why\n- `## User Stories \u002F Jobs To Be Done` — the heart of the doc; \"As a [user], I want [X], so that [Y]\" or JTBD\n- `## What The User Wants (Behavioral Outcomes)` — observable behavior only, no implementation\n- `## Flow \u002F State Diagram` — at least one ASCII flow\u002Fstate diagram\n- `## Acceptance Criteria (Testable Outcomes)` — observable outcomes, each with `proven by:` + `strategy:`; max 20\n- `## Out Of Scope` — at least one item\n- `## Constraints` — user-stated, system\u002Fprocess, and technical limits from research\n- `## Open Questions` — each with an owner; empty\u002F\"None\" required to finalize (interactive)\n- `## Background \u002F Research Findings` — key facts from RESEARCH that shaped the requirements\n\nUse Markdown-structured sections, not a second machine-only schema. Markdown sections are stable across all agents (Claude, Codex, future systems) without requiring a parser.\n\n## References\n\n- [process\u002Fcontext\u002Fall-context.md](process\u002Fcontext\u002Fall-context.md)\n","# Generate SPEC\n\n## When to Apply\n\nUse this skill when working with ag-generate-spec workflows, tasks, or system specifications.\n\n## How to Use\n\nRefer to the workflow instructions and command references detailed below.\n\n> **Output style:** Follow `process\u002Fdevelopment-protocols\u002Fcommunication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.\n\nUse this skill to produce the authoritative **product-discovery SPEC** artifact for a task — a plain-language requirements document written for **user review**, not for an engineer.\n\nA SPEC captures **what the user wants and why** so the user can read it, recognize their own intent, and confirm \"yes, build that\" before any approach or code is chosen. It is the bridge between RESEARCH (the facts) and INNOVATE (the how). PLAN cannot start until a SPEC exists for non-trivial work.\n\n**SPEC consumes:** RESEARCH findings + the user's stated intent\u002Fbrainstorm. It does **NOT** consume a chosen approach or a Decision Summary — no approach exists yet at SPEC time.\n\nNormal output is one SPEC file: `{slug}_SPEC_{dd-mm-yy}.md`.\n\nFor a phase program, the program-level (umbrella) SPEC is written once during the outer loop and governs every inner phase. Use `templates\u002Fprogram-spec-template.md` for that case. The inner loop never writes a SPEC.\n\n## Workflow\n\n1. Read `references\u002Fspec-contract.md` for the full section-by-section writing rules.\n2. Run `date +%d-%m-%y` before choosing the filename.\n3. Confirm the inputs are present: RESEARCH findings + the user's stated intent. If neither is present, emit `SPEC_INTENT_BLOCKED` instead of writing.\n4. Read `process\u002Fcontext\u002Fall-context.md` first, then load the relevant context group. When the work touches testing\u002Fverification, read `process\u002Fcontext\u002Ftests\u002Fall-tests.md` so acceptance-criteria scenarios are grounded in the real test-context chain.\n5. Save the SPEC inside the task folder alongside the plan: `process\u002Ffeatures\u002F{feature}\u002Factive\u002F{slug}_{date}\u002F{slug}_SPEC_{date}.md` (or `process\u002Fgeneral-plans\u002Factive\u002F{slug}_{date}\u002F{slug}_SPEC_{date}.md`). For a phase program, the umbrella task folder holds `{program-slug}_SPEC_{date}.md`. Per task-folder artefact colocation, never write to the deprecated sibling `reports\u002F` or `references\u002F` dirs.\n6. Write the SPEC sections in canonical order (see `references\u002Fspec-contract.md`):\n   - `## Summary`\n   - `## User Stories \u002F Jobs To Be Done`\n   - `## What The User Wants (Behavioral Outcomes)`\n   - `## Flow \u002F State Diagram` (ASCII)\n   - `## Acceptance Criteria (Testable Outcomes)` — each criterion carries `proven by:` + `strategy:`\n   - `## Out Of Scope`\n   - `## Constraints`\n   - `## Open Questions`\n   - `## Background \u002F Research Findings`\n7. Keep the document oriented for **user review**: plain language, no file paths, no library names, no schema or code. Anything engineer-only moves to Background or a later phase.\n8. Each acceptance criterion MUST be provable by comprehensive tests, with a fully-automated E2E\u002Fintegration gate wherever the behavior is automatable. Agent-Probe \u002F Known-Gap stand only as an explicitly-justified residual. Vacuous-green is banned.\n9. If `## Open Questions` is non-empty at finalize (interactive session): emit `SPEC_INTENT_BLOCKED` and stop. Under \u002Fgoal: record each as a backlog note and continue.\n10. Once Open Questions is empty\u002F\"None\" (or backlogged under \u002Fgoal): save the file and the agent emits `PHASE_COMPLETE: SPEC`.\n\n## Important Rules\n\n- The SPEC is written for a human reviewer. If a sentence only makes sense to an engineer, rewrite it or move it to Background.\n- Do NOT choose an implementation approach (INNOVATE's job, downstream), write implementation steps (PLAN), make schema decisions, or include code\u002Flibrary references.\n- Do NOT modify any file except the SPEC file being created.\n- Acceptance-criteria scenarios must be grounded in the RESEARCH test-context-discovery, not invented here.\n- Once INNOVATE\u002FPLAN begins the SPEC is frozen — later scope gaps go to the phase report `## SPEC Gaps` heading and a backlog note, never an edit to the SPEC.\n- For a phase program, write the umbrella SPEC once; the inner loop reads it and never writes a per-phase SPEC.\n\n## Required SPEC Sections\n\nEvery SPEC file must include all of the following, in this order:\n\n- `## Summary` — one plain-language paragraph: what changes for the user and why\n- `## User Stories \u002F Jobs To Be Done` — the heart of the doc; \"As a [user], I want [X], so that [Y]\" or JTBD\n- `## What The User Wants (Behavioral Outcomes)` — observable behavior only, no implementation\n- `## Flow \u002F State Diagram` — at least one ASCII flow\u002Fstate diagram\n- `## Acceptance Criteria (Testable Outcomes)` — observable outcomes, each with `proven by:` + `strategy:`; max 20\n- `## Out Of Scope` — at least one item\n- `## Constraints` — user-stated, system\u002Fprocess, and technical limits from research\n- `## Open Questions` — each with an owner; empty\u002F\"None\" required to finalize (interactive)\n- `## Background \u002F Research Findings` — key facts from RESEARCH that shaped the requirements\n\nUse Markdown-structured sections, not a second machine-only schema. Markdown sections are stable across all agents (Claude, Codex, future systems) without requiring a parser.\n\n## References\n\n- [process\u002Fcontext\u002Fall-context.md](process\u002Fcontext\u002Fall-context.md)\n",{"name":5,"layer":24,"description":7,"trigger_keywords":25},"contract","spec, requirements doc, product discovery, what and why, requirements artifact","main","1ef0dcd00fe806a8dc4e0b7173b9db967c3ab274",".claude\u002Fskills\u002Fag-generate-spec","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit","https:\u002F\u002Fgithub.com\u002Fngxccc","https:\u002F\u002Fngxccc.github.io","Make it work, make it right, make it fast.","2026-08-02 20:59:07",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ngxccc\u002Fagent-skills-kit --skill ag-generate-spec",{"tool":40,"command":41},"bunx","bunx skills add ngxccc\u002Fagent-skills-kit --skill ag-generate-spec",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ngxccc\u002Fagent-skills-kit --skill ag-generate-spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-generate-spec\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fspec-contract.md","REFERENCE","参考文档",6658,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-generate-spec\u002Freferences\u002Fspec-contract.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"templates\u002Fprogram-spec-template.md",2949,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-generate-spec\u002Ftemplates\u002Fprogram-spec-template.md",[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M76W3C8X6Q5DS0364KQT7W7A","zustand","Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzustand\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M76W39FJGES309VAH7SFWA9Y","zod","Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzod\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M76W36HTYA4BR5FKCWMX1RFR","upstash-ratelimit","Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fupstash-ratelimit\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M76W32H4PS01WFRS7FNPK2G1","ui-design","UI\u002FUX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fui-design\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M76W2YAP6RK8N0EVWFG54VD7","typescript","TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to \"optimize TypeScript performance\", \"speed up tsc compilation\", \"configure tsconfig.json\", \"fix type errors\", \"improve async patterns\", or encounters TS errors (TS2322, TS2339, \"is not assignable to\"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76W2RMAZNNJQ2HECH3X6ZSH","typescript-refactor","TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React\u002FTSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-refactor\u002FSKILL.md",[],[]]