[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ERJWV4GKM42Z298ME9FTHP":3,"skill-same:01M7ERJWV4GKM42Z298ME9FTHP":67},{"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},"01M7ERJWV4GKM42Z298ME9FTHP","hld-trace",null,"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.","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\u002Fskills\u002Fhld-trace\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hld-trace\ndescription: 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.\n---\n\n# HLD trace\n\nRequirements get IDs, tests cite them, and `code-jig trace` checks the links deterministically. Judging whether a test really proves its requirement stays with you.\n\n## 1. Get the requirement IDs\n\nWrite them to a file, one per line, or as JSON (a list of IDs, or objects with an `id` field).\n\nBefore any `az` command below, check that `az` exists (`command -v az`; PowerShell: `Get-Command az`) and is logged in (`az account show`), that the `azure-devops` extension is there (`az extension show --name azure-devops`), and that defaults are set (`az devops configure --list`). Before any `gh` command, check `command -v gh` (PowerShell: `Get-Command gh`) and `gh auth status`. Logging in is interactive, so never run `az login` or `gh auth login` yourself: ask the user to run it in their own terminal, then check again. Ask before `az extension add --name azure-devops` and before `az devops configure --defaults organization=\u003Curl> project=\u003Cname>`.\n\n- Azure DevOps work items (child items of a feature or epic):\n\n  ```\n  az boards query --wiql \"SELECT [System.Id] FROM WorkItems WHERE [System.Parent] = 1234\" -o json > ids.json\n  ```\n\n- Azure DevOps wiki, when the HLD page lists IDs such as `REQ-12`:\n\n  ```\n  az devops wiki page show --wiki \u003Cwiki> --path \"\u002FDesign\u002FLogin\" --include-content --query page.content -o tsv > hld.md\n  grep -oE \"REQ-[0-9]+\" hld.md | sort -u > ids.txt\n  ```\n\n  PowerShell: `Select-String -Path hld.md -Pattern \"REQ-\\d+\" -AllMatches | ForEach-Object { $_.Matches.Value } | Sort-Object -Unique > ids.txt`.\n\n- GitHub issues: `gh issue list --label requirement --json number --jq \".[].number\" > ids.txt` (`--jq` is built into `gh`, so the line is the same in PowerShell).\n- A Markdown HLD in the repo: the same `grep` as the wiki case.\n\nWhen `az` or `gh` is missing, or the user cannot log in, do not install anything: ask the user to paste the IDs or export the page (a work item query saved as CSV or JSON, the wiki page as Markdown, `gh issue list` output), and turn it into the ID file above before tracing: a CSV export becomes one ID per line with `python3 -c \"import csv,sys; [print(r['ID']) for r in csv.DictReader(open(sys.argv[1], encoding='utf-8-sig'))]\" export.csv > ids.txt` (PowerShell: `Import-Csv export.csv | ForEach-Object { $_.ID } > ids.txt`), using the export's ID column name; Markdown gets the same `grep` as the wiki case.\n\n## 2. Tag the tests\n\nFor each requirement, search the test files for the names it uses (endpoint, function, field, error message) with `rg -i` (`grep -rni` where `rg` is missing; PowerShell: `Select-String`), read the matching tests, and add the requirement's tag to those whose assertions check it, in the form the framework below uses; tests written in step 4 get the tag as they are written. Default tag: `REQ-\u003Cid>`, anywhere in a test file, case-insensitive.\n\n| Framework | Example |\n|---|---|\n| xUnit | `[Trait(\"Requirement\", \"REQ-1234\")]` |\n| NUnit | `[Property(\"Requirement\", \"REQ-1234\")]` |\n| MSTest | `[TestProperty(\"Requirement\", \"REQ-1234\")]` |\n| Jest, Vitest | `it(\"REQ-1234 rejects an expired token\", ...)` |\n| pytest | `@pytest.mark.req(\"REQ-1234\")`, with the `req` marker registered in the pytest config |\n\nTeams that already write Azure Boards links in tests can keep them: `--pattern \"AB#{id}\"`. The pattern is literal text with one `{id}` placeholder.\n\n## 3. Run the trace\n\n```\ncode-jig trace ids.txt                     # or ids.json, or - for stdin\ncode-jig trace ids.txt --path services\u002Fapi\ncode-jig trace ids.txt --pattern \"AB#{id}\" --json\n```\n\nIt reads test files that git tracks or would track (`tests\u002F`, `__tests__\u002F`, `*.test.ts`, `test_*.py`, `*Tests.cs`, `*.Tests\u002F` projects and similar) and reports requirements with tests, `missing` requirements, and `unknown` IDs that tests cite but the list does not contain. Exit 0 when nothing is missing or unknown, 1 otherwise, 2 for unusable input.\n\n## 4. Close the gaps\n\n- Missing: write the test (the `regression-tests` skill), tagged.\n- Unknown: the requirement was renamed or removed, or the tag has a typo. Ask before deleting a test.\n- Covered: read each requirement next to its tests and confirm the assertions prove it. A tag on a test that checks something else is worse than no tag.\n- After changing any test or tag, rerun step 3 so the report uses current results.\n\n## 5. Report\n\nOne table: each requirement ID, `covered`, `missing` or `unknown`, the test files that cite it, and for covered ones whether the assertions prove it. List the tests tagged, the tests written, and any deletion still waiting for the user. Commit nothing; the user reviews the diff.\n","# HLD trace\n\nRequirements get IDs, tests cite them, and `code-jig trace` checks the links deterministically. Judging whether a test really proves its requirement stays with you.\n\n## 1. Get the requirement IDs\n\nWrite them to a file, one per line, or as JSON (a list of IDs, or objects with an `id` field).\n\nBefore any `az` command below, check that `az` exists (`command -v az`; PowerShell: `Get-Command az`) and is logged in (`az account show`), that the `azure-devops` extension is there (`az extension show --name azure-devops`), and that defaults are set (`az devops configure --list`). Before any `gh` command, check `command -v gh` (PowerShell: `Get-Command gh`) and `gh auth status`. Logging in is interactive, so never run `az login` or `gh auth login` yourself: ask the user to run it in their own terminal, then check again. Ask before `az extension add --name azure-devops` and before `az devops configure --defaults organization=\u003Curl> project=\u003Cname>`.\n\n- Azure DevOps work items (child items of a feature or epic):\n\n  ```\n  az boards query --wiql \"SELECT [System.Id] FROM WorkItems WHERE [System.Parent] = 1234\" -o json > ids.json\n  ```\n\n- Azure DevOps wiki, when the HLD page lists IDs such as `REQ-12`:\n\n  ```\n  az devops wiki page show --wiki \u003Cwiki> --path \"\u002FDesign\u002FLogin\" --include-content --query page.content -o tsv > hld.md\n  grep -oE \"REQ-[0-9]+\" hld.md | sort -u > ids.txt\n  ```\n\n  PowerShell: `Select-String -Path hld.md -Pattern \"REQ-\\d+\" -AllMatches | ForEach-Object { $_.Matches.Value } | Sort-Object -Unique > ids.txt`.\n\n- GitHub issues: `gh issue list --label requirement --json number --jq \".[].number\" > ids.txt` (`--jq` is built into `gh`, so the line is the same in PowerShell).\n- A Markdown HLD in the repo: the same `grep` as the wiki case.\n\nWhen `az` or `gh` is missing, or the user cannot log in, do not install anything: ask the user to paste the IDs or export the page (a work item query saved as CSV or JSON, the wiki page as Markdown, `gh issue list` output), and turn it into the ID file above before tracing: a CSV export becomes one ID per line with `python3 -c \"import csv,sys; [print(r['ID']) for r in csv.DictReader(open(sys.argv[1], encoding='utf-8-sig'))]\" export.csv > ids.txt` (PowerShell: `Import-Csv export.csv | ForEach-Object { $_.ID } > ids.txt`), using the export's ID column name; Markdown gets the same `grep` as the wiki case.\n\n## 2. Tag the tests\n\nFor each requirement, search the test files for the names it uses (endpoint, function, field, error message) with `rg -i` (`grep -rni` where `rg` is missing; PowerShell: `Select-String`), read the matching tests, and add the requirement's tag to those whose assertions check it, in the form the framework below uses; tests written in step 4 get the tag as they are written. Default tag: `REQ-\u003Cid>`, anywhere in a test file, case-insensitive.\n\n| Framework | Example |\n|---|---|\n| xUnit | `[Trait(\"Requirement\", \"REQ-1234\")]` |\n| NUnit | `[Property(\"Requirement\", \"REQ-1234\")]` |\n| MSTest | `[TestProperty(\"Requirement\", \"REQ-1234\")]` |\n| Jest, Vitest | `it(\"REQ-1234 rejects an expired token\", ...)` |\n| pytest | `@pytest.mark.req(\"REQ-1234\")`, with the `req` marker registered in the pytest config |\n\nTeams that already write Azure Boards links in tests can keep them: `--pattern \"AB#{id}\"`. The pattern is literal text with one `{id}` placeholder.\n\n## 3. Run the trace\n\n```\ncode-jig trace ids.txt                     # or ids.json, or - for stdin\ncode-jig trace ids.txt --path services\u002Fapi\ncode-jig trace ids.txt --pattern \"AB#{id}\" --json\n```\n\nIt reads test files that git tracks or would track (`tests\u002F`, `__tests__\u002F`, `*.test.ts`, `test_*.py`, `*Tests.cs`, `*.Tests\u002F` projects and similar) and reports requirements with tests, `missing` requirements, and `unknown` IDs that tests cite but the list does not contain. Exit 0 when nothing is missing or unknown, 1 otherwise, 2 for unusable input.\n\n## 4. Close the gaps\n\n- Missing: write the test (the `regression-tests` skill), tagged.\n- Unknown: the requirement was renamed or removed, or the tag has a typo. Ask before deleting a test.\n- Covered: read each requirement next to its tests and confirm the assertions prove it. A tag on a test that checks something else is worse than no tag.\n- After changing any test or tag, rerun step 3 so the report uses current results.\n\n## 5. Report\n\nOne table: each requirement ID, `covered`, `missing` or `unknown`, the test files that cite it, and for covered ones whether the assertions prove it. List the tests tagged, the tests written, and any deletion still waiting for the user. Commit nothing; the user reviews the diff.\n",{"name":5,"description":7},"main","a2dc094fb6f0ff71b419eb83322592dc2205a886","skills\u002Fhld-trace","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 hld-trace",{"tool":37,"command":38},"bunx","bunx skills add jeancarlos\u002Fcode-jig --skill hld-trace",{"tool":40,"command":41},"pnpm","pnpm dlx skills add jeancarlos\u002Fcode-jig --skill hld-trace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Fskills\u002Fhld-trace\u002FSKILL.md",true,[45,51,55,61],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},".skill-check","OTHER","其他",260,"https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Fskills\u002Fhld-trace\u002F.skill-check",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"evals.toml",153,"https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Fskills\u002Fhld-trace\u002Fevals.toml",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"evals\u002Frepo\u002Fdesign.md","REFERENCE","参考文档",78,"https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Fskills\u002Fhld-trace\u002Fevals\u002Frepo\u002Fdesign.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002Frepo\u002Ftest_login.py","SCRIPT","脚本",130,"https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Fskills\u002Fhld-trace\u002Fevals\u002Frepo\u002Ftest_login.py",[68,75,82,89,96,103],{"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},"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":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},"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":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},"01M7ERPZ4AKH7RW86WJAV07N05","regression-tests","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.","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fregression-tests\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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":104,"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":105,"categories":106,"keywords":107,"publishedAt":19},"01M7ERPNXES66J7MJSP8W8A61X","https:\u002F\u002Fgithub.com\u002Fjeancarlos\u002Fcode-jig\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fpersonal\u002Fskills\u002Fhld-trace\u002FSKILL.md",[],[]]