[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75C3K5P0RVCDAV9GGQPETVE":3,"skill-same:01M75C3K5P0RVCDAV9GGQPETVE":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},"01M75C3K5P0RVCDAV9GGQPETVE","openspec-bootstrap-opsx",null,"Bootstrap OPSX architecture map from existing codebase using a structured five-phase workflow (init → scan → map → review → promote).","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-bootstrap-opsx\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: \"openspec-bootstrap-opsx\"\ndescription: \"Bootstrap OPSX architecture map from existing codebase using a structured five-phase workflow (init → scan → map → review → promote).\"\nlicense: \"MIT\"\ncompatibility: \"Requires openspec CLI.\"\nmetadata:\n  author: \"openspec\"\n  version: \"2.0\"\n  generatedBy: \"1.4.1-cpyu.1\"\n---\n\nBootstrap the OPSX architecture map from the existing codebase.\n\nThis is a **structured, multi-phase** workflow. Each phase produces intermediate artifacts in `openspec\u002Fbootstrap\u002F` before writing formal OPSX files.\n\nTreat `openspec\u002Fconfig.yaml` as the source of truth for authoring policy, but consume its compiled projection semantics: prose-bearing bootstrap artifacts follow the projected documentation language policy, while canonical headings, IDs, schema keys, paths, and commands stay unchanged.\n\n**Input**: No argument required. Scope hints (folders, domain names) are passed to init.\n\n**Steps**\n\n1. **Determine current phase**\n   ```bash\n   openspec bootstrap status --json\n   ```\n   - If no workspace exists, start with init\n   - If workspace exists and is in progress, resume from the current phase\n   - If workspace exists and is completed, restart explicitly with `openspec bootstrap init --mode refresh --restart`\n\n2. **Execute the current phase**\n\n   Get phase-specific instructions:\n   ```bash\n   openspec bootstrap instructions [phase] --json\n   ```\n\n   **Phase: init**\n   ```bash\n   openspec bootstrap init --mode full\n   ```\n   Creates workspace at `openspec\u002Fbootstrap\u002F` with scope configuration.\n   Supported upgrade paths:\n   - `specs-based -> full`\n   - `raw -> full`\n   - `raw -> opsx-first`\n   - `formal-opsx -> refresh`\n   Use `opsx-first` only for `raw` repositories when you want the formal OPSX bundle plus a README-only specs starter now, and full behavior specs later.\n   Use `refresh` only for repositories that already have the formal OPSX bundle and need a delta-first refresh that merges reviewed changes back into the existing formal files.\n   Use `--restart` only when a completed retained workspace already exists and you want a fresh run; it snapshots the old `openspec\u002Fbootstrap\u002F` into `openspec\u002Fbootstrap-history\u002F` first.\n\n   **Phase: scan**\n   - Read `package.json`, `README`, OpenSpec config, `openspec\u002Fspecs\u002F`\n   - Scan source code for structural boundaries\n   - Write `openspec\u002Fbootstrap\u002Fevidence.yaml` with candidate domains:\n     ```yaml\n     domains:\n       - id: dom.cli\n         confidence: high\n         sources: [code:src\u002Fcli\u002F, spec:openspec\u002Fspecs\u002Fcli\u002F]\n         intent: CLI entry point and command routing\n   ```\n   - Run `openspec bootstrap validate` to verify gates\n   - In `refresh`, treat the current formal OPSX bundle as the baseline and use git diff only to narrow scan scope when a stored anchor commit is still reachable\n\n   **Phase: map**\n   - For each domain in evidence.yaml, create `openspec\u002Fbootstrap\u002Fdomain-map\u002F\u003Cdomain-id>.yaml`:\n     ```yaml\n     domain:\n       id: dom.cli\n       type: domain\n       intent: CLI entry point and command routing\n       status: active\n     capabilities:\n       - id: cap.cli.init\n         type: capability\n         intent: Initialize OpenSpec in a project\n         status: active\n     relations:\n       - from: cap.cli.init\n         to: dom.cli\n         type: contains\n     code_refs:\n       - id: cap.cli.init\n         refs:\n           - path: src\u002Fcore\u002Finit.ts\n             line_start: 1\n     ```\n   - Map incrementally — one domain at a time\n   - Run `openspec bootstrap status` to track per-domain progress\n   - Run `openspec bootstrap validate` after all domains mapped\n\n   **Phase: review**\n   - Validate regenerates review.md and candidate OPSX files from current `evidence.yaml` and `domain-map\u002F*.yaml`\n   - Review each domain checkbox in review.md\n   - In `refresh`, review the delta summary against the current formal OPSX baseline instead of re-approving the whole model\n   - Check all validation checkboxes\n   - If evidence or domain maps change, rerun validate and re-approve the regenerated review\n   - Low-confidence domains appear first for priority review\n\n   **Phase: promote**\n   ```bash\n   openspec bootstrap promote -y\n   ```\n   Re-validates all upstream gates before writing.\n   - `opsx-first`: writes the formal OPSX three-file bundle plus only `openspec\u002Fspecs\u002FREADME.md`\n   - `full` on `raw`: writes the formal OPSX bundle plus one validated spec per mapped capability\n   - `full` on `specs-based`: preserves existing specs, adds only missing capability specs, and fails fast on target-path conflicts\n   - `refresh` on `formal-opsx`: merges the reviewed delta into the existing formal OPSX bundle, preserves existing specs, adds only missing specs for newly added capabilities, and fails fast on conflicts\n   Promote also runs the programmatic spec frontmatter backfill. After promote, run:\n   ```bash\n   openspec bootstrap backfill-specs --json\n   ```\n   For unmatched specs, spawn a subagent to read the spec content and OPSX capability intents, return semantic matches, then write the returned frontmatter mappings; report any specs that still have no match.\n   Retains the bootstrap workspace on success for audit history.\n   Start the next refresh run with `openspec bootstrap init --mode refresh --restart`, which snapshots the retained workspace into `openspec\u002Fbootstrap-history\u002F`.\n\n3. **After each phase action**\n   - Run `openspec bootstrap validate` to verify gate conditions\n   - Run `openspec bootstrap status` to confirm phase advancement\n   - Continue to next phase\n\n**Evidence Guidelines**\n- Use repository evidence only — do not fabricate\n- Attach confidence levels: high (multiple sources), medium (single source), low (inferred)\n- Prefer fewer domains with solid evidence over exhaustive noise\n- Each domain should map to a clear architectural boundary\n\n**Mapping Guidelines**\n- Capability IDs follow `cap.\u003Cdomain>.\u003Caction>` convention\n- Code references must point to existing files\n- Relations capture structural ownership (contains) and runtime dependencies (depends_on)\n- Mark uncertain mappings for review attention\n\n**Guardrails**\n- Do NOT write directly to formal OPSX files — use the bootstrap workspace\n- Do NOT fabricate code references\n- Do NOT skip the review phase\n- Do NOT treat stale review.md checkboxes as approval after evidence or mappings change\n- Keep the graph small enough to audit in one sitting\n","Bootstrap the OPSX architecture map from the existing codebase.\n\nThis is a **structured, multi-phase** workflow. Each phase produces intermediate artifacts in `openspec\u002Fbootstrap\u002F` before writing formal OPSX files.\n\nTreat `openspec\u002Fconfig.yaml` as the source of truth for authoring policy, but consume its compiled projection semantics: prose-bearing bootstrap artifacts follow the projected documentation language policy, while canonical headings, IDs, schema keys, paths, and commands stay unchanged.\n\n**Input**: No argument required. Scope hints (folders, domain names) are passed to init.\n\n**Steps**\n\n1. **Determine current phase**\n   ```bash\n   openspec bootstrap status --json\n   ```\n   - If no workspace exists, start with init\n   - If workspace exists and is in progress, resume from the current phase\n   - If workspace exists and is completed, restart explicitly with `openspec bootstrap init --mode refresh --restart`\n\n2. **Execute the current phase**\n\n   Get phase-specific instructions:\n   ```bash\n   openspec bootstrap instructions [phase] --json\n   ```\n\n   **Phase: init**\n   ```bash\n   openspec bootstrap init --mode full\n   ```\n   Creates workspace at `openspec\u002Fbootstrap\u002F` with scope configuration.\n   Supported upgrade paths:\n   - `specs-based -> full`\n   - `raw -> full`\n   - `raw -> opsx-first`\n   - `formal-opsx -> refresh`\n   Use `opsx-first` only for `raw` repositories when you want the formal OPSX bundle plus a README-only specs starter now, and full behavior specs later.\n   Use `refresh` only for repositories that already have the formal OPSX bundle and need a delta-first refresh that merges reviewed changes back into the existing formal files.\n   Use `--restart` only when a completed retained workspace already exists and you want a fresh run; it snapshots the old `openspec\u002Fbootstrap\u002F` into `openspec\u002Fbootstrap-history\u002F` first.\n\n   **Phase: scan**\n   - Read `package.json`, `README`, OpenSpec config, `openspec\u002Fspecs\u002F`\n   - Scan source code for structural boundaries\n   - Write `openspec\u002Fbootstrap\u002Fevidence.yaml` with candidate domains:\n     ```yaml\n     domains:\n       - id: dom.cli\n         confidence: high\n         sources: [code:src\u002Fcli\u002F, spec:openspec\u002Fspecs\u002Fcli\u002F]\n         intent: CLI entry point and command routing\n   ```\n   - Run `openspec bootstrap validate` to verify gates\n   - In `refresh`, treat the current formal OPSX bundle as the baseline and use git diff only to narrow scan scope when a stored anchor commit is still reachable\n\n   **Phase: map**\n   - For each domain in evidence.yaml, create `openspec\u002Fbootstrap\u002Fdomain-map\u002F\u003Cdomain-id>.yaml`:\n     ```yaml\n     domain:\n       id: dom.cli\n       type: domain\n       intent: CLI entry point and command routing\n       status: active\n     capabilities:\n       - id: cap.cli.init\n         type: capability\n         intent: Initialize OpenSpec in a project\n         status: active\n     relations:\n       - from: cap.cli.init\n         to: dom.cli\n         type: contains\n     code_refs:\n       - id: cap.cli.init\n         refs:\n           - path: src\u002Fcore\u002Finit.ts\n             line_start: 1\n     ```\n   - Map incrementally — one domain at a time\n   - Run `openspec bootstrap status` to track per-domain progress\n   - Run `openspec bootstrap validate` after all domains mapped\n\n   **Phase: review**\n   - Validate regenerates review.md and candidate OPSX files from current `evidence.yaml` and `domain-map\u002F*.yaml`\n   - Review each domain checkbox in review.md\n   - In `refresh`, review the delta summary against the current formal OPSX baseline instead of re-approving the whole model\n   - Check all validation checkboxes\n   - If evidence or domain maps change, rerun validate and re-approve the regenerated review\n   - Low-confidence domains appear first for priority review\n\n   **Phase: promote**\n   ```bash\n   openspec bootstrap promote -y\n   ```\n   Re-validates all upstream gates before writing.\n   - `opsx-first`: writes the formal OPSX three-file bundle plus only `openspec\u002Fspecs\u002FREADME.md`\n   - `full` on `raw`: writes the formal OPSX bundle plus one validated spec per mapped capability\n   - `full` on `specs-based`: preserves existing specs, adds only missing capability specs, and fails fast on target-path conflicts\n   - `refresh` on `formal-opsx`: merges the reviewed delta into the existing formal OPSX bundle, preserves existing specs, adds only missing specs for newly added capabilities, and fails fast on conflicts\n   Promote also runs the programmatic spec frontmatter backfill. After promote, run:\n   ```bash\n   openspec bootstrap backfill-specs --json\n   ```\n   For unmatched specs, spawn a subagent to read the spec content and OPSX capability intents, return semantic matches, then write the returned frontmatter mappings; report any specs that still have no match.\n   Retains the bootstrap workspace on success for audit history.\n   Start the next refresh run with `openspec bootstrap init --mode refresh --restart`, which snapshots the retained workspace into `openspec\u002Fbootstrap-history\u002F`.\n\n3. **After each phase action**\n   - Run `openspec bootstrap validate` to verify gate conditions\n   - Run `openspec bootstrap status` to confirm phase advancement\n   - Continue to next phase\n\n**Evidence Guidelines**\n- Use repository evidence only — do not fabricate\n- Attach confidence levels: high (multiple sources), medium (single source), low (inferred)\n- Prefer fewer domains with solid evidence over exhaustive noise\n- Each domain should map to a clear architectural boundary\n\n**Mapping Guidelines**\n- Capability IDs follow `cap.\u003Cdomain>.\u003Caction>` convention\n- Code references must point to existing files\n- Relations capture structural ownership (contains) and runtime dependencies (depends_on)\n- Mark uncertain mappings for review attention\n\n**Guardrails**\n- Do NOT write directly to formal OPSX files — use the bootstrap workspace\n- Do NOT fabricate code references\n- Do NOT skip the review phase\n- Do NOT treat stale review.md checkboxes as approval after evidence or mappings change\n- Keep the graph small enough to audit in one sitting\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"author":24,"version":25,"generatedBy":26},"openspec","2.0","1.4.1-cpyu.1","Requires openspec CLI.","master","c18be1fecd2d4509d809d31a9b40c8631b5a9abe",".pi\u002Fskills\u002Fopenspec-bootstrap-opsx",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-bootstrap-opsx",{"tool":41,"command":42},"bunx","bunx skills add cp-yu\u002Federa --skill openspec-bootstrap-opsx",{"tool":44,"command":45},"pnpm","pnpm dlx skills add cp-yu\u002Federa --skill openspec-bootstrap-opsx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-bootstrap-opsx\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},"01M75C44N0S92N0JZWMS1DJXM3","openspec-snack","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.","https:\u002F\u002Fgithub.com\u002Fcp-yu\u002Federa\u002Fblob\u002Fmaster\u002F.pi\u002Fskills\u002Fopenspec-snack\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},"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":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},"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":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},"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":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},"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":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},"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",[],[]]