[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CATDBJXWDWVJCZPYD5WEH7":3,"skill-same:01M7CATDBJXWDWVJCZPYD5WEH7":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CATDBJXWDWVJCZPYD5WEH7","mutation-testing",null,"Evaluate Python test suite quality using mutmut to introduce code mutations and verify tests catch them. Use for mutation testing, test quality assessment, mutant detection, and test effectiveness analysis.","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fjaredmcfarland__mixpanel_data__.claude__skills__mutation-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mutation-testing\ndescription: Evaluate Python test suite quality using mutmut to introduce code mutations and verify tests catch them. Use for mutation testing, test quality assessment, mutant detection, and test effectiveness analysis.\n---\n\n# Mutation Testing with mutmut\n\nMutation testing assesses test suite quality by introducing small changes (mutations) to source code and verifying that tests fail. If tests don't catch a mutation, it indicates gaps in test coverage or quality.\n\n## Key Concepts\n\n- **Mutant**: Modified version of code with small change\n- **Killed**: Test fails when mutation introduced (good)\n- **Survived**: Test passes despite mutation (test gap)\n- **Mutation Score**: Percentage of mutants killed\n\n## Quick Start\n\n```bash\n# Install\npip install mutmut\n\n# Run mutation testing\nmutmut run\n\n# View results\nmutmut results\n\n# Inspect specific mutant\nmutmut show 1\n\n# Apply mutation to see the change\nmutmut apply 1\n\n# Reset applied mutations\nmutmut apply 0\n```\n\n## Configuration\n\n```ini\n# setup.cfg or pyproject.toml [tool.mutmut]\n[mutmut]\npaths_to_mutate=src\u002F\nbackup=False\nrunner=python -m pytest -x\ntests_dir=tests\u002F\ndict_synonyms=Struct, NamedStruct\n```\n\n## Example: Weak vs Strong Tests\n\n```python\n# src\u002Fvalidators.py\ndef is_valid_order(order: dict) -> bool:\n    if not order:\n        return False\n    if not order.get(\"items\"):\n        return False\n    if order.get(\"total\", 0) \u003C= 0:\n        return False\n    return True\n\ndef calculate_discount(total: float, tier: str) -> float:\n    if tier == \"gold\":\n        return total * 0.2\n    elif tier == \"silver\":\n        return total * 0.1\n    return 0.0\n```\n\n```python\n# ❌ Weak tests - mutations survive\ndef test_order_basic():\n    order = {\"items\": [\"a\"], \"total\": 10}\n    assert is_valid_order(order) == True  # Only tests happy path\n\n# ✅ Strong tests - kill mutations\ndef test_order_null():\n    assert is_valid_order(None) == False\n    assert is_valid_order({}) == False\n\ndef test_order_empty_items():\n    assert is_valid_order({\"items\": [], \"total\": 10}) == False\n\ndef test_order_zero_total():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": 0}) == False\n\ndef test_order_negative_total():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": -5}) == False\n\ndef test_order_valid():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": 10}) == True\n\ndef test_discount_gold():\n    assert calculate_discount(100, \"gold\") == 20.0\n\ndef test_discount_silver():\n    assert calculate_discount(100, \"silver\") == 10.0\n\ndef test_discount_none():\n    assert calculate_discount(100, \"bronze\") == 0.0\n```\n\n## Common Mutation Operators\n\n| Original | Mutations |\n|----------|-----------|\n| `>` | `>=`, `\u003C`, `==` |\n| `\u003C` | `\u003C=`, `>`, `==` |\n| `==` | `!=` |\n| `and` | `or` |\n| `+` | `-` |\n| `return True` | `return False` |\n| `return x` | `return x + 1` |\n\n## Improving Mutation Score\n\nWhen a mutant survives, add tests for:\n\n1. **Boundary conditions**: Test at exact threshold values\n2. **Return values**: Verify actual results, not just truthiness\n3. **All branches**: Cover each conditional path\n4. **Edge cases**: Empty, None, negative, zero\n\n```python\n# Mutant survives: >= changed to >\ndef is_adult(age: int) -> bool:\n    return age >= 18\n\n# ❌ Weak: age=25 won't catch >= to > mutation\ndef test_adult_weak():\n    assert is_adult(25) == True\n\n# ✅ Strong: tests boundary\ndef test_adult_exactly_18():\n    assert is_adult(18) == True\n\ndef test_not_adult_17():\n    assert is_adult(17) == False\n```\n\n## CI Integration\n\n```yaml\n# .github\u002Fworkflows\u002Fmutation.yml\nname: Mutation Testing\non:\n  pull_request:\n    paths: ['src\u002F**']\n\njobs:\n  mutation:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: '3.10'\n      - run: pip install mutmut pytest\n      - run: mutmut run --CI\n      - run: mutmut results\n```\n\n## Best Practices\n\n- Target critical business logic, not all code\n- Aim for 80%+ mutation score on important modules\n- Review survived mutants to improve tests\n- Test boundaries and edge cases thoroughly\n- Verify actual values, not just code execution\n","# Mutation Testing with mutmut\n\nMutation testing assesses test suite quality by introducing small changes (mutations) to source code and verifying that tests fail. If tests don't catch a mutation, it indicates gaps in test coverage or quality.\n\n## Key Concepts\n\n- **Mutant**: Modified version of code with small change\n- **Killed**: Test fails when mutation introduced (good)\n- **Survived**: Test passes despite mutation (test gap)\n- **Mutation Score**: Percentage of mutants killed\n\n## Quick Start\n\n```bash\n# Install\npip install mutmut\n\n# Run mutation testing\nmutmut run\n\n# View results\nmutmut results\n\n# Inspect specific mutant\nmutmut show 1\n\n# Apply mutation to see the change\nmutmut apply 1\n\n# Reset applied mutations\nmutmut apply 0\n```\n\n## Configuration\n\n```ini\n# setup.cfg or pyproject.toml [tool.mutmut]\n[mutmut]\npaths_to_mutate=src\u002F\nbackup=False\nrunner=python -m pytest -x\ntests_dir=tests\u002F\ndict_synonyms=Struct, NamedStruct\n```\n\n## Example: Weak vs Strong Tests\n\n```python\n# src\u002Fvalidators.py\ndef is_valid_order(order: dict) -> bool:\n    if not order:\n        return False\n    if not order.get(\"items\"):\n        return False\n    if order.get(\"total\", 0) \u003C= 0:\n        return False\n    return True\n\ndef calculate_discount(total: float, tier: str) -> float:\n    if tier == \"gold\":\n        return total * 0.2\n    elif tier == \"silver\":\n        return total * 0.1\n    return 0.0\n```\n\n```python\n# ❌ Weak tests - mutations survive\ndef test_order_basic():\n    order = {\"items\": [\"a\"], \"total\": 10}\n    assert is_valid_order(order) == True  # Only tests happy path\n\n# ✅ Strong tests - kill mutations\ndef test_order_null():\n    assert is_valid_order(None) == False\n    assert is_valid_order({}) == False\n\ndef test_order_empty_items():\n    assert is_valid_order({\"items\": [], \"total\": 10}) == False\n\ndef test_order_zero_total():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": 0}) == False\n\ndef test_order_negative_total():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": -5}) == False\n\ndef test_order_valid():\n    assert is_valid_order({\"items\": [\"a\"], \"total\": 10}) == True\n\ndef test_discount_gold():\n    assert calculate_discount(100, \"gold\") == 20.0\n\ndef test_discount_silver():\n    assert calculate_discount(100, \"silver\") == 10.0\n\ndef test_discount_none():\n    assert calculate_discount(100, \"bronze\") == 0.0\n```\n\n## Common Mutation Operators\n\n| Original | Mutations |\n|----------|-----------|\n| `>` | `>=`, `\u003C`, `==` |\n| `\u003C` | `\u003C=`, `>`, `==` |\n| `==` | `!=` |\n| `and` | `or` |\n| `+` | `-` |\n| `return True` | `return False` |\n| `return x` | `return x + 1` |\n\n## Improving Mutation Score\n\nWhen a mutant survives, add tests for:\n\n1. **Boundary conditions**: Test at exact threshold values\n2. **Return values**: Verify actual results, not just truthiness\n3. **All branches**: Cover each conditional path\n4. **Edge cases**: Empty, None, negative, zero\n\n```python\n# Mutant survives: >= changed to >\ndef is_adult(age: int) -> bool:\n    return age >= 18\n\n# ❌ Weak: age=25 won't catch >= to > mutation\ndef test_adult_weak():\n    assert is_adult(25) == True\n\n# ✅ Strong: tests boundary\ndef test_adult_exactly_18():\n    assert is_adult(18) == True\n\ndef test_not_adult_17():\n    assert is_adult(17) == False\n```\n\n## CI Integration\n\n```yaml\n# .github\u002Fworkflows\u002Fmutation.yml\nname: Mutation Testing\non:\n  pull_request:\n    paths: ['src\u002F**']\n\njobs:\n  mutation:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: '3.10'\n      - run: pip install mutmut pytest\n      - run: mutmut run --CI\n      - run: mutmut results\n```\n\n## Best Practices\n\n- Target critical business logic, not all code\n- Aim for 80%+ mutation score on important modules\n- Review survived mutants to improve tests\n- Test boundaries and edge cases thoroughly\n- Verify actual values, not just code execution\n",{"name":5,"description":7},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fjaredmcfarland__mixpanel_data__.claude__skills__mutation-testing","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add shenyimings\u002Fskillet --skill mutation-testing",{"tool":38,"command":39},"bunx","bunx skills add shenyimings\u002Fskillet --skill mutation-testing",{"tool":41,"command":42},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill mutation-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fjaredmcfarland__mixpanel_data__.claude__skills__mutation-testing\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]