[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BX5PZTGZCZMWB46DEZY1RB":3,"skill-same:01M6BX5PZTGZCZMWB46DEZY1RB":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":59,"linkOnly":60,"markdownContent":61,"markdownBody":62,"frontMatter":63,"refName":69,"commitSha":70,"skillDirectory":71,"forksCount":15,"repositoryHtmlUrl":72,"repositoryHomepageUrl":17,"ownerHtmlUrl":73,"ownerBlogUrl":74,"ownerDescription":75,"updatedAt":76,"install":77,"resources":90},"01M6BX5PZTGZCZMWB46DEZY1RB","okf","OKF 知识包创建与维护","Read, create, and update Open Knowledge Format (OKF) knowledge bundles — wikis of markdown concept files with YAML frontmatter, per Google's OKF v0.1 spec. Use when browsing or consuming an OKF bundle, when asked to create a knowledge wiki for a codebase or data system, or when editing a directory of .md files that carry `type:` frontmatter alongside index.md\u002Flog.md files. Covers the frontmatter schema, bundle-root-relative linking, index.md maintenance, and log.md changelog conventions.","读取、创建和更新开放知识格式（Open Knowledge Format，OKF）知识包——即遵循 Google OKF v0.1 规范、由带有 YAML frontmatter 的 Markdown 概念文件组成的 Wiki。适用于浏览或使用 OKF 知识包、被要求为代码库或数据系统创建知识 Wiki，或编辑包含 `type:` frontmatter 以及 index.md\u002Flog.md 文件的 .md 文件目录。涵盖 frontmatter 架构、相对于知识包根目录的链接、index.md 维护以及 log.md 变更日志约定。","yrahul3910\u002Fdotfiles","yrahul3910","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8930954?v=4","01M6BX4Q28SQREB3XFY3BAQ6YC","Rahul Yedida","01M6BX4Q737JXBCN69KPPT5TG9",0,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fokf\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],"format","when","browsing","for","concept","with","wikis","type","files","log","maintenance","schema","use","editing","directory","system","knowledge","wiki","markdown","open","data","yaml","index","changelog","update","create","spec","google","2026-11-10 10:12:30",false,"---\nname: \"cross-squad-communication\"\ndescription: \"Protocol for sending queries, delegating tasks, and sharing context between independent Squad instances across different repositories\"\ndomain: \"multi-repo coordination\"\nconfidence: \"medium\"\nsource: \"Ported from tamirdresher\u002Fsquad-skills (plugins\u002Fcross-squad-communication). Companion to the registry-aware cross-squad skill — this one teaches the actual communication protocols once a peer is discovered. Pattern 0 (synchronous CLI) is the only end-to-end-validated pattern; Patterns 1, 2, 3 are documented from design but require live validation against your own setup before relying on them in production. See the Validation Status section at the bottom of this skill.\"\n---\n\n## Context\n\nWhen multiple repositories each have their own Squad (AI team), they need to exchange information: knowledge queries, PR reviews, task delegation, and dependency analysis. Each squad has its own agents, MCP tools, and issue tracker — there is no shared runtime.\n\n> **Companion skill — read first:** `cross-squad\u002FSKILL.md` covers **discovery** of peer squads via `squad registry add\u002Flist\u002Fremove`. This skill picks up after a peer is known and covers the **communication protocols** themselves — the four numbered patterns below: Pattern 0 (synchronous CLI), Pattern 1 (read-only knowledge query), Pattern 2 (git-based async), and Pattern 3 (GitHub-issue-based delegation). A separate non-numbered appendix (Cross-Repo Dependency Scan) is provided as a related analysis tool, not a communication pattern. The two skills are designed to be used together.\n\n**When this skill applies:**\n- A squad agent needs information from another squad-enabled repo\n- A task needs to be delegated to another squad\n- Cross-repo dependency analysis is needed\n- PR review requests span repo boundaries\n\n**Key constraint:** Each squad has its own runtime, MCP tools, and issue tracker. Cross-squad communication can be **synchronous** (via CLI session targeting the other repo) or **asynchronous** (file-based or issue-based). The coordinator decides which approach fits.\n\n---\n\n## Patterns\n\n### Decision Tree: Choosing the Right Pattern\n\n```\nIs the target repo cloned locally?\n├─ NO → Use Pattern 3 (Issue-Based) or Pattern 2 (Git-Based Async)\n└─ YES\n    ├─ Is this a quick query \u002F knowledge lookup?\n    │   └─ YES → Use Pattern 0 (Synchronous CLI) — fastest\n    ├─ Does the work need to persist as artifacts?\n    │   └─ YES → Use Pattern 2 (Git-Based Async)\n    ├─ Is it a long-running analysis or multi-cycle task?\n    │   └─ YES → Use Pattern 2 (Git-Based Async)\n    └─ Is the target squad's Ralph running?\n        ├─ YES → Pattern 2 or 3 (async processing available)\n        └─ NO → Pattern 0 (Synchronous CLI) or Pattern 1 (Read-Only)\n```\n\n---\n\n## Universal rule: every `copilot` spawn into a peer squad MUST pass `--agent squad`\n\nThe `copilot` CLI accepts `--agent \u003Cname>` to select a custom agent (see `copilot --help`). Squad installs ship `.github\u002Fagents\u002Fsquad.agent.md`, which is loaded **only when `--agent squad` is specified**. Without it the spawned session runs as a generic Copilot CLI session that does NOT load the peer's `team.md`, routing, MCP tools, casting, or coordinator behaviour — so you get an off-the-shelf model answering, not the peer's Squad. **Every command example in this skill that spawns `copilot` into a peer repo includes `--agent squad`; do not strip it.**\n\nThis rule also applies anywhere else you spawn `copilot` into a Squad-initialised repo (not just cross-squad protocols) — e.g., `squad init`'s post-init tip and any automation that invokes the CLI on a squadified folder. The only case where you may omit `--agent` is when resuming an existing session (`copilot --resume \u003CsessionId>`) — the resumed session preserves its original agent context.\n\n---\n\n### Pattern 0: Synchronous CLI Session (Fastest for Interactive Queries)\n\nFor quick knowledge queries, decision lookups, or short analyses — spawn a Copilot CLI session with the working directory set to the target squad's repo. This lets you send a prompt and get a response within the same session, using the target repo's full context.\n\nThis is the same technique used by `ralph-watch.ps1`: write the prompt to a temp file, then invoke the CLI with that file as input. The key insight is that setting the working directory to the target repo gives the CLI session access to that squad's `.squad\u002F` metadata, codebase, and conventions.\n\n**Protocol:**\n1. Write prompt to a temp file (avoids argument-splitting issues, as learned in `ralph-watch.ps1`)\n2. Read the file into a string and invoke `copilot -p \u003Ctext>` with `-C \u003Cdirectory>` set to the target repo (`-p` takes prompt text, NOT a file path) AND `--agent squad` so the spawned session uses the peer squad's coordinator (without `--agent` you get a generic Copilot CLI session that doesn't load the peer's `team.md`, MCP tools, or skills)\n3. Receive response in the same session\n\n**Invocation:**\n```powershell\n# Spawn a Copilot CLI session targeting another squad's repo\n$targetRepo = \"C:\\repos\\platform-squad-repo\"\n$promptFile = New-TemporaryFile\n@\"\nYou are working in a Squad-enabled repository.\nRead .squad\u002Fteam.md and .squad\u002Fdecisions.md first.\n\n[CROSS-SQUAD REQUEST]\nFrom: research-squad\nRequest Type: knowledge_query\nQuery: What is the current architecture of the platform? What services does it expose?\nResponse Format: Brief structured summary\n\"@ | Out-File $promptFile -Encoding utf8\n\n# Option A: copilot with prompt file (read file into string; -p takes text, not a path)\n# --agent squad is REQUIRED: the target is another Squad install, so the spawned\n# session must use that squad's coordinator (not a generic Copilot CLI session).\ncopilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --allow-all-tools\n\n# Option B: Start-Process for non-blocking (ralph-watch.ps1 style)\nStart-Process pwsh -ArgumentList \"-NoProfile -Command `\"copilot -C '$targetRepo' --agent squad -p (Get-Content '$promptFile' -Raw) --allow-all-tools`\"\" -Wait\n\n# Option C: Pipe directly (stdin is the prompt text)\n\"What is the platform architecture?\" | copilot -C $targetRepo --agent squad --allow-all-tools\n```\n\n**When to use synchronous vs async:**\n\n| Scenario | Pattern | Why |\n|----------|---------|-----|\n| Quick knowledge query | Synchronous CLI (Pattern 0) | Fast answer, no overhead |\n| \"What did you decide about X?\" | Synchronous CLI (Pattern 0) | Read decisions.md via the target squad's context |\n| PR review request | Either (Pattern 0 or 2\u002F3) | Sync for quick feedback, async for thorough review |\n| Task delegation (do work in their repo) | Async (Pattern 2 or 3) | Work needs to persist beyond the session |\n| Long-running analysis | Async (Pattern 2) | May take multiple cycles |\n| Target repo not locally cloned | Async (Pattern 3) | Can't set working directory to a remote repo |\n\n**The coordinator decides which pattern to use based on:**\n1. Is the target repo cloned locally? → If yes, sync CLI is available\n2. Is this a quick query or a long task? → Quick = sync, long = async\n3. Does the work need to persist? → If yes, use async (creates artifacts)\n4. Is the target squad's Ralph running? → Needed for async processing\n\n**Requirements:**\n- Target repo must be cloned locally (for `copilot -C \u003Cdirectory>`)\n- Target repo must be Squad-initialised (`.squad\u002Fconfig.json` + `.github\u002Fagents\u002Fsquad.agent.md` present), so `--agent squad` resolves to the peer's coordinator\n- Prompt file avoids argument-splitting bugs (see `ralph-watch.ps1` lines 2166-2184)\n\n**Response quality:** ⭐⭐⭐⭐⭐ — the CLI session has full context of the target repo, including code, squad metadata, and MCP tools.\n\n### Liveness Protocol for Pattern 0\n\nThe synchronous CLI session requires monitoring to avoid false timeouts. With 7+ MCP servers initializing and `.squad\u002F` metadata being read, startup can take 30-60 seconds. A hard timeout kills valid sessions before they complete. Instead, monitor the agency session's activity log directory.\n\n**Health Check Approach:**\n\nInstead of a fixed wall-clock timeout, monitor the agency session log directory for activity:\n\n```powershell\n# The Copilot CLI creates a session log directory at ~\u002F.copilot\u002Flogs\u002F.\n# Older `agency` runtimes wrote to ~\u002F.agency\u002Flogs\u002F; fall back to that\n# location if the new path doesn't exist yet on the user's machine.\n# e.g., ~\u002F.copilot\u002Flogs\u002Fsession_20260325_071211_57824\n$copilotLogs = \"$env:USERPROFILE\\.copilot\\logs\"\n$agencyLogs = \"$env:USERPROFILE\\.agency\\logs\"\n$logRoot = if (Test-Path $copilotLogs) { $copilotLogs } elseif (Test-Path $agencyLogs) { $agencyLogs } else { $null }\nif ($logRoot) {\n    $logDir = Get-ChildItem $logRoot -Directory | Sort-Object LastWriteTime -Descending | Select-Object -First 1\n}\n$lastSize = 0\n$stallCount = 0\n\nwhile ($proc -and -not $proc.HasExited) {\n    Start-Sleep -Seconds 15\n    $currentSize = (Get-ChildItem $logDir -Recurse -File | Measure-Object -Property Length -Sum).Sum\n    \n    if ($currentSize -eq $lastSize) {\n        $stallCount++\n        if ($stallCount -ge 4) { # 60s with no progress\n            Write-Warning \"Session stalled — no log activity for 60s\"\n            break\n        }\n    } else {\n        $stallCount = 0\n        $lastSize = $currentSize\n    }\n}\n```\n\n**Progress Indicators (What Counts as \"Alive\"):**\n\n- New files appearing in the session log directory (e.g., `transcript.log`, `mcp-server-logs\u002F`)\n- Log file size increasing (indicates active processing)\n- New or modified `.squad\u002F` files in the target repo (e.g., `decisions\u002Finbox.md`, `identity\u002Fhistory.md`)\n- Process still running and consuming non-idle CPU time\n\n**Stall Detection (When to Intervene):**\n\n- **No log activity for 60s** → Issue a warning; session may be slow but not hung\n- **No log activity for 120s** → Likely stuck; consider terminating and checking logs\n- **Process exited with non-zero exit code** → Failed; examine `transcript.log` and `stderr` for errors\n- **MCP server connection timeout** → Session blocked waiting for an MCP server response\n\n**Recovery Actions When Stalled:**\n\n1. **Check for user input waiting:** Inspect logs for prompts or dialogs (shouldn't happen with `--autopilot`)\n2. **Check MCP server health:** Review `mcp-server-logs\u002F` for connection errors or timeouts\n3. **Retry with `--disable-builtin-mcps` flag:** For lightweight queries that don't require MCP tools\n   ```powershell\n   # Retry without MCP servers — faster startup, limited capability\n   copilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --disable-builtin-mcps --allow-all-tools\n   ```\n4. **Increase timeout threshold:** If MCP server initialization is consistently slow (>90s), raise threshold before declaring stall\n\n---\n\n### Pattern 1: Read-Only Knowledge Query (No CLI Needed)\n\nFor questions about another squad's architecture, decisions, or current state — read their `.squad\u002F` metadata directly.\n\n**Protocol:**\n1. Read target repo's `.squad\u002Fteam.md` → get stack, members, issue source\n2. Read `.squad\u002Fdecisions.md` → get architectural decisions\n3. Read `.squad\u002Frouting.md` → understand who handles what\n4. Read `.squad\u002Fidentity\u002Fnow.md` → get current focus\n5. Scan code structure if needed (csproj files, directory layout)\n\n**Requirements:**\n- Target repo must be cloned locally or accessible via git\n- No authentication needed beyond git read access\n\n**Example:**\n```powershell\n# Query another squad's architecture\n$targetRepo = \"C:\\repos\\platform-squad-repo\"\nGet-Content \"$targetRepo\\.squad\\team.md\"\nGet-Content \"$targetRepo\\.squad\\decisions.md\"\nGet-Content \"$targetRepo\\.squad\\identity\\now.md\"\n```\n\n**Response quality:** ⭐⭐⭐⭐ — excellent for structural\u002Farchitectural questions.\n\n---\n\n### Pattern 2: Async Task Request (Git-Based)\n\nFor work that needs the target squad to execute (PR reviews, issue analysis, code changes).\n\n**Protocol:**\n1. Create request file in YOUR repo: `.squad\u002Fcross-squad\u002Frequests\u002F{timestamp}-{target}-{id}.yaml`\n2. Commit and push\n3. Target squad's Ralph detects on next cycle\n4. Target squad processes and writes response to their `.squad\u002Fcross-squad\u002Fresponses\u002F`\n5. Your Ralph picks up the response\n\n**Request File Format:**\n```yaml\nid: req-2026-06-13-001\nsource_squad: research-squad\nsource_repo: your-org\u002Fresearch-squad-repo\ntarget_squad: platform-squad\ntarget_repo: your-org\u002Fplatform-squad-repo\nrequest_type: knowledge_query | pr_review | task_delegation | dependency_check\npriority: high | normal | low\ncreated_at: 2026-06-13T10:00:00Z\nquery: \"What is the current architecture of the platform?\"\nrouting_hint: \"lead\"  # optional — which agent should handle this\nstatus: pending\n```\n\n**Response File Format:**\n```yaml\nid: req-2026-06-13-001\nresponding_squad: platform-squad\nresponding_agent: lead\nresponded_at: 2026-06-13T10:15:00Z\nstatus: completed | partial | rejected\nresponse: |\n  The platform architecture consists of...\nartifacts: []  # optional file paths\n```\n\n---\n\n### Pattern 3: Issue-Based Delegation (For GitHub-Hosted Repos)\n\nFor repos on GitHub, use issues with labels as the message bus.\n\n**Protocol:**\n1. Create issue in target repo with label `squad:cross-squad`\n2. Include source squad identifier and routing hint in issue body\n3. Target squad's Ralph picks up and routes to appropriate agent\n4. Response posted as issue comment\n5. Issue closed when complete\n\n**Example:**\n```bash\ngh issue create \\\n  --repo your-org\u002Fplatform-squad-repo \\\n  --title \"[Cross-Squad] Architecture query from research-squad\" \\\n  --body \"Source: research-squad\\nQuery: What services does the platform expose?\\nRouting: lead\" \\\n  --label \"squad:cross-squad\"\n```\n\n**Limitation:** Only works for repos on GitHub. Other platforms (Azure DevOps, GitLab, etc.) need different approach.\n\n---\n\n### Appendix: Cross-Repo Dependency Scan (Related Analysis Tool — Not a Communication Pattern)\n\n> This section is intentionally listed as an appendix rather than \"Pattern 4\" — it is a one-off analysis utility for discovering how two repos relate, not a protocol the coordinator picks from the decision tree above. The four numbered communication patterns are 0–3.\n\nFor discovering how two repos relate to each other.\n\n**Protocol:**\n1. Search both repos for mutual references:\n   ```powershell\n   Select-String -Path (Get-ChildItem $repoA -Recurse -Include \"*.md\",\"*.cs\",\"*.json\",\"*.csproj\") `\n     -Pattern $repoB_name\n   Select-String -Path (Get-ChildItem $repoB -Recurse -Include \"*.md\",\"*.cs\",\"*.json\",\"*.csproj\") `\n     -Pattern $repoA_name\n   ```\n2. Check shared NuGet packages \u002F npm packages\n3. Check shared ADO project or GitHub org\n4. Document relationship type: code dependency, operational coupling, shared infra\n\n---\n\n## Discovery Protocol\n\nBefore sending any cross-squad request, verify the target:\n\n```\n1. Does .squad\u002Fteam.md exist?           → Squad is installed\n2. What is the issue_source?            → GitHub Issues | ADO | Planner\n3. What agents are active?              → Check member status column\n4. What is the routing table?           → Read routing.md\n5. What is the current focus?           → Read identity\u002Fnow.md\n6. Is Ralph running?                    → Check for recent commits by Ralph\n```\n\nIf `.squad\u002Fteam.md` doesn't exist, the repo is not squad-enabled. Fall back to standard human communication.\n\n---\n\n## Platform Compatibility Matrix\n\n| Source Issue Tracker | Target Issue Tracker | Mechanism |\n|---------------------|---------------------|-----------|\n| GitHub Issues | GitHub Issues | Issue-based (Pattern 3) |\n| GitHub Issues | ADO Work Items | Git-based (Pattern 2) |\n| GitHub Issues | Planner | Git-based (Pattern 2) |\n| ADO Work Items | GitHub Issues | Issue-based (Pattern 3) via `gh` CLI |\n| ADO Work Items | ADO Work Items | ADO cross-project work items |\n| Any | Any | Git-based (Pattern 2) — universal fallback |\n\n---\n\n## Examples\n\n### Example 1: research-squad queries platform-squad architecture\n\n```powershell\n# Step 1: Read metadata (Pattern 1)\n$target = \"C:\\repos\\platform-squad-repo\"\n$team = Get-Content \"$target\\.squad\\team.md\" -Raw\n$decisions = Get-Content \"$target\\.squad\\decisions.md\" -Raw\n\n# Step 2: Extract answer from metadata\n# team.md reveals tech stack and member roles\n# decisions.md reveals architectural choices\n\n# Step 3: If deeper analysis needed, create async request (Pattern 2)\n```\n\n### Example 2: Request PR review from another squad\n\n```yaml\n# .squad\u002Fcross-squad\u002Frequests\u002F2026-06-13-platform-squad-pr-review.yaml\nid: pr-review-001\nsource_squad: research-squad\ntarget_squad: platform-squad\nrequest_type: pr_review\npriority: normal\nquery: \"Review PR #54 — package version fix. Check for correctness.\"\nrouting_hint: \"lead\"\nstatus: pending\n```\n\n---\n\n## Anti-Patterns\n\n### ⚠️ Know when synchronous CLI is NOT the right choice\n```powershell\n# WRONG — don't use sync CLI for long-running tasks that need artifacts\ncopilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --allow-all-tools\n# If the task creates files, PRs, or takes multiple cycles → use async (Pattern 2 or 3)\n\n# WRONG — don't use sync CLI when the target repo isn't cloned locally\ncopilot -C \"C:\\not\\cloned\\yet\" --agent squad --allow-all-tools\n# If the repo isn't available locally → use issue-based delegation (Pattern 3)\n```\nSynchronous CLI sessions (Pattern 0) are valid for quick queries and knowledge lookups. Use async patterns for work that needs to persist or where the target repo isn't available locally.\n\n### ❌ Don't assume shared MCP tools\nEach squad has its own MCP server instances. You cannot invoke another squad's ADO tools or GitHub tools from your session.\n\n### ❌ Don't skip the discovery step\nAlways read `team.md` first. The target squad may use a different issue tracker, have different agents, or be in a different state than expected.\n\n### ❌ Don't send requests to squads without Ralph\nIf the target squad doesn't have Ralph (Work Monitor) running, async requests will never be processed. Check for recent Ralph activity first.\n\n### ❌ Don't mix up repo platforms\nDifferent repos may use GitHub Issues vs Azure DevOps Work Items vs Jira. Check `team.md` \u002F repository metadata for the right tooling before sending requests.\n\n---\n\n## Validation Status\n\nThis skill was originally drafted against two prototype squad setups (a GitHub-hosted platform squad with ~10 agents and an Azure DevOps-hosted automation squad with ~4 agents). The protocols are platform-agnostic; the examples in this document use generic names so you can substitute your own repos. Patterns 0 and 1 have been exercised end-to-end in those prototypes; Patterns 2 and 3 are documented from design but have not been end-to-end-validated against a live target repo.\n\n| Scenario | Result |\n|----------|--------|\n| Knowledge query (read-only) | ✅ Works via Pattern 1 |\n| Step handler discovery | ✅ Works via file scan |\n| PR review (basic) | ⚠️ Partial — git log only, no API |\n| Backlog enumeration | ⚠️ Partial — depends on issue platform |\n| Dependency analysis | ✅ Works via cross-reference scan |\n| CLI invocation (sync) + Liveness Protocol | ✅ Works — session launches successfully; log monitoring prevents false timeouts |\n\n**Confidence: MEDIUM** — Synchronous CLI pattern (Pattern 0) validated end-to-end. Liveness protocol provides operational robustness against slow MCP initialization. Git-based async (Pattern 2) and issue-based (Pattern 3) untested end-to-end. Production readiness requires Ralph integration on both sides.\n","## Context\n\nWhen multiple repositories each have their own Squad (AI team), they need to exchange information: knowledge queries, PR reviews, task delegation, and dependency analysis. Each squad has its own agents, MCP tools, and issue tracker — there is no shared runtime.\n\n> **Companion skill — read first:** `cross-squad\u002FSKILL.md` covers **discovery** of peer squads via `squad registry add\u002Flist\u002Fremove`. This skill picks up after a peer is known and covers the **communication protocols** themselves — the four numbered patterns below: Pattern 0 (synchronous CLI), Pattern 1 (read-only knowledge query), Pattern 2 (git-based async), and Pattern 3 (GitHub-issue-based delegation). A separate non-numbered appendix (Cross-Repo Dependency Scan) is provided as a related analysis tool, not a communication pattern. The two skills are designed to be used together.\n\n**When this skill applies:**\n- A squad agent needs information from another squad-enabled repo\n- A task needs to be delegated to another squad\n- Cross-repo dependency analysis is needed\n- PR review requests span repo boundaries\n\n**Key constraint:** Each squad has its own runtime, MCP tools, and issue tracker. Cross-squad communication can be **synchronous** (via CLI session targeting the other repo) or **asynchronous** (file-based or issue-based). The coordinator decides which approach fits.\n\n---\n\n## Patterns\n\n### Decision Tree: Choosing the Right Pattern\n\n```\nIs the target repo cloned locally?\n├─ NO → Use Pattern 3 (Issue-Based) or Pattern 2 (Git-Based Async)\n└─ YES\n    ├─ Is this a quick query \u002F knowledge lookup?\n    │   └─ YES → Use Pattern 0 (Synchronous CLI) — fastest\n    ├─ Does the work need to persist as artifacts?\n    │   └─ YES → Use Pattern 2 (Git-Based Async)\n    ├─ Is it a long-running analysis or multi-cycle task?\n    │   └─ YES → Use Pattern 2 (Git-Based Async)\n    └─ Is the target squad's Ralph running?\n        ├─ YES → Pattern 2 or 3 (async processing available)\n        └─ NO → Pattern 0 (Synchronous CLI) or Pattern 1 (Read-Only)\n```\n\n---\n\n## Universal rule: every `copilot` spawn into a peer squad MUST pass `--agent squad`\n\nThe `copilot` CLI accepts `--agent \u003Cname>` to select a custom agent (see `copilot --help`). Squad installs ship `.github\u002Fagents\u002Fsquad.agent.md`, which is loaded **only when `--agent squad` is specified**. Without it the spawned session runs as a generic Copilot CLI session that does NOT load the peer's `team.md`, routing, MCP tools, casting, or coordinator behaviour — so you get an off-the-shelf model answering, not the peer's Squad. **Every command example in this skill that spawns `copilot` into a peer repo includes `--agent squad`; do not strip it.**\n\nThis rule also applies anywhere else you spawn `copilot` into a Squad-initialised repo (not just cross-squad protocols) — e.g., `squad init`'s post-init tip and any automation that invokes the CLI on a squadified folder. The only case where you may omit `--agent` is when resuming an existing session (`copilot --resume \u003CsessionId>`) — the resumed session preserves its original agent context.\n\n---\n\n### Pattern 0: Synchronous CLI Session (Fastest for Interactive Queries)\n\nFor quick knowledge queries, decision lookups, or short analyses — spawn a Copilot CLI session with the working directory set to the target squad's repo. This lets you send a prompt and get a response within the same session, using the target repo's full context.\n\nThis is the same technique used by `ralph-watch.ps1`: write the prompt to a temp file, then invoke the CLI with that file as input. The key insight is that setting the working directory to the target repo gives the CLI session access to that squad's `.squad\u002F` metadata, codebase, and conventions.\n\n**Protocol:**\n1. Write prompt to a temp file (avoids argument-splitting issues, as learned in `ralph-watch.ps1`)\n2. Read the file into a string and invoke `copilot -p \u003Ctext>` with `-C \u003Cdirectory>` set to the target repo (`-p` takes prompt text, NOT a file path) AND `--agent squad` so the spawned session uses the peer squad's coordinator (without `--agent` you get a generic Copilot CLI session that doesn't load the peer's `team.md`, MCP tools, or skills)\n3. Receive response in the same session\n\n**Invocation:**\n```powershell\n# Spawn a Copilot CLI session targeting another squad's repo\n$targetRepo = \"C:\\repos\\platform-squad-repo\"\n$promptFile = New-TemporaryFile\n@\"\nYou are working in a Squad-enabled repository.\nRead .squad\u002Fteam.md and .squad\u002Fdecisions.md first.\n\n[CROSS-SQUAD REQUEST]\nFrom: research-squad\nRequest Type: knowledge_query\nQuery: What is the current architecture of the platform? What services does it expose?\nResponse Format: Brief structured summary\n\"@ | Out-File $promptFile -Encoding utf8\n\n# Option A: copilot with prompt file (read file into string; -p takes text, not a path)\n# --agent squad is REQUIRED: the target is another Squad install, so the spawned\n# session must use that squad's coordinator (not a generic Copilot CLI session).\ncopilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --allow-all-tools\n\n# Option B: Start-Process for non-blocking (ralph-watch.ps1 style)\nStart-Process pwsh -ArgumentList \"-NoProfile -Command `\"copilot -C '$targetRepo' --agent squad -p (Get-Content '$promptFile' -Raw) --allow-all-tools`\"\" -Wait\n\n# Option C: Pipe directly (stdin is the prompt text)\n\"What is the platform architecture?\" | copilot -C $targetRepo --agent squad --allow-all-tools\n```\n\n**When to use synchronous vs async:**\n\n| Scenario | Pattern | Why |\n|----------|---------|-----|\n| Quick knowledge query | Synchronous CLI (Pattern 0) | Fast answer, no overhead |\n| \"What did you decide about X?\" | Synchronous CLI (Pattern 0) | Read decisions.md via the target squad's context |\n| PR review request | Either (Pattern 0 or 2\u002F3) | Sync for quick feedback, async for thorough review |\n| Task delegation (do work in their repo) | Async (Pattern 2 or 3) | Work needs to persist beyond the session |\n| Long-running analysis | Async (Pattern 2) | May take multiple cycles |\n| Target repo not locally cloned | Async (Pattern 3) | Can't set working directory to a remote repo |\n\n**The coordinator decides which pattern to use based on:**\n1. Is the target repo cloned locally? → If yes, sync CLI is available\n2. Is this a quick query or a long task? → Quick = sync, long = async\n3. Does the work need to persist? → If yes, use async (creates artifacts)\n4. Is the target squad's Ralph running? → Needed for async processing\n\n**Requirements:**\n- Target repo must be cloned locally (for `copilot -C \u003Cdirectory>`)\n- Target repo must be Squad-initialised (`.squad\u002Fconfig.json` + `.github\u002Fagents\u002Fsquad.agent.md` present), so `--agent squad` resolves to the peer's coordinator\n- Prompt file avoids argument-splitting bugs (see `ralph-watch.ps1` lines 2166-2184)\n\n**Response quality:** ⭐⭐⭐⭐⭐ — the CLI session has full context of the target repo, including code, squad metadata, and MCP tools.\n\n### Liveness Protocol for Pattern 0\n\nThe synchronous CLI session requires monitoring to avoid false timeouts. With 7+ MCP servers initializing and `.squad\u002F` metadata being read, startup can take 30-60 seconds. A hard timeout kills valid sessions before they complete. Instead, monitor the agency session's activity log directory.\n\n**Health Check Approach:**\n\nInstead of a fixed wall-clock timeout, monitor the agency session log directory for activity:\n\n```powershell\n# The Copilot CLI creates a session log directory at ~\u002F.copilot\u002Flogs\u002F.\n# Older `agency` runtimes wrote to ~\u002F.agency\u002Flogs\u002F; fall back to that\n# location if the new path doesn't exist yet on the user's machine.\n# e.g., ~\u002F.copilot\u002Flogs\u002Fsession_20260325_071211_57824\n$copilotLogs = \"$env:USERPROFILE\\.copilot\\logs\"\n$agencyLogs = \"$env:USERPROFILE\\.agency\\logs\"\n$logRoot = if (Test-Path $copilotLogs) { $copilotLogs } elseif (Test-Path $agencyLogs) { $agencyLogs } else { $null }\nif ($logRoot) {\n    $logDir = Get-ChildItem $logRoot -Directory | Sort-Object LastWriteTime -Descending | Select-Object -First 1\n}\n$lastSize = 0\n$stallCount = 0\n\nwhile ($proc -and -not $proc.HasExited) {\n    Start-Sleep -Seconds 15\n    $currentSize = (Get-ChildItem $logDir -Recurse -File | Measure-Object -Property Length -Sum).Sum\n    \n    if ($currentSize -eq $lastSize) {\n        $stallCount++\n        if ($stallCount -ge 4) { # 60s with no progress\n            Write-Warning \"Session stalled — no log activity for 60s\"\n            break\n        }\n    } else {\n        $stallCount = 0\n        $lastSize = $currentSize\n    }\n}\n```\n\n**Progress Indicators (What Counts as \"Alive\"):**\n\n- New files appearing in the session log directory (e.g., `transcript.log`, `mcp-server-logs\u002F`)\n- Log file size increasing (indicates active processing)\n- New or modified `.squad\u002F` files in the target repo (e.g., `decisions\u002Finbox.md`, `identity\u002Fhistory.md`)\n- Process still running and consuming non-idle CPU time\n\n**Stall Detection (When to Intervene):**\n\n- **No log activity for 60s** → Issue a warning; session may be slow but not hung\n- **No log activity for 120s** → Likely stuck; consider terminating and checking logs\n- **Process exited with non-zero exit code** → Failed; examine `transcript.log` and `stderr` for errors\n- **MCP server connection timeout** → Session blocked waiting for an MCP server response\n\n**Recovery Actions When Stalled:**\n\n1. **Check for user input waiting:** Inspect logs for prompts or dialogs (shouldn't happen with `--autopilot`)\n2. **Check MCP server health:** Review `mcp-server-logs\u002F` for connection errors or timeouts\n3. **Retry with `--disable-builtin-mcps` flag:** For lightweight queries that don't require MCP tools\n   ```powershell\n   # Retry without MCP servers — faster startup, limited capability\n   copilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --disable-builtin-mcps --allow-all-tools\n   ```\n4. **Increase timeout threshold:** If MCP server initialization is consistently slow (>90s), raise threshold before declaring stall\n\n---\n\n### Pattern 1: Read-Only Knowledge Query (No CLI Needed)\n\nFor questions about another squad's architecture, decisions, or current state — read their `.squad\u002F` metadata directly.\n\n**Protocol:**\n1. Read target repo's `.squad\u002Fteam.md` → get stack, members, issue source\n2. Read `.squad\u002Fdecisions.md` → get architectural decisions\n3. Read `.squad\u002Frouting.md` → understand who handles what\n4. Read `.squad\u002Fidentity\u002Fnow.md` → get current focus\n5. Scan code structure if needed (csproj files, directory layout)\n\n**Requirements:**\n- Target repo must be cloned locally or accessible via git\n- No authentication needed beyond git read access\n\n**Example:**\n```powershell\n# Query another squad's architecture\n$targetRepo = \"C:\\repos\\platform-squad-repo\"\nGet-Content \"$targetRepo\\.squad\\team.md\"\nGet-Content \"$targetRepo\\.squad\\decisions.md\"\nGet-Content \"$targetRepo\\.squad\\identity\\now.md\"\n```\n\n**Response quality:** ⭐⭐⭐⭐ — excellent for structural\u002Farchitectural questions.\n\n---\n\n### Pattern 2: Async Task Request (Git-Based)\n\nFor work that needs the target squad to execute (PR reviews, issue analysis, code changes).\n\n**Protocol:**\n1. Create request file in YOUR repo: `.squad\u002Fcross-squad\u002Frequests\u002F{timestamp}-{target}-{id}.yaml`\n2. Commit and push\n3. Target squad's Ralph detects on next cycle\n4. Target squad processes and writes response to their `.squad\u002Fcross-squad\u002Fresponses\u002F`\n5. Your Ralph picks up the response\n\n**Request File Format:**\n```yaml\nid: req-2026-06-13-001\nsource_squad: research-squad\nsource_repo: your-org\u002Fresearch-squad-repo\ntarget_squad: platform-squad\ntarget_repo: your-org\u002Fplatform-squad-repo\nrequest_type: knowledge_query | pr_review | task_delegation | dependency_check\npriority: high | normal | low\ncreated_at: 2026-06-13T10:00:00Z\nquery: \"What is the current architecture of the platform?\"\nrouting_hint: \"lead\"  # optional — which agent should handle this\nstatus: pending\n```\n\n**Response File Format:**\n```yaml\nid: req-2026-06-13-001\nresponding_squad: platform-squad\nresponding_agent: lead\nresponded_at: 2026-06-13T10:15:00Z\nstatus: completed | partial | rejected\nresponse: |\n  The platform architecture consists of...\nartifacts: []  # optional file paths\n```\n\n---\n\n### Pattern 3: Issue-Based Delegation (For GitHub-Hosted Repos)\n\nFor repos on GitHub, use issues with labels as the message bus.\n\n**Protocol:**\n1. Create issue in target repo with label `squad:cross-squad`\n2. Include source squad identifier and routing hint in issue body\n3. Target squad's Ralph picks up and routes to appropriate agent\n4. Response posted as issue comment\n5. Issue closed when complete\n\n**Example:**\n```bash\ngh issue create \\\n  --repo your-org\u002Fplatform-squad-repo \\\n  --title \"[Cross-Squad] Architecture query from research-squad\" \\\n  --body \"Source: research-squad\\nQuery: What services does the platform expose?\\nRouting: lead\" \\\n  --label \"squad:cross-squad\"\n```\n\n**Limitation:** Only works for repos on GitHub. Other platforms (Azure DevOps, GitLab, etc.) need different approach.\n\n---\n\n### Appendix: Cross-Repo Dependency Scan (Related Analysis Tool — Not a Communication Pattern)\n\n> This section is intentionally listed as an appendix rather than \"Pattern 4\" — it is a one-off analysis utility for discovering how two repos relate, not a protocol the coordinator picks from the decision tree above. The four numbered communication patterns are 0–3.\n\nFor discovering how two repos relate to each other.\n\n**Protocol:**\n1. Search both repos for mutual references:\n   ```powershell\n   Select-String -Path (Get-ChildItem $repoA -Recurse -Include \"*.md\",\"*.cs\",\"*.json\",\"*.csproj\") `\n     -Pattern $repoB_name\n   Select-String -Path (Get-ChildItem $repoB -Recurse -Include \"*.md\",\"*.cs\",\"*.json\",\"*.csproj\") `\n     -Pattern $repoA_name\n   ```\n2. Check shared NuGet packages \u002F npm packages\n3. Check shared ADO project or GitHub org\n4. Document relationship type: code dependency, operational coupling, shared infra\n\n---\n\n## Discovery Protocol\n\nBefore sending any cross-squad request, verify the target:\n\n```\n1. Does .squad\u002Fteam.md exist?           → Squad is installed\n2. What is the issue_source?            → GitHub Issues | ADO | Planner\n3. What agents are active?              → Check member status column\n4. What is the routing table?           → Read routing.md\n5. What is the current focus?           → Read identity\u002Fnow.md\n6. Is Ralph running?                    → Check for recent commits by Ralph\n```\n\nIf `.squad\u002Fteam.md` doesn't exist, the repo is not squad-enabled. Fall back to standard human communication.\n\n---\n\n## Platform Compatibility Matrix\n\n| Source Issue Tracker | Target Issue Tracker | Mechanism |\n|---------------------|---------------------|-----------|\n| GitHub Issues | GitHub Issues | Issue-based (Pattern 3) |\n| GitHub Issues | ADO Work Items | Git-based (Pattern 2) |\n| GitHub Issues | Planner | Git-based (Pattern 2) |\n| ADO Work Items | GitHub Issues | Issue-based (Pattern 3) via `gh` CLI |\n| ADO Work Items | ADO Work Items | ADO cross-project work items |\n| Any | Any | Git-based (Pattern 2) — universal fallback |\n\n---\n\n## Examples\n\n### Example 1: research-squad queries platform-squad architecture\n\n```powershell\n# Step 1: Read metadata (Pattern 1)\n$target = \"C:\\repos\\platform-squad-repo\"\n$team = Get-Content \"$target\\.squad\\team.md\" -Raw\n$decisions = Get-Content \"$target\\.squad\\decisions.md\" -Raw\n\n# Step 2: Extract answer from metadata\n# team.md reveals tech stack and member roles\n# decisions.md reveals architectural choices\n\n# Step 3: If deeper analysis needed, create async request (Pattern 2)\n```\n\n### Example 2: Request PR review from another squad\n\n```yaml\n# .squad\u002Fcross-squad\u002Frequests\u002F2026-06-13-platform-squad-pr-review.yaml\nid: pr-review-001\nsource_squad: research-squad\ntarget_squad: platform-squad\nrequest_type: pr_review\npriority: normal\nquery: \"Review PR #54 — package version fix. Check for correctness.\"\nrouting_hint: \"lead\"\nstatus: pending\n```\n\n---\n\n## Anti-Patterns\n\n### ⚠️ Know when synchronous CLI is NOT the right choice\n```powershell\n# WRONG — don't use sync CLI for long-running tasks that need artifacts\ncopilot -C $targetRepo --agent squad -p (Get-Content $promptFile -Raw) --allow-all-tools\n# If the task creates files, PRs, or takes multiple cycles → use async (Pattern 2 or 3)\n\n# WRONG — don't use sync CLI when the target repo isn't cloned locally\ncopilot -C \"C:\\not\\cloned\\yet\" --agent squad --allow-all-tools\n# If the repo isn't available locally → use issue-based delegation (Pattern 3)\n```\nSynchronous CLI sessions (Pattern 0) are valid for quick queries and knowledge lookups. Use async patterns for work that needs to persist or where the target repo isn't available locally.\n\n### ❌ Don't assume shared MCP tools\nEach squad has its own MCP server instances. You cannot invoke another squad's ADO tools or GitHub tools from your session.\n\n### ❌ Don't skip the discovery step\nAlways read `team.md` first. The target squad may use a different issue tracker, have different agents, or be in a different state than expected.\n\n### ❌ Don't send requests to squads without Ralph\nIf the target squad doesn't have Ralph (Work Monitor) running, async requests will never be processed. Check for recent Ralph activity first.\n\n### ❌ Don't mix up repo platforms\nDifferent repos may use GitHub Issues vs Azure DevOps Work Items vs Jira. Check `team.md` \u002F repository metadata for the right tooling before sending requests.\n\n---\n\n## Validation Status\n\nThis skill was originally drafted against two prototype squad setups (a GitHub-hosted platform squad with ~10 agents and an Azure DevOps-hosted automation squad with ~4 agents). The protocols are platform-agnostic; the examples in this document use generic names so you can substitute your own repos. Patterns 0 and 1 have been exercised end-to-end in those prototypes; Patterns 2 and 3 are documented from design but have not been end-to-end-validated against a live target repo.\n\n| Scenario | Result |\n|----------|--------|\n| Knowledge query (read-only) | ✅ Works via Pattern 1 |\n| Step handler discovery | ✅ Works via file scan |\n| PR review (basic) | ⚠️ Partial — git log only, no API |\n| Backlog enumeration | ⚠️ Partial — depends on issue platform |\n| Dependency analysis | ✅ Works via cross-reference scan |\n| CLI invocation (sync) + Liveness Protocol | ✅ Works — session launches successfully; log monitoring prevents false timeouts |\n\n**Confidence: MEDIUM** — Synchronous CLI pattern (Pattern 0) validated end-to-end. Liveness protocol provides operational robustness against slow MCP initialization. Git-based async (Pattern 2) and issue-based (Pattern 3) untested end-to-end. Production readiness requires Ralph integration on both sides.\n",{"name":64,"domain":65,"source":66,"confidence":67,"description":68},"cross-squad-communication","multi-repo coordination","Ported from tamirdresher\u002Fsquad-skills (plugins\u002Fcross-squad-communication). Companion to the registry-aware cross-squad skill — this one teaches the actual communication protocols once a peer is discovered. Pattern 0 (synchronous CLI) is the only end-to-end-validated pattern; Patterns 1, 2, 3 are documented from design but require live validation against your own setup before relying on them in production. See the Validation Status section at the bottom of this skill.","medium","Protocol for sending queries, delegating tasks, and sharing context between independent Squad instances across different repositories","main","8541229759617347888641eba917d3b0ad66a984",".pi\u002Fagent\u002Fskills\u002Fokf","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fyrahul3910","https:\u002F\u002Fryedida.me","CS PhD @ NC State; Sr. Data Scientist @ LexisNexis","2026-11-13 01:37:12",{"source":9,"skillName":64,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add yrahul3910\u002Fdotfiles --skill cross-squad-communication",{"tool":83,"command":84},"bunx","bunx skills add yrahul3910\u002Fdotfiles --skill cross-squad-communication",{"tool":86,"command":87},"pnpm","pnpm dlx skills add yrahul3910\u002Fdotfiles --skill cross-squad-communication","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fokf\u002FSKILL.md",true,[91,97],{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002FSPEC.md","REFERENCE","参考文档",15273,"https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fokf\u002Freferences\u002FSPEC.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fokf.ts","SCRIPT","脚本",21653,"https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fokf\u002Fscripts\u002Fokf.ts",[104,141,174,201,229,254],{"skillNo":105,"name":106,"nameZh":107,"description":108,"descriptionZh":109,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":110,"categories":111,"keywords":118,"publishedAt":59},"01M6BX5T7VBBNA50W28PGXFVBK","pr-babysit","GitHub PR 全程跟进与修复","Watch a GitHub pull request through CI and bot reviews (Copilot, Codex, Claude, Greptile), fix feedback locally as it arrives, and push only once everything has settled. Use when asked to babysit, shepherd, or watch a PR until it is green and reviewed. Not for a one-off look at PR comments or CI status.","全程跟进 GitHub Pull Request（PR）的 CI 与机器人评审（Copilot、Codex、Claude、Greptile），在反馈到达时于本地修复，并仅在一切稳定后再推送。适用于需要照看、引导或跟进 PR 直至 CI 全绿且完成评审的请求。不适用于一次性查看 PR 评论或 CI 状态。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fpr-babysit\u002FSKILL.md",[112,115],{"categoryNo":113,"categoryName":114,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":116,"categoryName":117,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,43,135,136,137,138,139,140,34,32],"pr","pr babysit","babysit","bot","github","codex","status","copilot","pull request","pull","push","ci","pr comments","feedback","ci status","fix","only","green","shepherd","as","comments","reviews",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":155,"publishedAt":59},"01M6BX5MWN3YRXQ447DBGGTHM5","design-doc","设计文档与架构提案撰写","Write an explicit design document, RFC, or consequential architecture proposal with adversarial review. Use for decisions with material ownership, compatibility, migration, or operational consequences. Do not activate for ordinary comparisons, syntax questions, or small implementation choices.","撰写明确的设计文档、RFC 或具有重大影响的架构提案，并进行对抗性评审。适用于涉及重要职责归属、兼容性、迁移或运维后果的决策。不适用于普通比较、语法问题或小型实现选择。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fdesign-doc\u002FSKILL.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",[156,157,158,159,160,161,162,163,164,165,43,166,167,168,169,170,171,36,172,34,173],"design","doc","design doc","review","architecture","adversarial review","RFC","syntax","decisions","write","migration","document","activate","do","material","proposal","questions","adversarial",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":186,"publishedAt":59},"01M6BX5K2H9A93MD355DKQ21MV","background-terminals","后台终端命令管理","Run and manage long-lived shell commands in background terminals. Use for dev servers, watchers, streaming builds, and other commands that should keep running while the agent continues working.","在后台终端中运行和管理长期运行的 shell 命令。用于开发服务器、监视器（watchers）、流式构建，以及其他需要在智能体继续工作期间保持运行的命令。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.pi\u002Fagent\u002Fskills\u002Fbackground-terminals\u002FSKILL.md",[182,183],{"categoryNo":113,"categoryName":114,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":184,"categoryName":185,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[187,188,189,190,191,192,43,193,194,195,196,197,198,34,199,200],"background terminals","background","run","dev","streaming","shell","manage","commands","watchers","long","keep","dev servers","servers","running",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":207,"categories":208,"keywords":215,"publishedAt":59},"01M6BX5H39CTKJKDXRA35MNGRW","writing-for-agents","智能体指令与提示词编写","Write or revise skills, AGENTS.md, CLAUDE.md, prompts, and other instructions consumed by coding agents. Use when agent behavior, skill routing, instruction structure, or prompt maintenance is part of the task.","编写或修订供编码智能体使用的 skills、AGENTS.md、CLAUDE.md、prompts 及其他指令。当任务涉及智能体行为、技能路由、指令结构或提示词维护时使用。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[209,212],{"categoryNo":210,"categoryName":211,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":213,"categoryName":214,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[216,217,34,218,219,220,221,165,222,223,43,224,41,225,226,227,228,32],"writing","writing for agents","coding agents","routing","coding","prompt","instructions","behavior","prompts","task","structure","revise","skill routing",{"skillNo":230,"name":231,"nameZh":232,"description":233,"descriptionZh":234,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":235,"categories":236,"keywords":243,"publishedAt":59},"01M6BX5FE0MPK7EXN5ZT590428","wait-what","沟通重新表述","Stop. That last message did not land: re-pitch it.","停。上一条消息没有被理解（没有传达到位）：重新表述它。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fwait-what\u002FSKILL.md",[237,240],{"categoryNo":238,"categoryName":239,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":241,"categoryName":242,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1YEW2680C003GGBD6QCKB","回复风格与输出控制",[244,245,246,247,248,249,250,251,252,253],"wait what","wait","land","stop","message","pitch","it","re","last","true",{"skillNo":255,"name":256,"nameZh":257,"description":258,"descriptionZh":259,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":260,"categories":261,"keywords":268,"publishedAt":59},"01M6BX5DHQCQZY819F0RQE1E6B","verify-real-surface","真实UI\u002FCLI\u002FAPI行为验证","Verify a requested behavior through its real UI, CLI, or API surface when tests alone are insufficient. Use after user-facing behavior changes or when asked to prove behavior; do not use for structural-only edits or broad exploratory audits.","当仅靠测试不足以验证时，通过真实的 UI、CLI 或 API 界面验证所请求的行为。用于面向用户的行为变更之后，或被要求证明某项行为时；不要用于仅结构性的修改或大范围的探索性审计。","https:\u002F\u002Fgithub.com\u002Fyrahul3910\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fverify-real-surface\u002FSKILL.md",[262,265],{"categoryNo":263,"categoryName":264,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":266,"categoryName":267,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[269,270,271,272,273,223,274,43,135,169,275,276,34,277,278,32],"verify","verify real surface","cli","ui","api","user","structural","tests","changes","prove"]