.claude/skills/harness/SKILL.md
Manage the autonomous coding harness — initialize tasks, check progress, or generate a feature list for long-running work.
npx skillsauth add henderni/minecraft-mega-knights harnessInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You manage the autonomous coding harness for Mega Knights. The harness enables Claude Code to work across multiple sessions on a prioritized task list.
.claude/feature_list.json — source of truth for all tasks (v2 schema).claude/progress.txt — append-only session history.claude/prompts/initializer_prompt.md, .claude/prompts/coding_prompt.md.claude/analyze-harness.py — post-run metrics and recommendations.claude/harness-progress.py — stream-json to stderr progress displayharness.sh — multi-session orchestrator/harness initAnalyze the codebase and generate (or regenerate) .claude/feature_list.json:
/harness statusRun the status renderer script, then append the last session entry from the progress log:
python3 .claude/harness-status.py
The script renders a fully ANSI-colored status display with:
# — task ID (right-aligned with # prefix)✓ (green) = done, ○ (yellow) = todoHi bold-red / Md bold-yellow / Lo greenS green / M yellow / L red / XL bold-redfunc / test / perf / cont / pol… suffix; done rows are dimmedAfter running the script, print the last session block from .claude/progress.txt (the text after the last === Session or === Initializer header through the next === closing line).
/harness add <description>Add a new task to feature_list.json:
target_files by exploring the codebasetest_file if applicablerelated_to IDs by checking for shared target_files with existing tasks"passes": false/harness analyzeRun post-run analytics on the most recent harness sessions:
python3 .claude/analyze-harness.py
Or for a specific date: python3 .claude/analyze-harness.py --date YYYY-MM-DD
[
{
"id": 1,
"category": "functional",
"priority": "high",
"complexity": "M",
"description": "What needs to be done",
"target_files": ["src/systems/Foo.ts", "src/data/Bar.ts"],
"test_file": "src/__tests__/foo.test.ts",
"related_to": [2, 3],
"verification": [
{ "type": "source_contains", "file": "src/data/Bar.ts", "pattern": "EXPECTED" },
{ "type": "build_passes" },
{ "type": "all_tests_pass" }
],
"passes": false
}
]
| Field | Description |
|-------|-------------|
| complexity | S (1-2 files, <30min), M (2-5 files, 30-90min), L (5+ files, 90+min) |
| target_files | Key files to read before starting work (1-5 files) |
| test_file | Expected test file path, or null |
| related_to | IDs of tasks sharing files/features — batched in same session |
| Type | Fields | Checks |
|------|--------|--------|
| source_contains | file, pattern | File contains pattern |
| source_not_contains | file, pattern | File does NOT contain pattern |
| test_file_exists | file | Test file exists |
| test_passes | file | Specific test file passes |
| build_passes | — | npm run build succeeds |
| all_tests_pass | — | npm run test:run passes |
The harness runs Claude Code headlessly in a loop:
# Default: 10 sessions, opus model
./harness.sh
# Initialize first, then run 5 sessions
./harness.sh --init --sessions 5
# Use sonnet for faster/cheaper iteration on S-complexity tasks
./harness.sh --model sonnet --sessions 20
# Continue the last session
./harness.sh --continue
After a run completes, analyze efficiency:
python3 .claude/analyze-harness.py --save
"passes" from false to true after ALL verification steps passtesting
Capture learnings from the current session and update CLAUDE.md and MEMORY.md. Use after significant work sessions, architectural decisions, or when new patterns/conventions are established.
testing
Save a snapshot of the current working context (what you're doing, key decisions, open questions) to a file that can be loaded in a future session. Use before long breaks, when context is getting large, or before /clear.
development
Write and run tests for changed or specified code. Use when the user says /qa, asks for tests, or wants to validate recent changes. Runs the QA agent in a forked context.
tools
Scaffold a complete new Mega Knights item. Creates all required files: BP item JSON, item_texture.json registration, and lang entries in both packs. Use when the user wants to add a new tool, scroll, token, or other custom item to the add-on.