Claude skill kit

From J4X-Security/K.I.T · View interactive version

Claude skill kit is an AI agent skill from the GitHub repository J4X-Security/K.I.T. Use KIT / Known Issue Triager when asked to ingest audit reports from local files or URLs, deduplicate findings into a canonical known-issues.json register, or check whether a newly reported issue is already known.

How to use this skill

Skill file

KIT / Known Issue Triager

Use this skill when the task is to consolidate prior audit findings into a single known-issues register or to decide whether a new issue is already covered by that register.

What This Skill Produces

When To Use The Script

Use the helper script whenever the task includes any of:

Prefer the staged workflow over manual synthesis because it downloads remote artifacts, extracts text from PDFs, and keeps the final JSON register aligned with the prepared source state.

Build Known Issues

For Claude-first extraction, use the staged workflow:

python3 claude-skill-kit/scripts/known_issues.py prepare-build \
  --input path/to/report-1.md \
  --input path/to/audits-folder \
  --input https://github.com/org/audit-repo/tree/main/reports \
  --merge-known known-issues.json \
  --state-file known-issues.json

Then:

  1. Read known-issues.json
  2. If existing_issues_snapshot is present, treat those as the current canonical register for extend mode
  3. For each prepared source, read the normalized text file path listed there
  4. Use Claude to fill source_results inside that same known-issues.json
  5. Then use Claude to deduplicate both:

into the final canonical_issues list inside that same known-issues.json

  1. Finalize:
python3 claude-skill-kit/scripts/known_issues.py finalize-build \
  --state-file known-issues.json \
  --output known-issues.json

To extend an existing register instead of rebuilding from scratch:

python3 claude-skill-kit/scripts/known_issues.py finalize-build \
  --state-file known-issues.json \
  --merge-known known-issues.json \
  --output known-issues.json

Behavior:

Check A New Issue

Use one of:

python3 claude-skill-kit/scripts/known_issues.py prepare-check \
  --known known-issues.json \
  --issue-file path/to/new-issue.md

Or:

python3 claude-skill-kit/scripts/known_issues.py prepare-check \
  --known known-issues.json \
  --issue-text "Unchecked return value in reward distributor can leave accounting inconsistent after external transfer failure."

Recommended staged check flow:

  1. Run prepare-check.
  2. Read the generated staged JSON.
  3. Read llm_contract and follow it exactly.
  4. Read report_text and identify the findings from that raw report text using the finding_extraction contract.
  5. For each finding, do one model judgment against the full known_issues list using the duplicate_check contract.
  6. If the host supports delegation and there are multiple findings, spawn one delegated worker per finding so the duplicate checks can run in parallel.
  7. Give each worker one finding, the full known_issues list, the duplicate_check contract, and the finding's 1-based index.
  8. Merge the worker outputs into one ordered result list sorted by finding_index.
  9. Return one verdict per finding using the required output schema from llm_contract.

Behavior:

Operating Rules

Expected Canonical Issue Fields

Each canonical issue should preserve:

Failure Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.