[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDTHHD3ZV3SHNBBR9N74NX":3,"skill-same:01M7FDTHHD3ZV3SHNBBR9N74NX":62},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M7FDTHHD3ZV3SHNBBR9N74NX","architect",null,"Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can execute directly. Multi-candidate evaluation for key decisions.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Farchitect\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: architect\nlicense: MIT\ndescription: >-\n  Given a PRD, produces an implementation architecture: file tree, component\n  breakdown, data model, and a phased build plan with end conditions that\n  Archon can execute directly. Multi-candidate evaluation for key decisions.\nuser-invocable: true\nauto-trigger: false\ntrigger_keywords:\n  - architect\n  - architecture\n  - design the system\n  - file structure\n  - plan the build\neffort: high\n---\n\n# \u002Farchitect — Implementation Architecture from PRD\n\n## When to Use\n\n**Don't use when:** you already have an architecture and want to implement it (use \u002Fmarshal or \u002Farchon); you need a PRD first (use \u002Fprd before \u002Farchitect).\n\n- After \u002Fprd produces an approved PRD (greenfield or feature mode)\n- When the user has a clear direction + existing codebase (no PRD needed)\n- When \u002Fdo routes a build request\n- When the user has a spec and wants a build plan\n\n## Inputs\n\nOne of:\n1. A PRD file path (from \u002Fprd) — preferred, contains structured requirements\n2. A user-provided spec or description + an existing codebase — sufficient\n3. Neither — suggest \u002Fprd first, but don't hard-gate. If the user has a clear\n   direction (\"add auth to my app\"), that + the existing code IS the input.\n\n## Mode Detection\n\n**Greenfield mode**: PRD exists with `Mode: greenfield`, or no existing source files.\nProduces a complete architecture from scratch.\n\n**Feature mode**: PRD exists with `Mode: feature`, OR the user describes a feature\nand the project has existing source files. The architecture describes changes to\nexisting code, not a standalone system.\n\nIn feature mode:\n- Read the existing file tree FIRST — understand the current architecture before planning changes\n- Read key files (package.json, tsconfig, main entry points, existing patterns)\n- The File Tree section shows ONLY new and modified files, not the entire project\n- Phases include a Phase 0: \"Baseline\" that records current typecheck\u002Ftest state\n- Every phase's end conditions include \"no new typecheck errors\" and \"existing tests pass\"\n- The Risk Register includes \"regression in existing functionality\" as a default risk\n\n## Protocol\n\n### Step 1: READ\n\n**If PRD exists**, read it. Extract:\n- Core features (the numbered list)\n- Technical decisions (stack choices)\n- End conditions (what \"done\" looks like)\n- Out of scope (what NOT to build)\n- Integration points (feature mode)\n\n**If no PRD**, read the codebase instead:\n- Scan the file tree for structure and conventions\n- Read package.json \u002F equivalent for dependencies and scripts\n- Read the main entry point(s) to understand the architecture\n- Use the user's description as the feature spec\n- Infer end conditions from the description (\"add auth\" → \"protected routes return 401 without token\")\n\n### Step 2: EVALUATE OPTIONS (for non-trivial decisions)\n\nFor decisions with multiple valid approaches — state management, API structure, auth pattern, DB schema, routing — generate 2-3 candidates. Assess each on complexity, risk, maintainability, and LLM-friendliness. Pick the winner and document why. Reject alternatives with reasoning.\n\nSimple decisions (file naming, folder structure, CSS) don't need this — use the PRD's stack choices and move on.\n\n### Step 3: PRODUCE\n\nWrite to `.planning\u002Farchitecture-{slug}.md`:\n\n```markdown\n# Architecture: {App Name}\n> PRD: .planning\u002Fprd-{slug}.md  |  Date: {ISO date}\n\n## File Tree\n{Greenfield: complete file tree for v1, every file listed.\nFeature mode: ONLY new (+) and modified (~) files.}\n\n## Component Breakdown\n### Feature: {name}\n- Files: | Dependencies: | Complexity: {low\u002Fmedium\u002Fhigh}\n\n## Data Model\n### {Entity name}\n- Fields: {name: type}  |  Relationships: {connections}\n{Omit section if no database.}\n\n## Key Decisions\n### {Decision}: {chosen approach}\n- **Chosen**: {approach} — {reasoning}\n- **Rejected**: {alternative} — {why not}\n\n## Build Phases\n### Phase N: {name}\n- **Goal**: {one sentence}\n- **Files**: | **Dependencies**: {or \"none\"}\n- **End Conditions**: [ ] {machine-verifiable}\n\n## Phase Dependency Graph\n{Text format: Phase 1 → Phase 2 → Phase 3 \u002F Phase 3 + 4 → Phase 5}\n\n## Risk Register\n1. {risk}: {mitigation}\n2. {risk}: {mitigation}\n3. {risk}: {mitigation}\n\n## Deployment Strategy\n{Skip if \"deploy later\" or static-only.}\n- **Platform**: | **Method**: | **Environment variables**: | **Pre-deploy checks**:\n{Final phase is \"Deploy\" when a platform is specified. A failed deploy does NOT fail the campaign.}\n```\n\n### Step 4: CONNECT TO CAMPAIGN\n\nEach build phase becomes a campaign phase; end conditions carry over; the dependency graph determines ordering; parallel-safe phases flagged for Fleet.\n\nPresent summary to user (file count, phase count, key decisions, estimated complexity) and ask: \"Ready to build? This will create an Archon campaign.\" If approved, write the campaign file.\n\n### Step 5: HANDOFF\n\n```\n---HANDOFF---\n- Architecture: {app name}\n- Document: .planning\u002Farchitecture-{slug}.md\n- Phases: {count}\n- Estimated complexity: {low\u002Fmedium\u002Fhigh}\n- Next: Archon campaign ready to execute\n- Reversibility: green — delete .planning\u002Farchitecture-{slug}.md to undo\n---\n```\n\n## Contextual Gates\n\n**Disclosure:** \"Generating architecture plan for [description]. No files modified until you approve.\"\n**Reversibility:** green — creates `.planning\u002Farchitecture-{slug}.md` only; undo with `rm .planning\u002Farchitecture-{slug}.md`.\n**Trust gates:**\n- Any: generate architecture document, evaluate options, connect to campaign.\n\n## Quality Gates\n\n- Every phase has at least one machine-verifiable end condition\n- Every key decision documents what was rejected and why\n- File tree is complete (no \"etc.\" or \"...\" placeholders)\n- Phase dependencies are explicit (no implicit ordering)\n- Risk register has at least 2 entries\n\n## Fringe Cases\n\n**No PRD:** Treat user description + existing codebase as the spec; read file tree and package.json; proceed without requiring a PRD.\n\n**Project already has code:** Use feature mode; read existing architecture first; file tree shows only new\u002Fmodified files; Phase 0 records baseline typecheck\u002Ftest state.\n\n**Vague description:** Ask at most 2 clarifying questions; don't block on perfect clarity.\n\n**`.planning\u002F` missing:** Create it; if not possible, output the architecture inline and instruct the user to save it.\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Architecture: {app name}\n- Document: .planning\u002Farchitecture-{slug}.md\n- Phases: {count}\n- Estimated complexity: {low\u002Fmedium\u002Fhigh}\n- Next: Archon campaign ready to execute\n- Reversibility: green — delete .planning\u002Farchitecture-{slug}.md to undo\n---\n```\n","# \u002Farchitect — Implementation Architecture from PRD\n\n## When to Use\n\n**Don't use when:** you already have an architecture and want to implement it (use \u002Fmarshal or \u002Farchon); you need a PRD first (use \u002Fprd before \u002Farchitect).\n\n- After \u002Fprd produces an approved PRD (greenfield or feature mode)\n- When the user has a clear direction + existing codebase (no PRD needed)\n- When \u002Fdo routes a build request\n- When the user has a spec and wants a build plan\n\n## Inputs\n\nOne of:\n1. A PRD file path (from \u002Fprd) — preferred, contains structured requirements\n2. A user-provided spec or description + an existing codebase — sufficient\n3. Neither — suggest \u002Fprd first, but don't hard-gate. If the user has a clear\n   direction (\"add auth to my app\"), that + the existing code IS the input.\n\n## Mode Detection\n\n**Greenfield mode**: PRD exists with `Mode: greenfield`, or no existing source files.\nProduces a complete architecture from scratch.\n\n**Feature mode**: PRD exists with `Mode: feature`, OR the user describes a feature\nand the project has existing source files. The architecture describes changes to\nexisting code, not a standalone system.\n\nIn feature mode:\n- Read the existing file tree FIRST — understand the current architecture before planning changes\n- Read key files (package.json, tsconfig, main entry points, existing patterns)\n- The File Tree section shows ONLY new and modified files, not the entire project\n- Phases include a Phase 0: \"Baseline\" that records current typecheck\u002Ftest state\n- Every phase's end conditions include \"no new typecheck errors\" and \"existing tests pass\"\n- The Risk Register includes \"regression in existing functionality\" as a default risk\n\n## Protocol\n\n### Step 1: READ\n\n**If PRD exists**, read it. Extract:\n- Core features (the numbered list)\n- Technical decisions (stack choices)\n- End conditions (what \"done\" looks like)\n- Out of scope (what NOT to build)\n- Integration points (feature mode)\n\n**If no PRD**, read the codebase instead:\n- Scan the file tree for structure and conventions\n- Read package.json \u002F equivalent for dependencies and scripts\n- Read the main entry point(s) to understand the architecture\n- Use the user's description as the feature spec\n- Infer end conditions from the description (\"add auth\" → \"protected routes return 401 without token\")\n\n### Step 2: EVALUATE OPTIONS (for non-trivial decisions)\n\nFor decisions with multiple valid approaches — state management, API structure, auth pattern, DB schema, routing — generate 2-3 candidates. Assess each on complexity, risk, maintainability, and LLM-friendliness. Pick the winner and document why. Reject alternatives with reasoning.\n\nSimple decisions (file naming, folder structure, CSS) don't need this — use the PRD's stack choices and move on.\n\n### Step 3: PRODUCE\n\nWrite to `.planning\u002Farchitecture-{slug}.md`:\n\n```markdown\n# Architecture: {App Name}\n> PRD: .planning\u002Fprd-{slug}.md  |  Date: {ISO date}\n\n## File Tree\n{Greenfield: complete file tree for v1, every file listed.\nFeature mode: ONLY new (+) and modified (~) files.}\n\n## Component Breakdown\n### Feature: {name}\n- Files: | Dependencies: | Complexity: {low\u002Fmedium\u002Fhigh}\n\n## Data Model\n### {Entity name}\n- Fields: {name: type}  |  Relationships: {connections}\n{Omit section if no database.}\n\n## Key Decisions\n### {Decision}: {chosen approach}\n- **Chosen**: {approach} — {reasoning}\n- **Rejected**: {alternative} — {why not}\n\n## Build Phases\n### Phase N: {name}\n- **Goal**: {one sentence}\n- **Files**: | **Dependencies**: {or \"none\"}\n- **End Conditions**: [ ] {machine-verifiable}\n\n## Phase Dependency Graph\n{Text format: Phase 1 → Phase 2 → Phase 3 \u002F Phase 3 + 4 → Phase 5}\n\n## Risk Register\n1. {risk}: {mitigation}\n2. {risk}: {mitigation}\n3. {risk}: {mitigation}\n\n## Deployment Strategy\n{Skip if \"deploy later\" or static-only.}\n- **Platform**: | **Method**: | **Environment variables**: | **Pre-deploy checks**:\n{Final phase is \"Deploy\" when a platform is specified. A failed deploy does NOT fail the campaign.}\n```\n\n### Step 4: CONNECT TO CAMPAIGN\n\nEach build phase becomes a campaign phase; end conditions carry over; the dependency graph determines ordering; parallel-safe phases flagged for Fleet.\n\nPresent summary to user (file count, phase count, key decisions, estimated complexity) and ask: \"Ready to build? This will create an Archon campaign.\" If approved, write the campaign file.\n\n### Step 5: HANDOFF\n\n```\n---HANDOFF---\n- Architecture: {app name}\n- Document: .planning\u002Farchitecture-{slug}.md\n- Phases: {count}\n- Estimated complexity: {low\u002Fmedium\u002Fhigh}\n- Next: Archon campaign ready to execute\n- Reversibility: green — delete .planning\u002Farchitecture-{slug}.md to undo\n---\n```\n\n## Contextual Gates\n\n**Disclosure:** \"Generating architecture plan for [description]. No files modified until you approve.\"\n**Reversibility:** green — creates `.planning\u002Farchitecture-{slug}.md` only; undo with `rm .planning\u002Farchitecture-{slug}.md`.\n**Trust gates:**\n- Any: generate architecture document, evaluate options, connect to campaign.\n\n## Quality Gates\n\n- Every phase has at least one machine-verifiable end condition\n- Every key decision documents what was rejected and why\n- File tree is complete (no \"etc.\" or \"...\" placeholders)\n- Phase dependencies are explicit (no implicit ordering)\n- Risk register has at least 2 entries\n\n## Fringe Cases\n\n**No PRD:** Treat user description + existing codebase as the spec; read file tree and package.json; proceed without requiring a PRD.\n\n**Project already has code:** Use feature mode; read existing architecture first; file tree shows only new\u002Fmodified files; Phase 0 records baseline typecheck\u002Ftest state.\n\n**Vague description:** Ask at most 2 clarifying questions; don't block on perfect clarity.\n\n**`.planning\u002F` missing:** Create it; if not possible, output the architecture inline and instruct the user to save it.\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Architecture: {app name}\n- Document: .planning\u002Farchitecture-{slug}.md\n- Phases: {count}\n- Estimated complexity: {low\u002Fmedium\u002Fhigh}\n- Next: Archon campaign ready to execute\n- Reversibility: green — delete .planning\u002Farchitecture-{slug}.md to undo\n---\n```\n",{"name":5,"effort":24,"license":15,"description":7,"auto-trigger":20,"user-invocable":25,"trigger_keywords":26},"high",true,[5,27,28,29,30],"architecture","design the system","file structure","plan the build","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","07-后端与架构\u002Farchitect",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":25},[41,44,47],{"tool":42,"command":43},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill architect",{"tool":45,"command":46},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill architect",{"tool":48,"command":49},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Farchitect\u002FSKILL.md",[52,58],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"__benchmarks__\u002Fno-prd.md","REFERENCE","参考文档",791,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Farchitect\u002F__benchmarks__\u002Fno-prd.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"__benchmarks__\u002Fwith-direction.md",897,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Farchitect\u002F__benchmarks__\u002Fwith-direction.md",[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]