[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ERNPHE6N5S3NHDAPKKSA5K":3,"skill-same:01M7ERNPHE6N5S3NHDAPKKSA5K":51},{"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":6,"updatedAt":30,"install":31,"resources":44},"01M7ERNPHE6N5S3NHDAPKKSA5K","regression-tests",null,"Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants regression tests, or wants coverage of the changed lines.","jeancarlos\u002Fcode-jig","jeancarlos","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F713484?v=4","01M7ERGYQQEYJTXG5GXDY9SZVZ","Jean Souza","01M7ERGYRCBCN8GKJFCGEKQ2M1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fenterprise\u002Fskills\u002Fregression-tests\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: regression-tests\ndescription: Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants regression tests, or wants coverage of the changed lines.\n---\n\n# Regression tests\n\nEvery behaviour change ships with a test that fails without the change and passes with it.\n\n## Bug fix\n\n1. Write the smallest test that reproduces the bug through the public interface.\n2. Run it and watch it fail for the reason in the bug report, not for a typo or a missing import.\n3. Fix the code, not the test.\n4. Run the test, then the whole suite.\n\n## New or changed behaviour\n\nWrite the test first, watch it fail, implement, watch it pass. When the change comes from a requirement, tag the test with its ID (see the `hld-trace` skill).\n\n## Follow the repo\n\nPut tests where the repo already keeps them, with its framework, naming and fixtures. Do not add a test framework the repo does not use.\n\n## Coverage of the changed lines\n\n[diff-cover](https:\u002F\u002Fgithub.com\u002FBachmann1234\u002Fdiff_cover) reads a Cobertura XML report and lists the changed lines no test executes. Install it with `pip install diff-cover`.\n\n| Stack | Produce `coverage.xml` |\n|---|---|\n| Python | `coverage run -m pytest`, then `coverage xml` (in PowerShell 5.1, which has no `&&`: `coverage run -m pytest; coverage xml`) |\n| .NET | `DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet test --collect:\"XPlat Code Coverage\"` writes `TestResults\u002F*\u002Fcoverage.cobertura.xml` |\n| Node with c8 | `npx c8 --reporter=cobertura npm test` writes `coverage\u002Fcobertura-coverage.xml` |\n| Vitest | `npx vitest run --coverage --coverage.reporter=cobertura` writes `coverage\u002Fcobertura-coverage.xml` |\n| Jest | `npx jest --coverage --coverageReporters=cobertura` writes `coverage\u002Fcobertura-coverage.xml` |\n\nWindows PowerShell has no `NAME=value command` form: write the variable first in the same command, for example `$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'; dotnet test --collect:\"XPlat Code Coverage\"`.\n\nThen:\n\n```\ndiff-cover \u003Creport.xml> --compare-branch=origin\u002Fmain --include-untracked\n```\n\nPass several reports at once for a multi-stack repo. Every uncovered changed line is either covered by a new test or explained: generated code, logging, a branch that only a real outage reaches.\n\n## Is the test good enough\n\nA test that never fails proves nothing. For important logic, run mutation testing on the changed files (the `bug-hunt` skill): a surviving mutant is a regression the tests would miss.\n\n## Report\n\nName the test that failed before the change and passes after it, the full suite result, and each changed line diff-cover listed with the test that now covers it or the reason it stays uncovered.\n","# Regression tests\n\nEvery behaviour change ships with a test that fails without the change and passes with it.\n\n## Bug fix\n\n1. Write the smallest test that reproduces the bug through the public interface.\n2. Run it and watch it fail for the reason in the bug report, not for a typo or a missing import.\n3. Fix the code, not the test.\n4. Run the test, then the whole suite.\n\n## New or changed behaviour\n\nWrite the test first, watch it fail, implement, watch it pass. When the change comes from a requirement, tag the test with its ID (see the `hld-trace` skill).\n\n## Follow the repo\n\nPut tests where the repo already keeps them, with its framework, naming and fixtures. Do not add a test framework the repo does not use.\n\n## Coverage of the changed lines\n\n[diff-cover](https:\u002F\u002Fgithub.com\u002FBachmann1234\u002Fdiff_cover) reads a Cobertura XML report and lists the changed lines no test executes. Install it with `pip install diff-cover`.\n\n| Stack | Produce `coverage.xml` |\n|---|---|\n| Python | `coverage run -m pytest`, then `coverage xml` (in PowerShell 5.1, which has no `&&`: `coverage run -m pytest; coverage xml`) |\n| .NET | `DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet test --collect:\"XPlat Code Coverage\"` writes `TestResults\u002F*\u002Fcoverage.cobertura.xml` |\n| Node with c8 | `npx c8 --reporter=cobertura npm test` writes `coverage\u002Fcobertura-coverage.xml` |\n| Vitest | `npx vitest run --coverage --coverage.reporter=cobertura` writes `coverage\u002Fcobertura-coverage.xml` |\n| Jest | `npx jest --coverage --coverageReporters=cobertura` writes `coverage\u002Fcobertura-coverage.xml` |\n\nWindows PowerShell has no `NAME=value command` form: write the variable first in the same command, for example `$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'; dotnet test --collect:\"XPlat Code Coverage\"`.\n\nThen:\n\n```\ndiff-cover \u003Creport.xml> --compare-branch=origin\u002Fmain --include-untracked\n```\n\nPass several reports at once for a multi-stack repo. Every uncovered changed line is either covered by a new test or explained: generated code, logging, a branch that only a real outage reaches.\n\n## Is the test good enough\n\nA test that never fails proves nothing. For important logic, run mutation testing on the changed files (the `bug-hunt` skill): a surviving mutant is a regression the tests would miss.\n\n## Report\n\nName the test that failed before the change and passes after it, the full suite result, and each changed line diff-cover listed with the test that now covers it or the reason it stays uncovered.\n",{"name":5,"description":7},"main","a2dc094fb6f0ff71b419eb83322592dc2205a886","tests\u002Ffixtures\u002Fgolden\u002Fenterprise\u002Fskills\u002Fregression-tests","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig","https:\u002F\u002Fgithub.com\u002Fjeancarlos","jeansouza.dev","2026-11-14 06:47:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add jeancarlos\u002Fcode-jig --skill regression-tests",{"tool":37,"command":38},"bunx","bunx skills add jeancarlos\u002Fcode-jig --skill regression-tests",{"tool":40,"command":41},"pnpm","pnpm dlx skills add jeancarlos\u002Fcode-jig --skill regression-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fenterprise\u002Fskills\u002Fregression-tests\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},".codex-harness","OTHER","其他",6,"https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fenterprise\u002Fskills\u002Fregression-tests\u002F.codex-harness",[52,59,66,71,78,85],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7ERQ66VWCGCJ3QC69ESMMK4","web-consensus","Use when a question has to be settled against the live web rather than from memory - researching a topic, proving or disproving a claim, checking whether something is still true, a sourced second opinion on a factual question - or when the user says \"research\", \"prove it\", \"with sources\", \"check if this is true\", \"still accurate?\".","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fweb-consensus\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7ERQ34BFPG2AZKND979D6MM","skill-validate","Use when a SKILL.md is about to ship or was just edited, when a skill is reviewed or audited, when a skill seems ignored, skipped or misread by agents, or when the user says \"validate this skill\", \"lint the skill\", \"check my skill\", \"is this skill any good\".","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fskill-validate\u002FSKILL.md",[],[],{"skillNo":67,"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":68,"categories":69,"keywords":70,"publishedAt":19},"01M7ERPZ4AKH7RW86WJAV07N05","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fregression-tests\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},"01M7ERPW6EKD7SA8CMTBFQB7D4","redacao","Use when writing, rewriting or editing a technical article or blog post in Portuguese, or when the user says \"escreve um artigo\", \"reescreve o post\", \"redação\", \"pauta\", \"revisa o texto\", \"tira a cara de IA\".","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fredacao\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},"01M7ERPRV0XHDWATDY4M9XMF5C","improve","Use when the user asks to improve the harness, its rules, Guardian policy, skills or knowledge from experience on this machine, or says \"remember this for next time\", \"make this a rule\", \"teach the harness\".","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fimprove\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7ERPNXES66J7MJSP8W8A61X","hld-trace","Use when the user asks whether the code follows the high-level design (HLD), which requirements have tests, which are untested, or wants tests linked to requirement or work item IDs.","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fhld-trace\u002FSKILL.md",[],[]]