[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JJS5Q1RG8E2Q0E4SJ31W1R":3,"skill-same:01M6JJS5Q1RG8E2Q0E4SJ31W1R":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6JJS5Q1RG8E2Q0E4SJ31W1R","cpr-review",null,"Review an incoming PR. Use when someone opens a PR against your project. Checks architecture, security, tests, and antipatterns.","joshft\u002Fcorrectless","joshft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2847920?v=4","01M6JJGJ1WCYFH1BKGPZJ0Z4YD","josh","01M6JJGJ69XYFA6MTDXSH5BG42",66,"MIT","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcpr-review\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cpr review","review","reviewer","reviews","antipatterns","tests","project","use","edit","write","read","gh","Bash","audit","artifacts","git","lint","pr","architecture","security","2026-11-10 10:12:30",false,"---\nname: cpr-review\ndescription: Review an incoming PR. Use when someone opens a PR against your project. Checks architecture, security, tests, and antipatterns.\nallowed-tools: Read, Grep, Glob, Write(.correctless\u002Fartifacts\u002Fpr-reviews\u002F*), Bash(gh*), Bash(glab*), Bash(git*), Bash(*test*), Bash(*lint*), Bash(*audit*), Bash(govulncheck*), Task(correctless:architecture-compliance-reviewer)\ndisallowed-tools: Edit, MultiEdit, NotebookEdit, CreateFile\ninteraction_mode: hybrid\n---\n\n# \u002Fcpr-review — Multi-Lens PR Review\n\n> **Shared constraints apply.** Before executing, read `_shared\u002Fconstraints.md` from the parent of this skill's base directory. All constraints there apply to this skill.\n\nYou are the PR review agent. You review incoming pull requests using multiple focused lenses — each check has a single concern and is more thorough in its domain than a human reviewer doing one pass trying to catch everything.\n\nInvoke with: `\u002Fcpr-review {PR number or URL}`\n\n## Progress Visibility (MANDATORY)\n\nPR reviews take 5-15 minutes depending on PR size and mode. The user must see progress throughout.\n\n**Before starting**, create a task list:\n1. Fetch PR info and diff\n2. Detect dependency bump (may switch to dep-specific lens)\n3. Read project context\n4. Spawn Architecture Compliance Agent\n5. Security checklist\n6. Test coverage analysis\n7. Antipattern check\n8. Convention compliance\n9. Spec alignment (if spec linked)\n10. (at high+ intensity) Concurrency analysis\n11. (at high+ intensity) Trust boundary analysis\n12. (at high+ intensity) Cross-spec impact\n13. (at high+ intensity) Drift detection\n14. (at high+ intensity) Performance implications\n15. (at high+ intensity) Dependency risk\n16. Present findings\n\n**Between each check**, print a 1-line status: \"Architecture compliance complete — {N} findings. Running security checklist...\" Mark each task complete as it finishes.\n\n## Step 1: Fetch PR Info\n\n**Prerequisite check**: Verify `gh` or `glab` is installed: `command -v gh || command -v glab`.\n\nIf neither is available, tell the user: \"Neither `gh` (GitHub CLI) nor `glab` (GitLab CLI) is installed. I can still review if you paste the PR diff. I won't be able to: detect the PR author (for dep bump detection), read the PR description (for spec links), or post review comments. But architecture, security, test coverage, and antipattern checks all work from the diff alone.\"\n\nIf the user provides a manual diff, skip dep bump auto-detection (ask the user: \"Is this a dependency version bump, or a code change?\") and skip the \"Post to PR\" step at the end. Proceed with all other steps using the provided diff.\n\n**If CLI is available**, detect platform from git remote:\n```bash\nremote_url=\"$(git remote get-url origin 2>\u002Fdev\u002Fnull)\"\n```\n- Contains `github.com` or `github.` → use `gh`\n- Contains `gitlab.com` or `gitlab.` → use `glab`\n\nFetch PR details:\n- GitHub: `gh pr view {number} --json title,body,files,additions,deletions,baseRefName,headRefName`\n- GitLab: `glab mr view {number}`\n\nFetch the diff:\n- GitHub: `gh pr diff {number}`\n- GitLab: `glab mr diff {number}`\n\n**Parse the PR body** for spec references: look for links to `.correctless\u002Fspecs\u002F*.md` or mentions of spec files.\n\n### Detect Dependency Bump PRs\n\nAfter fetching PR info, check if this is a dependency bump:\n- PR author is `dependabot[bot]`, `renovate[bot]`, `renovate-bot`, `snyk-bot`, `greenkeeper[bot]`, `mend-bolt-for-github[bot]`, or similar\n- OR: the only changed files are dependency manifests (package.json, go.mod, Cargo.toml, requirements.txt, pyproject.toml, Gemfile, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock)\n- OR: PR title matches patterns like \"Bump X from Y to Z\", \"Update X to Z\", \"chore(deps): ...\", \"chore(deps-dev): ...\", \"fix(deps): ...\"\n\n**If dependency bump detected**, replace the task list with dep-specific tasks:\n1. Run test suite\n2. Analyze project usage of bumped dependency\n3. Fetch changelog \u002F release notes\n4. Check CVE (if security update)\n5. Assess breaking changes\n6. Check transitive impact\n7. Present recommendation\n\nThen run the dependency-specific lens (skip Steps 3-9, but still run Step 2 for project context):\n\n**Priority order** (most reliable signal first):\n\n**1. Test verification (definitive):**\nRun the project's test suite. If tests pass, the bump is likely safe. If tests fail, the failures point directly to affected usage patterns. Report: \"Tests: {all pass \u002F N failures}\" with the specific failing test names and files.\n\n**2. Usage pattern analysis (high signal):**\nGrep the project for imports\u002Fusage of the bumped dependency. Check whether deprecated APIs are used. Flag affected files: \"Found {N} files importing {package}. {M} use APIs deprecated in the new version: {list}.\"\n\n**3. Changelog review (context):**\nExtract the dependency name and version range from the diff. To find the upstream repo: check the `repository` field in the package manifest (package.json, Cargo.toml, go.mod) or lockfile. If GitHub-hosted: `gh api repos\u002F{owner}\u002F{repo}\u002Freleases` to fetch release notes. If owner\u002Frepo cannot be determined, look for CHANGELOG.md in `node_modules\u002F{package}\u002F` or equivalent, or skip changelog review. Summarize breaking changes and notable fixes.\n\n**4. CVE check (if security update):**\nRead the PR body for CVE references. Assess severity and whether the project's usage is affected by the specific vulnerability.\n\n**5. Breaking changes assessment:**\nCompare old and new major\u002Fminor versions. Major version bump: \"Major version bump — likely breaking changes. Review migration guide.\" Check changelog for \"BREAKING\" entries.\n\n**6. Transitive impact:**\nFor package.json bumps, check if the lockfile changes affect other packages. For go.mod, check indirect dependency changes.\n\n**Output for dep bumps** (replaces standard review format):\n\n```markdown\n## Dependency Review: {package} {old} → {new}\n\n### Update Type: {security patch \u002F minor update \u002F major upgrade}\n\n### Test Result\n{all pass \u002F N failures in {files}}\n\n### Project Usage\n{N files import this dependency}\n{M use deprecated APIs: {list with file:line references}}\n\n### CVE (if applicable)\n{ID, severity, affected versions, whether project usage is affected}\n\n### Changelog Summary\n{notable changes, fixes, deprecations from release notes — or \"no changelog found\"}\n\n### Breaking Changes\n{from changelog, or \"none found\"}\n\n### Transitive Impact\n{lockfile changes affecting other packages, or \"no transitive changes\"}\n\n### Recommendation\n{merge \u002F merge after fixing deprecated API usage \u002F needs migration work \u002F block — tests fail}\n```\n\nThe recommendation should be primarily driven by test results, not changelog reading. If tests pass and no deprecated APIs are used, recommend merge. If tests fail, the failures ARE the review.\n\n**This replaces the standard code review checks (Steps 3-9) for dep bumps** — don't run architecture compliance, security checklist, etc. Those are for code changes, not version bumps. **Still run Step 2 (Read Project Context)** — the dep lens needs antipatterns.md and .correctless\u002FARCHITECTURE.md for usage pattern context.\n\n## Step 2: Read Project Context\n\nRead these files to understand the project's standards:\n1. `.correctless\u002FARCHITECTURE.md` — design patterns, conventions, trust boundaries, prohibitions\n2. `.correctless\u002FAGENT_CONTEXT.md` — project context, key components, common pitfalls\n3. `.correctless\u002Fantipatterns.md` — known bug classes\n4. `.correctless\u002Fconfig\u002Fworkflow-config.json` — project settings, test patterns\n5. If a spec is referenced: read the spec for rule alignment\n\n## Step 3: Architecture Compliance\n\n**Staleness check (before spawning agent):** Compute ARCHITECTURE.md staleness via `git log -1 --format='%ai' .correctless\u002FARCHITECTURE.md` and `git log -1 --format='%ai'`. If the last-modified date is more than 30 days before the most recent source commit, prepend a LOW-severity staleness finding directly: \"ARCHITECTURE.md may be stale — last updated {date}, most recent source commit {date}. Architecture findings below may be false positives due to doc drift. Consider running \u002Fcupdate-arch.\" This is a single warning, not per-entry.\n\n**Spawn the Architecture Compliance Agent** via `Task(subagent_type=\"correctless:architecture-compliance-reviewer\")`. The agent mechanically extracts PAT-xxx, ABS-xxx, and TB-xxx entries from `.correctless\u002FARCHITECTURE.md` and checks the PR diff against each entry's documented invariant\u002Frule. The agent runs in parallel with Steps 4-8 (security checklist, test coverage, antipattern check, convention compliance, spec alignment). Architecture compliance is not gated by intensity — the agent is spawned at all intensity levels.\n\nCollect the Architecture Compliance Agent's findings before presenting the final severity-grouped output in \"Present Findings.\" Merge the agent's severity-classified findings into the main output alongside findings from Steps 4-8.\n\n## Step 4: Security Checklist\n\nRun a security checklist against the PR diff, auto-fired based on what the PR touches. This covers the most common vulnerability classes — for the full comprehensive checklist, see `\u002Fcreview`. Check the diff for:\n\n**If PR touches auth\u002Fsession code:**\n- Password hashing (bcrypt cost ≥ 10, never MD5\u002FSHA for passwords)\n- Session management (secure, httpOnly, sameSite cookies)\n- Token expiration and rotation\n- Auth bypass paths (middleware ordering — the #1 Express.js auth bypass, missing checks on new endpoints)\n- Fail-closed on auth failure (deny by default, not allow by default)\n- Security logging for authentication events, failed logins, privilege changes\n\n**If PR touches user input handling:**\n- Input validation at API boundary (not just client-side)\n- SQL injection (parameterized queries, no string concatenation)\n- XSS (output encoding, sanitization)\n- Path traversal in file operations\n- SSRF in URL handling (block private IPs: 127.0.0.0\u002F8, 10.0.0.0\u002F8, 172.16.0.0\u002F12, 192.168.0.0\u002F16, `file:\u002F\u002F`, non-HTTP schemes)\n- Mass assignment \u002F over-posting\n- Open redirect (user-controlled redirect URLs must be validated against allowlist)\n- Unsafe deserialization (never deserialize untrusted input with pickle, eval, unserialize)\n\n**If PR touches data storage:**\n- Sensitive data encryption at rest\n- PII handling and logging (no passwords\u002Ftokens in logs)\n- Database RLS \u002F tenant isolation (multi-tenant apps, fail-closed on tenant isolation failure)\n- TOCTOU in authorization checks (check-then-act patterns where state can change between check and action)\n\n**If PR touches APIs\u002Fendpoints:**\n- CSRF protection on state-changing operations\n- Rate limiting on auth endpoints\n- Security headers (HSTS, X-Content-Type-Options, X-Frame-Options, Content-Security-Policy)\n- CORS configuration (not wildcard `*` with credentials)\n- Authorization checks (not just authentication)\n\n**If PR touches third-party integrations:**\n- API keys in env vars, not in source (check for hardcoded keys)\n- Webhook signature validation (Stripe, GitHub, etc.)\n- Distinction between publishable and secret keys\n\n**If PR adds dependencies:**\n- Check for known CVEs: `npm audit`, `pip audit`, `cargo audit`, `govulncheck`\n- Flag new dependencies for manual review of maintenance status — the agent cannot access package registries directly\n\n## Step 5: Test Coverage Analysis\n\nAnalyze the PR diff against test files:\n\n- **New code without tests**: Identify functions, endpoints, or classes added in the PR that have no corresponding test.\n- **Changed behavior without updated tests**: If a function's behavior changed, did the tests change too? Unchanged tests might pass by accident.\n- **Mock gaps**: If tests exist, do they mock dependencies that should be tested via integration? A test that mocks the database doesn't prove the query works.\n- **Missing edge cases**: Based on the code logic (conditionals, error paths, boundary values), are the obvious edge cases tested?\n- **Test quality**: Are assertions meaningful? A test that calls a function and asserts `true` proves nothing.\n\n**Report test coverage as**: \"X\u002FY new functions have tests. Z edge cases identified but untested.\"\n\n## Step 6: Antipattern Check\n\nRead `.correctless\u002Fantipatterns.md`. For each entry (AP-xxx):\n- Does the PR introduce or repeat this known bug class?\n- If yes, cite the specific antipattern and the code location.\n\nThis is the compounding value of Correctless — bugs caught once get added to the antipattern registry, and every future PR review checks against them.\n\n## Step 7: Convention Compliance\n\nCheck the PR against documented conventions in .correctless\u002FARCHITECTURE.md and CLAUDE.md:\n- Naming conventions (files, functions, variables)\n- Error handling patterns (consistent error shapes, proper propagation)\n- Import ordering and module boundaries\n- Logging conventions\n- Comment and documentation standards\n\nOnly flag violations of **documented** conventions, not personal preferences.\n\n## Step 8: Spec Alignment (if spec exists)\n\nIf the PR references a spec in `.correctless\u002Fspecs\u002F`:\n- Read the spec rules\n- For each rule: does the PR implementation satisfy it?\n- For each rule: is there a test that would fail if the rule were violated?\n- Flag uncovered rules and weak tests\n\nIf no spec is referenced, skip this step.\n\n## Full Mode Additional Checks\n\nCompute the effective intensity using the same method as other pipeline skills: read `workflow.intensity` from `.correctless\u002Fconfig\u002Fworkflow-config.json` (project_intensity, default `standard`), read the `Intensity:` line from `.correctless\u002Fhooks\u002Fworkflow-advance.sh status` (feature_intensity), and take `max(project_intensity, feature_intensity)` using the ordering `standard \u003C high \u003C critical`. If the effective intensity is `high` or `critical`, run these additional checks. At `standard` intensity, skip this section.\n\n### Concurrency Analysis\n- Does the PR introduce shared mutable state?\n- Are there potential race conditions? (concurrent access to maps, slices, global state)\n- Lock ordering: if multiple locks are acquired, is the order consistent?\n- Channel usage: can channels deadlock? Is there proper cleanup?\n\n### Trust Boundary Analysis\n\n> The Architecture Compliance Agent handles mechanical TB-xxx\u002FPAT-xxx checking. This section adds semantic analysis beyond what mechanical extraction can catch.\n\n- Does the PR modify trust boundaries documented in .correctless\u002FARCHITECTURE.md?\n- Do changes cross trust boundaries without proper validation?\n- Is data from less-trusted sources sanitized before reaching more-trusted components?\n\n### Cross-Spec Impact\n- Read all specs in `.correctless\u002Fspecs\u002F`. Do the PR's changes potentially violate invariants from OTHER specs?\n- Example: a PR that changes the auth middleware might break invariants from the payments spec that assumes authenticated users.\n\n### Drift Detection\n\n> The Architecture Compliance Agent handles mechanical TB-xxx\u002FPAT-xxx checking. This section adds semantic analysis beyond what mechanical extraction can catch.\n\n- Do changes match the documented architecture, or are they introducing architectural drift?\n- If drift is detected: is it intentional evolution (document it) or accidental erosion (fix it)?\n- Check `.correctless\u002Fmeta\u002Fdrift-debt.json` for existing drift in the same area.\n\n### Performance Implications\n- N+1 query patterns in new database access\n- Unbounded loops or recursion on user-controlled input\n- Missing pagination on list endpoints\n- Cache invalidation issues (new writes without cache busting)\n- Large payload handling (streaming vs buffering)\n\n### Dependency Risk\n- New dependencies: maintenance status, license compatibility, transitive dependency count\n- Known vulnerabilities in new or updated packages\n- Dependency size impact (bundle size for frontend, binary size for backend)\n\n## Present Findings\n\n**Persist before presenting (AP-029).** Before displaying findings to the user, write the full review to `.correctless\u002Fartifacts\u002Fpr-reviews\u002Fpr-review-{pr-number}.md`. This is the recovery path if the terminal display is interrupted, context is compacted, or the session ends. Derive the PR number from the `gh pr view` output or the user's input.\n\nGroup findings by severity:\n\n```markdown\n## PR Review: #{number} — {title}\n\n### CRITICAL ({N})\n{Findings that would cause security vulnerabilities, data loss, or crashes}\n\n### HIGH ({N})\n{Findings that would cause bugs, incorrect behavior, or untested paths}\n\n### MEDIUM ({N})\n{Architecture drift, convention violations, missing edge case tests}\n\n### LOW ({N})\n{Style issues, documentation gaps, minor improvements}\n\n### What Looks Good\n{At least 1 item. Note what the PR does well with file references where applicable.\nLook for: thorough test coverage with edge cases, correct use of documented patterns,\nclean security implementation, good error handling, clear naming. If the PR is genuinely\npoor, note the best aspect even if minor — \"Tests exist for the happy path\" is honest.}\n```\n\n**For each finding**, include:\n- File and line reference\n- What's wrong (1 sentence)\n- Why it matters (1 sentence)\n- Suggested fix (concrete, not vague)\n\n## Post to PR (optional)\n\nAfter presenting findings, offer: \"Want me to post these findings as a PR comment?\"\n\nIf yes:\n- GitHub: `gh pr comment {number} --body \"{findings}\"`\n- GitLab: `glab mr note {number} --message \"{findings}\"`\n\nIf there are 5 or more findings, format the comment as a collapsible details section:\n```markdown\n\u003Cdetails>\n\u003Csummary>Correctless Review: {N} findings ({C} critical, {H} high)\u003C\u002Fsummary>\n\n{full findings}\n\n\u003C\u002Fdetails>\n```\n\n## Claude Code Feature Integration\n\n### Task Lists\nSee \"Progress Visibility\" section above — task creation and narration are mandatory.\n\n### \u002Fbtw\nWhen reviewing PRs with more than 10 changed files or 300+ lines of diff, remind after reading context (before starting checks): \"Use \u002Fbtw to check something about the codebase without interrupting this review.\"\n\n## Code Analysis (MCP Integration)\n\nIf `mcp.serena` is `true` in `workflow-config.json`, use Serena MCP for symbol-level code analysis during PR review:\n\n- Use `find_symbol` instead of grepping for function\u002Ftype names\n- Use `find_referencing_symbols` to trace callers and dependencies affected by the PR\n- Use `get_symbols_overview` for structural overview of a module\n- Use `replace_symbol_body` for precise edits (not used in this skill — PR review is read-only)\n- Use `search_for_pattern` for regex searches with symbol context\n\n**Fallback table** — if Serena is unavailable, fall back silently to text-based equivalents:\n\n| Serena Operation | Fallback |\n|-----------------|----------|\n| `find_symbol` | Grep for function\u002Ftype name |\n| `find_referencing_symbols` | Grep for symbol name across source files |\n| `get_symbols_overview` | Read directory + read index files |\n| `replace_symbol_body` | Edit tool |\n| `search_for_pattern` | Grep tool |\n\n## Autonomous Defaults\n\nWhen running in autonomous mode (`mode: autonomous` in prompt context), use these defaults instead of pausing for human input.\nWhen dispatched by `\u002Fcauto`, return autonomous decisions in the `AUTONOMOUS_DECISIONS_START`\u002F`AUTONOMOUS_DECISIONS_END` format provided in the task prompt.\n\n- **AD-001**: Review depth — all lenses (default). Rationale: partial reviews miss cross-cutting issues; the full lens set is the designed minimum.\n- **AD-002**: Test execution — run full test suite (default). Rationale: partial test runs can miss regressions introduced by the PR in unrelated areas.\n- **AD-003**: Post findings to PR — `escalate: always`. Default if deferred: do not post. Rationale: posting PR comments is a visible external action that represents the project's review voice.\n\n## If Something Goes Wrong\n\n- **CLI not available**: Paste the PR diff manually. The skill reviews the diff without needing `gh` or `glab` (but can't post comments or detect PR author for dep bump detection).\n- **Rate limit hit**: Wait 2-3 minutes and re-run.\n- **Re-run is always safe**: This skill is read-only for project files — it only reads code and optionally posts PR comments.\n\n## Constraints\n\n- **Read-only for project files.** This skill reads code and posts comments — it does not modify source.\n- **Only flag documented violations.** Don't invent conventions the project doesn't have. Check .correctless\u002FARCHITECTURE.md, CLAUDE.md, antipatterns.\n- **Be specific with findings.** \"Security issue\" is useless. \"SQL injection in `src\u002Froutes\u002Fsearch.ts:42` — user input concatenated into query string\" is actionable.\n- **Include \"What Looks Good.\"** A review that only complains erodes trust. Note what the PR does well.\n- **Don't duplicate CI.** If CI already runs linting, don't re-report lint errors. Focus on what CI can't catch: architecture, security logic, spec alignment.\n- **Respect the PR scope.** Don't flag pre-existing issues in unchanged code. Only review what the PR changes.\n- **Redact before posting.** Before posting any output externally (PR comments, MR notes), apply redaction rules from `templates\u002Fredaction-rules.md` — sanitize paths, credentials, hostnames, session IDs.\n","# \u002Fcpr-review — Multi-Lens PR Review\n\n> **Shared constraints apply.** Before executing, read `_shared\u002Fconstraints.md` from the parent of this skill's base directory. All constraints there apply to this skill.\n\nYou are the PR review agent. You review incoming pull requests using multiple focused lenses — each check has a single concern and is more thorough in its domain than a human reviewer doing one pass trying to catch everything.\n\nInvoke with: `\u002Fcpr-review {PR number or URL}`\n\n## Progress Visibility (MANDATORY)\n\nPR reviews take 5-15 minutes depending on PR size and mode. The user must see progress throughout.\n\n**Before starting**, create a task list:\n1. Fetch PR info and diff\n2. Detect dependency bump (may switch to dep-specific lens)\n3. Read project context\n4. Spawn Architecture Compliance Agent\n5. Security checklist\n6. Test coverage analysis\n7. Antipattern check\n8. Convention compliance\n9. Spec alignment (if spec linked)\n10. (at high+ intensity) Concurrency analysis\n11. (at high+ intensity) Trust boundary analysis\n12. (at high+ intensity) Cross-spec impact\n13. (at high+ intensity) Drift detection\n14. (at high+ intensity) Performance implications\n15. (at high+ intensity) Dependency risk\n16. Present findings\n\n**Between each check**, print a 1-line status: \"Architecture compliance complete — {N} findings. Running security checklist...\" Mark each task complete as it finishes.\n\n## Step 1: Fetch PR Info\n\n**Prerequisite check**: Verify `gh` or `glab` is installed: `command -v gh || command -v glab`.\n\nIf neither is available, tell the user: \"Neither `gh` (GitHub CLI) nor `glab` (GitLab CLI) is installed. I can still review if you paste the PR diff. I won't be able to: detect the PR author (for dep bump detection), read the PR description (for spec links), or post review comments. But architecture, security, test coverage, and antipattern checks all work from the diff alone.\"\n\nIf the user provides a manual diff, skip dep bump auto-detection (ask the user: \"Is this a dependency version bump, or a code change?\") and skip the \"Post to PR\" step at the end. Proceed with all other steps using the provided diff.\n\n**If CLI is available**, detect platform from git remote:\n```bash\nremote_url=\"$(git remote get-url origin 2>\u002Fdev\u002Fnull)\"\n```\n- Contains `github.com` or `github.` → use `gh`\n- Contains `gitlab.com` or `gitlab.` → use `glab`\n\nFetch PR details:\n- GitHub: `gh pr view {number} --json title,body,files,additions,deletions,baseRefName,headRefName`\n- GitLab: `glab mr view {number}`\n\nFetch the diff:\n- GitHub: `gh pr diff {number}`\n- GitLab: `glab mr diff {number}`\n\n**Parse the PR body** for spec references: look for links to `.correctless\u002Fspecs\u002F*.md` or mentions of spec files.\n\n### Detect Dependency Bump PRs\n\nAfter fetching PR info, check if this is a dependency bump:\n- PR author is `dependabot[bot]`, `renovate[bot]`, `renovate-bot`, `snyk-bot`, `greenkeeper[bot]`, `mend-bolt-for-github[bot]`, or similar\n- OR: the only changed files are dependency manifests (package.json, go.mod, Cargo.toml, requirements.txt, pyproject.toml, Gemfile, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock)\n- OR: PR title matches patterns like \"Bump X from Y to Z\", \"Update X to Z\", \"chore(deps): ...\", \"chore(deps-dev): ...\", \"fix(deps): ...\"\n\n**If dependency bump detected**, replace the task list with dep-specific tasks:\n1. Run test suite\n2. Analyze project usage of bumped dependency\n3. Fetch changelog \u002F release notes\n4. Check CVE (if security update)\n5. Assess breaking changes\n6. Check transitive impact\n7. Present recommendation\n\nThen run the dependency-specific lens (skip Steps 3-9, but still run Step 2 for project context):\n\n**Priority order** (most reliable signal first):\n\n**1. Test verification (definitive):**\nRun the project's test suite. If tests pass, the bump is likely safe. If tests fail, the failures point directly to affected usage patterns. Report: \"Tests: {all pass \u002F N failures}\" with the specific failing test names and files.\n\n**2. Usage pattern analysis (high signal):**\nGrep the project for imports\u002Fusage of the bumped dependency. Check whether deprecated APIs are used. Flag affected files: \"Found {N} files importing {package}. {M} use APIs deprecated in the new version: {list}.\"\n\n**3. Changelog review (context):**\nExtract the dependency name and version range from the diff. To find the upstream repo: check the `repository` field in the package manifest (package.json, Cargo.toml, go.mod) or lockfile. If GitHub-hosted: `gh api repos\u002F{owner}\u002F{repo}\u002Freleases` to fetch release notes. If owner\u002Frepo cannot be determined, look for CHANGELOG.md in `node_modules\u002F{package}\u002F` or equivalent, or skip changelog review. Summarize breaking changes and notable fixes.\n\n**4. CVE check (if security update):**\nRead the PR body for CVE references. Assess severity and whether the project's usage is affected by the specific vulnerability.\n\n**5. Breaking changes assessment:**\nCompare old and new major\u002Fminor versions. Major version bump: \"Major version bump — likely breaking changes. Review migration guide.\" Check changelog for \"BREAKING\" entries.\n\n**6. Transitive impact:**\nFor package.json bumps, check if the lockfile changes affect other packages. For go.mod, check indirect dependency changes.\n\n**Output for dep bumps** (replaces standard review format):\n\n```markdown\n## Dependency Review: {package} {old} → {new}\n\n### Update Type: {security patch \u002F minor update \u002F major upgrade}\n\n### Test Result\n{all pass \u002F N failures in {files}}\n\n### Project Usage\n{N files import this dependency}\n{M use deprecated APIs: {list with file:line references}}\n\n### CVE (if applicable)\n{ID, severity, affected versions, whether project usage is affected}\n\n### Changelog Summary\n{notable changes, fixes, deprecations from release notes — or \"no changelog found\"}\n\n### Breaking Changes\n{from changelog, or \"none found\"}\n\n### Transitive Impact\n{lockfile changes affecting other packages, or \"no transitive changes\"}\n\n### Recommendation\n{merge \u002F merge after fixing deprecated API usage \u002F needs migration work \u002F block — tests fail}\n```\n\nThe recommendation should be primarily driven by test results, not changelog reading. If tests pass and no deprecated APIs are used, recommend merge. If tests fail, the failures ARE the review.\n\n**This replaces the standard code review checks (Steps 3-9) for dep bumps** — don't run architecture compliance, security checklist, etc. Those are for code changes, not version bumps. **Still run Step 2 (Read Project Context)** — the dep lens needs antipatterns.md and .correctless\u002FARCHITECTURE.md for usage pattern context.\n\n## Step 2: Read Project Context\n\nRead these files to understand the project's standards:\n1. `.correctless\u002FARCHITECTURE.md` — design patterns, conventions, trust boundaries, prohibitions\n2. `.correctless\u002FAGENT_CONTEXT.md` — project context, key components, common pitfalls\n3. `.correctless\u002Fantipatterns.md` — known bug classes\n4. `.correctless\u002Fconfig\u002Fworkflow-config.json` — project settings, test patterns\n5. If a spec is referenced: read the spec for rule alignment\n\n## Step 3: Architecture Compliance\n\n**Staleness check (before spawning agent):** Compute ARCHITECTURE.md staleness via `git log -1 --format='%ai' .correctless\u002FARCHITECTURE.md` and `git log -1 --format='%ai'`. If the last-modified date is more than 30 days before the most recent source commit, prepend a LOW-severity staleness finding directly: \"ARCHITECTURE.md may be stale — last updated {date}, most recent source commit {date}. Architecture findings below may be false positives due to doc drift. Consider running \u002Fcupdate-arch.\" This is a single warning, not per-entry.\n\n**Spawn the Architecture Compliance Agent** via `Task(subagent_type=\"correctless:architecture-compliance-reviewer\")`. The agent mechanically extracts PAT-xxx, ABS-xxx, and TB-xxx entries from `.correctless\u002FARCHITECTURE.md` and checks the PR diff against each entry's documented invariant\u002Frule. The agent runs in parallel with Steps 4-8 (security checklist, test coverage, antipattern check, convention compliance, spec alignment). Architecture compliance is not gated by intensity — the agent is spawned at all intensity levels.\n\nCollect the Architecture Compliance Agent's findings before presenting the final severity-grouped output in \"Present Findings.\" Merge the agent's severity-classified findings into the main output alongside findings from Steps 4-8.\n\n## Step 4: Security Checklist\n\nRun a security checklist against the PR diff, auto-fired based on what the PR touches. This covers the most common vulnerability classes — for the full comprehensive checklist, see `\u002Fcreview`. Check the diff for:\n\n**If PR touches auth\u002Fsession code:**\n- Password hashing (bcrypt cost ≥ 10, never MD5\u002FSHA for passwords)\n- Session management (secure, httpOnly, sameSite cookies)\n- Token expiration and rotation\n- Auth bypass paths (middleware ordering — the #1 Express.js auth bypass, missing checks on new endpoints)\n- Fail-closed on auth failure (deny by default, not allow by default)\n- Security logging for authentication events, failed logins, privilege changes\n\n**If PR touches user input handling:**\n- Input validation at API boundary (not just client-side)\n- SQL injection (parameterized queries, no string concatenation)\n- XSS (output encoding, sanitization)\n- Path traversal in file operations\n- SSRF in URL handling (block private IPs: 127.0.0.0\u002F8, 10.0.0.0\u002F8, 172.16.0.0\u002F12, 192.168.0.0\u002F16, `file:\u002F\u002F`, non-HTTP schemes)\n- Mass assignment \u002F over-posting\n- Open redirect (user-controlled redirect URLs must be validated against allowlist)\n- Unsafe deserialization (never deserialize untrusted input with pickle, eval, unserialize)\n\n**If PR touches data storage:**\n- Sensitive data encryption at rest\n- PII handling and logging (no passwords\u002Ftokens in logs)\n- Database RLS \u002F tenant isolation (multi-tenant apps, fail-closed on tenant isolation failure)\n- TOCTOU in authorization checks (check-then-act patterns where state can change between check and action)\n\n**If PR touches APIs\u002Fendpoints:**\n- CSRF protection on state-changing operations\n- Rate limiting on auth endpoints\n- Security headers (HSTS, X-Content-Type-Options, X-Frame-Options, Content-Security-Policy)\n- CORS configuration (not wildcard `*` with credentials)\n- Authorization checks (not just authentication)\n\n**If PR touches third-party integrations:**\n- API keys in env vars, not in source (check for hardcoded keys)\n- Webhook signature validation (Stripe, GitHub, etc.)\n- Distinction between publishable and secret keys\n\n**If PR adds dependencies:**\n- Check for known CVEs: `npm audit`, `pip audit`, `cargo audit`, `govulncheck`\n- Flag new dependencies for manual review of maintenance status — the agent cannot access package registries directly\n\n## Step 5: Test Coverage Analysis\n\nAnalyze the PR diff against test files:\n\n- **New code without tests**: Identify functions, endpoints, or classes added in the PR that have no corresponding test.\n- **Changed behavior without updated tests**: If a function's behavior changed, did the tests change too? Unchanged tests might pass by accident.\n- **Mock gaps**: If tests exist, do they mock dependencies that should be tested via integration? A test that mocks the database doesn't prove the query works.\n- **Missing edge cases**: Based on the code logic (conditionals, error paths, boundary values), are the obvious edge cases tested?\n- **Test quality**: Are assertions meaningful? A test that calls a function and asserts `true` proves nothing.\n\n**Report test coverage as**: \"X\u002FY new functions have tests. Z edge cases identified but untested.\"\n\n## Step 6: Antipattern Check\n\nRead `.correctless\u002Fantipatterns.md`. For each entry (AP-xxx):\n- Does the PR introduce or repeat this known bug class?\n- If yes, cite the specific antipattern and the code location.\n\nThis is the compounding value of Correctless — bugs caught once get added to the antipattern registry, and every future PR review checks against them.\n\n## Step 7: Convention Compliance\n\nCheck the PR against documented conventions in .correctless\u002FARCHITECTURE.md and CLAUDE.md:\n- Naming conventions (files, functions, variables)\n- Error handling patterns (consistent error shapes, proper propagation)\n- Import ordering and module boundaries\n- Logging conventions\n- Comment and documentation standards\n\nOnly flag violations of **documented** conventions, not personal preferences.\n\n## Step 8: Spec Alignment (if spec exists)\n\nIf the PR references a spec in `.correctless\u002Fspecs\u002F`:\n- Read the spec rules\n- For each rule: does the PR implementation satisfy it?\n- For each rule: is there a test that would fail if the rule were violated?\n- Flag uncovered rules and weak tests\n\nIf no spec is referenced, skip this step.\n\n## Full Mode Additional Checks\n\nCompute the effective intensity using the same method as other pipeline skills: read `workflow.intensity` from `.correctless\u002Fconfig\u002Fworkflow-config.json` (project_intensity, default `standard`), read the `Intensity:` line from `.correctless\u002Fhooks\u002Fworkflow-advance.sh status` (feature_intensity), and take `max(project_intensity, feature_intensity)` using the ordering `standard \u003C high \u003C critical`. If the effective intensity is `high` or `critical`, run these additional checks. At `standard` intensity, skip this section.\n\n### Concurrency Analysis\n- Does the PR introduce shared mutable state?\n- Are there potential race conditions? (concurrent access to maps, slices, global state)\n- Lock ordering: if multiple locks are acquired, is the order consistent?\n- Channel usage: can channels deadlock? Is there proper cleanup?\n\n### Trust Boundary Analysis\n\n> The Architecture Compliance Agent handles mechanical TB-xxx\u002FPAT-xxx checking. This section adds semantic analysis beyond what mechanical extraction can catch.\n\n- Does the PR modify trust boundaries documented in .correctless\u002FARCHITECTURE.md?\n- Do changes cross trust boundaries without proper validation?\n- Is data from less-trusted sources sanitized before reaching more-trusted components?\n\n### Cross-Spec Impact\n- Read all specs in `.correctless\u002Fspecs\u002F`. Do the PR's changes potentially violate invariants from OTHER specs?\n- Example: a PR that changes the auth middleware might break invariants from the payments spec that assumes authenticated users.\n\n### Drift Detection\n\n> The Architecture Compliance Agent handles mechanical TB-xxx\u002FPAT-xxx checking. This section adds semantic analysis beyond what mechanical extraction can catch.\n\n- Do changes match the documented architecture, or are they introducing architectural drift?\n- If drift is detected: is it intentional evolution (document it) or accidental erosion (fix it)?\n- Check `.correctless\u002Fmeta\u002Fdrift-debt.json` for existing drift in the same area.\n\n### Performance Implications\n- N+1 query patterns in new database access\n- Unbounded loops or recursion on user-controlled input\n- Missing pagination on list endpoints\n- Cache invalidation issues (new writes without cache busting)\n- Large payload handling (streaming vs buffering)\n\n### Dependency Risk\n- New dependencies: maintenance status, license compatibility, transitive dependency count\n- Known vulnerabilities in new or updated packages\n- Dependency size impact (bundle size for frontend, binary size for backend)\n\n## Present Findings\n\n**Persist before presenting (AP-029).** Before displaying findings to the user, write the full review to `.correctless\u002Fartifacts\u002Fpr-reviews\u002Fpr-review-{pr-number}.md`. This is the recovery path if the terminal display is interrupted, context is compacted, or the session ends. Derive the PR number from the `gh pr view` output or the user's input.\n\nGroup findings by severity:\n\n```markdown\n## PR Review: #{number} — {title}\n\n### CRITICAL ({N})\n{Findings that would cause security vulnerabilities, data loss, or crashes}\n\n### HIGH ({N})\n{Findings that would cause bugs, incorrect behavior, or untested paths}\n\n### MEDIUM ({N})\n{Architecture drift, convention violations, missing edge case tests}\n\n### LOW ({N})\n{Style issues, documentation gaps, minor improvements}\n\n### What Looks Good\n{At least 1 item. Note what the PR does well with file references where applicable.\nLook for: thorough test coverage with edge cases, correct use of documented patterns,\nclean security implementation, good error handling, clear naming. If the PR is genuinely\npoor, note the best aspect even if minor — \"Tests exist for the happy path\" is honest.}\n```\n\n**For each finding**, include:\n- File and line reference\n- What's wrong (1 sentence)\n- Why it matters (1 sentence)\n- Suggested fix (concrete, not vague)\n\n## Post to PR (optional)\n\nAfter presenting findings, offer: \"Want me to post these findings as a PR comment?\"\n\nIf yes:\n- GitHub: `gh pr comment {number} --body \"{findings}\"`\n- GitLab: `glab mr note {number} --message \"{findings}\"`\n\nIf there are 5 or more findings, format the comment as a collapsible details section:\n```markdown\n\u003Cdetails>\n\u003Csummary>Correctless Review: {N} findings ({C} critical, {H} high)\u003C\u002Fsummary>\n\n{full findings}\n\n\u003C\u002Fdetails>\n```\n\n## Claude Code Feature Integration\n\n### Task Lists\nSee \"Progress Visibility\" section above — task creation and narration are mandatory.\n\n### \u002Fbtw\nWhen reviewing PRs with more than 10 changed files or 300+ lines of diff, remind after reading context (before starting checks): \"Use \u002Fbtw to check something about the codebase without interrupting this review.\"\n\n## Code Analysis (MCP Integration)\n\nIf `mcp.serena` is `true` in `workflow-config.json`, use Serena MCP for symbol-level code analysis during PR review:\n\n- Use `find_symbol` instead of grepping for function\u002Ftype names\n- Use `find_referencing_symbols` to trace callers and dependencies affected by the PR\n- Use `get_symbols_overview` for structural overview of a module\n- Use `replace_symbol_body` for precise edits (not used in this skill — PR review is read-only)\n- Use `search_for_pattern` for regex searches with symbol context\n\n**Fallback table** — if Serena is unavailable, fall back silently to text-based equivalents:\n\n| Serena Operation | Fallback |\n|-----------------|----------|\n| `find_symbol` | Grep for function\u002Ftype name |\n| `find_referencing_symbols` | Grep for symbol name across source files |\n| `get_symbols_overview` | Read directory + read index files |\n| `replace_symbol_body` | Edit tool |\n| `search_for_pattern` | Grep tool |\n\n## Autonomous Defaults\n\nWhen running in autonomous mode (`mode: autonomous` in prompt context), use these defaults instead of pausing for human input.\nWhen dispatched by `\u002Fcauto`, return autonomous decisions in the `AUTONOMOUS_DECISIONS_START`\u002F`AUTONOMOUS_DECISIONS_END` format provided in the task prompt.\n\n- **AD-001**: Review depth — all lenses (default). Rationale: partial reviews miss cross-cutting issues; the full lens set is the designed minimum.\n- **AD-002**: Test execution — run full test suite (default). Rationale: partial test runs can miss regressions introduced by the PR in unrelated areas.\n- **AD-003**: Post findings to PR — `escalate: always`. Default if deferred: do not post. Rationale: posting PR comments is a visible external action that represents the project's review voice.\n\n## If Something Goes Wrong\n\n- **CLI not available**: Paste the PR diff manually. The skill reviews the diff without needing `gh` or `glab` (but can't post comments or detect PR author for dep bump detection).\n- **Rate limit hit**: Wait 2-3 minutes and re-run.\n- **Re-run is always safe**: This skill is read-only for project files — it only reads code and optionally posts PR comments.\n\n## Constraints\n\n- **Read-only for project files.** This skill reads code and posts comments — it does not modify source.\n- **Only flag documented violations.** Don't invent conventions the project doesn't have. Check .correctless\u002FARCHITECTURE.md, CLAUDE.md, antipatterns.\n- **Be specific with findings.** \"Security issue\" is useless. \"SQL injection in `src\u002Froutes\u002Fsearch.ts:42` — user input concatenated into query string\" is actionable.\n- **Include \"What Looks Good.\"** A review that only complains erodes trust. Note what the PR does well.\n- **Don't duplicate CI.** If CI already runs linting, don't re-report lint errors. Focus on what CI can't catch: architecture, security logic, spec alignment.\n- **Respect the PR scope.** Don't flag pre-existing issues in unchanged code. Only review what the PR changes.\n- **Redact before posting.** Before posting any output externally (PR comments, MR notes), apply redaction rules from `templates\u002Fredaction-rules.md` — sanitize paths, credentials, hostnames, session IDs.\n",{"name":5,"description":7,"allowed-tools":44,"disallowed-tools":45,"interaction_mode":46},"Read, Grep, Glob, Write(.correctless\u002Fartifacts\u002Fpr-reviews\u002F*), Bash(gh*), Bash(glab*), Bash(git*), Bash(*test*), Bash(*lint*), Bash(*audit*), Bash(govulncheck*), Task(correctless:architecture-compliance-reviewer)","Edit, MultiEdit, NotebookEdit, CreateFile","hybrid","main","74f9ef3f5acae9c857f6be6dd86cdc3b10830c90","skills\u002Fcpr-review",4,"https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless","https:\u002F\u002Fjoshft.github.io\u002Fcorrectless\u002F","https:\u002F\u002Fgithub.com\u002Fjoshft","2026-11-14 02:53:56",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add joshft\u002Fcorrectless --skill cpr-review",{"tool":61,"command":62},"bunx","bunx skills add joshft\u002Fcorrectless --skill cpr-review",{"tool":64,"command":65},"pnpm","pnpm dlx skills add joshft\u002Fcorrectless --skill cpr-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcpr-review\u002FSKILL.md",true,[],[70,88,106,124,141,153],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":39},"01M6JJW224Q40TCVMTKRZPDHDY","cwtf","Audit the workflow itself. Use when you suspect agents shortcut or after a bug escapes despite the workflow running. Checks phase execution, rule coverage, and agent thoroughness.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcwtf\u002FSKILL.md",[],[72,77,34,33,32,78,31,79,80,81,29,28,27,82,83,26,84,85,86,87],"workflow","execution","grep","find","jq","coverage","autonomous","wtf","bug","you","shortcut",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":39},"01M6JJVT9M4KGWQ99V0CSF6WZ5","cverify","Verify implementation matches spec. Check rule coverage, undocumented dependencies, architecture compliance. Writes verification report and drift debt. Run after \u002Fctdd completes.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcverify\u002FSKILL.md",[],[90,95,77,37,96,34,97,98,31,29,28,27,82,99,100,101,102,103,104,105],"go","run","verification","Meta","diff","ruff","drift","verify implementation","cargo","stryker","ctdd",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6JJVP2E6BHHKF3SCMDXG0S2","cupdate-arch","Update .correctless\u002FARCHITECTURE.md after features land. Use after \u002Fcdocs or when the codebase structure has changed.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcupdate-arch\u002FSKILL.md",[],[113,114,115,37,116,34,117,31,118,79,29,28,27,26,119,120,121,122,123],"arch","cupdate arch","docs","update","land","Rules","structure","codebase","features","codebase structure","cdocs",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M6JJVJVZ72KVWN1K3RWQK0YJ","ctriage","Bulk triage deferred findings backlog. Presents findings one at a time with disposition options.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fctriage\u002FSKILL.md",[],[126,131,98,31,132,79,81,133,29,28,27,134,135,136,137,138,139,140],"triage","json","one at a time","interactive","options","backlog","time","bulk","with","at",{"skillNo":142,"name":105,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":39},"01M6JJVCYCNYD4GHK33DZE9DXA","Enforced TDD workflow. Write failing tests from spec rules, then implement. Use after \u002Fcreview approves a spec.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fctdd\u002FSKILL.md",[],[105,147,148,149,77,33,150,31,118,79,29,28,27,26,151,24,152],"spec","implement","tdd","tdd workflow","task","creview",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":39},"01M6JJV7S3EQG3GHQ56DD8P1SA","csummary","Feature summary. Use after \u002Fcdocs to see what the workflow caught, or mid-feature to check progress.","https:\u002F\u002Fgithub.com\u002Fjoshft\u002Fcorrectless\u002Fblob\u002Fmain\u002Fskills\u002Fcsummary\u002FSKILL.md",[],[155,77,34,33,31,79,160,29,28,27,83,26,161,162,163,164,123],"check","what the","summary","feature","progress"]