[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75C44N0S92N0JZWMS1DJXM3":3,"skill-same:01M75C44N0S92N0JZWMS1DJXM3":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M75C44N0S92N0JZWMS1DJXM3","openspec-snack",null,"Quick code-first sync: generate or update proposal + specs + simplified design from git diff when the code is already written. Use after iterative coding to back-fill specs and OPSX delta without redoing propose→apply. Does not generate tasks.md.","cp-yu\u002Federa","cp-yu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F68734436?v=4","01M75C1ERG2CGRZWJW3N60H5MM","01M75C1ESMHKGRE9NMZDS6Q8XW",2,"MIT","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-snack\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: \"openspec-snack\"\ndescription: \"Quick code-first sync: generate or update proposal + specs + simplified design from git diff when the code is already written. Use after iterative coding to back-fill specs and OPSX delta without redoing propose→apply. Does not generate tasks.md.\"\nlicense: \"MIT\"\ncompatibility: \"Requires openspec CLI.\"\nmetadata:\n  author: \"openspec\"\n  version: \"1.0\"\n  generatedBy: \"1.4.1-cpyu.1\"\n---\n\nSynchronize specs and OPSX from already-written code (code-first, reverse of propose\u002Fapply).\n\n## Input\n\n- Optional `\u003Cchange-name>` (kebab-case).\n- If omitted, run `openspec list --json` and reuse the single active change; if multiple or none, ask which change name to target.\n\n## Flow\n\n1. Resolve change name. If `openspec\u002Fchanges\u002F\u003Cname>\u002F` does not exist, run `openspec new change \"\u003Cname>\"`; otherwise update in place (do not recreate proposal).\n2. Load shared OPSX context before generating artifacts.\nBefore reading other context files, check whether `openspec\u002Fproject.opsx.yaml` exists.\n- If it exists, read it first for domains → capabilities structure\n- Read the `project:` block for project intent and scope\n- Treat it as navigation context, not as a replacement for change artifacts\n3. Analyze the code change with git diff.\n   - Run `git diff --name-only` (and `git diff --cached --name-only` when needed) to list modified files.\n   - Run `git diff` to inspect symbol-level changes (new\u002Fdeleted exports, modified signatures).\n   - Exclude non-code files (`.md`, `.json`, `.yaml`, lock files) from spec inference.\n4. Reverse-map files to capabilities via code-map.\n   - Read `openspec\u002Fproject.opsx.code-map.yaml` and map each modified path to its capability\u002Fdomain node IDs.\n   - Files without a code-map entry are [REVIEW NEEDED] candidates for new capabilities.\n5. Use CLI-backed OPSX navigation after code-map reverse lookup.\nAfter reading shared `project.opsx.yaml` context, use OpenSpec CLI query surfaces for node details.\n- Run `openspec list --specs --json` to get specs and their `capabilities` string arrays; specs without frontmatter return `capabilities: []`.\n- For known or affected OPSX node IDs, run `openspec opsx query \u003Cnode-id...> --json` to get node details, relations and code-map refs in one batch; add `--depth 2` when broader related context is needed.\n- Treat CLI output as navigation context, not as a replacement for change artifacts.\n6. Determine the capability list first, then generate `proposal.md`.\n   - Run `openspec instructions proposal --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Determine the `## Capabilities` list before specs generation and reuse the same list as specs input.\n   - Prefer code-map reverse lookup; files without code-map coverage may use git diff inference but MUST be marked `[REVIEW NEEDED]`.\n   - Preserve the template headings including `## Why`, `## What Changes`, `## Capabilities`, and `## Impact`.\n7. Generate delta specs in `specs\u002F\u003Ccapability>\u002Fspec.md` from the artifact instruction.\n   - Run `openspec instructions specs --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Follow the returned `instruction` for ADDED\u002FMODIFIED selection, spec directory naming, and MODIFIED requirement title matching.\n   - Reuse an existing `openspec\u002Fspecs\u002F\u003Ccapability>\u002F` directory when the instruction says it applies; otherwise use the proposal capability name.\n   - New concerns use `## ADDED Requirements`; changed existing behavior uses `## MODIFIED Requirements` with the exact existing Requirement title.\n   - Requirement text MUST contain SHALL\u002FMUST language and at least one `#### Scenario:` block with WHEN\u002FTHEN style.\n   - Mark uncertain inferences with `[REVIEW NEEDED]`.\n8. Generate simplified `design.md` from the artifact instruction.\n   - Run `openspec instructions design --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Preserve the full template skeleton: Context, Goals \u002F Non-Goals, Decisions, and Risks \u002F Trade-offs.\n   - Mark inferred content with `[INFERRED FROM CODE]`; mark unresolved risks or trade-offs with `[REVIEW NEEDED]`.\n9. OPSX delta heuristic — generate `opsx-delta.yaml` ONLY when git diff shows new\u002Fdeleted exports or new files; otherwise skip and log \"No architecture-level changes detected. Skipping OPSX delta generation\".\n   **Generate opsx-delta.yaml**:\n- Read `openspec instructions opsx-delta --change \"\u003Cname>\" --json`\n- Use the returned `template`, `instruction`, and `outputPath` to generate `opsx-delta.yaml`\n- Read `proposal.md` to extract the capability list\n- Read all delta specs in `openspec\u002Fchanges\u002F\u003Cname>\u002Fspecs\u002F*\u002Fspec.md`\n- For existing capability or domain IDs, run `openspec opsx query \u003Cnode-id...> --json` for current-system context in one batch; add `--depth 2` when related context is needed\n- Treat `ADDED`, `MODIFIED`, and `REMOVED` as YAML object keys, not Markdown headings\n- Follow a concrete YAML object structure such as:\n  ```yaml\n  schema_version: 1\n  ADDED:\n    capabilities:\n      - id: cap.example.feature\n        type: capability\n        intent: Describe the new capability\n    relations:\n      - from: cap.example.feature\n        type: contains\n        to: dom.example\n  MODIFIED:\n    capabilities:\n      - id: cap.example.existing\n        intent: Updated intent text\n  REMOVED:\n    capabilities:\n      - id: cap.example.legacy\n  ```\n- Delta nodes contain only id, type, intent, status — no code_refs or spec_refs\n- Keep this agent-driven: capture merge intent in the YAML, not in programmatic code\n10. Do NOT generate `tasks.md` (code is already implemented).\n11. Run `openspec validate \"\u003Cname>\" --type change --json` after all generated artifacts are written.\n   - If validation returns ERROR or WARNING, run one repair pass using the relevant artifact `instruction` rules, then run `openspec validate \"\u003Cname>\" --type change --json` once more.\n   - Treat the second validation result as final evidence.\n   - Output validate result: if passed, indicate self-check passed; if ERROR\u002FWARNING remain, list each and advise user review.\n12. Finish with the output hints below, including the validate result.\n\n## Output Hints\n\nAfter artifacts are generated, output:\n\n**Fast path (skip verify):**\n  • Continue development: `openspec sync \"\u003Cchange-name>\" --no-verify`\n  • Fast archive: `openspec archive \"\u003Cchange-name>\" --no-verify`\n\n**Correction path:**\n⚠️ Generated specs are based on code inference. Review items marked [REVIEW NEEDED]\n- Correction branch 1: review change → manually edit specs → sync → archive\n- Correction branch 2: review change → modify code → run `\u002Fopsx-snack` again → continue iterating\n\n## Artifact Contract\n\n**Document Language Contract**:\n- Treat `openspec\u002Fconfig.yaml` as the compact source of truth, but consume its compiled prompt projection rather than reinterpreting raw keys ad hoc\n- If the compiled projection includes `proseLanguage`, apply it to natural-language prose you write or revise in the artifact body\n- Natural-language prose includes task titles, check names, Requirement titles, Scenario titles, bullet descriptions, Expect\u002FEvidence descriptions, rationale, goals, risks, and summaries\n- Follow the existing template structure exactly; do not invent a different layout because the prose language changes\n- Keep template headings, normative keywords, BDD keywords, IDs, schema keys, relation types, file paths, commands, and code identifiers in their canonical form\n- Preserve exact existing Requirement titles required for MODIFIED matching\n- English project terminology may remain embedded in prose, but ordinary English sentences and titles still follow `proseLanguage`\n- If no `proseLanguage` projection is present, keep the default writing behavior for prose\n\nKeep generated specs coarse and behavior-focused; preserve template headings, canonical IDs, schema keys, BDD keywords, paths, commands, and code identifiers.\n","Synchronize specs and OPSX from already-written code (code-first, reverse of propose\u002Fapply).\n\n## Input\n\n- Optional `\u003Cchange-name>` (kebab-case).\n- If omitted, run `openspec list --json` and reuse the single active change; if multiple or none, ask which change name to target.\n\n## Flow\n\n1. Resolve change name. If `openspec\u002Fchanges\u002F\u003Cname>\u002F` does not exist, run `openspec new change \"\u003Cname>\"`; otherwise update in place (do not recreate proposal).\n2. Load shared OPSX context before generating artifacts.\nBefore reading other context files, check whether `openspec\u002Fproject.opsx.yaml` exists.\n- If it exists, read it first for domains → capabilities structure\n- Read the `project:` block for project intent and scope\n- Treat it as navigation context, not as a replacement for change artifacts\n3. Analyze the code change with git diff.\n   - Run `git diff --name-only` (and `git diff --cached --name-only` when needed) to list modified files.\n   - Run `git diff` to inspect symbol-level changes (new\u002Fdeleted exports, modified signatures).\n   - Exclude non-code files (`.md`, `.json`, `.yaml`, lock files) from spec inference.\n4. Reverse-map files to capabilities via code-map.\n   - Read `openspec\u002Fproject.opsx.code-map.yaml` and map each modified path to its capability\u002Fdomain node IDs.\n   - Files without a code-map entry are [REVIEW NEEDED] candidates for new capabilities.\n5. Use CLI-backed OPSX navigation after code-map reverse lookup.\nAfter reading shared `project.opsx.yaml` context, use OpenSpec CLI query surfaces for node details.\n- Run `openspec list --specs --json` to get specs and their `capabilities` string arrays; specs without frontmatter return `capabilities: []`.\n- For known or affected OPSX node IDs, run `openspec opsx query \u003Cnode-id...> --json` to get node details, relations and code-map refs in one batch; add `--depth 2` when broader related context is needed.\n- Treat CLI output as navigation context, not as a replacement for change artifacts.\n6. Determine the capability list first, then generate `proposal.md`.\n   - Run `openspec instructions proposal --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Determine the `## Capabilities` list before specs generation and reuse the same list as specs input.\n   - Prefer code-map reverse lookup; files without code-map coverage may use git diff inference but MUST be marked `[REVIEW NEEDED]`.\n   - Preserve the template headings including `## Why`, `## What Changes`, `## Capabilities`, and `## Impact`.\n7. Generate delta specs in `specs\u002F\u003Ccapability>\u002Fspec.md` from the artifact instruction.\n   - Run `openspec instructions specs --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Follow the returned `instruction` for ADDED\u002FMODIFIED selection, spec directory naming, and MODIFIED requirement title matching.\n   - Reuse an existing `openspec\u002Fspecs\u002F\u003Ccapability>\u002F` directory when the instruction says it applies; otherwise use the proposal capability name.\n   - New concerns use `## ADDED Requirements`; changed existing behavior uses `## MODIFIED Requirements` with the exact existing Requirement title.\n   - Requirement text MUST contain SHALL\u002FMUST language and at least one `#### Scenario:` block with WHEN\u002FTHEN style.\n   - Mark uncertain inferences with `[REVIEW NEEDED]`.\n8. Generate simplified `design.md` from the artifact instruction.\n   - Run `openspec instructions design --change \"\u003Cname>\" --json`.\n   - Use the returned `template`, `instruction`, `outputPath`, and `configProjection`; do not invent non-template sections.\n   - Preserve the full template skeleton: Context, Goals \u002F Non-Goals, Decisions, and Risks \u002F Trade-offs.\n   - Mark inferred content with `[INFERRED FROM CODE]`; mark unresolved risks or trade-offs with `[REVIEW NEEDED]`.\n9. OPSX delta heuristic — generate `opsx-delta.yaml` ONLY when git diff shows new\u002Fdeleted exports or new files; otherwise skip and log \"No architecture-level changes detected. Skipping OPSX delta generation\".\n   **Generate opsx-delta.yaml**:\n- Read `openspec instructions opsx-delta --change \"\u003Cname>\" --json`\n- Use the returned `template`, `instruction`, and `outputPath` to generate `opsx-delta.yaml`\n- Read `proposal.md` to extract the capability list\n- Read all delta specs in `openspec\u002Fchanges\u002F\u003Cname>\u002Fspecs\u002F*\u002Fspec.md`\n- For existing capability or domain IDs, run `openspec opsx query \u003Cnode-id...> --json` for current-system context in one batch; add `--depth 2` when related context is needed\n- Treat `ADDED`, `MODIFIED`, and `REMOVED` as YAML object keys, not Markdown headings\n- Follow a concrete YAML object structure such as:\n  ```yaml\n  schema_version: 1\n  ADDED:\n    capabilities:\n      - id: cap.example.feature\n        type: capability\n        intent: Describe the new capability\n    relations:\n      - from: cap.example.feature\n        type: contains\n        to: dom.example\n  MODIFIED:\n    capabilities:\n      - id: cap.example.existing\n        intent: Updated intent text\n  REMOVED:\n    capabilities:\n      - id: cap.example.legacy\n  ```\n- Delta nodes contain only id, type, intent, status — no code_refs or spec_refs\n- Keep this agent-driven: capture merge intent in the YAML, not in programmatic code\n10. Do NOT generate `tasks.md` (code is already implemented).\n11. Run `openspec validate \"\u003Cname>\" --type change --json` after all generated artifacts are written.\n   - If validation returns ERROR or WARNING, run one repair pass using the relevant artifact `instruction` rules, then run `openspec validate \"\u003Cname>\" --type change --json` once more.\n   - Treat the second validation result as final evidence.\n   - Output validate result: if passed, indicate self-check passed; if ERROR\u002FWARNING remain, list each and advise user review.\n12. Finish with the output hints below, including the validate result.\n\n## Output Hints\n\nAfter artifacts are generated, output:\n\n**Fast path (skip verify):**\n  • Continue development: `openspec sync \"\u003Cchange-name>\" --no-verify`\n  • Fast archive: `openspec archive \"\u003Cchange-name>\" --no-verify`\n\n**Correction path:**\n⚠️ Generated specs are based on code inference. Review items marked [REVIEW NEEDED]\n- Correction branch 1: review change → manually edit specs → sync → archive\n- Correction branch 2: review change → modify code → run `\u002Fopsx-snack` again → continue iterating\n\n## Artifact Contract\n\n**Document Language Contract**:\n- Treat `openspec\u002Fconfig.yaml` as the compact source of truth, but consume its compiled prompt projection rather than reinterpreting raw keys ad hoc\n- If the compiled projection includes `proseLanguage`, apply it to natural-language prose you write or revise in the artifact body\n- Natural-language prose includes task titles, check names, Requirement titles, Scenario titles, bullet descriptions, Expect\u002FEvidence descriptions, rationale, goals, risks, and summaries\n- Follow the existing template structure exactly; do not invent a different layout because the prose language changes\n- Keep template headings, normative keywords, BDD keywords, IDs, schema keys, relation types, file paths, commands, and code identifiers in their canonical form\n- Preserve exact existing Requirement titles required for MODIFIED matching\n- English project terminology may remain embedded in prose, but ordinary English sentences and titles still follow `proseLanguage`\n- If no `proseLanguage` projection is present, keep the default writing behavior for prose\n\nKeep generated specs coarse and behavior-focused; preserve template headings, canonical IDs, schema keys, BDD keywords, paths, commands, and code identifiers.\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"author":24,"version":25,"generatedBy":26},"openspec","1.0","1.4.1-cpyu.1","Requires openspec CLI.","master","c18be1fecd2d4509d809d31a9b40c8631b5a9abe",".pi\u002Fskills\u002Fopenspec-snack",0,"https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa","https:\u002F\u002Fgithub.com\u002Fcp-yu","2026-06-23 11:25:19",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add cp-yu\u002Federa --skill openspec-snack",{"tool":41,"command":42},"bunx","bunx skills add cp-yu\u002Federa --skill openspec-snack",{"tool":44,"command":45},"pnpm","pnpm dlx skills add cp-yu\u002Federa --skill openspec-snack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-snack\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M75C40VZPPCXCW80WEG7XXZX","openspec-reviewer","Internal clean-context Phase 1 verification reviewer. Judges implementation completeness, correctness, coherence, and cleanliness by reading files from changeName, changeDir, and projectRoot. Never accesses conversation history.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-reviewer\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75C3WQ5C1BRECWPWEHYV3NR","openspec-propose","Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-propose\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75C3T76A0MM8XVGQ6FDT77Q","openspec-optimizer","Internal clean-context Phase 2 optimization proposer. Analyzes implementation files and outputs behavior-preserving Search\u002FReplace blocks. Never modifies files directly. Reads failedDirections to avoid repeating broken strategies.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-optimizer\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75C3R32971RR1WXKB2XHD50","openspec-impact-sweeper","Generate a lightweight OPSX-grounded JSON impact report for one project concept. Use from explore before scope or proposal readiness claims.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-impact-sweeper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75C3N8CCEV30P468SWY8ZE5","openspec-explore","Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-explore\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75C3K5P0RVCDAV9GGQPETVE","openspec-bootstrap-opsx","Bootstrap OPSX architecture map from existing codebase using a structured five-phase workflow (init → scan → map → review → promote).","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-bootstrap-opsx\u002FSKILL.md",[],[]]