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…
Skill by jeancarlos
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jeancarlos-hld-trace
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hld-trace
What's inside
- Skill name
hld-trace- Description
- 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.
- License
- Apache-2.0
- Instructions
- 66 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- .skill-check
- SKILL.md
- evals.toml
- design.md · evals/repo/
- test_login.py · evals/repo/
SKILL.md (first lines)
# HLD trace
Requirements get IDs, tests cite them, and `code-jig trace` checks the links deterministically. Judging whether a test really proves its requirement stays with you.
## 1. Get the requirement IDs
Write them to a file, one per line, or as JSON (a list of IDs, or objects with an `id` field).
Before 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=<url> project=<name>`.
- Azure DevOps work items (child items of a feature or epic):
```
az boards query --wiql "SELECT [System.Id] FROM WorkItems WHERE [System.Parent] = 1234" -o json > ids.json
```
- Azure DevOps wiki, when the HLD page lists IDs such as `REQ-12`:
```
az devops wiki page show --wiki <wiki> --path "/Design/Login" --include-content --query page.content -o tsv > hld.md
grep -oE "REQ-[0-9]+" hld.md | sort -u > ids.txt
```
PowerShell: `Select-String -Path hld.md -Pattern "REQ-\d+" -AllMatches | ForEach-Object { $_.Matches.Value } | Sort-Object -Unique > ids.txt`.
- 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).
- A Markdown HLD in the repo: the same `grep` as the wiki case.
When `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.
## 2. Tag the tests
For 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-<id>`, anywhere in a test file, case-insensitive.
| Framework | Example |
|---|---|
| xUnit | `[Trait("Requirement", "REQ-1234")]` |
| NUnit | `[Property("Requirement", "REQ-1234")]` |
| MSTest | `[TestProperty("Requirement", "REQ-1234")]` |
| Jest, Vitest | `it("REQ-1234 rejects an expired token", ...)` |
| pytest | `@pytest.mark.req("REQ-1234")`, with the `req` marker registered in the pytest config |
Teams that already write Azure Boards links in tests can keep them: `--pattern "AB#{id}"`. The pattern is literal text with one `{id}` placeholder.
## 3. Run the trace
```
code-jig trace ids.txt # or ids.json, or - for stdin
code-jig trace ids.txt --path services/api
code-jig trace ids.txt --pattern "AB#{id}" --json
```
It reads test files that git tracks or would track (`tests/`, `__tests__/`, `*.test.ts`, `test_*.py`, `*Tests.cs`, `*.Tests/` 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.
## 4. Close the gaps
- Missing: write the test (the `regression-tests` skill), tagged.
- Unknown: the requirement was renamed or removed, or the tag has a typo. Ask before deleting a test.
- 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.
- After changing any test or tag, rerun step 3 so the report uses current results.
## 5. Report
One 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.From jeancarlos/code-jig, Apache-2.0.
More from jeancarlos/code-jig
- 0.565score
web-consensus
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.565score
cross-review
jeancarlos
Use when a plan, design, document or diff would benefit from a review by a model from a different family before it is committed, or when the user asks for a…
SkillAFreshness: AClaude Code +9 - 0.565score
redacao
jeancarlos
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"…
SkillAFreshness: AClaude Code +9 - 0.565score
regression-tests
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.565score
skill-validate
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.539score
code-analysis
jeancarlos
Use when the user asks to analyse code quality, find bugs, code smells, complexity, duplication, security issues, leaked secrets or vulnerable dependencies…
SkillAFreshness: AClaude Code +9 - 0.539score
improve
jeancarlos
Use when the user asks to improve code-jig, its rules, Guardian policy, skills or knowledge from experience on this machine, or says "remember this for next…
SkillAFreshness: AClaude Code +9 - 0.539score
codegen
jeancarlos
Use when the user asks to generate an API client or server stubs from an OpenAPI spec, scaffold a project or component, or apply the same mechanical change…
SkillAFreshness: AClaude Code +9 - 0.539score
improve
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.539score
bug-hunt
jeancarlos
Use when the user asks to hunt for bugs nobody reported, audit a codebase or a path for latent bugs and vulnerabilities, fuzz code, write property-based…
SkillAFreshness: AClaude Code +9 - 0.539score
grilling
jeancarlos
Use when the user wants a plan, decision, design or idea stress-tested before committing to it, or says "grill me", "grill this", "stress-test this", "poke…
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Oct 18, 2026 (11 days ago)
- Last release
- Oct 20, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/jeancarlos/code-jig
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from jeancarlos
- 0.565score
web-consensus
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.565score
cross-review
jeancarlos
Use when a plan, design, document or diff would benefit from a review by a model from a different family before it is committed, or when the user asks for a…
SkillAFreshness: AClaude Code +9 - 0.565score
redacao
jeancarlos
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"…
SkillAFreshness: AClaude Code +9 - 0.565score
regression-tests
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.565score
skill-validate
jeancarlos
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…
SkillAFreshness: AClaude Code +9 - 0.539score
code-analysis
jeancarlos
Use when the user asks to analyse code quality, find bugs, code smells, complexity, duplication, security issues, leaked secrets or vulnerable dependencies…
SkillAFreshness: AClaude Code +9
Cite this page
hld-trace skill. Agent Mart. https://agentmart.dev/skills/jeancarlos-hld-trace (last updated 2026-10-24)