[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79X9AFJQ2JVVZFAEWCD7MGT":3,"skill-same:01M79X9AFJQ2JVVZFAEWCD7MGT":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},"01M79X9AFJQ2JVVZFAEWCD7MGT","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.","mayankjain1815-commits\u002FCITADEL","mayankjain1815-commits","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234472344?v=4","01M79X9599EWEQTD62DMNTEG7X","Mayank jain","01M79X95AA0KDFTN1Z1A6DQTX1",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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","49119fa06efc769f502bede04ad99746ac20f021","skills\u002Farchitect",0,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits","2nd-yr EEE 📍 Bangalore | Python, C, Java, C# | ML, NLP & Flask backends | Building AI tools that ship 🚀 | Open to hackathons & collabs","2026-11-14 14:46:28",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":25},[41,44,47],{"tool":42,"command":43},"npx","npx skills add mayankjain1815-commits\u002FCITADEL --skill architect",{"tool":45,"command":46},"bunx","bunx skills add mayankjain1815-commits\u002FCITADEL --skill architect",{"tool":48,"command":49},"pnpm","pnpm dlx skills add mayankjain1815-commits\u002FCITADEL --skill architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\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\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\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\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002F__benchmarks__\u002Fwith-direction.md",[63,70,77,84,91,98],{"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},"01M79XH1DBMXQEF9N0Q6NW7Q5P","workspace","Multi-repo campaign coordinator. Same lifecycle as fleet -- scope claims, discovery relay, wave-based execution -- but the unit of work is a repo, not a file. Coordinates campaigns across repositories with shared context.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M79XGWJJHSKNTH78TNVX09VK","wiki","Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M79XGNW2YTFHVMEZGZDEDN43","watch","File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through \u002Fdo. Use for automatic reactions to file changes; do NOT use for one-off inspection or tasks needing human judgment per file.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwatch\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M79XGHZ0028HDW7SDT186D6Q","verify","Self-test the Citadel hook pipeline from within a live session. Exercises real tool calls (Write, Edit, Bash, Read) and checks that hooks fired, telemetry accumulated, and no errors occurred. Reports HOOK HEALTH: PASS or HOOK HEALTH: FAIL with a per-hook breakdown.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M79XGDKHMADJXC27T0FMQAN3","unharness","Remove Citadel from a project. Exports valuable state (campaigns, postmortems, research, backlog, discoveries) to docs\u002Fcitadel\u002F as human-readable markdown, then removes all harness files and hooks. The archive is detected by \u002Fdo setup on re-install and offered for restore.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Funharness\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M79XG81A3RHP2TKKBT5WYEY2","triage","GitHub issue and PR investigator. Pulls open issues\u002FPRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to GitHub issues.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]