Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/deepklarity/harness-kitnpx agentmods add skills/deepklarity/harness-kit/hk-local-diagnoseWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/deepklarity/harness-kit/hk-local-diagnose)<a href="https://agentmods.dev/skills/deepklarity/harness-kit/hk-local-diagnose"><img src="https://agentmods.dev/badge/skills/deepklarity/harness-kit/hk-local-diagnose/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/deepklarity/harness-kit/hk-local-diagnose"><img src="https://agentmods.dev/badge/skills/deepklarity/harness-kit/hk-local-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.00893 |
| Opus 5 | $0.00056 | $0.00447 |
| Sonnet 5 | $0.00023 | $0.00179 |
| Haiku 4.5 | $0.00011 | $0.00089 |
Grade A, and why
hk-local-diagnose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/hk-local-diagnose — Diagnostic Script Runner
Run the right diagnostic script with the right flags, from the right directory. No more remembering paths or cd-ing around.
Usage
/hk-local-diagnose task 42
/hk-local-diagnose task 42 --brief
/hk-local-diagnose spec 15 --json --sections tasks,problems
/hk-local-diagnose board
/hk-local-diagnose board 3
/hk-local-diagnose reflection 8 --full
/hk-local-diagnose snapshot sp25 ../../tests/e2e_snapshots/smoke
Arguments
Parse $ARGUMENTS to extract:
- type (required):
task,spec,board,reflection, orsnapshot - id (required for all except
board): the numeric ID or spec prefix - flags (optional):
--brief,--full,--json,--slim,--sections <list>
If no flags are provided, default to --brief — this is the token-efficient choice for LLM consumption. The user can always ask for --full if they need more.
Script mapping
| Type | Script | Required args |
|---|---|---|
task |
task_inspect.py <id> |
id |
spec |
spec_trace.py <id> |
id |
board |
board_overview.py [id] |
id optional |
reflection |
reflection_inspect.py <id> |
id |
snapshot |
snapshot_extractor.py <id> <output_dir> |
id + output_dir |
Execution
All scripts run from the taskit/taskit-backend/ directory. The working directory for execution is always:
REPO_ROOT/taskit/taskit-backend/
Where REPO_ROOT is the git repository root (find it with git rev-parse --show-toplevel).
Step 1: Resolve the repo root
REPO_ROOT=$(git rev-parse --show-toplevel)
Step 2: Build and run the command
cd "$REPO_ROOT/taskit/taskit-backend" && python testing_tools/<script> <id> [flags]
Pass through any --brief, --full, --json, --slim, or --sections flags directly to the script.
Step 3: Display the output
Print the script output directly. Do not summarize or interpret — the scripts already produce well-structured output with problem detection built in.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 90 lines · 113 tokens per session scan A 73330c6532f8
hk-local-diagnose is a skill published in the GitHub repository deepklarity/harness-kit (97 stars, last pushed 1mo ago), licensed MIT. It adds 113 tokens to every session and 893 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
neuron-debugger
Debug and monitor Neuron AI applications with Inspector APM, event observability, logging, and performance analysis. Use this skill whenever the user mentions debugging, monitoring, observability, performance analysis, tracing, Inspector, or needs to understand why an agent is behaving a certain way. Also trigger for…
diag-harness
Kernel-version skew check (ADR-027). Reports manifest surface + manifest kernel + installed kernel + verdict (match/patch-diff/minor-diff/major-diff). Exits 1 on minor/major skew with a copy-pasteable npm install @metaharness/[email protected] next step. Exits 2 if no .harness/manifest.json at path.
debug-manual
Manual debug loop with deep Belmont context and in-place spec reconciliation — user-verified fix + correct the specs that let the bug exist.
debug-auto
Auto debug loop — investigate, fix, verify using agent-dispatched pipeline.
debug
Debug router — choose between auto (agent-verified, narrow code fix) and manual (user-verified, deep spec context, in-place spec reconciliation).
neuron-debugger
Debug and monitor Neuron AI applications with Inspector APM, event observability, logging, and performance analysis. Use this skill whenever the user mentions debugging, monitoring, observability, performance analysis, tracing, Inspector, or needs to understand why an agent is behaving a certain way. Also trigger for…