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
Chalk Labs
Need help deploying hld-trace?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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-cbe260
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: not checked yet.
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
- 65 lines in SKILL.md · view on GitHub
Files (2)
- .codex-harness
- SKILL.md
SKILL.md (first lines)
# HLD trace
Requirements get IDs, tests cite them, and `harness 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
```
harness trace ids.txt # or ids.json, or - for stdin
harness trace ids.txt --path services/api
harness 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.
## 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
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.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
hld-trace
jeancarlos
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…
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.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 - 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
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Oct 16, 2026 (16 days ago)
- Last release
- Oct 20, 2026 (12 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
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.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
hld-trace
jeancarlos
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…
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
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get hld-trace running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
hld-trace skill. Agent Mart. https://agentmart.dev/skills/jeancarlos-hld-trace-cbe260 (last updated 2026-10-24)