[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QPF3B5GEJFSQ42GFC1YSJ2":3,"skill-same:01M6QPF3B5GEJFSQ42GFC1YSJ2":60},{"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":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M6QPF3B5GEJFSQ42GFC1YSJ2","project-code-examples",null,"Catalog of project code examples — what patterns exist and where to find them in .code-examples-for-ai\u002F","theCat69\u002Fla-briguade","theCat69","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40163881?v=4","01M6QPEW8JP05VD4Q9E4TJDFB3","01M6QPEWCX5VB9ZKJ7E96BXEHQ",1,"MIT","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002F.la_briguade\u002Fauto-inject-skills\u002Fproject-code-examples\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"code","examples","project","project code examples","architect","sidekick","coder","reviewer","find","catalog","builder","patterns","for","code-examples","2026-11-10 10:12:30",false,"---\nname: project-code-examples\ndescription: Catalog of project code examples — what patterns exist and where to find them in .code-examples-for-ai\u002F\nagents:\n  - coder\n  - sidekick-reviewer\n  - architect\n  - builder\n---\n\n## Scope\n\n- **In scope**: indexing and maintaining repository code-pattern examples consumed by AI workflows.\n- **Out of scope**: introducing production behavior changes unrelated to example coverage.\n\n## Invariants\n\n- Example index **MUST** list each maintained pattern file with a one-line purpose.\n- Each example file **MUST** represent one focused pattern.\n- New patterns introduced in production code **MUST** be reflected in this index.\n- Existing examples **MUST NOT** be silently removed without replacement rationale.\n- Example snippets **MUST** stay concise and implementation-aligned.\n\n## Validation Checklist\n\n- Verify `.code-examples-for-ai\u002F` contains the files listed in `## Available Examples`.\n- Verify any new coding pattern introduced by the change is documented with one dedicated `.md` example file.\n- Verify this index section is updated in the same change when example files are added\u002Frenamed\u002Fremoved.\n\n## Failure Handling\n\n- If pattern coverage is unclear, add or update the nearest matching example before marking task done.\n- If an example becomes stale after refactors, update it in the same change that introduced drift.\n- If no new pattern was introduced, record that no example update was required.\n\nThese examples demonstrate the coding patterns used in this project. Reference them when adding new features to maintain consistency.\n\n## Available Examples\n\n- `plugin-registration.md` — How the main Plugin function merges agents, skills, and commands into the opencode Config\n- `frontmatter-parsing.md` — Safe YAML frontmatter parsing from .md files using the `yaml` library\n- `hook-creation.md` — Creating tool.execute.after and event hooks with output truncation logic\n- `cli-command.md` — Setting up a Commander.js CLI command with JSONC config editing\n- `safe-dir-read.md` — Defensive directory reading with try-catch and undefined fallback\n- `zod-config-schema.md` — Zod v4 config schema with two-arg `z.record`, security `.refine()` constraints, and `z.toJSONSchema()` export\n- `model-sections.md` — Parsing model-family sections from agent body text and injecting them at runtime via `experimental.chat.system.transform`\n- `global-prompts-loader.md` — Loading shared global prompt content from a directory, keyed by lowercased filename stem, with per-file error resilience\n- `skill-embedded-mcp.md` — Declaring local\u002Fremote MCP servers in SKILL.md frontmatter, including `{env:VAR_NAME}` token resolution and command-injection guard, plus skill-derived `permission.external_directory` and non-MCP `permission.bash` declarations\n- `agent-permissions.md` — Agent permission allow\u002Fask\u002Fdeny visibility model with `permission.skill` gating and the skill-side `agents:` opt-in counterpart\n- `content-override-merge.md` — Priority-based merge of layered content directories — builtin \u003C opencode global \u003C global user \u003C opencode project \u003C project user — using `collectFiles()` \u002F `collectDirs()`\n- `load-content-helper.md` — Shared `loadContentFiles()` wrapper that centralizes collectFiles + warn-and-skip parsing\n- `logger-notifier.md` — Logger singleton with two-phase init and notifier toast fallback integration\n- `skill-access-gating.md` — Session-aware skill tool gating using `chat.params`, `tool.execute.before`, and `session.deleted` cleanup\n- `auto-inject-prompt-wrapping.md` — Auto-inject prompt merge behavior: wrapped append for existing non-whitespace prompts, raw first-skill body when prompt is empty\u002Fwhitespace-only\n- `bounded-skill-loader.md` — Rejecting oversized auto-inject skill content before it enters memory or prompts\n- `persistent-sidekick-tool.md` — Persistent CLI-backed review and documentation-sync tool with isolated per-type session reuse, bounded output, and cancellation\n\n## Location\n\n`.code-examples-for-ai\u002F`\n\n## Maintenance\n\nThis index is maintained by the AI. Developers may add entries manually. One file per pattern.\n\nWhen a new coding pattern is introduced that is not yet represented here:\n1. Create a new `.md` file in `.code-examples-for-ai\u002F` with the pattern name as filename\n2. Add an entry to the `## Available Examples` list above\n3. Each file must include a `\u003C!-- Pattern: name — description -->` comment at the top followed by a single TypeScript code block with inline annotations\n","## Scope\n\n- **In scope**: indexing and maintaining repository code-pattern examples consumed by AI workflows.\n- **Out of scope**: introducing production behavior changes unrelated to example coverage.\n\n## Invariants\n\n- Example index **MUST** list each maintained pattern file with a one-line purpose.\n- Each example file **MUST** represent one focused pattern.\n- New patterns introduced in production code **MUST** be reflected in this index.\n- Existing examples **MUST NOT** be silently removed without replacement rationale.\n- Example snippets **MUST** stay concise and implementation-aligned.\n\n## Validation Checklist\n\n- Verify `.code-examples-for-ai\u002F` contains the files listed in `## Available Examples`.\n- Verify any new coding pattern introduced by the change is documented with one dedicated `.md` example file.\n- Verify this index section is updated in the same change when example files are added\u002Frenamed\u002Fremoved.\n\n## Failure Handling\n\n- If pattern coverage is unclear, add or update the nearest matching example before marking task done.\n- If an example becomes stale after refactors, update it in the same change that introduced drift.\n- If no new pattern was introduced, record that no example update was required.\n\nThese examples demonstrate the coding patterns used in this project. Reference them when adding new features to maintain consistency.\n\n## Available Examples\n\n- `plugin-registration.md` — How the main Plugin function merges agents, skills, and commands into the opencode Config\n- `frontmatter-parsing.md` — Safe YAML frontmatter parsing from .md files using the `yaml` library\n- `hook-creation.md` — Creating tool.execute.after and event hooks with output truncation logic\n- `cli-command.md` — Setting up a Commander.js CLI command with JSONC config editing\n- `safe-dir-read.md` — Defensive directory reading with try-catch and undefined fallback\n- `zod-config-schema.md` — Zod v4 config schema with two-arg `z.record`, security `.refine()` constraints, and `z.toJSONSchema()` export\n- `model-sections.md` — Parsing model-family sections from agent body text and injecting them at runtime via `experimental.chat.system.transform`\n- `global-prompts-loader.md` — Loading shared global prompt content from a directory, keyed by lowercased filename stem, with per-file error resilience\n- `skill-embedded-mcp.md` — Declaring local\u002Fremote MCP servers in SKILL.md frontmatter, including `{env:VAR_NAME}` token resolution and command-injection guard, plus skill-derived `permission.external_directory` and non-MCP `permission.bash` declarations\n- `agent-permissions.md` — Agent permission allow\u002Fask\u002Fdeny visibility model with `permission.skill` gating and the skill-side `agents:` opt-in counterpart\n- `content-override-merge.md` — Priority-based merge of layered content directories — builtin \u003C opencode global \u003C global user \u003C opencode project \u003C project user — using `collectFiles()` \u002F `collectDirs()`\n- `load-content-helper.md` — Shared `loadContentFiles()` wrapper that centralizes collectFiles + warn-and-skip parsing\n- `logger-notifier.md` — Logger singleton with two-phase init and notifier toast fallback integration\n- `skill-access-gating.md` — Session-aware skill tool gating using `chat.params`, `tool.execute.before`, and `session.deleted` cleanup\n- `auto-inject-prompt-wrapping.md` — Auto-inject prompt merge behavior: wrapped append for existing non-whitespace prompts, raw first-skill body when prompt is empty\u002Fwhitespace-only\n- `bounded-skill-loader.md` — Rejecting oversized auto-inject skill content before it enters memory or prompts\n- `persistent-sidekick-tool.md` — Persistent CLI-backed review and documentation-sync tool with isolated per-type session reuse, bounded output, and cancellation\n\n## Location\n\n`.code-examples-for-ai\u002F`\n\n## Maintenance\n\nThis index is maintained by the AI. Developers may add entries manually. One file per pattern.\n\nWhen a new coding pattern is introduced that is not yet represented here:\n1. Create a new `.md` file in `.code-examples-for-ai\u002F` with the pattern name as filename\n2. Add an entry to the `## Available Examples` list above\n3. Each file must include a `\u003C!-- Pattern: name — description -->` comment at the top followed by a single TypeScript code block with inline annotations\n",{"name":5,"agents":37,"description":7},[24,38,22,28],"sidekick-reviewer","main","f4f3a02e82412dd181a98c114c6650ec02475d0f",".la_briguade\u002Fauto-inject-skills\u002Fproject-code-examples",0,"https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade","https:\u002F\u002Fgithub.com\u002FtheCat69","2026-09-14 16:38:37",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add theCat69\u002Fla-briguade --skill project-code-examples",{"tool":52,"command":53},"bunx","bunx skills add theCat69\u002Fla-briguade --skill project-code-examples",{"tool":55,"command":56},"pnpm","pnpm dlx skills add theCat69\u002Fla-briguade --skill project-code-examples","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002F.la_briguade\u002Fauto-inject-skills\u002Fproject-code-examples\u002FSKILL.md",true,[],[61,83,97,108,131,146],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":32},"01M6QPPWK5A3WJ1SAYDNR5YD6S","unslop","Perform sequential slop-cleanup edits in bounded changed-file scope with behavior-preserving rules; do not use for read-only scanning.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop\u002FSKILL.md",[],[63,30,68,69,70,71,72,73,74,75,76,28,77,78,79,80,81,82],"slop","bounded","behavior-preserving","scope","only","use","behavior","read","Rules","file","do","cleanup","scanning","with","read-only",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":32},"01M6QPPPQ49KBWSWH3X9D9R17B","unslop-reviewer","Run a read-only, pass-ordered slop scan covering abstraction and locally fixable boundary findings; never edit files.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop-reviewer\u002FSKILL.md",[],[63,25,90,75,23,91,92,93,68,82,94,95,72,96],"unslop reviewer","boundary","run","edit","scan","files","never",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":32},"01M6QPPJA6P2HDC19FFR3FZB7A","unslop-coder","Apply unslop-reviewer findings as targeted in-scope code edits in pass order; do not run discovery\u002Fscanning in this skill.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop-coder\u002FSKILL.md",[],[63,24,104,105,106,71,78,80,25,107,18,92],"unslop coder","as","apply","discovery",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":32},"01M6QPP53KFSKE5KGJBGAKD3WW","serena","Semantic code retrieval, editing, refactoring and debugging tools using LSP servers","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fserena\u002FSKILL.md",[],[110,115,116,117,118,20,119,120,28,121,122,123,124,125,18,126,127,128,129,130],"server","mcp-server","retrieval","false","local","lsp","editing","refactoring","open","debugging tools","https","debugging","web","dashboard","github","MCP",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":32},"01M6QPP2M71X18ENVM3R3B6D10","read-image","guidance to read images in a lightweight fashion using cwebp","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fread-image\u002FSKILL.md",[],[138,75,139,28,140,141,24,142,143,144,145],"read image","image","orchestrator","ask","images","fashion","cwebp","guidance",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":32},"01M6QPNWCSF2V8AGS8KH9D6A54","playwright-cli","Drive browser UI checks with playwright-cli commands, snapshots, and test\u002Fdebug workflows; do not use for backend-only or non-browser tasks.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",[],[153,154,155,28,148,30,81,156,78,157,72,158,73,24,159,160,161,162,163,164],"playwright","cli","playwright cli","commands","snapshots","backend","ui","browser","tasks","debug","workflows","test"]