[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76RWPNSH5FB4N9GCS6JZ2SJ":3,"skill-same:01M76RWPNSH5FB4N9GCS6JZ2SJ":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M76RWPNSH5FB4N9GCS6JZ2SJ","pre-phase-briefing",null,"Full execution protocol for MODE: PRE-PHASE BRIEFING -- phase-start context assembly, evidence review, and task readiness checks.","AlexanderNarbaev\u002Fagi","AlexanderNarbaev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33544956?v=4","01M755ZKB1JJ26ZBNZSDJ4C0TV","01M755ZKBX072HZMHVQBWK7MK7",1,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fpre-phase-briefing\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: pre-phase-briefing\ndescription: >\n  Full execution protocol for MODE: PRE-PHASE BRIEFING -- phase-start context assembly, evidence review, and task readiness checks.\n---\n\n# Pre Phase Briefing Protocol\n\nThis protocol is loaded on demand by the architect stub in src\u002Fagents\u002Farchitect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.\n\n### MODE: PRE-PHASE BRIEFING (Required Before Starting Any Phase)\n\nBefore creating or resuming any plan, you MUST read the previous phase's retrospective.\n\n**Phase 2+ (continuing a multi-phase project):**\n1. Check `.swarm\u002Fevidence\u002Fretro-{N-1}\u002Fevidence.json` for the previous phase's retrospective\n2. If it exists: read and internalize `lessons_learned` and `top_rejection_reasons`\n3. If it does NOT exist: note this as a process gap, but proceed\n4. Print a briefing acknowledgment:\n```\n→ BRIEFING: Read Phase {N-1} retrospective.\nKey lessons: {list 1-3 most relevant lessons}\nApplying to Phase {N}: {one sentence on how you'll apply them}\n```\n\n**Phase 1 (starting any new project):**\n1. Scan `.swarm\u002Fevidence\u002F` for any `retro-*` bundles from prior projects\n2. If found: review the 1-3 most recent retrospectives for relevant lessons\n3. Pay special attention to `user_directives` — these carry across projects\n4. Print a briefing acknowledgment:\n```\n→ BRIEFING: Reviewed {N} historical retrospectives from this workspace.\nRelevant lessons: {list applicable lessons}\nUser directives carried forward: {list any persistent directives}\n```\n   OR if no historical retros exist:\n```\n→ BRIEFING: No historical retrospectives found. Starting fresh.\n```\n\nThis briefing is a HARD REQUIREMENT for ALL phases. Skipping it is a process violation.\n\n### CODEBASE REALITY CHECK (Required Before Speccing or Planning)\n\nBefore any spec generation, plan creation, or plan ingestion begins, the Architect must verify the codebase reality of every item the work references. This runs as **asynchronous, fanned-out Explorer lanes by default**, joined behind a hard settlement gate — never as a single blocking explorer call, and never as fire-and-forget.\n\n**1. Enumerate and partition the references (before dispatch).**\nList every referenced item — file, module, function, API, config surface, and behavioral assumption — named or implied by the spec, the user request, or the plan. Partition them into **non-overlapping** lane assignments. The partition is the contract: no two lanes may share a reference (this prevents duplicated work), and the **union of all lanes must cover every referenced item** (this prevents gaps). Under-specified lane boundaries are the dominant fan-out failure mode — be explicit about what each lane owns.\n\n**2. Scale the number of lanes to the size of the referenced surface.**\n- Trivial surface (a single file\u002Ffunction, one logical area) → **1 lane**.\n- Typical phase spanning a few areas → **2–4 lanes**.\n- Large surface (many modules\u002Fhooks\u002Fconfig surfaces) → **more lanes, up to the dispatch cap of 8 lanes per batch**.\n\nDo not fix the lane count in advance and do not over-spawn: extra lanes on a small surface waste tokens without improving coverage, while too few on a large surface leave gaps. Split by codebase area by default; when the surface is a single dense area, split by check-type instead — one lane for *existence & current state*, one for *assumption correctness & prior-work*.\n\n**3. Dispatch asynchronously, then keep working.**\nDispatch the lanes with `dispatch_lanes_async`, record the returned `batch_id`, and continue **non-dependent** Architect work while they run — digest the retrospective and `user_directives`, review the spec\u002Fplan text for internal consistency, check governance\u002FQA-gate config and the obligation ledger, and prepare the plan skeleton \u002F task decomposition. This is dispatch-and-keep-busy, not fire-and-forget. Poll with `collect_lane_results` (wait omitted or false) to process settled lanes incrementally, or join with `wait: true` once independent work is exhausted.\n\nEach lane must be given: its objective, its named (disjoint) reference subset, the fixed REALITY-CHECK output format below, and clear boundaries. Lanes are read-only — they cannot `declare_scope` or mutate the worktree.\n\n**4. For each referenced item, the lane must determine:**\n- Does this file\u002Fmodule\u002Ffunction already exist?\n- If it exists, what is its current state? Does it already implement any part of what the plan or spec describes?\n- Is the plan's or user's assumption about the current state accurate? Flag any discrepancy between what is expected and what actually exists.\n- Has any portion of this work already been applied (partially or fully) in a prior session or commit?\n\n**5. Hard settlement gate (join before any downstream work).**\nThe Architect synthesizes the lane outputs into a single CODEBASE REALITY REPORT. The report must list every referenced item with one of:\n  NOT STARTED | PARTIALLY DONE | ALREADY COMPLETE | ASSUMPTION INCORRECT\n\nFormat:\n  REALITY CHECK: [N] references verified, [M] discrepancies found.\n    ✓ src\u002Fhooks\u002Fincremental-verify.ts — exists, line 69 confirmed Bun.spawn\n    ✗ src\u002Fservices\u002Fstatus-service.ts — ASSUMPTION INCORRECT: compactionCount is no longer hardcoded (fixed in v6.29.1)\n    ✓ src\u002Fconfig\u002Fevidence-schema.ts — confirmed phase_number min(1)\n\nNo spec finalization, plan generation, plan ingestion, `declare_scope`, or implementation-agent dispatch (coder, reviewer, test-engineer) may begin until ALL lanes in the batch are settled (`collect_lane_results` reports `all_settled`) AND this report is finalized. A lane that is missing, failed, or timed out is an explicit coverage gap, not a pass: mark the affected references BLOCKED or SKIPPED_WITH_REASON and resolve them before proceeding — never silently continue. Async dispatch changes *when* the Architect waits, never *whether* the gate holds.\n\nThis check fires automatically in:\n- MODE: SPECIFY — before explorer dispatch for context (step 2)\n- MODE: PLAN — before plan generation or validation\n- EXTERNAL PLAN IMPORT PATH — before parsing the provided plan\n\nGREENFIELD EXEMPTION: If the work is purely greenfield (new project, no existing codebase references), skip this check. A trivial single-area surface stays a single lane rather than being force-fanned.\n","# Pre Phase Briefing Protocol\n\nThis protocol is loaded on demand by the architect stub in src\u002Fagents\u002Farchitect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.\n\n### MODE: PRE-PHASE BRIEFING (Required Before Starting Any Phase)\n\nBefore creating or resuming any plan, you MUST read the previous phase's retrospective.\n\n**Phase 2+ (continuing a multi-phase project):**\n1. Check `.swarm\u002Fevidence\u002Fretro-{N-1}\u002Fevidence.json` for the previous phase's retrospective\n2. If it exists: read and internalize `lessons_learned` and `top_rejection_reasons`\n3. If it does NOT exist: note this as a process gap, but proceed\n4. Print a briefing acknowledgment:\n```\n→ BRIEFING: Read Phase {N-1} retrospective.\nKey lessons: {list 1-3 most relevant lessons}\nApplying to Phase {N}: {one sentence on how you'll apply them}\n```\n\n**Phase 1 (starting any new project):**\n1. Scan `.swarm\u002Fevidence\u002F` for any `retro-*` bundles from prior projects\n2. If found: review the 1-3 most recent retrospectives for relevant lessons\n3. Pay special attention to `user_directives` — these carry across projects\n4. Print a briefing acknowledgment:\n```\n→ BRIEFING: Reviewed {N} historical retrospectives from this workspace.\nRelevant lessons: {list applicable lessons}\nUser directives carried forward: {list any persistent directives}\n```\n   OR if no historical retros exist:\n```\n→ BRIEFING: No historical retrospectives found. Starting fresh.\n```\n\nThis briefing is a HARD REQUIREMENT for ALL phases. Skipping it is a process violation.\n\n### CODEBASE REALITY CHECK (Required Before Speccing or Planning)\n\nBefore any spec generation, plan creation, or plan ingestion begins, the Architect must verify the codebase reality of every item the work references. This runs as **asynchronous, fanned-out Explorer lanes by default**, joined behind a hard settlement gate — never as a single blocking explorer call, and never as fire-and-forget.\n\n**1. Enumerate and partition the references (before dispatch).**\nList every referenced item — file, module, function, API, config surface, and behavioral assumption — named or implied by the spec, the user request, or the plan. Partition them into **non-overlapping** lane assignments. The partition is the contract: no two lanes may share a reference (this prevents duplicated work), and the **union of all lanes must cover every referenced item** (this prevents gaps). Under-specified lane boundaries are the dominant fan-out failure mode — be explicit about what each lane owns.\n\n**2. Scale the number of lanes to the size of the referenced surface.**\n- Trivial surface (a single file\u002Ffunction, one logical area) → **1 lane**.\n- Typical phase spanning a few areas → **2–4 lanes**.\n- Large surface (many modules\u002Fhooks\u002Fconfig surfaces) → **more lanes, up to the dispatch cap of 8 lanes per batch**.\n\nDo not fix the lane count in advance and do not over-spawn: extra lanes on a small surface waste tokens without improving coverage, while too few on a large surface leave gaps. Split by codebase area by default; when the surface is a single dense area, split by check-type instead — one lane for *existence & current state*, one for *assumption correctness & prior-work*.\n\n**3. Dispatch asynchronously, then keep working.**\nDispatch the lanes with `dispatch_lanes_async`, record the returned `batch_id`, and continue **non-dependent** Architect work while they run — digest the retrospective and `user_directives`, review the spec\u002Fplan text for internal consistency, check governance\u002FQA-gate config and the obligation ledger, and prepare the plan skeleton \u002F task decomposition. This is dispatch-and-keep-busy, not fire-and-forget. Poll with `collect_lane_results` (wait omitted or false) to process settled lanes incrementally, or join with `wait: true` once independent work is exhausted.\n\nEach lane must be given: its objective, its named (disjoint) reference subset, the fixed REALITY-CHECK output format below, and clear boundaries. Lanes are read-only — they cannot `declare_scope` or mutate the worktree.\n\n**4. For each referenced item, the lane must determine:**\n- Does this file\u002Fmodule\u002Ffunction already exist?\n- If it exists, what is its current state? Does it already implement any part of what the plan or spec describes?\n- Is the plan's or user's assumption about the current state accurate? Flag any discrepancy between what is expected and what actually exists.\n- Has any portion of this work already been applied (partially or fully) in a prior session or commit?\n\n**5. Hard settlement gate (join before any downstream work).**\nThe Architect synthesizes the lane outputs into a single CODEBASE REALITY REPORT. The report must list every referenced item with one of:\n  NOT STARTED | PARTIALLY DONE | ALREADY COMPLETE | ASSUMPTION INCORRECT\n\nFormat:\n  REALITY CHECK: [N] references verified, [M] discrepancies found.\n    ✓ src\u002Fhooks\u002Fincremental-verify.ts — exists, line 69 confirmed Bun.spawn\n    ✗ src\u002Fservices\u002Fstatus-service.ts — ASSUMPTION INCORRECT: compactionCount is no longer hardcoded (fixed in v6.29.1)\n    ✓ src\u002Fconfig\u002Fevidence-schema.ts — confirmed phase_number min(1)\n\nNo spec finalization, plan generation, plan ingestion, `declare_scope`, or implementation-agent dispatch (coder, reviewer, test-engineer) may begin until ALL lanes in the batch are settled (`collect_lane_results` reports `all_settled`) AND this report is finalized. A lane that is missing, failed, or timed out is an explicit coverage gap, not a pass: mark the affected references BLOCKED or SKIPPED_WITH_REASON and resolve them before proceeding — never silently continue. Async dispatch changes *when* the Architect waits, never *whether* the gate holds.\n\nThis check fires automatically in:\n- MODE: SPECIFY — before explorer dispatch for context (step 2)\n- MODE: PLAN — before plan generation or validation\n- EXTERNAL PLAN IMPORT PATH — before parsing the provided plan\n\nGREENFIELD EXEMPTION: If the work is purely greenfield (new project, no existing codebase references), skip this check. A trivial single-area surface stays a single lane rather than being force-fanned.\n",{"name":5,"description":7},"main","7709dc9e5ebd3bd641124ad2a3f6bb053ac2dab6",".opencode\u002Fskills\u002Fpre-phase-briefing",0,"https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev","2026-11-15 04:35:36",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add AlexanderNarbaev\u002Fagi --skill pre-phase-briefing",{"tool":36,"command":37},"bunx","bunx skills add AlexanderNarbaev\u002Fagi --skill pre-phase-briefing",{"tool":39,"command":40},"pnpm","pnpm dlx skills add AlexanderNarbaev\u002Fagi --skill pre-phase-briefing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fpre-phase-briefing\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M76RZHYHMGE1WP9JBCMNA801","springboot-patterns","Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Fspringboot-patterns\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M76RZE6JNZH5HV7Q8JM7R0PN","search-first","Research-before-coding workflow. Search for existing tools, libraries, and patterns before writing custom code. Invokes the researcher agent.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Fsearch-first\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M76RZBV42EMQV77H7GMFY4AJ","scholar-evaluation","Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Fscholar-evaluation\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M76RZ97GC3XAY48H126C30PM","redis-patterns","Redis data structure patterns, caching strategies, distributed locks, rate limiting, pub\u002Fsub, and connection management for production applications.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Fredis-patterns\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M76RZ528FANTKX7Q9XR0CXM7","react-patterns","React 18\u002F19 patterns including hooks discipline, server\u002Fclient component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Freact-patterns\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M76RZ1244PZQRQV5HBQ4PVYQ","query-patterns","SQL patterns, relational database design, query optimization, transactions, analytics, and dialect-aware best practices.","https:\u002F\u002Fgithub.com\u002FAlexanderNarbaev\u002Fagi\u002Fblob\u002Fmain\u002F.veai\u002Fskills\u002Fquery-patterns\u002FSKILL.md",[],[]]