[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADQYBGRWA6AHJY4YAH49EW":3,"skill-same:01M7ADQYBGRWA6AHJY4YAH49EW":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ADQYBGRWA6AHJY4YAH49EW","mutation-testing",null,"Use when the user asks to find testing gaps, mutation test, or identify surviving mutants.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmutation-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mutation-testing\ndescription: Use when the user asks to find testing gaps, mutation test, or identify surviving mutants.\ntriggers: [user, model]\n---\n# Mutation Testing\n\nPerform mutation testing on the current codebase to find gaps in test coverage.\n\n## Goal\n\nA **mutation** is a small, deliberate change to production code that mimics a realistic bug a human might introduce. A **mutant** is the resulting modified codebase. If the test suite catches the bug (tests fail), the mutant is **killed**. If tests still pass, the mutant **survives** - exposing a gap in test coverage.\n\nThe objective is to find as many surviving mutants as possible, prioritised by risk.\n\n## Prerequisites\n\nThis skill expects a local clone of a VCS project. If that is not the case, stop and explain why.\n\nBefore any testing, ensure local dependencies are running (`docker compose up -d` or equivalent). On compose failure, check whether containers from another project are occupying ports and kill them.\n\n## What to Mutate\n\n### Priority targets (highest to lowest)\n\n1. **Security and auth**: authentication checks, permission gates, encryption, token validation, input sanitisation\n2. **Control flow**: condition inversions (`==` ↔ `!=`, `\u003C` ↔ `\u003C=`), removed or inverted `if` branches, swapped `switch`\u002F`case` fall-throughs, early returns removed or added\n3. **Validation**: removed or weakened input validation, boundary checks changed, nil\u002Fnull guard removal\n4. **State and values**: variables zeroed or hardcoded, default values changed, constants altered\n5. **Error handling**: errors swallowed (replaced with nil\u002Fnull), retry logic removed, fallback paths deleted\n\n### What NOT to mutate\n\n- Test code, test helpers, fakes, mocks, fixtures, or end-to-end test harnesses\n- Logging, tracing, or metrics-only code blocks (unless they also affect control flow)\n- Generated code or vendored dependencies\n\n### Bias toward survivors\n\nFocus mutations where test coverage is likely weakest:\n\n- **Tests that test the mock**: mock returns a hardcoded value matching a production default - mutating that default is invisible\n- **Model coupling**: tests import production models and assert on fields - exercises serialisation, not behaviour\n- **Happy-path-only tests**: multiple branches but only the success path is tested\n- **Missing edge cases**: boundary values, empty collections, nil\u002Fnull inputs, zero-length strings\n\n## Method\n\n### Stage 1 - Discovery\n\nInvestigate the codebase and identify candidate mutations. Use subagents to parallelise discovery across packages, modules, or directories - one subagent per logical area.\n\nEach mutation must be assigned a unique sequential number (e.g. `MUT-001`, `MUT-002`, ...).\n\n**Target density**: ~1 mutation per 50 lines of production code. Guideline, not hard rule.\n\n**Time cap**: if no new viable mutation has been identified for 3 minutes, stop and proceed.\n\nFor each candidate, record:\n- Mutation number\n- File path and line number(s)\n- Description of the change\n- Rationale (why this might survive)\n\n### Stage 2 - Validation (local first, CI optional)\n\nFor each candidate mutation:\n\n1. Create a git worktree on a new branch named `mut-\u003CNUMBER>-\u003Cshort-kebab-description>`.\n2. Apply the mutation.\n3. Run static analysis: linter, type checks, compilation - use the project's standard tooling. If no local tooling, check CI config for what tools are used and attempt to run locally. **Do not install missing tools without prompting.**\n4. Run targeted local tests: tests in the mutated package\u002Fmodule that reference the mutated function or type. Use the race detector where supported. If tests take longer than 1 minute, consider the mutation viable and move on.\n5. **If static analysis or tests fail** → mark the mutant as **killed locally**, delete the worktree, move to next candidate.\n6. **If the mutant survives local validation** → optionally push the branch and trigger CI for further validation.\n\n**CI-optional path**: If CI is available (GitHub Actions, CircleCI, GitLab CI, etc.), push surviving branches in batches and poll for results. If CI fails → **killed in CI**. If CI passes → **survivor**.\n\n**Local-only path**: If no CI is available or configured, a mutant that survives local validation is already a **survivor** - local tests didn't catch it.\n\n**Cleanup**: after a mutant is killed, remove the worktree promptly.\n\n#### Stage 2 Summary\n\n| # | Mutation | File | Line | Branch | Status |\n|---|----------|------|------|--------|--------|\n| MUT-001 | Inverted auth check | `pkg\u002Fauth\u002Fverify.go` | 42 | `mut-001-invert-auth` | Survivor |\n| MUT-002 | Removed nil guard | `pkg\u002Fapi\u002Fhandler.go` | 118 | `mut-002-rm-nil-guard` | Killed (local) |\n\n### Stage 3 - Production Cross-Reference (optional)\n\nAttempt to determine whether surviving mutants' code paths are exercised in production. Use any available observability tooling - Honeycomb, Datadog, Kibana, Prometheus, New Relic, CloudWatch, or other connected MCP servers\u002FCLIs.\n\nIf no observability access is available, note this and skip to Stage 4.\n\nUpdate the summary table with a **Production Traffic** column: **High**, **Low**, **None found**, or **Unknown**.\n\n### Stage 4 - Risk Assessment\n\nFor each survivor, assess overall risk:\n\n- **Severity**: what could go wrong if this bug shipped? (auth bypass > cosmetic issue)\n- **Production traffic**: is this code path actually hit?\n- **Blast radius**: how many users\u002Fsystems would be affected?\n- **Detectability**: would monitoring\u002Falerting catch this before users notice?\n\nAssign a risk level: **Critical**, **High**, **Medium**, or **Low**.\n\n## Cross-skills\n\n- Use `tdd` when adding tests to kill surviving mutants.\n- Use `observability-quality` when production cross-reference needs logs, metrics, or tracing.\n- Use `continuous-improvement` to run a 10-step loop when the same test gaps keep appearing.\n\nPresent the final summary table sorted by risk (highest first):\n\n| # | Mutation | File | Line | Branch | Prod Traffic | Risk | Rationale |\n|---|----------|------|------|--------|-------------|------|-----------|\n| MUT-001 | Inverted auth check | `pkg\u002Fauth\u002Fverify.go` | 42 | [link] | High | Critical | Auth bypass on a hot path, no test coverage |\n| MUT-017 | Hardcoded timeout to 0 | `pkg\u002Fworker\u002Fpoll.go` | 89 | [link] | Low | Medium | Tight loop but only in batch worker |\n","# Mutation Testing\n\nPerform mutation testing on the current codebase to find gaps in test coverage.\n\n## Goal\n\nA **mutation** is a small, deliberate change to production code that mimics a realistic bug a human might introduce. A **mutant** is the resulting modified codebase. If the test suite catches the bug (tests fail), the mutant is **killed**. If tests still pass, the mutant **survives** - exposing a gap in test coverage.\n\nThe objective is to find as many surviving mutants as possible, prioritised by risk.\n\n## Prerequisites\n\nThis skill expects a local clone of a VCS project. If that is not the case, stop and explain why.\n\nBefore any testing, ensure local dependencies are running (`docker compose up -d` or equivalent). On compose failure, check whether containers from another project are occupying ports and kill them.\n\n## What to Mutate\n\n### Priority targets (highest to lowest)\n\n1. **Security and auth**: authentication checks, permission gates, encryption, token validation, input sanitisation\n2. **Control flow**: condition inversions (`==` ↔ `!=`, `\u003C` ↔ `\u003C=`), removed or inverted `if` branches, swapped `switch`\u002F`case` fall-throughs, early returns removed or added\n3. **Validation**: removed or weakened input validation, boundary checks changed, nil\u002Fnull guard removal\n4. **State and values**: variables zeroed or hardcoded, default values changed, constants altered\n5. **Error handling**: errors swallowed (replaced with nil\u002Fnull), retry logic removed, fallback paths deleted\n\n### What NOT to mutate\n\n- Test code, test helpers, fakes, mocks, fixtures, or end-to-end test harnesses\n- Logging, tracing, or metrics-only code blocks (unless they also affect control flow)\n- Generated code or vendored dependencies\n\n### Bias toward survivors\n\nFocus mutations where test coverage is likely weakest:\n\n- **Tests that test the mock**: mock returns a hardcoded value matching a production default - mutating that default is invisible\n- **Model coupling**: tests import production models and assert on fields - exercises serialisation, not behaviour\n- **Happy-path-only tests**: multiple branches but only the success path is tested\n- **Missing edge cases**: boundary values, empty collections, nil\u002Fnull inputs, zero-length strings\n\n## Method\n\n### Stage 1 - Discovery\n\nInvestigate the codebase and identify candidate mutations. Use subagents to parallelise discovery across packages, modules, or directories - one subagent per logical area.\n\nEach mutation must be assigned a unique sequential number (e.g. `MUT-001`, `MUT-002`, ...).\n\n**Target density**: ~1 mutation per 50 lines of production code. Guideline, not hard rule.\n\n**Time cap**: if no new viable mutation has been identified for 3 minutes, stop and proceed.\n\nFor each candidate, record:\n- Mutation number\n- File path and line number(s)\n- Description of the change\n- Rationale (why this might survive)\n\n### Stage 2 - Validation (local first, CI optional)\n\nFor each candidate mutation:\n\n1. Create a git worktree on a new branch named `mut-\u003CNUMBER>-\u003Cshort-kebab-description>`.\n2. Apply the mutation.\n3. Run static analysis: linter, type checks, compilation - use the project's standard tooling. If no local tooling, check CI config for what tools are used and attempt to run locally. **Do not install missing tools without prompting.**\n4. Run targeted local tests: tests in the mutated package\u002Fmodule that reference the mutated function or type. Use the race detector where supported. If tests take longer than 1 minute, consider the mutation viable and move on.\n5. **If static analysis or tests fail** → mark the mutant as **killed locally**, delete the worktree, move to next candidate.\n6. **If the mutant survives local validation** → optionally push the branch and trigger CI for further validation.\n\n**CI-optional path**: If CI is available (GitHub Actions, CircleCI, GitLab CI, etc.), push surviving branches in batches and poll for results. If CI fails → **killed in CI**. If CI passes → **survivor**.\n\n**Local-only path**: If no CI is available or configured, a mutant that survives local validation is already a **survivor** - local tests didn't catch it.\n\n**Cleanup**: after a mutant is killed, remove the worktree promptly.\n\n#### Stage 2 Summary\n\n| # | Mutation | File | Line | Branch | Status |\n|---|----------|------|------|--------|--------|\n| MUT-001 | Inverted auth check | `pkg\u002Fauth\u002Fverify.go` | 42 | `mut-001-invert-auth` | Survivor |\n| MUT-002 | Removed nil guard | `pkg\u002Fapi\u002Fhandler.go` | 118 | `mut-002-rm-nil-guard` | Killed (local) |\n\n### Stage 3 - Production Cross-Reference (optional)\n\nAttempt to determine whether surviving mutants' code paths are exercised in production. Use any available observability tooling - Honeycomb, Datadog, Kibana, Prometheus, New Relic, CloudWatch, or other connected MCP servers\u002FCLIs.\n\nIf no observability access is available, note this and skip to Stage 4.\n\nUpdate the summary table with a **Production Traffic** column: **High**, **Low**, **None found**, or **Unknown**.\n\n### Stage 4 - Risk Assessment\n\nFor each survivor, assess overall risk:\n\n- **Severity**: what could go wrong if this bug shipped? (auth bypass > cosmetic issue)\n- **Production traffic**: is this code path actually hit?\n- **Blast radius**: how many users\u002Fsystems would be affected?\n- **Detectability**: would monitoring\u002Falerting catch this before users notice?\n\nAssign a risk level: **Critical**, **High**, **Medium**, or **Low**.\n\n## Cross-skills\n\n- Use `tdd` when adding tests to kill surviving mutants.\n- Use `observability-quality` when production cross-reference needs logs, metrics, or tracing.\n- Use `continuous-improvement` to run a 10-step loop when the same test gaps keep appearing.\n\nPresent the final summary table sorted by risk (highest first):\n\n| # | Mutation | File | Line | Branch | Prod Traffic | Risk | Rationale |\n|---|----------|------|------|--------|-------------|------|-----------|\n| MUT-001 | Inverted auth check | `pkg\u002Fauth\u002Fverify.go` | 42 | [link] | High | Critical | Auth bypass on a hot path, no test coverage |\n| MUT-017 | Hardcoded timeout to 0 | `pkg\u002Fworker\u002Fpoll.go` | 89 | [link] | Low | Medium | Tight loop but only in batch worker |\n",{"name":5,"triggers":24,"description":7},[25,26],"user","model","main","02b95ddb62959a00b3c31442c2046aca0d19563c","skills\u002Fmutation-testing",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill mutation-testing",{"tool":41,"command":42},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill mutation-testing",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill mutation-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmutation-testing\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":86,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]