[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M786QZTC43FBK3A251NTY62Y":3,"skill-same:01M786QZTC43FBK3A251NTY62Y":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":33,"commitSha":34,"skillDirectory":5,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M786QZTC43FBK3A251NTY62Y","subagents-protocol",null,"Mandatory protocol for delegating work to built-in subagents (coder, explore, plan), also called our bots by users. Always active. Owns the context-hygiene delegation test (material vs answer, cost balance, warm-instance reuse), launch parameters (mandatory explicit `model`), the single-source model-selection table, answer budgets, degradation handling, the launch checklist, and the role library for delegated review\u002Faudit with intent routing (`references\u002Froles.md`).","kalaverin\u002Fskills","kalaverin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6841312?v=4","01M786EMXK5R6A138KWFAS33T1","Alex Kalaverin","01M786EMYBQEDP3548REZHRX2Q",1,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fsubagents-protocol\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: subagents-protocol\ndescription: Mandatory protocol for delegating work to built-in subagents (coder, explore, plan), also called our bots by users. Always active. Owns the context-hygiene delegation test (material vs answer, cost balance, warm-instance reuse), launch parameters (mandatory explicit `model`), the single-source model-selection table, answer budgets, degradation handling, the launch checklist, and the role library for delegated review\u002Faudit with intent routing (`references\u002Froles.md`).\ntriggers:\n  always: true\n  reason: \"Context hygiene must apply from session start — before any delegation is planned — so the skill is always active.\"\n  request: \"subagent, subagents, delegate, delegation, delegating, our bots, project bots, delegated bots, бот, боты, ботами, ботов, субагент, субагенты, делегируй, делегирование, coder subagent, explore subagent, plan subagent, review roles, role prompts, subagent reviewer, test auditor, security reviewer, роли субагентов, ревью-роль, бот-ревьюер\"\nrequires:\n  - bootstrap\n  - mandatory-tools\n  - serena-protocol\nversion: 0.3.1\n---\n\n# SKILL: Subagent Delegation Protocol\n\nThis skill governs every interaction with the `Agent` tool and its built-in subagent instances.\nThe main agent is an orchestrator; subagents are specialized workers.\nThe skill is always active: its rules — including the Context Hygiene test — apply from session start, before any delegation is planned, and take precedence over any general heuristic about delegation.\n\n**Terminology and context rule:** the user may call our built-in subagents `bot`, `bots`, `our bots`, `бот`, `боты`, `ботами`, `ботов`, or `наших ботов`. Interpret these terms as our subagents when nearby context mentions delegation, `Agent`, `coder`, `explore`, `plan`, project-file access, or delegated work. Do not apply this protocol to unrelated bots; if context does not disambiguate, ask the user whether they mean our subagents.\n\n## 1. When to Delegate\n\nThe delegation decision is governed EXACTLY by the three-question test of Context Hygiene (HARD) below. Typical delegation-positive cases:\n\n- Codebase investigation beyond a few files or searches.\n- Writing, refactoring, or debugging code.\n- Multi-step file manipulations.\n- Parallel exploration of independent questions.\n- Long-running project read\u002Fwrite tasks that can continue in the background without shell or CLI execution.\n\nActing directly is legitimate exactly per the direct-action exceptions and sizing probes of Context Hygiene — nothing else.\n\n## Context Hygiene (HARD)\n\n[ref: #sp-context-hygiene]\n\nThe main agent's context is the scarcest resource in the session. Bulk material needed only as the SOURCE OF AN ANSWER never enters it — a subagent eats the volume and returns the distillate.\n\n**The three-question test** (before any read\u002Fsearch\u002Fexplore operation):\n\n1. **Material or answer?** Do I need the material itself (I will edit it, quote it exactly, reason over it repeatedly) — or only an answer derived from it?\n2. **Does the volume pay for the delegation?** The prompt and the returned answer are also main-context tokens; delegate only when the volume kept out clearly outweighs that overhead.\n3. **New instance or a warm one?** A subagent that already read this corpus holds it in context — follow-ups go to the same `agent_id`; a fresh instance pays the reading cost twice (resume rule, §8).\n\nIf you need only an answer AND the volume pays → delegate (to a warm instance when one covers this corpus, otherwise to a new one). Otherwise act directly.\n\n**MUST-delegate triggers:**\n\n- open-ended exploration: more than 3 files to read or grep for one question;\n- large files, logs, dumps, or command output read for a single fact or a summary (did tests pass, what failed in the build);\n- serial \"what's in these N files\" questions on one corpus — ONE subagent with the full question list (batching amortizes the prompt).\n\n**Sizing probes (allowed):** when the material's size is unknown, a single careful probe — a toe in the water, never a swim — is legal before deciding: `wc -l`, a `head`, one bounded grep. The probe exists to size the volume, not to read the content; if the probe already answers the question, the question was small — act directly and move on.\n\n**Direct-action exceptions (no delegation, no guilt):**\n\n- material you will EDIT or must quote exactly;\n- material that IS the deliverable;\n- the small critical core of the current reasoning (the approved blueprint, the active rules);\n- a single known file at a known place, a single grep hit, anything small enough that prompt+answer would cost about as much.\n\n**Subagent reuse (STRONG):**\n\n- contextual subagents are assets: an instance that has read a corpus is a warm index over it — follow-ups, refinements, and adjacent tasks on the same material go to the SAME instance via `resume`;\n- keep a mental roster of live instances and their coverage; check the roster before any new launch;\n- retire an instance when its corpus is exhausted or the topic shifts — stretching one instance across unrelated domains pollutes the subagent's own context and is also waste.\n\n**The answer budget:**\n\n- every delegation prompt carries an explicit cap: \"≤5 sentences\", \"a ≤10-row table\", \"yes\u002Fno + path + one-line why\";\n- the cap governs ANSWERS TO QUESTIONS, not deliverables: when the task's output IS an artifact, the deliverable-in-report rule (§12) overrides — the cap then applies to everything except the deliverable;\n- a raw dump from a subagent defeats the answer budget: ask the SAME instance to compress — never paste the dump into your own reasoning.\n\n**Carve-out (web):** subagents cannot search the web (§6); the main agent performs Kagi calls itself and distills the results (per `kagi-search`) — the hygiene rule does not redirect web work, it governs local corpora.\n\n**Violation protocol:** violations of this section — including over-delegation — follow §15; the balance cuts both ways.\n\n## 2. Built-in Subagent Types\n\nUse the correct `subagent_type` for the work:\n\n| Type | Purpose | Use when |\n|---|---|---|\n| `coder` | General software engineering tasks through project file-write tools. | Writing code, refactoring, debugging, building features, fixing tests; no shell or CLI execution. |\n| `explore` | Fast read-only codebase exploration. | Finding files, understanding modules, tracing call sites, answering \"how does X work?\", architecture reconnaissance. |\n| `plan` | Read-only implementation planning. | Designing a change, identifying key files, comparing approaches, producing a step-by-step plan before editing. |\n\nIf a task spans multiple types, split it or choose the dominant type.\n\n**Artifact rule (CRITICAL — VERY IMPORTANT, HARD RULE):** if a subagent must write ANY artifact to disk — a file, staging dump, generated document, or any other deliverable — the launch MUST explicitly set `subagent_type: coder`. `coder` is the only subagent type with file-write capability (`WriteFile`). `explore` and `plan` are strictly read-only and MUST NOT receive disk-writing work. The root agent MUST create every target directory before launching `coder`; `coder` may write files only inside directories that already exist and MUST NOT create directories. The prompt MUST name the artifact's target path: scratch or staging artifacts go under `.tmp\u002F`; deliverables that are real project files name their real project path. Owner ruling 2026-08-31.\n\n## 3. Always-Active Semantics\n\nThis skill is always active: there is no load event to wait for and no trigger to re-evaluate. The Context Hygiene test applies from the very first read operation of the session, even before any delegation is planned.\n\n## 4. Launch Parameters\n\nEvery `Agent` call MUST include:\n\n- `description`: a short 3–5 word summary.\n- `subagent_type`: `coder`, `explore`, or `plan`.\n- `prompt`: a complete, self-contained instruction.\n- `model` (HARD): MANDATORY on every launch, chosen per the Model Selection section below — the SINGLE SOURCE of model names, tiers, and selection criteria. NEVER omit the parameter: the fallback chain (built-in type default → the parent's current model) silently runs the subagent on a more expensive model and burns tokens. An omitted `model` is a protocol violation (§15).\n- `prompt` carries an explicit answer cap per the answer budget (`[ref: #sp-context-hygiene]`).\n\nOptional but important:\n\n- `timeout`: `1200` seconds for simple tasks; `3600` seconds (the maximum) for complex investigations or large code changes. These two constants are owned HERE — every other mention (the checklist included) references this rule and never restates the numbers.\n- `run_in_background`: default `false`. Use `true` only when the task can continue independently, you do not need the result immediately, and there is a clear benefit to returning control before it finishes.\n- `resume`: reuse an existing `agent_id` when the new task clearly continues prior work or when that instance already holds relevant context.\n\n## Model Selection (SINGLE SOURCE)\n\n[ref: #sp-model-selection]\n\nThis section is the ONLY place in the project where subagent model names, tiers, and selection criteria live. Every other document, checklist, or memory references this section by anchor and NEVER names a model — names change; the pointer does not.\n\n| Tier | Model | Use for |\n|---|---|---|\n| **Default** | `kimi-code\u002Fkimi-for-coding` | Everything routine: focused file\u002Fsymbol lookups, known-file reads, mechanical edits, command runs, artifact attestation, template fills, single-file analysis. |\n| **Upgrade** | `kimi-code\u002Fkimi-for-coding` | Tasks needing extra attention and judgment: complex or cross-cutting research (thorough exploration, architecture reconnaissance), judgment-heavy adversarial review or audit, synthesis over many inputs, work where a miss is expensive (security detection, validation). |\n\n**Single-model reality (temporary):** both tiers currently resolve to the same model name — only one coding model is available. The tiers differ in selection intent; the Upgrade row is the placeholder to update the moment a stronger model appears. Until then, model-level escalation is a no-op: escalate by resuming the SAME instance with a sharpened prompt (narrower scope, explicit suspicion list), not by switching models.\n\n**Escalation ladder:** if a default-tier subagent returns shallow or wrong work, escalate by resuming the SAME instance (its corpus context is preserved) — with a sharper prompt today, and on the upgrade tier once a distinct upgrade model exists (`resume` with an explicit `model` override; if the runtime rejects a model change on resume, start a new instance on the upgrade tier). Start a new instance only when the original instance's context is polluted or lost — do not iterate against a model that is too weak for the task.\n\n**Explicit-parameter rule:** the `model` parameter is passed on EVERY launch (§4), always from this table — never from memory, never from other documents.\n\n## 5. Context Passing\n\nSubagents do NOT have access to MCP tools, Serena memory operations, or Kagi web search.\nTherefore:\n\n- Pass all necessary context explicitly inside the `prompt`.\n- When Serena memory pages are relevant, pass their file paths (e.g., `.serena\u002Fmemories\u002Fdecisions\u002Fproject\u002Fxxx.md`) and instruct the subagent to read them via standard shell commands.\n- NEVER paste large memory contents inline into the subagent prompt.\n- NEVER assume the subagent sees the current conversation history or project context.\n\n## 6. Web Search Bridge\n\nBecause subagents cannot use `kagimcp` tools, the main agent MUST perform any required internet research, documentation lookup, or web enrichment.\nDistill the retrieved information and pass only the relevant facts to the subagent in its prompt.\nIf a subagent discovers it needs more web data, it should ask the main agent for a specific search.\n\n## 7. Foreground vs Background\n\nDefault to foreground subagents.\nUse a background subagent only if all of the following are true:\n\n- The task can continue independently.\n- You do not need the result to decide your next action.\n- Returning control early provides a clear benefit to the user or the workflow.\n\nAfter starting a background task, default to returning control to the user instead of immediately waiting.\nUse `TaskOutput` for non-blocking progress snapshots and `TaskOutput(block=true)` only when you intentionally want to wait.\nUse `TaskStop` only when cancellation is truly necessary.\n\n## 8. Resume vs New Instance\n\nThe `Agent` tool can create a new instance or resume an existing one by `agent_id`.\n\n- Create a new instance when the task is unrelated to previous subagent work.\n- Resume an existing instance when the task is a direct continuation or when that instance already holds relevant context.\n- Each instance keeps its own context history; repeated use of the same `agent_id` preserves prior findings.\n\n## 9. What Subagents Cannot Do\n\nSubagents have no shell, CLI, MCP, or other executable-tool access. They can navigate project files and read them; only a `coder` subagent can write files through its write tool.\n\nAll subagents MUST NOT:\n\n- Invoke shell tools, shell commands, CLI commands, package managers, or other executable tools.\n- Create directories or modify directory structure. The root agent creates target directories before launching `coder`.\n- Read `AGENTS.md` — under NO circumstances, at any directory level, for any reason. A subagent's entire context is its launch prompt (§5); `AGENTS.md` is main-agent boot material and user preferences that carry nothing a subagent needs and only burn its context.\n- Call Serena memory tools (`read_memory`, `write_memory`, etc.).\n- Call Kagi web search tools (`kagi_search_fetch`, `kagi_fastgpt`, etc.).\n- Call Serena symbolic\u002FLSP tools (`find_symbol`, `replace_symbol_body`, etc.).\n\n`explore` and `plan` MUST remain read-only. `coder` MAY write files only inside pre-existing directories; `coder` MUST NOT create directories or invoke shell\u002FCLI tools. If a subagent task needs any forbidden operation, the main agent performs it and passes the result to the subagent.\n\n## 10. Prompt Quality\n\nA subagent prompt MUST be:\n\n- Self-contained: include goals, constraints, file paths, and expected outputs.\n- Specific: define success criteria and deliverables.\n- Context-aware: mention relevant memories, previous findings, or project conventions.\n- Bounded: set clear scope and tell the subagent what NOT to do.\n\n## Role Library\n\n[ref: #sp-role-library]\n\nFor delegated review\u002Faudit of an existing diff, pick a role by intent and launch it as `subagent_type: explore` (physically read-only = \"review only\") with the model chosen per `[ref: #sp-model-selection]`. Role definitions, output contracts, and prompt templates live in `references\u002Froles.md` — load the single role section by its anchor, not the whole file.\n\n**Input materialization:** subagents have no shell\u002Fgit (§12), so the main agent produces the review input itself — `git diff` output pasted into the prompt, or written to a file under `.tmp\u002F` whose path the prompt names. Roles never run git themselves; web data, if needed, is fetched by the main agent (§6).\n\n**Intent routing:**\n\n| User intent (examples) | Role | Anchor |\n|---|---|---|\n| \"check this diff\", «посмотри изменения», «что сломается» | Reviewer | `[ref: #roles-reviewer]` |\n| «проверь переходы статусов», \"workflow behavior\", «сторонние эффекты» | Domain reviewer | `[ref: #roles-domain]` |\n| «проверь доступы», \"auth\u002Fsecurity check\", «утечки данных» | Security reviewer | `[ref: #roles-security]` |\n| «проверь консьюмера\u002Fинтеграцию», \"retry and idempotency\" | Integration reviewer | `[ref: #roles-integration]` |\n| «хватает ли тестов», \"test coverage check\" | Test auditor | `[ref: #roles-test-auditor]` |\n| «спеки не разъехались?», \"docs consistency\" | Docs auditor | `[ref: #roles-docs-auditor]` |\n| «миграция безопасна?», \"rollback and locks\" | Data reviewer | `[ref: #roles-data-reviewer]` |\n\n**Routing rules:**\n\n1. Unclear intent — the request is recognizably a review but the aspect is unknown → Reviewer; fully unclear — it is not even established that the user wants a review → one short question to the user first.\n2. Multi-aspect request → roles in parallel (concurrent foreground launches in one block; the §7 foreground default governs the wait), at most 3 roles per diff; fixed pairings per diff type live in `[ref: #roles-parent-workflow]`.\n3. Load the role section by anchor, fill the prompt template with a narrow scope, launch per §14.\n4. Boundary: an explicit \"code review\" \u002F «ревью кода» request — or any request expecting a formal review verdict over a whole change — goes to the `code-review` skill (full pipeline); this library covers point assessments of a diff's named aspect.\n5. Proactive offer: a vague review intent («проверь быстро», «посмотри») in a clearly code context → offer 2–3 fitting roles as a short option list; launch only after the user's pick.\n\n## 11. Output Handling\n\n- Subagent results are visible only to the main agent.\n- Summarize subagent findings for the user in the final response; do not dump raw subagent output unless explicitly requested.\n- If a subagent fails or times out, decide whether to retry, re-delegate with a clarified prompt, or handle the task directly.\n- Degradation handling (launch time): if the launch itself is rejected or the requested model is unavailable, fall back to doing the work directly and disclose the fallback to the user in one line.\n\n## 12. Subagent Tool Boundary (HARD)\n\nSubagents never have shell, CLI, MCP, package-manager, or other executable-tool access. Read access is available for project navigation and file inspection. File writes are available only to an explicitly launched `coder`, and only through its write tool; `explore` and `plan` remain physically read-only.\n\nEvery delegation MUST follow these rules:\n\n1. **Read through project tools.** All subagents navigate and inspect files through their available project read tools; no shell-equivalent fallback or command emulation is permitted.\n2. **Write only through `coder`.** Any disk artifact requires an explicit `subagent_type: coder` launch. The root agent creates target directories before launch; `coder` writes only inside those existing directories and cannot create directories.\n3. **Never retry, never bypass.** A rejected or unavailable tool call is final: the subagent MUST NOT retry the same call and MUST NOT attempt indirect bypasses.\n4. **State the limitation.** The subagent's final report MUST explicitly list which requested operations were unavailable and what was omitted because of it.\n5. **Deliverable-in-report.** When delegating drafting or editing work, instruct the subagent to ALWAYS include the full deliverable text in its report — the report doubles as a fallback transport when writes are unavailable; the main agent then applies the edits and runs verification itself.\n6. Skills MAY add artifact-specific boundary addenda but MUST NOT contradict this section.\n\n## 13. Directory Trees Belong to the Root Agent (HARD)\n\nApplies whenever a delegated artifact would contain a directory tree. A subagent NEVER generates a directory tree for an artifact. Tree generation is a root-agent duty:\n\n1. The root agent has reliable shell access; subagents have no shell access at all (§12).\n2. A tree embedded in a deliverable must be byte-deterministic — produced by the canonical command, never paraphrased from exploration.\n\nThe canonical command and its mandatory flags live in `mandatory-tools` — `[ref: #tree-agent-rules]` (`references\u002Ftree.md`). Consumers reference that anchor instead of restating the command. If a consuming skill needs a fallback for a missing `tree` binary, the fallback is defined by that skill (e.g. the flat-list fallback defined in `entity-protocol` `[ref: #entity-card-workflow]`).\n\n## 14. Subagent Launch Checklist\n\nUse this checklist before every `Agent` call.\n\n### 0. Before delegating\n\n- [ ] Context hygiene checked (`[ref: #sp-context-hygiene]`): for exploration — only an answer is needed and the volume pays; for execution tasks — delegation serves isolation\u002Ffocus per §1; a warm instance was considered before a new launch.\n- [ ] Delegated review\u002Faudit task → role selected via `[ref: #sp-role-library]`; the role section loaded from `references\u002Froles.md` by anchor.\n- [ ] The prompt carries an explicit answer cap (the answer budget).\n\n### 1. Subagent type\n\n- [ ] `coder` explicitly selected for any task that writes files; target directories already exist; no directory creation or shell\u002FCLI execution expected.\n- [ ] `explore` selected only for read-only codebase investigation.\n- [ ] `plan` selected only for read-only implementation planning.\n\n### 2. Launch parameters\n\n- [ ] `description` is 3–5 words.\n- [ ] `subagent_type` matches the task.\n- [ ] `prompt` is self-contained and specific.\n- [ ] `timeout` follows the §4 rule (the constants are owned there).\n- [ ] `model` is set EXPLICITLY on every launch (never omitted), chosen per `[ref: #sp-model-selection]`.\n- [ ] `run_in_background` is `true` only when the task can proceed independently and returning early is useful.\n- [ ] `resume` is used only when continuing prior work on the same `agent_id`.\n\n### 3. Context\n\n- [ ] All necessary context is in the prompt.\n- [ ] Relevant Serena memory pages are referenced by file path, not pasted inline.\n- [ ] Web search results, if needed, were fetched by the main agent and summarized in the prompt.\n\n### 4. Constraints\n\n- [ ] The subagent is not expected to use shell, CLI, package managers, or any executable tools.\n- [ ] The subagent is not expected to use MCP tools, Serena memory, or Kagi search.\n- [ ] Any disk-writing task explicitly selects `coder`; target directories exist before launch.\n- [ ] `explore` and `plan` receive read-only work only.\n- [ ] Success criteria and deliverables are explicit.\n- [ ] Scope boundaries are clear.\n\n### 5. After launch\n\n- [ ] Foreground: wait for completion and summarize findings.\n- [ ] Background: use `TaskOutput` for snapshots; wait with `TaskOutput(block=true)` only when intentionally blocking.\n- [ ] Cancel with `TaskStop` only when necessary.\n\n## 15. Violation Protocol\n\nViolations of any rule in this skill follow ONE protocol: halt immediately, recall the violated section, and restart the action correctly. When the violation is already unrecoverable (the launch already fired, the output already produced), disclose it to the user in one line and apply the correct form on the very next action. This section is the single violation protocol of the skill; other sections reference it instead of restating their own.\n","# SKILL: Subagent Delegation Protocol\n\nThis skill governs every interaction with the `Agent` tool and its built-in subagent instances.\nThe main agent is an orchestrator; subagents are specialized workers.\nThe skill is always active: its rules — including the Context Hygiene test — apply from session start, before any delegation is planned, and take precedence over any general heuristic about delegation.\n\n**Terminology and context rule:** the user may call our built-in subagents `bot`, `bots`, `our bots`, `бот`, `боты`, `ботами`, `ботов`, or `наших ботов`. Interpret these terms as our subagents when nearby context mentions delegation, `Agent`, `coder`, `explore`, `plan`, project-file access, or delegated work. Do not apply this protocol to unrelated bots; if context does not disambiguate, ask the user whether they mean our subagents.\n\n## 1. When to Delegate\n\nThe delegation decision is governed EXACTLY by the three-question test of Context Hygiene (HARD) below. Typical delegation-positive cases:\n\n- Codebase investigation beyond a few files or searches.\n- Writing, refactoring, or debugging code.\n- Multi-step file manipulations.\n- Parallel exploration of independent questions.\n- Long-running project read\u002Fwrite tasks that can continue in the background without shell or CLI execution.\n\nActing directly is legitimate exactly per the direct-action exceptions and sizing probes of Context Hygiene — nothing else.\n\n## Context Hygiene (HARD)\n\n[ref: #sp-context-hygiene]\n\nThe main agent's context is the scarcest resource in the session. Bulk material needed only as the SOURCE OF AN ANSWER never enters it — a subagent eats the volume and returns the distillate.\n\n**The three-question test** (before any read\u002Fsearch\u002Fexplore operation):\n\n1. **Material or answer?** Do I need the material itself (I will edit it, quote it exactly, reason over it repeatedly) — or only an answer derived from it?\n2. **Does the volume pay for the delegation?** The prompt and the returned answer are also main-context tokens; delegate only when the volume kept out clearly outweighs that overhead.\n3. **New instance or a warm one?** A subagent that already read this corpus holds it in context — follow-ups go to the same `agent_id`; a fresh instance pays the reading cost twice (resume rule, §8).\n\nIf you need only an answer AND the volume pays → delegate (to a warm instance when one covers this corpus, otherwise to a new one). Otherwise act directly.\n\n**MUST-delegate triggers:**\n\n- open-ended exploration: more than 3 files to read or grep for one question;\n- large files, logs, dumps, or command output read for a single fact or a summary (did tests pass, what failed in the build);\n- serial \"what's in these N files\" questions on one corpus — ONE subagent with the full question list (batching amortizes the prompt).\n\n**Sizing probes (allowed):** when the material's size is unknown, a single careful probe — a toe in the water, never a swim — is legal before deciding: `wc -l`, a `head`, one bounded grep. The probe exists to size the volume, not to read the content; if the probe already answers the question, the question was small — act directly and move on.\n\n**Direct-action exceptions (no delegation, no guilt):**\n\n- material you will EDIT or must quote exactly;\n- material that IS the deliverable;\n- the small critical core of the current reasoning (the approved blueprint, the active rules);\n- a single known file at a known place, a single grep hit, anything small enough that prompt+answer would cost about as much.\n\n**Subagent reuse (STRONG):**\n\n- contextual subagents are assets: an instance that has read a corpus is a warm index over it — follow-ups, refinements, and adjacent tasks on the same material go to the SAME instance via `resume`;\n- keep a mental roster of live instances and their coverage; check the roster before any new launch;\n- retire an instance when its corpus is exhausted or the topic shifts — stretching one instance across unrelated domains pollutes the subagent's own context and is also waste.\n\n**The answer budget:**\n\n- every delegation prompt carries an explicit cap: \"≤5 sentences\", \"a ≤10-row table\", \"yes\u002Fno + path + one-line why\";\n- the cap governs ANSWERS TO QUESTIONS, not deliverables: when the task's output IS an artifact, the deliverable-in-report rule (§12) overrides — the cap then applies to everything except the deliverable;\n- a raw dump from a subagent defeats the answer budget: ask the SAME instance to compress — never paste the dump into your own reasoning.\n\n**Carve-out (web):** subagents cannot search the web (§6); the main agent performs Kagi calls itself and distills the results (per `kagi-search`) — the hygiene rule does not redirect web work, it governs local corpora.\n\n**Violation protocol:** violations of this section — including over-delegation — follow §15; the balance cuts both ways.\n\n## 2. Built-in Subagent Types\n\nUse the correct `subagent_type` for the work:\n\n| Type | Purpose | Use when |\n|---|---|---|\n| `coder` | General software engineering tasks through project file-write tools. | Writing code, refactoring, debugging, building features, fixing tests; no shell or CLI execution. |\n| `explore` | Fast read-only codebase exploration. | Finding files, understanding modules, tracing call sites, answering \"how does X work?\", architecture reconnaissance. |\n| `plan` | Read-only implementation planning. | Designing a change, identifying key files, comparing approaches, producing a step-by-step plan before editing. |\n\nIf a task spans multiple types, split it or choose the dominant type.\n\n**Artifact rule (CRITICAL — VERY IMPORTANT, HARD RULE):** if a subagent must write ANY artifact to disk — a file, staging dump, generated document, or any other deliverable — the launch MUST explicitly set `subagent_type: coder`. `coder` is the only subagent type with file-write capability (`WriteFile`). `explore` and `plan` are strictly read-only and MUST NOT receive disk-writing work. The root agent MUST create every target directory before launching `coder`; `coder` may write files only inside directories that already exist and MUST NOT create directories. The prompt MUST name the artifact's target path: scratch or staging artifacts go under `.tmp\u002F`; deliverables that are real project files name their real project path. Owner ruling 2026-08-31.\n\n## 3. Always-Active Semantics\n\nThis skill is always active: there is no load event to wait for and no trigger to re-evaluate. The Context Hygiene test applies from the very first read operation of the session, even before any delegation is planned.\n\n## 4. Launch Parameters\n\nEvery `Agent` call MUST include:\n\n- `description`: a short 3–5 word summary.\n- `subagent_type`: `coder`, `explore`, or `plan`.\n- `prompt`: a complete, self-contained instruction.\n- `model` (HARD): MANDATORY on every launch, chosen per the Model Selection section below — the SINGLE SOURCE of model names, tiers, and selection criteria. NEVER omit the parameter: the fallback chain (built-in type default → the parent's current model) silently runs the subagent on a more expensive model and burns tokens. An omitted `model` is a protocol violation (§15).\n- `prompt` carries an explicit answer cap per the answer budget (`[ref: #sp-context-hygiene]`).\n\nOptional but important:\n\n- `timeout`: `1200` seconds for simple tasks; `3600` seconds (the maximum) for complex investigations or large code changes. These two constants are owned HERE — every other mention (the checklist included) references this rule and never restates the numbers.\n- `run_in_background`: default `false`. Use `true` only when the task can continue independently, you do not need the result immediately, and there is a clear benefit to returning control before it finishes.\n- `resume`: reuse an existing `agent_id` when the new task clearly continues prior work or when that instance already holds relevant context.\n\n## Model Selection (SINGLE SOURCE)\n\n[ref: #sp-model-selection]\n\nThis section is the ONLY place in the project where subagent model names, tiers, and selection criteria live. Every other document, checklist, or memory references this section by anchor and NEVER names a model — names change; the pointer does not.\n\n| Tier | Model | Use for |\n|---|---|---|\n| **Default** | `kimi-code\u002Fkimi-for-coding` | Everything routine: focused file\u002Fsymbol lookups, known-file reads, mechanical edits, command runs, artifact attestation, template fills, single-file analysis. |\n| **Upgrade** | `kimi-code\u002Fkimi-for-coding` | Tasks needing extra attention and judgment: complex or cross-cutting research (thorough exploration, architecture reconnaissance), judgment-heavy adversarial review or audit, synthesis over many inputs, work where a miss is expensive (security detection, validation). |\n\n**Single-model reality (temporary):** both tiers currently resolve to the same model name — only one coding model is available. The tiers differ in selection intent; the Upgrade row is the placeholder to update the moment a stronger model appears. Until then, model-level escalation is a no-op: escalate by resuming the SAME instance with a sharpened prompt (narrower scope, explicit suspicion list), not by switching models.\n\n**Escalation ladder:** if a default-tier subagent returns shallow or wrong work, escalate by resuming the SAME instance (its corpus context is preserved) — with a sharper prompt today, and on the upgrade tier once a distinct upgrade model exists (`resume` with an explicit `model` override; if the runtime rejects a model change on resume, start a new instance on the upgrade tier). Start a new instance only when the original instance's context is polluted or lost — do not iterate against a model that is too weak for the task.\n\n**Explicit-parameter rule:** the `model` parameter is passed on EVERY launch (§4), always from this table — never from memory, never from other documents.\n\n## 5. Context Passing\n\nSubagents do NOT have access to MCP tools, Serena memory operations, or Kagi web search.\nTherefore:\n\n- Pass all necessary context explicitly inside the `prompt`.\n- When Serena memory pages are relevant, pass their file paths (e.g., `.serena\u002Fmemories\u002Fdecisions\u002Fproject\u002Fxxx.md`) and instruct the subagent to read them via standard shell commands.\n- NEVER paste large memory contents inline into the subagent prompt.\n- NEVER assume the subagent sees the current conversation history or project context.\n\n## 6. Web Search Bridge\n\nBecause subagents cannot use `kagimcp` tools, the main agent MUST perform any required internet research, documentation lookup, or web enrichment.\nDistill the retrieved information and pass only the relevant facts to the subagent in its prompt.\nIf a subagent discovers it needs more web data, it should ask the main agent for a specific search.\n\n## 7. Foreground vs Background\n\nDefault to foreground subagents.\nUse a background subagent only if all of the following are true:\n\n- The task can continue independently.\n- You do not need the result to decide your next action.\n- Returning control early provides a clear benefit to the user or the workflow.\n\nAfter starting a background task, default to returning control to the user instead of immediately waiting.\nUse `TaskOutput` for non-blocking progress snapshots and `TaskOutput(block=true)` only when you intentionally want to wait.\nUse `TaskStop` only when cancellation is truly necessary.\n\n## 8. Resume vs New Instance\n\nThe `Agent` tool can create a new instance or resume an existing one by `agent_id`.\n\n- Create a new instance when the task is unrelated to previous subagent work.\n- Resume an existing instance when the task is a direct continuation or when that instance already holds relevant context.\n- Each instance keeps its own context history; repeated use of the same `agent_id` preserves prior findings.\n\n## 9. What Subagents Cannot Do\n\nSubagents have no shell, CLI, MCP, or other executable-tool access. They can navigate project files and read them; only a `coder` subagent can write files through its write tool.\n\nAll subagents MUST NOT:\n\n- Invoke shell tools, shell commands, CLI commands, package managers, or other executable tools.\n- Create directories or modify directory structure. The root agent creates target directories before launching `coder`.\n- Read `AGENTS.md` — under NO circumstances, at any directory level, for any reason. A subagent's entire context is its launch prompt (§5); `AGENTS.md` is main-agent boot material and user preferences that carry nothing a subagent needs and only burn its context.\n- Call Serena memory tools (`read_memory`, `write_memory`, etc.).\n- Call Kagi web search tools (`kagi_search_fetch`, `kagi_fastgpt`, etc.).\n- Call Serena symbolic\u002FLSP tools (`find_symbol`, `replace_symbol_body`, etc.).\n\n`explore` and `plan` MUST remain read-only. `coder` MAY write files only inside pre-existing directories; `coder` MUST NOT create directories or invoke shell\u002FCLI tools. If a subagent task needs any forbidden operation, the main agent performs it and passes the result to the subagent.\n\n## 10. Prompt Quality\n\nA subagent prompt MUST be:\n\n- Self-contained: include goals, constraints, file paths, and expected outputs.\n- Specific: define success criteria and deliverables.\n- Context-aware: mention relevant memories, previous findings, or project conventions.\n- Bounded: set clear scope and tell the subagent what NOT to do.\n\n## Role Library\n\n[ref: #sp-role-library]\n\nFor delegated review\u002Faudit of an existing diff, pick a role by intent and launch it as `subagent_type: explore` (physically read-only = \"review only\") with the model chosen per `[ref: #sp-model-selection]`. Role definitions, output contracts, and prompt templates live in `references\u002Froles.md` — load the single role section by its anchor, not the whole file.\n\n**Input materialization:** subagents have no shell\u002Fgit (§12), so the main agent produces the review input itself — `git diff` output pasted into the prompt, or written to a file under `.tmp\u002F` whose path the prompt names. Roles never run git themselves; web data, if needed, is fetched by the main agent (§6).\n\n**Intent routing:**\n\n| User intent (examples) | Role | Anchor |\n|---|---|---|\n| \"check this diff\", «посмотри изменения», «что сломается» | Reviewer | `[ref: #roles-reviewer]` |\n| «проверь переходы статусов», \"workflow behavior\", «сторонние эффекты» | Domain reviewer | `[ref: #roles-domain]` |\n| «проверь доступы», \"auth\u002Fsecurity check\", «утечки данных» | Security reviewer | `[ref: #roles-security]` |\n| «проверь консьюмера\u002Fинтеграцию», \"retry and idempotency\" | Integration reviewer | `[ref: #roles-integration]` |\n| «хватает ли тестов», \"test coverage check\" | Test auditor | `[ref: #roles-test-auditor]` |\n| «спеки не разъехались?», \"docs consistency\" | Docs auditor | `[ref: #roles-docs-auditor]` |\n| «миграция безопасна?», \"rollback and locks\" | Data reviewer | `[ref: #roles-data-reviewer]` |\n\n**Routing rules:**\n\n1. Unclear intent — the request is recognizably a review but the aspect is unknown → Reviewer; fully unclear — it is not even established that the user wants a review → one short question to the user first.\n2. Multi-aspect request → roles in parallel (concurrent foreground launches in one block; the §7 foreground default governs the wait), at most 3 roles per diff; fixed pairings per diff type live in `[ref: #roles-parent-workflow]`.\n3. Load the role section by anchor, fill the prompt template with a narrow scope, launch per §14.\n4. Boundary: an explicit \"code review\" \u002F «ревью кода» request — or any request expecting a formal review verdict over a whole change — goes to the `code-review` skill (full pipeline); this library covers point assessments of a diff's named aspect.\n5. Proactive offer: a vague review intent («проверь быстро», «посмотри») in a clearly code context → offer 2–3 fitting roles as a short option list; launch only after the user's pick.\n\n## 11. Output Handling\n\n- Subagent results are visible only to the main agent.\n- Summarize subagent findings for the user in the final response; do not dump raw subagent output unless explicitly requested.\n- If a subagent fails or times out, decide whether to retry, re-delegate with a clarified prompt, or handle the task directly.\n- Degradation handling (launch time): if the launch itself is rejected or the requested model is unavailable, fall back to doing the work directly and disclose the fallback to the user in one line.\n\n## 12. Subagent Tool Boundary (HARD)\n\nSubagents never have shell, CLI, MCP, package-manager, or other executable-tool access. Read access is available for project navigation and file inspection. File writes are available only to an explicitly launched `coder`, and only through its write tool; `explore` and `plan` remain physically read-only.\n\nEvery delegation MUST follow these rules:\n\n1. **Read through project tools.** All subagents navigate and inspect files through their available project read tools; no shell-equivalent fallback or command emulation is permitted.\n2. **Write only through `coder`.** Any disk artifact requires an explicit `subagent_type: coder` launch. The root agent creates target directories before launch; `coder` writes only inside those existing directories and cannot create directories.\n3. **Never retry, never bypass.** A rejected or unavailable tool call is final: the subagent MUST NOT retry the same call and MUST NOT attempt indirect bypasses.\n4. **State the limitation.** The subagent's final report MUST explicitly list which requested operations were unavailable and what was omitted because of it.\n5. **Deliverable-in-report.** When delegating drafting or editing work, instruct the subagent to ALWAYS include the full deliverable text in its report — the report doubles as a fallback transport when writes are unavailable; the main agent then applies the edits and runs verification itself.\n6. Skills MAY add artifact-specific boundary addenda but MUST NOT contradict this section.\n\n## 13. Directory Trees Belong to the Root Agent (HARD)\n\nApplies whenever a delegated artifact would contain a directory tree. A subagent NEVER generates a directory tree for an artifact. Tree generation is a root-agent duty:\n\n1. The root agent has reliable shell access; subagents have no shell access at all (§12).\n2. A tree embedded in a deliverable must be byte-deterministic — produced by the canonical command, never paraphrased from exploration.\n\nThe canonical command and its mandatory flags live in `mandatory-tools` — `[ref: #tree-agent-rules]` (`references\u002Ftree.md`). Consumers reference that anchor instead of restating the command. If a consuming skill needs a fallback for a missing `tree` binary, the fallback is defined by that skill (e.g. the flat-list fallback defined in `entity-protocol` `[ref: #entity-card-workflow]`).\n\n## 14. Subagent Launch Checklist\n\nUse this checklist before every `Agent` call.\n\n### 0. Before delegating\n\n- [ ] Context hygiene checked (`[ref: #sp-context-hygiene]`): for exploration — only an answer is needed and the volume pays; for execution tasks — delegation serves isolation\u002Ffocus per §1; a warm instance was considered before a new launch.\n- [ ] Delegated review\u002Faudit task → role selected via `[ref: #sp-role-library]`; the role section loaded from `references\u002Froles.md` by anchor.\n- [ ] The prompt carries an explicit answer cap (the answer budget).\n\n### 1. Subagent type\n\n- [ ] `coder` explicitly selected for any task that writes files; target directories already exist; no directory creation or shell\u002FCLI execution expected.\n- [ ] `explore` selected only for read-only codebase investigation.\n- [ ] `plan` selected only for read-only implementation planning.\n\n### 2. Launch parameters\n\n- [ ] `description` is 3–5 words.\n- [ ] `subagent_type` matches the task.\n- [ ] `prompt` is self-contained and specific.\n- [ ] `timeout` follows the §4 rule (the constants are owned there).\n- [ ] `model` is set EXPLICITLY on every launch (never omitted), chosen per `[ref: #sp-model-selection]`.\n- [ ] `run_in_background` is `true` only when the task can proceed independently and returning early is useful.\n- [ ] `resume` is used only when continuing prior work on the same `agent_id`.\n\n### 3. Context\n\n- [ ] All necessary context is in the prompt.\n- [ ] Relevant Serena memory pages are referenced by file path, not pasted inline.\n- [ ] Web search results, if needed, were fetched by the main agent and summarized in the prompt.\n\n### 4. Constraints\n\n- [ ] The subagent is not expected to use shell, CLI, package managers, or any executable tools.\n- [ ] The subagent is not expected to use MCP tools, Serena memory, or Kagi search.\n- [ ] Any disk-writing task explicitly selects `coder`; target directories exist before launch.\n- [ ] `explore` and `plan` receive read-only work only.\n- [ ] Success criteria and deliverables are explicit.\n- [ ] Scope boundaries are clear.\n\n### 5. After launch\n\n- [ ] Foreground: wait for completion and summarize findings.\n- [ ] Background: use `TaskOutput` for snapshots; wait with `TaskOutput(block=true)` only when intentionally blocking.\n- [ ] Cancel with `TaskStop` only when necessary.\n\n## 15. Violation Protocol\n\nViolations of any rule in this skill follow ONE protocol: halt immediately, recall the violated section, and restart the action correctly. When the violation is already unrecoverable (the launch already fired, the output already produced), disclose it to the user in one line and apply the correct form on the very next action. This section is the single violation protocol of the skill; other sections reference it instead of restating their own.\n",{"name":5,"version":24,"requires":25,"triggers":29,"description":7},"0.3.1",[26,27,28],"bootstrap","mandatory-tools","serena-protocol",{"always":30,"reason":31,"request":32},true,"Context hygiene must apply from session start — before any delegation is planned — so the skill is always active.","subagent, subagents, delegate, delegation, delegating, our bots, project bots, delegated bots, бот, боты, ботами, ботов, субагент, субагенты, делегируй, делегирование, coder subagent, explore subagent, plan subagent, review roles, role prompts, subagent reviewer, test auditor, security reviewer, роли субагентов, ревью-роль, бот-ревьюер","main","7da8c355f6e99dcb88d8bb9f6ff27b3cb35bae47",0,"https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkalaverin","2026-11-15 01:37:57",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":30},[41,44,47],{"tool":42,"command":43},"npx","npx skills add kalaverin\u002Fskills --skill subagents-protocol",{"tool":45,"command":46},"bunx","bunx skills add kalaverin\u002Fskills --skill subagents-protocol",{"tool":48,"command":49},"pnpm","pnpm dlx skills add kalaverin\u002Fskills --skill subagents-protocol","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fsubagents-protocol\u002FSKILL.md",[52,58],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"README.md","REFERENCE","参考文档",4924,"https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fsubagents-protocol\u002FREADME.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Froles.md",16377,"https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fsubagents-protocol\u002Freferences\u002Froles.md",[63,70,76,83,90,97],{"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},"01M786R9KK7RP1J8EB7X9TC9KR","todo-protocol","Mandatory protocol for using the SetTodoList tool. Governs when to create a todo list, how to update it without violating immutability rules, how to synchronize item status after every tool call, and the forbidden mutations. Always active.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Ftodo-protocol\u002FSKILL.md",[],[],{"skillNo":71,"name":28,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M786QSXFDM550NCC4PQXN26X","MANDATORY skill for Serena (MCP) memory, knowledge base, and symbolic code exploration operations. Use whenever the agent needs to: read or write Serena memories, mutate or persist memory, explore code via symbolic MCP tools, resolve contradictions in stored knowledge, or follow memory metadata, naming, and routing conventions.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fserena-protocol\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M786QMXA58XD5DJZ2AZER5ZP","read-for-comments","Mandatory local standards library and archive. Before fetching any standard from the internet, the agent MUST check the Serena `standard\u002F` archive and this skill's `references\u002F` seed; after ANY standard-body download, the agent MUST archive it per the event-bound Archival Rule. Governs standard lookup, fetch, archival, and the family and full-body rules.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fread-for-comments\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M786QD59A2R2JK1NJTK7MADP","python-lang","MANDATORY skill for Python code. Use when writing, editing, refactoring, or reviewing Python files, modules, packages, classes, functions, type annotations, imports, exceptions, comprehensions, decorators, or docstrings. Enforces Google Python Style Guide and a mandatory, unconditional Ruff format+check pipeline scoped strictly to the agent's own changes.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fpython-lang\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M786Q683RHDC93NWABY7XKQN","preflight-checklist","Mandatory session-initialization closer and Startup Gate audit. Always loaded. Runs EXACTLY ONCE at session start, after all skill loading completes: verifies Startup Gate completion with evidence (mirror sync, forced import, discovery, activation, memory priming, MCP declaration, think block), runs dynamic session checks derived from the active skill set (mode states, delegation readiness), and reports a compact evidence-backed verdict table to the user before the first task output. Any FAIL is fixed before proceeding.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fpreflight-checklist\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M786PZ0J271Q5HWQ8B3S0ZP8","markdown-protocol","MANDATORY skill for Markdown authoring rules and the Markdown Headings as a Public API standard. Always active. Governs how the agent writes and edits any Markdown file: line discipline, date format, frontmatter pairing, markers and anchors, heading identity (slugs, renames, uniqueness), section shape and size, deprecation, and the errata conformance queue. The full normative standard lives in references\u002Fspecification.md with rationale in references\u002Frationale.md.","https:\u002F\u002Fgithub.com\u002Fkalaverin\u002Fskills\u002Fblob\u002Fmain\u002Fmarkdown-protocol\u002FSKILL.md",[],[]]