[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6R73VPQFPZSX8T25WGDE7ND":3,"skill-same:01M6R73VPQFPZSX8T25WGDE7ND":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M6R73VPQFPZSX8T25WGDE7ND","pr-lifecycle",null,"Complete issue → PR → merge lifecycle with readiness checks","barichter\u002Fsquad","barichter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F96797186?v=4","01M6R712K8ESMDF089BFENBR16","01M6R712R74BSQQSG2GTXBWR8P",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002F.copilot\u002Fskills\u002Fpr-lifecycle\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"pr lifecycle","pr","lifecycle","workflow","merge","squad","contributing","ci","issue","requirements","readiness","complete","with","high","2026-11-10 10:12:30",false,"---\nname: \"pr-lifecycle\"\ndescription: \"Complete issue → PR → merge lifecycle with readiness checks\"\ndomain: \"workflow\"\nconfidence: \"high\"\nsource: \"extracted from CONTRIBUTING.md, PR_REQUIREMENTS.md, squad-ci.yml\"\n---\n\n## Context\n\nThis skill is the **canonical Copilot-agent lifecycle for the Squad repository**. It covers the full path from picking up a GitHub issue to merging a PR. Where older docs (templates, copilot-instructions, CONTRIBUTING.md) conflict with this skill, **this skill takes precedence** for Copilot agents.\n\nFor advanced scenarios (worktrees, multi-repo coordination), see `.copilot\u002Fskills\u002Fgit-workflow\u002FSKILL.md`.\n\n## Scope\n\n✅ **THIS SKILL COVERS:**\n- Issue pickup and branch creation\n- Implementation, build, test, lint workflow\n- Pre-push safety verification\n- PR creation with correct target, title, body, and labels\n- All 11 PR readiness checks (what they check, how to pass, how to fix)\n- Post-creation maintenance (review feedback, rebasing, CI)\n- Merge preconditions and cleanup\n\n❌ **THIS SKILL DOES NOT COVER:**\n- Worktree-based parallel work (see `git-workflow` skill)\n- Multi-repo coordinated PRs (see `git-workflow` skill)\n- Release process \u002F publishing (see `.squad\u002Fskills\u002Frelease-process`)\n- Reviewer lockout protocol (see `.copilot\u002Fskills\u002Freviewer-protocol`)\n- Architectural or security review checklists\n\n---\n\n## Lifecycle Procedure\n\n### Phase 1 — Issue Pickup\n\n1. **Read the issue.** Understand the acceptance criteria before writing code.\n\n2. **Confirm capability fit.** Check your capability profile in `.squad\u002Fteam.md`. ? = proceed. ? = proceed but flag in PR. ? = comment on issue and stop.\n\n3. **Branch from dev:**\n   ```bash\n   git fetch origin dev\n   git checkout dev\n   git rebase origin\u002Fdev\n   git checkout -b squad\u002F{issue-number}-{slug}\n   ```\n   - Branch name format: `squad\u002F{issue-number}-{kebab-case-slug}`\n   - Example: `squad\u002F42-fix-login-validation`\n   - **Never** branch from `main`\n\n4. **Mark in-progress** (optional):\n   ```bash\n   gh issue edit {number} --add-label \"status:in-progress\"\n   ```\n\n---\n\n### Phase 2 — Implementation\n\n1. **Make your changes.** Follow the codebase conventions:\n   - TypeScript strict mode, no `@ts-ignore`\n   - ESM-only, async\u002Fawait\n   - JSDoc on new public APIs\n\n2. **Build:**\n   ```bash\n   npm run build\n   ```\n\n3. **Test:**\n   ```bash\n   npm test\n   ```\n\n4. **Type check:**\n   ```bash\n   npm run lint\n   ```\n\n5. **Stage specific files only:**\n   ```bash\n   git add path\u002Fto\u002Ffile1.ts path\u002Fto\u002Ffile2.ts\n   ```\n   - ❌ **NEVER** `git add .`, `git add -A`, or `git commit -a`\n   - ✅ **ALWAYS** name each file explicitly\n\n6. **Pre-push safety check:**\n   ```bash\n   # Verify file count matches intent (expect ≤10 files for most fixes)\n   git diff --cached --stat\n\n   # Verify NO unintended deletions\n   git diff --cached --diff-filter=D --name-only\n   ```\n   If you see unexpected files or deletions, unstage them: `git reset HEAD \u003Cfile>`\n\n7. **Single commit with issue reference:**\n   ```bash\n   git commit -m \"Brief description of change\n\n   Closes #{issue-number}\n\n   Co-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n   ```\n   - If you already have multiple commits, squash: `git rebase -i origin\u002Fdev` and squash all into one\n   - **Never** use `git reset --soft` to squash — it picks up delta from dev and contaminates the commit\n\n8. **Add changeset (if required):**\n   A changeset is required when your PR modifies files under `packages\u002Fsquad-sdk\u002Fsrc\u002F` or `packages\u002Fsquad-cli\u002Fsrc\u002F`.\n\n   ```bash\n   npx changeset add\n   ```\n   This prompts for: which packages changed, bump type (patch\u002Fminor\u002Fmajor), summary.\n\n   Or create manually at `.changeset\u002F{descriptive-name}.md`:\n   ```markdown\n   ---\n   '@bradygaster\u002Fsquad-cli': patch\n   ---\n\n   Brief description of the change\n   ```\n\n   If the changeset creates a second commit, squash it into your main commit.\n\n---\n\n### Phase 3 — PR Creation\n\n1. **Push:**\n   ```bash\n   git push -u origin squad\u002F{issue-number}-{slug}\n   ```\n\n2. **Create PR targeting dev:**\n   ```bash\n   gh pr create --repo bradygaster\u002Fsquad --base dev \\\n     --title \"fix: brief description (#issue-number)\" \\\n     --body \"Closes #{issue-number}\n\n   ## Summary\n   What this PR does and why.\n\n   ## Changes\n   - File-level description of changes\n\n   Co-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n   ```\n\n3. **Title conventions:**\n   - Bug fix: `fix: description (#N)`\n   - Feature: `feat: description (#N)`\n   - Docs: `docs: description (#N)`\n   - Chore\u002Finfra: `chore: description (#N)`\n\n4. **Labels:**\n   - `fix`, `feat`, `docs`, or `repo-health` for type\n   - `squad:{agent-name}` if working as a squad member\n   - `skip-changelog` only with reviewer approval (escape hatch)\n\n5. **Scope rules by label:**\n   - `repo-health`: Only modify `.github\u002F`, `scripts\u002F`, root config, tests, docs. **Never** modify `packages\u002F*\u002Fsrc\u002F`\n   - `fix` or `feat`: May modify product source. Must include changeset when touching `packages\u002F*\u002Fsrc\u002F`\n\n---\n\n### Phase 4 — PR Readiness\n\nAn automated readiness check runs on every push and posts a checklist comment on the PR. All 11 checks must pass before review (check 11 is informational-only).\n\n#### Check 1: Single Commit\n\n| | |\n|---|---|\n| **What** | PR must contain exactly 1 commit |\n| **Pass** | Push a single, squashed commit |\n| **Fix** | `git rebase -i origin\u002Fdev` → squash all commits into one → `git push --force-with-lease` |\n| **Gotcha** | Never `git reset --soft` to squash — contaminates the commit with unrelated changes |\n\n#### Check 2: Not in Draft\n\n| | |\n|---|---|\n| **What** | PR must not be marked as draft |\n| **Pass** | Create PR as ready, or convert: `gh pr ready` |\n| **Fix** | `gh pr ready {number}` or use the GitHub UI |\n| **Gotcha** | The readiness check still runs on drafts but will show ❌ until you mark ready |\n\n#### Check 3: Branch Up to Date\n\n| | |\n|---|---|\n| **What** | PR branch must not be behind `dev` |\n| **Pass** | Rebase onto latest dev before pushing |\n| **Fix** | `git fetch origin dev && git rebase origin\u002Fdev && git push --force-with-lease` |\n| **Gotcha** | After rebasing, the readiness check re-runs automatically on the new push |\n\n#### Check 4: Copilot Review\n\n| | |\n|---|---|\n| **What** | The `copilot-pull-request-reviewer` bot must post an `APPROVED` review |\n| **Pass** | Wait — Copilot review is triggered automatically on PR creation\u002Fpush |\n| **Fix** | If Copilot hasn't reviewed after 5 minutes, push an empty commit to re-trigger: `git commit --allow-empty -m \"trigger review\" && git push` then squash before merge |\n| **Gotcha** | Copilot review state is `APPROVED`, `CHANGES_REQUESTED`, or `COMMENTED`. Only `APPROVED` passes |\n\n#### Check 5: Changeset Present\n\n| | |\n|---|---|\n| **What** | PRs that modify `packages\u002Fsquad-sdk\u002Fsrc\u002F` or `packages\u002Fsquad-cli\u002Fsrc\u002F` must include a `.changeset\u002F*.md` file or a `CHANGELOG.md` edit |\n| **Pass** | Run `npx changeset add` and commit the generated file |\n| **Fix** | `npx changeset add` → select affected package(s) → select bump type → write summary → `git add .changeset\u002F && git commit --amend --no-edit && git push --force-with-lease` |\n| **Gotcha** | The `skip-changelog` label bypasses this check but requires reviewer approval. Non-source changes (docs, config, tests) don't need a changeset |\n\n#### Check 6: No Merge Conflicts\n\n| | |\n|---|---|\n| **What** | PR must be cleanly mergeable with the base branch |\n| **Pass** | Keep branch rebased on dev |\n| **Fix** | `git fetch origin dev && git rebase origin\u002Fdev` → resolve conflicts → `git push --force-with-lease` |\n| **Gotcha** | GitHub may show `null` mergeability briefly while computing — the check treats this as passing |\n\n#### Check 7: Scope Clean\n\n| | |\n|---|---|\n| **What** | Warns if PR includes `.squad\u002F` or `docs\u002Fproposals\u002F` files |\n| **Pass** | Don't include team state or proposal files in product PRs |\n| **Fix** | Remove unintended files: `git reset HEAD .squad\u002F docs\u002Fproposals\u002F` then amend your commit |\n| **Gotcha** | This check is **informational only** — it always passes but flags attention. Including these files is OK if intentional (e.g., updating agent history) |\n\n#### Check 8: Copilot Threads Resolved\n\n| | |\n|---|---|\n| **What** | All review threads opened by `copilot-pull-request-reviewer` must be resolved |\n| **Pass** | Address each Copilot comment, then click \"Resolve conversation\" in the GitHub UI |\n| **Fix** | Go to the PR's \"Files changed\" tab → find unresolved Copilot threads → fix the code or explain why no change is needed → click \"Resolve conversation\" |\n| **Gotcha** | Outdated threads (on code that's since changed) are automatically skipped. Only active, unresolved threads block |\n\n#### Check 9: CI Passing\n\n| | |\n|---|---|\n| **What** | All CI check runs (excluding the readiness check itself) must be green |\n| **Pass** | Fix any build, test, or lint failures and push |\n| **Fix** | Read the failing check's logs (`gh run view {run-id} --log-failed`), fix the issue, push |\n| **Gotcha** | Pending\u002Fin-progress checks also show ❌. Wait for all checks to complete before evaluating. The readiness check re-runs after CI completes via `workflow_run` trigger |\n\n#### Check 10: Issue Linked\n\n| | |\n|---|---|\n| **What** | PR body or commit message must reference an issue (`Closes #N`, `Fixes #N`, `Resolves #N`, or `Part of #N`) |\n| **Pass** | Include `Closes #N` in PR body or commit message |\n| **Fix** | Edit PR body to add `Closes #{issue-number}`, or amend commit message |\n| **Gotcha** | Case-insensitive matching. Only closing keywords are recognized |\n\n#### Check 11: Protected Files (informational)\n\n| | |\n|---|---|\n| **What** | Warns when zero-dependency bootstrap files are modified (always passes) |\n| **Pass** | Always passes — this is informational only |\n| **Fix** | If flagged, verify the changed bootstrap file still has zero external dependencies |\n| **Gotcha** | Protected files are listed in `copilot-instructions.md`. The check warns but does not block |\n\n---\n\n### Phase 5 — Post-Creation Maintenance\n\n1. **Handling Copilot review feedback:**\n   - Read each comment carefully\n   - Fix valid issues in your code\n   - Resolve each thread after addressing it\n   - Amend your single commit: `git commit --amend --no-edit && git push --force-with-lease`\n\n2. **Rebasing when behind dev:**\n   ```bash\n   git fetch origin dev\n   git rebase origin\u002Fdev\n   # Resolve any conflicts\n   git push --force-with-lease\n   ```\n\n3. **Re-running CI:**\n   - CI re-runs automatically on every push\n   - To re-run without changes: `gh run rerun {run-id} --failed`\n\n4. **If readiness check is stale:**\n   - The readiness check re-runs on push and after CI completes\n   - If it's stale, push a trivial fix or empty commit to re-trigger\n\n---\n\n### Phase 6 — Merge & Cleanup\n\n1. **Merge preconditions:**\n   - All 11 readiness checks pass (✅ across the board)\n   - Human reviewer has approved (or maintainer merges directly)\n   - No open blocking conversations\n\n2. **Who merges:**\n   - Agents do **not** merge PRs themselves\n   - Maintainers (bradygaster or designated reviewers) merge via GitHub UI\n   - The repo uses squash merge, so commit history is clean regardless\n\n3. **Post-merge cleanup:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git branch -d squad\u002F{issue-number}-{slug}\n   git push origin --delete squad\u002F{issue-number}-{slug}\n   ```\n\n4. **Verify issue auto-close:**\n   - If PR body contains `Closes #{N}`, the issue closes automatically on merge\n   - If not, manually close: `gh issue close {number}`\n\n---\n\n## Examples\n\n### Example: Bug fix PR (no source changes)\n\n```bash\n# Branch\ngit fetch origin dev && git checkout dev && git rebase origin\u002Fdev\ngit checkout -b squad\u002F610-fix-broken-link\n\n# Fix\n# ... edit docs\u002Fsome-file.md ...\n\n# Validate\nnpm run build && npm test\n\n# Commit (no changeset needed — docs only)\ngit add docs\u002Fsome-file.md\ngit diff --cached --stat        # verify: 1 file\ngit commit -m \"docs: fix broken link in contributing guide\n\nCloses #610\n\nCo-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n\n# Push and PR\ngit push -u origin squad\u002F610-fix-broken-link\ngh pr create --repo bradygaster\u002Fsquad --base dev \\\n  --title \"docs: fix broken link (#610)\" \\\n  --body \"Closes #610\"\n```\n\n### Example: SDK feature PR (source changes)\n\n```bash\n# Branch\ngit fetch origin dev && git checkout dev && git rebase origin\u002Fdev\ngit checkout -b squad\u002F42-add-profile-api\n\n# Implement\n# ... edit packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002Findex.ts ...\n# ... edit packages\u002Fsquad-sdk\u002Fsrc\u002Findex.ts (re-export) ...\n\n# Validate\nnpm run build && npm test && npm run lint\n\n# Changeset (required — touches packages\u002Fsquad-sdk\u002Fsrc\u002F)\nnpx changeset add\n# Select: @bradygaster\u002Fsquad-sdk, minor, \"Add profile API\"\n\n# Stage and commit\ngit add packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002Findex.ts packages\u002Fsquad-sdk\u002Fsrc\u002Findex.ts .changeset\u002F\ngit diff --cached --stat                    # verify file count\ngit diff --cached --diff-filter=D --name-only  # verify no deletions\ngit commit -m \"feat: add profile API\n\nCloses #42\n\nCo-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n\n# Push and PR\ngit push -u origin squad\u002F42-add-profile-api\ngh pr create --repo bradygaster\u002Fsquad --base dev \\\n  --title \"feat: add profile API (#42)\" \\\n  --body \"Closes #42\n\n## Summary\nAdds profile resolution API to the SDK.\n\n## Changes\n- New module: packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002F\n- Re-exported from barrel file\"\n```\n\n---\n\n## Anti-Patterns\n\n- ❌ Branching from `main` (always branch from `dev`)\n- ❌ Targeting `main` with PRs (always target `dev`)\n- ❌ Using `git add .` or `git add -A` (stage specific files only)\n- ❌ Using `git commit -a` (same risk as broad staging)\n- ❌ Using `git reset --soft` to squash (contaminates commit with dev delta)\n- ❌ Force-pushing to `dev` or `main` (only force-push your own feature branch)\n- ❌ Merging your own PR (maintainers merge)\n- ❌ Skipping the changeset when source files changed (CI will fail)\n- ❌ Self-resolving Copilot threads without addressing the feedback\n- ❌ Pushing >1 commit without squashing (readiness check will flag it)\n- ❌ Including `.squad\u002F` files in product PRs without intention (scope check warns)\n- ❌ Mixing product and infrastructure changes in one PR (create separate PRs)\n\n---\n\n## Readiness Check Gaps & Recommendations\n\nAfter analyzing `.github\u002Fworkflows\u002Fsquad-ci.yml`, three gaps were identified. Gaps 1 and 3 are now implemented (checks 10 and 11). Gap 2 is deferred.\n\n### Gap 1: Issue Linkage Check (Check 10) — IMPLEMENTED\n\n**Problem:** Nothing verifies that the PR body or commit message references an issue (`Closes #N` or `Part of #N`). Orphan PRs are hard to trace.\n\n**Recommendation:** Add `checkIssueLinkage(prBody, commitMessages)` to `pr-readiness.mjs`.\n\n```javascript\n\u002F**\n * Check: Issue linkage.\n * @param {string} prBody — PR description text\n * @param {Array\u003C{ commit: { message: string } }>} commits\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkIssueLinkage(prBody, commits) {\n  const issuePattern = \u002F(closes|fixes|resolves|part of)\\s+#\\d+\u002Fi;\n  const bodyHasRef = issuePattern.test(prBody || '');\n  const commitHasRef = (commits || []).some(\n    (c) => issuePattern.test(c.commit?.message || '')\n  );\n  if (bodyHasRef || commitHasRef) {\n    return { pass: true, detail: 'Issue reference found' };\n  }\n  return {\n    pass: false,\n    detail: 'No issue reference — add `Closes #N` to PR body or commit message',\n  };\n}\n```\n\n**Integration point:** After check 2 (draft status), before check 3 (branch freshness). Data is already available from the commits and PR body fetched in the orchestrator.\n\n### Gap 2: No Required Checks Presence Verification\n\n**Problem:** The CI status check (check 9) verifies that existing checks are green, but doesn't verify that the *expected* set of checks actually ran. If a workflow is misconfigured or skipped, the PR could pass with zero CI checks.\n\n**Recommendation:** Add `checkRequiredChecksPresent(checkRuns, files)` to `pr-readiness.mjs`.\n\n```javascript\n\u002F** Minimum required check names that must appear for source PRs. *\u002F\nexport const REQUIRED_CHECKS = ['Squad CI \u002F test'];\n\n\u002F**\n * Check: Required CI checks are present.\n * @param {Array\u003C{ name: string }>} checkRuns\n * @param {Array\u003C{ filename: string }>} files\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkRequiredChecksPresent(checkRuns, files) {\n  const touchesSource = (files || []).some(\n    (f) => SOURCE_PATTERN.test(f.filename)\n  );\n  if (!touchesSource) {\n    return { pass: true, detail: 'No source changes — required checks not enforced' };\n  }\n  const checkNames = new Set((checkRuns || []).map((cr) => cr.name));\n  const missing = REQUIRED_CHECKS.filter((name) => !checkNames.has(name));\n  if (missing.length > 0) {\n    return {\n      pass: false,\n      detail: `Required check(s) not found: ${missing.join(', ')}`,\n    };\n  }\n  return { pass: true, detail: 'All required checks present' };\n}\n```\n\n**Integration point:** After check 9 (CI status). Uses the same `checkRuns` and `files` data already fetched.\n\n### Gap 3: Protected File Change Detection (Check 11) — IMPLEMENTED\n\n**Problem:** The repo has zero-dependency bootstrap files that must never import external packages (documented in `copilot-instructions.md`). The `squad-repo-health.yml` workflow runs a bootstrap protection check, but the PR readiness comment doesn't surface it — contributors don't see the warning until they check the separate workflow.\n\n**Recommendation:** Add `checkProtectedFiles(files)` to `pr-readiness.mjs` as an **informational** check (always passes, like scope clean).\n\n```javascript\n\u002F** Bootstrap files that must remain zero-dependency. *\u002F\nexport const PROTECTED_FILES = [\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fdetect-squad-dir.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Ferrors.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fgh-cli.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Foutput.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fhistory-split.ts',\n];\n\n\u002F**\n * Check: Protected file changes (informational).\n * @param {Array\u003C{ filename: string }>} files\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkProtectedFiles(files) {\n  const touched = (files || []).filter(\n    (f) => PROTECTED_FILES.includes(f.filename)\n  );\n  if (touched.length === 0) {\n    return { pass: true, detail: 'No protected bootstrap files changed' };\n  }\n  return {\n    pass: true,\n    detail: `⚠️ ${touched.length} protected bootstrap file(s) changed: ${touched.map((f) => f.filename.split('\u002F').pop()).join(', ')} — verify zero-dependency constraint`,\n  };\n}\n```\n\n**Integration point:** After check 7 (scope clean). Uses the same `files` data. Informational only — warns but doesn't block.\n\n### Summary of Recommended Changes\n\n| Check | Type | Blocks PR? | Status |\n|-------|------|------------|--------|\n| Issue linkage (Check 10) | Hard gate | Yes | Implemented |\n| Required checks present | Hard gate | Yes | Deferred |\n| Protected file warning (Check 11) | Informational | No | Implemented |\n\nAll three use data that `pr-readiness.mjs` already fetches — no new API calls needed. Total addition: ~60 lines of check functions + ~10 lines of orchestration wiring.\n","## Context\n\nThis skill is the **canonical Copilot-agent lifecycle for the Squad repository**. It covers the full path from picking up a GitHub issue to merging a PR. Where older docs (templates, copilot-instructions, CONTRIBUTING.md) conflict with this skill, **this skill takes precedence** for Copilot agents.\n\nFor advanced scenarios (worktrees, multi-repo coordination), see `.copilot\u002Fskills\u002Fgit-workflow\u002FSKILL.md`.\n\n## Scope\n\n✅ **THIS SKILL COVERS:**\n- Issue pickup and branch creation\n- Implementation, build, test, lint workflow\n- Pre-push safety verification\n- PR creation with correct target, title, body, and labels\n- All 11 PR readiness checks (what they check, how to pass, how to fix)\n- Post-creation maintenance (review feedback, rebasing, CI)\n- Merge preconditions and cleanup\n\n❌ **THIS SKILL DOES NOT COVER:**\n- Worktree-based parallel work (see `git-workflow` skill)\n- Multi-repo coordinated PRs (see `git-workflow` skill)\n- Release process \u002F publishing (see `.squad\u002Fskills\u002Frelease-process`)\n- Reviewer lockout protocol (see `.copilot\u002Fskills\u002Freviewer-protocol`)\n- Architectural or security review checklists\n\n---\n\n## Lifecycle Procedure\n\n### Phase 1 — Issue Pickup\n\n1. **Read the issue.** Understand the acceptance criteria before writing code.\n\n2. **Confirm capability fit.** Check your capability profile in `.squad\u002Fteam.md`. ? = proceed. ? = proceed but flag in PR. ? = comment on issue and stop.\n\n3. **Branch from dev:**\n   ```bash\n   git fetch origin dev\n   git checkout dev\n   git rebase origin\u002Fdev\n   git checkout -b squad\u002F{issue-number}-{slug}\n   ```\n   - Branch name format: `squad\u002F{issue-number}-{kebab-case-slug}`\n   - Example: `squad\u002F42-fix-login-validation`\n   - **Never** branch from `main`\n\n4. **Mark in-progress** (optional):\n   ```bash\n   gh issue edit {number} --add-label \"status:in-progress\"\n   ```\n\n---\n\n### Phase 2 — Implementation\n\n1. **Make your changes.** Follow the codebase conventions:\n   - TypeScript strict mode, no `@ts-ignore`\n   - ESM-only, async\u002Fawait\n   - JSDoc on new public APIs\n\n2. **Build:**\n   ```bash\n   npm run build\n   ```\n\n3. **Test:**\n   ```bash\n   npm test\n   ```\n\n4. **Type check:**\n   ```bash\n   npm run lint\n   ```\n\n5. **Stage specific files only:**\n   ```bash\n   git add path\u002Fto\u002Ffile1.ts path\u002Fto\u002Ffile2.ts\n   ```\n   - ❌ **NEVER** `git add .`, `git add -A`, or `git commit -a`\n   - ✅ **ALWAYS** name each file explicitly\n\n6. **Pre-push safety check:**\n   ```bash\n   # Verify file count matches intent (expect ≤10 files for most fixes)\n   git diff --cached --stat\n\n   # Verify NO unintended deletions\n   git diff --cached --diff-filter=D --name-only\n   ```\n   If you see unexpected files or deletions, unstage them: `git reset HEAD \u003Cfile>`\n\n7. **Single commit with issue reference:**\n   ```bash\n   git commit -m \"Brief description of change\n\n   Closes #{issue-number}\n\n   Co-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n   ```\n   - If you already have multiple commits, squash: `git rebase -i origin\u002Fdev` and squash all into one\n   - **Never** use `git reset --soft` to squash — it picks up delta from dev and contaminates the commit\n\n8. **Add changeset (if required):**\n   A changeset is required when your PR modifies files under `packages\u002Fsquad-sdk\u002Fsrc\u002F` or `packages\u002Fsquad-cli\u002Fsrc\u002F`.\n\n   ```bash\n   npx changeset add\n   ```\n   This prompts for: which packages changed, bump type (patch\u002Fminor\u002Fmajor), summary.\n\n   Or create manually at `.changeset\u002F{descriptive-name}.md`:\n   ```markdown\n   ---\n   '@bradygaster\u002Fsquad-cli': patch\n   ---\n\n   Brief description of the change\n   ```\n\n   If the changeset creates a second commit, squash it into your main commit.\n\n---\n\n### Phase 3 — PR Creation\n\n1. **Push:**\n   ```bash\n   git push -u origin squad\u002F{issue-number}-{slug}\n   ```\n\n2. **Create PR targeting dev:**\n   ```bash\n   gh pr create --repo bradygaster\u002Fsquad --base dev \\\n     --title \"fix: brief description (#issue-number)\" \\\n     --body \"Closes #{issue-number}\n\n   ## Summary\n   What this PR does and why.\n\n   ## Changes\n   - File-level description of changes\n\n   Co-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n   ```\n\n3. **Title conventions:**\n   - Bug fix: `fix: description (#N)`\n   - Feature: `feat: description (#N)`\n   - Docs: `docs: description (#N)`\n   - Chore\u002Finfra: `chore: description (#N)`\n\n4. **Labels:**\n   - `fix`, `feat`, `docs`, or `repo-health` for type\n   - `squad:{agent-name}` if working as a squad member\n   - `skip-changelog` only with reviewer approval (escape hatch)\n\n5. **Scope rules by label:**\n   - `repo-health`: Only modify `.github\u002F`, `scripts\u002F`, root config, tests, docs. **Never** modify `packages\u002F*\u002Fsrc\u002F`\n   - `fix` or `feat`: May modify product source. Must include changeset when touching `packages\u002F*\u002Fsrc\u002F`\n\n---\n\n### Phase 4 — PR Readiness\n\nAn automated readiness check runs on every push and posts a checklist comment on the PR. All 11 checks must pass before review (check 11 is informational-only).\n\n#### Check 1: Single Commit\n\n| | |\n|---|---|\n| **What** | PR must contain exactly 1 commit |\n| **Pass** | Push a single, squashed commit |\n| **Fix** | `git rebase -i origin\u002Fdev` → squash all commits into one → `git push --force-with-lease` |\n| **Gotcha** | Never `git reset --soft` to squash — contaminates the commit with unrelated changes |\n\n#### Check 2: Not in Draft\n\n| | |\n|---|---|\n| **What** | PR must not be marked as draft |\n| **Pass** | Create PR as ready, or convert: `gh pr ready` |\n| **Fix** | `gh pr ready {number}` or use the GitHub UI |\n| **Gotcha** | The readiness check still runs on drafts but will show ❌ until you mark ready |\n\n#### Check 3: Branch Up to Date\n\n| | |\n|---|---|\n| **What** | PR branch must not be behind `dev` |\n| **Pass** | Rebase onto latest dev before pushing |\n| **Fix** | `git fetch origin dev && git rebase origin\u002Fdev && git push --force-with-lease` |\n| **Gotcha** | After rebasing, the readiness check re-runs automatically on the new push |\n\n#### Check 4: Copilot Review\n\n| | |\n|---|---|\n| **What** | The `copilot-pull-request-reviewer` bot must post an `APPROVED` review |\n| **Pass** | Wait — Copilot review is triggered automatically on PR creation\u002Fpush |\n| **Fix** | If Copilot hasn't reviewed after 5 minutes, push an empty commit to re-trigger: `git commit --allow-empty -m \"trigger review\" && git push` then squash before merge |\n| **Gotcha** | Copilot review state is `APPROVED`, `CHANGES_REQUESTED`, or `COMMENTED`. Only `APPROVED` passes |\n\n#### Check 5: Changeset Present\n\n| | |\n|---|---|\n| **What** | PRs that modify `packages\u002Fsquad-sdk\u002Fsrc\u002F` or `packages\u002Fsquad-cli\u002Fsrc\u002F` must include a `.changeset\u002F*.md` file or a `CHANGELOG.md` edit |\n| **Pass** | Run `npx changeset add` and commit the generated file |\n| **Fix** | `npx changeset add` → select affected package(s) → select bump type → write summary → `git add .changeset\u002F && git commit --amend --no-edit && git push --force-with-lease` |\n| **Gotcha** | The `skip-changelog` label bypasses this check but requires reviewer approval. Non-source changes (docs, config, tests) don't need a changeset |\n\n#### Check 6: No Merge Conflicts\n\n| | |\n|---|---|\n| **What** | PR must be cleanly mergeable with the base branch |\n| **Pass** | Keep branch rebased on dev |\n| **Fix** | `git fetch origin dev && git rebase origin\u002Fdev` → resolve conflicts → `git push --force-with-lease` |\n| **Gotcha** | GitHub may show `null` mergeability briefly while computing — the check treats this as passing |\n\n#### Check 7: Scope Clean\n\n| | |\n|---|---|\n| **What** | Warns if PR includes `.squad\u002F` or `docs\u002Fproposals\u002F` files |\n| **Pass** | Don't include team state or proposal files in product PRs |\n| **Fix** | Remove unintended files: `git reset HEAD .squad\u002F docs\u002Fproposals\u002F` then amend your commit |\n| **Gotcha** | This check is **informational only** — it always passes but flags attention. Including these files is OK if intentional (e.g., updating agent history) |\n\n#### Check 8: Copilot Threads Resolved\n\n| | |\n|---|---|\n| **What** | All review threads opened by `copilot-pull-request-reviewer` must be resolved |\n| **Pass** | Address each Copilot comment, then click \"Resolve conversation\" in the GitHub UI |\n| **Fix** | Go to the PR's \"Files changed\" tab → find unresolved Copilot threads → fix the code or explain why no change is needed → click \"Resolve conversation\" |\n| **Gotcha** | Outdated threads (on code that's since changed) are automatically skipped. Only active, unresolved threads block |\n\n#### Check 9: CI Passing\n\n| | |\n|---|---|\n| **What** | All CI check runs (excluding the readiness check itself) must be green |\n| **Pass** | Fix any build, test, or lint failures and push |\n| **Fix** | Read the failing check's logs (`gh run view {run-id} --log-failed`), fix the issue, push |\n| **Gotcha** | Pending\u002Fin-progress checks also show ❌. Wait for all checks to complete before evaluating. The readiness check re-runs after CI completes via `workflow_run` trigger |\n\n#### Check 10: Issue Linked\n\n| | |\n|---|---|\n| **What** | PR body or commit message must reference an issue (`Closes #N`, `Fixes #N`, `Resolves #N`, or `Part of #N`) |\n| **Pass** | Include `Closes #N` in PR body or commit message |\n| **Fix** | Edit PR body to add `Closes #{issue-number}`, or amend commit message |\n| **Gotcha** | Case-insensitive matching. Only closing keywords are recognized |\n\n#### Check 11: Protected Files (informational)\n\n| | |\n|---|---|\n| **What** | Warns when zero-dependency bootstrap files are modified (always passes) |\n| **Pass** | Always passes — this is informational only |\n| **Fix** | If flagged, verify the changed bootstrap file still has zero external dependencies |\n| **Gotcha** | Protected files are listed in `copilot-instructions.md`. The check warns but does not block |\n\n---\n\n### Phase 5 — Post-Creation Maintenance\n\n1. **Handling Copilot review feedback:**\n   - Read each comment carefully\n   - Fix valid issues in your code\n   - Resolve each thread after addressing it\n   - Amend your single commit: `git commit --amend --no-edit && git push --force-with-lease`\n\n2. **Rebasing when behind dev:**\n   ```bash\n   git fetch origin dev\n   git rebase origin\u002Fdev\n   # Resolve any conflicts\n   git push --force-with-lease\n   ```\n\n3. **Re-running CI:**\n   - CI re-runs automatically on every push\n   - To re-run without changes: `gh run rerun {run-id} --failed`\n\n4. **If readiness check is stale:**\n   - The readiness check re-runs on push and after CI completes\n   - If it's stale, push a trivial fix or empty commit to re-trigger\n\n---\n\n### Phase 6 — Merge & Cleanup\n\n1. **Merge preconditions:**\n   - All 11 readiness checks pass (✅ across the board)\n   - Human reviewer has approved (or maintainer merges directly)\n   - No open blocking conversations\n\n2. **Who merges:**\n   - Agents do **not** merge PRs themselves\n   - Maintainers (bradygaster or designated reviewers) merge via GitHub UI\n   - The repo uses squash merge, so commit history is clean regardless\n\n3. **Post-merge cleanup:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git branch -d squad\u002F{issue-number}-{slug}\n   git push origin --delete squad\u002F{issue-number}-{slug}\n   ```\n\n4. **Verify issue auto-close:**\n   - If PR body contains `Closes #{N}`, the issue closes automatically on merge\n   - If not, manually close: `gh issue close {number}`\n\n---\n\n## Examples\n\n### Example: Bug fix PR (no source changes)\n\n```bash\n# Branch\ngit fetch origin dev && git checkout dev && git rebase origin\u002Fdev\ngit checkout -b squad\u002F610-fix-broken-link\n\n# Fix\n# ... edit docs\u002Fsome-file.md ...\n\n# Validate\nnpm run build && npm test\n\n# Commit (no changeset needed — docs only)\ngit add docs\u002Fsome-file.md\ngit diff --cached --stat        # verify: 1 file\ngit commit -m \"docs: fix broken link in contributing guide\n\nCloses #610\n\nCo-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n\n# Push and PR\ngit push -u origin squad\u002F610-fix-broken-link\ngh pr create --repo bradygaster\u002Fsquad --base dev \\\n  --title \"docs: fix broken link (#610)\" \\\n  --body \"Closes #610\"\n```\n\n### Example: SDK feature PR (source changes)\n\n```bash\n# Branch\ngit fetch origin dev && git checkout dev && git rebase origin\u002Fdev\ngit checkout -b squad\u002F42-add-profile-api\n\n# Implement\n# ... edit packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002Findex.ts ...\n# ... edit packages\u002Fsquad-sdk\u002Fsrc\u002Findex.ts (re-export) ...\n\n# Validate\nnpm run build && npm test && npm run lint\n\n# Changeset (required — touches packages\u002Fsquad-sdk\u002Fsrc\u002F)\nnpx changeset add\n# Select: @bradygaster\u002Fsquad-sdk, minor, \"Add profile API\"\n\n# Stage and commit\ngit add packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002Findex.ts packages\u002Fsquad-sdk\u002Fsrc\u002Findex.ts .changeset\u002F\ngit diff --cached --stat                    # verify file count\ngit diff --cached --diff-filter=D --name-only  # verify no deletions\ngit commit -m \"feat: add profile API\n\nCloses #42\n\nCo-authored-by: Copilot \u003C223556219+Copilot@users.noreply.github.com>\"\n\n# Push and PR\ngit push -u origin squad\u002F42-add-profile-api\ngh pr create --repo bradygaster\u002Fsquad --base dev \\\n  --title \"feat: add profile API (#42)\" \\\n  --body \"Closes #42\n\n## Summary\nAdds profile resolution API to the SDK.\n\n## Changes\n- New module: packages\u002Fsquad-sdk\u002Fsrc\u002Fprofile\u002F\n- Re-exported from barrel file\"\n```\n\n---\n\n## Anti-Patterns\n\n- ❌ Branching from `main` (always branch from `dev`)\n- ❌ Targeting `main` with PRs (always target `dev`)\n- ❌ Using `git add .` or `git add -A` (stage specific files only)\n- ❌ Using `git commit -a` (same risk as broad staging)\n- ❌ Using `git reset --soft` to squash (contaminates commit with dev delta)\n- ❌ Force-pushing to `dev` or `main` (only force-push your own feature branch)\n- ❌ Merging your own PR (maintainers merge)\n- ❌ Skipping the changeset when source files changed (CI will fail)\n- ❌ Self-resolving Copilot threads without addressing the feedback\n- ❌ Pushing >1 commit without squashing (readiness check will flag it)\n- ❌ Including `.squad\u002F` files in product PRs without intention (scope check warns)\n- ❌ Mixing product and infrastructure changes in one PR (create separate PRs)\n\n---\n\n## Readiness Check Gaps & Recommendations\n\nAfter analyzing `.github\u002Fworkflows\u002Fsquad-ci.yml`, three gaps were identified. Gaps 1 and 3 are now implemented (checks 10 and 11). Gap 2 is deferred.\n\n### Gap 1: Issue Linkage Check (Check 10) — IMPLEMENTED\n\n**Problem:** Nothing verifies that the PR body or commit message references an issue (`Closes #N` or `Part of #N`). Orphan PRs are hard to trace.\n\n**Recommendation:** Add `checkIssueLinkage(prBody, commitMessages)` to `pr-readiness.mjs`.\n\n```javascript\n\u002F**\n * Check: Issue linkage.\n * @param {string} prBody — PR description text\n * @param {Array\u003C{ commit: { message: string } }>} commits\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkIssueLinkage(prBody, commits) {\n  const issuePattern = \u002F(closes|fixes|resolves|part of)\\s+#\\d+\u002Fi;\n  const bodyHasRef = issuePattern.test(prBody || '');\n  const commitHasRef = (commits || []).some(\n    (c) => issuePattern.test(c.commit?.message || '')\n  );\n  if (bodyHasRef || commitHasRef) {\n    return { pass: true, detail: 'Issue reference found' };\n  }\n  return {\n    pass: false,\n    detail: 'No issue reference — add `Closes #N` to PR body or commit message',\n  };\n}\n```\n\n**Integration point:** After check 2 (draft status), before check 3 (branch freshness). Data is already available from the commits and PR body fetched in the orchestrator.\n\n### Gap 2: No Required Checks Presence Verification\n\n**Problem:** The CI status check (check 9) verifies that existing checks are green, but doesn't verify that the *expected* set of checks actually ran. If a workflow is misconfigured or skipped, the PR could pass with zero CI checks.\n\n**Recommendation:** Add `checkRequiredChecksPresent(checkRuns, files)` to `pr-readiness.mjs`.\n\n```javascript\n\u002F** Minimum required check names that must appear for source PRs. *\u002F\nexport const REQUIRED_CHECKS = ['Squad CI \u002F test'];\n\n\u002F**\n * Check: Required CI checks are present.\n * @param {Array\u003C{ name: string }>} checkRuns\n * @param {Array\u003C{ filename: string }>} files\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkRequiredChecksPresent(checkRuns, files) {\n  const touchesSource = (files || []).some(\n    (f) => SOURCE_PATTERN.test(f.filename)\n  );\n  if (!touchesSource) {\n    return { pass: true, detail: 'No source changes — required checks not enforced' };\n  }\n  const checkNames = new Set((checkRuns || []).map((cr) => cr.name));\n  const missing = REQUIRED_CHECKS.filter((name) => !checkNames.has(name));\n  if (missing.length > 0) {\n    return {\n      pass: false,\n      detail: `Required check(s) not found: ${missing.join(', ')}`,\n    };\n  }\n  return { pass: true, detail: 'All required checks present' };\n}\n```\n\n**Integration point:** After check 9 (CI status). Uses the same `checkRuns` and `files` data already fetched.\n\n### Gap 3: Protected File Change Detection (Check 11) — IMPLEMENTED\n\n**Problem:** The repo has zero-dependency bootstrap files that must never import external packages (documented in `copilot-instructions.md`). The `squad-repo-health.yml` workflow runs a bootstrap protection check, but the PR readiness comment doesn't surface it — contributors don't see the warning until they check the separate workflow.\n\n**Recommendation:** Add `checkProtectedFiles(files)` to `pr-readiness.mjs` as an **informational** check (always passes, like scope clean).\n\n```javascript\n\u002F** Bootstrap files that must remain zero-dependency. *\u002F\nexport const PROTECTED_FILES = [\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fdetect-squad-dir.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Ferrors.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fgh-cli.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Foutput.ts',\n  'packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcore\u002Fhistory-split.ts',\n];\n\n\u002F**\n * Check: Protected file changes (informational).\n * @param {Array\u003C{ filename: string }>} files\n * @returns {{ pass: boolean, detail: string }}\n *\u002F\nexport function checkProtectedFiles(files) {\n  const touched = (files || []).filter(\n    (f) => PROTECTED_FILES.includes(f.filename)\n  );\n  if (touched.length === 0) {\n    return { pass: true, detail: 'No protected bootstrap files changed' };\n  }\n  return {\n    pass: true,\n    detail: `⚠️ ${touched.length} protected bootstrap file(s) changed: ${touched.map((f) => f.filename.split('\u002F').pop()).join(', ')} — verify zero-dependency constraint`,\n  };\n}\n```\n\n**Integration point:** After check 7 (scope clean). Uses the same `files` data. Informational only — warns but doesn't block.\n\n### Summary of Recommended Changes\n\n| Check | Type | Blocks PR? | Status |\n|-------|------|------------|--------|\n| Issue linkage (Check 10) | Hard gate | Yes | Implemented |\n| Required checks present | Hard gate | Yes | Deferred |\n| Protected file warning (Check 11) | Informational | No | Implemented |\n\nAll three use data that `pr-readiness.mjs` already fetches — no new API calls needed. Total addition: ~60 lines of check functions + ~10 lines of orchestration wiring.\n",{"name":5,"domain":21,"source":37,"confidence":31,"description":7},"extracted from CONTRIBUTING.md, PR_REQUIREMENTS.md, squad-ci.yml","dev","ec19f5e92325e634e3c6eff500e3cefa56131cc9",".copilot\u002Fskills\u002Fpr-lifecycle","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad","https:\u002F\u002Fgithub.com\u002Fbarichter","2026-04-13 22:53:46",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add barichter\u002Fsquad --skill pr-lifecycle",{"tool":50,"command":51},"bunx","bunx skills add barichter\u002Fsquad --skill pr-lifecycle",{"tool":53,"command":54},"pnpm","pnpm dlx skills add barichter\u002Fsquad --skill pr-lifecycle","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002F.copilot\u002Fskills\u002Fpr-lifecycle\u002FSKILL.md",true,[],[59,70,78,93,115,121],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":32},"01M6R7VE8SZD1E37WWJN4ZFPWB","My Skill","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftest-fixtures\u002Fskills-test-abb30454\u002Fmy-skill\u002FSKILL.md",[],[65,66,67,68,69],"my","my skill","tester","vitest","testing",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":32},"01M6R7VD19M4TMAA74XGD6QSZX","bad-skill","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftest-fixtures\u002Fskills-test-abb30454\u002Fbad-skill\u002FSKILL.md",[],[76,77],"bad skill","bad",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":32},"01M6R7V9TYTX6Z621V6RWA51G6","squad-conventions","Core conventions and patterns used in the Squad codebase","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Fsquad-conventions\u002FSKILL.md",[],[85,23,86,87,88,89,90,91,31,92],"squad conventions","conventions","project-conventions","core","patterns","project","manual","codebase",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":32},"01M6R7TTF0ABMGSVWASVYF6D51","rework-rate","Measure and interpret PR rework rate — the emerging 5th DORA metric","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Frework-rate\u002FSKILL.md",[],[100,101,102,103,104,105,19,106,107,31,23,108,109,110,111,112,113,114,91],"rate","rework rate","metric","efficiency","prs","when","review","code quality","code","code-review","metrics","health","team","analyze","quality",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":32},"01M6R7TRZPET44JRCSQF08EEA8","nap","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Fnap\u002FSKILL.md",[],[117],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":32},"01M6R7TK10WCT77A52E27GR5R3","{skill-name}","{what this skill teaches agents}","https:\u002F\u002Fgithub.com\u002Fbarichter\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskill.md",[],[128,129,130,131,132,133,134,135,136,137,91,31,69],"{skill name}","skill name","name","design","api","how","error-handling","learned","error","api-design"]