Premortem
joetawil7/first-pass
Run before writing or changing code for any feature, bug fix or refactor that touches data, jobs, money, outside services or user-facing behaviour.
Inspect and debug errors via logs across the harness-kit monorepo.
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install deepklarity/harness-kit hk-local-logs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/hk-local-logs .claude/skills/hk-local-logs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .claude/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install deepklarity/harness-kit hk-local-logs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/hk-local-logs .agents/skills/hk-local-logs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .agents/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install deepklarity/harness-kit hk-local-logs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/hk-local-logs .cursor/skills/hk-local-logs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .cursor/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/deepklarity/harness-kit.git --path .claude/skills/hk-local-logs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install deepklarity/harness-kit hk-local-logs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/hk-local-logs .gemini/skills/hk-local-logs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .gemini/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install deepklarity/harness-kit hk-local-logsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/hk-local-logs .github/skills/hk-local-logs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .github/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add deepklarity/harness-kit --skill hk-local-logs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install deepklarity/harness-kit hk-local-logs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deepklarity/harness-kit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/hk-local-logs .opencode/skills/hk-local-logs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hk-local-logs" agent skill from https://github.com/deepklarity/harness-kit/tree/main/.claude/skills/hk-local-logs into .opencode/skills/hk-local-logs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hk-local-logs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hk-local-logsInspect and debug errors via logs across the harness-kit monorepo.
Hk Local Logs is an agent skill from deepklarity/harness-kit. Inspect and debug errors via logs across the harness-kit monorepo. Reads the right log file based on the error layer — backend, frontend, celery, odin CLI, or odin task execution. Use this skill whenever someone mentions a 500 error, a stack trace, a crash, 'check the logs', 'what went wrong', a service not starting, celery task failures, or any runtime error. Also triggers on: 'getting 500', 'backend error', 'celery error', 'odin failed', 'check logs', 'tail logs', 'debug this error', or /hk-local-logs.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Background jobs, Debugging and Monorepo tooling. The repository describes itself as: A kit for building with AI agents and also the engineering patterns around it. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 87305cd. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadGrepFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitpythonpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hk Local Logs loads about 2.1k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 624 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, GrepAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from deepklarity/harness-kit at commit 87305cd, republished under its MIT licence (© deepklarity). 624 words, ~2,113 tokens.
.claude/skills/hk-local-logs/SKILL.md (or your agent's skills folder).Read the right log for the right problem, from the right place. No more guessing which of 5 log locations to check.
| Symptom | Log to check | Command |
|---|---|---|
| 500 error, API broken | Backend | /hk-local-logs backend |
| UI not loading, build error | Frontend | /hk-local-logs frontend |
| Task not executing, queue stuck | Celery | /hk-local-logs celery |
odin plan/odin exec failed | Odin | /hk-local-logs odin |
| Specific task execution trace | Task | /hk-local-logs task <id> |
| Migration error on startup | Backend | /hk-local-logs backend --search migrate |
| Don't know where the error is | Auto | /hk-local-logs (no args) |
Parse $ARGUMENTS to extract:
backend, frontend, celery, odin, or tasktask): task ID or prefix<pattern> (optional): grep for a pattern in the logIf no layer is specified, run auto-detect mode — check all logs for recent errors.
All paths are relative to REPO_ROOT (use git rev-parse --show-toplevel).
| Layer | File | Format | Notes |
|---|---|---|---|
| backend | .dev-logs/backend.log | Plain text | Django runserver stdout/stderr |
| frontend | .dev-logs/frontend.log | Plain text | Vite dev server output |
| celery | .dev-logs/celery.log | Plain text | Celery worker + beat |
| backend-app | taskit/taskit-backend/logs/taskit.log | Structured plain text | App-level logging, [timestamp] LEVEL [file:line] - msg |
| backend-detail | taskit/taskit-backend/logs/taskit_detail.log | Plain text | Full tracebacks (check here for exception details) |
| odin-runs | .odin/logs/run_*.jsonl (in working dir) | JSON lines | Structured orchestration log |
| odin-app | .odin/logs/odin.log (in working dir) | Plain text | Odin CLI logging |
| odin-detail | .odin/logs/odin_detail.log (in working dir) | Plain text | Full tracebacks from odin (odin logs debug) |
| task-output | .odin/logs/task_<id>.out (in working dir) | Plain text | Raw agent stdout for a task (odin logs <id> -f) |
REPO_ROOT=$(git rev-parse --show-toplevel)Odin logs live in the working directory where odin was run, not the repo root. The standard working dir is $REPO_ROOT/odin/temp_test_dir/. Check both.
Based on the layer argument:
backend (or auto-detect first choice for 500 errors)Check two locations — .dev-logs/backend.log has startup/crash output, taskit-backend/logs/taskit_detail.log has full tracebacks:
# Recent backend output (startup errors, migration failures)
tail -n $LINES "$REPO_ROOT/.dev-logs/backend.log"
# Full tracebacks from app logging (the real errors)
tail -n $LINES "$REPO_ROOT/taskit/taskit-backend/logs/taskit_detail.log"When debugging 500s: The taskit_detail.log has full exception tracebacks. The .dev-logs/backend.log has Django's console error output. Check both — the detail log is usually more informative.
Also check if the migration is current:
cd "$REPO_ROOT/taskit/taskit-backend" && python manage.py showmigrations tasks 2>&1 | grep '\[ \]'If unapplied migrations exist, that's likely the cause.
frontendtail -n $LINES "$REPO_ROOT/.dev-logs/frontend.log"Look for: TypeScript errors, Vite build failures, module resolution errors.
celerytail -n $LINES "$REPO_ROOT/.dev-logs/celery.log"Look for: Task exception, WorkerLostError, broker connection failures.
odinCheck the most recent structured run log:
# Find latest run log
ODIN_WD="$REPO_ROOT/odin/temp_test_dir"
LATEST=$(ls -t "$ODIN_WD/.odin/logs/run_"*.jsonl 2>/dev/null | head -1)
# Show structured entries (formatted)
if [ -n "$LATEST" ]; then
tail -n $LINES "$LATEST" | python3 -c "
import sys, json
for line in sys.stdin:
try:
e = json.loads(line.strip())
ts = e.get('timestamp','')[:19]
action = e.get('action','')
tid = (e.get('task_id','') or '')[:8]
agent = e.get('agent','')
dur = e.get('duration_ms','')
meta = e.get('metadata','')
print(f'{ts} {action:<20s} {tid:<10s} {agent:<8s} {dur}ms {meta}')
except: pass
"
fi
# Also check odin detail log for tracebacks
tail -n $LINES "$ODIN_WD/.odin/logs/odin_detail.log" 2>/dev/nulltask <id>Show the raw agent output for a specific task execution:
ODIN_WD="$REPO_ROOT/odin/temp_test_dir"
# Find the task output file (supports prefix matching)
TASK_FILE=$(ls "$ODIN_WD/.odin/logs/task_${ID}"*.out 2>/dev/null | head -1)
if [ -n "$TASK_FILE" ]; then
tail -n $LINES "$TASK_FILE"
else
echo "No output file found for task $ID"
echo "Available task logs:"
ls "$ODIN_WD/.odin/logs/task_"*.out 2>/dev/null | sed 's/.*task_/ task_/'
fiAlso check the backend's per-task execution logs:
ls "$REPO_ROOT/taskit/taskit-backend/logs/"*"${ID}"*.log 2>/dev/null | while read f; do
echo "=== $(basename "$f") ==="
tail -n $LINES "$f"
doneIf --search <pattern> is provided, grep across the relevant log(s):
grep -n -i "$PATTERN" "$LOG_FILE" | tail -n $LINESFor auto-detect with search, grep across ALL logs:
grep -rn -i "$PATTERN" "$REPO_ROOT/.dev-logs/" "$REPO_ROOT/taskit/taskit-backend/logs/taskit_detail.log" 2>/dev/null | tail -n 30When no layer is given, scan all logs for recent errors:
.dev-logs/backend.log for recent Traceback, Error, 500taskit-backend/logs/taskit_detail.log for recent exceptions.dev-logs/celery.log for Task exception or ERRORREPO_ROOT=$(git rev-parse --show-toplevel)
echo "=== Scanning all logs for errors ==="
for log_label_file in \
"backend:.dev-logs/backend.log" \
"backend-detail:taskit/taskit-backend/logs/taskit_detail.log" \
"celery:.dev-logs/celery.log" \
"odin:odin/temp_test_dir/.odin/logs/odin_detail.log"; do
label="${log_label_file%%:*}"
file="$REPO_ROOT/${log_label_file#*:}"
if [ -f "$file" ]; then
count=$(grep -c -iE "error|traceback|exception|500" "$file" 2>/dev/null || echo 0)
if [ "$count" -gt 0 ]; then
echo ""
echo "--- $label ($count error lines) ---"
grep -iE "error|traceback|exception|500" "$file" | tail -5
fi
fi
doneThen show the full traceback from whichever log has the most recent error.
/hk-local-diagnose task <id> for structured diagnostic data (status, metadata, comments, dependency chain)/hk-local-diagnose spec <id>/hk-local-diagnose reads structured Django ORM data. Use both together for full picture.If $ARGUMENTS is empty, run auto-detect mode (scan all logs).
If a log file doesn't exist, say so and suggest:
./dev.sh"odin plan or odin exec been run from this directory?"If .dev-logs/ doesn't exist at all:
.dev-logs/ directory doesn't exist. Run ./dev.sh to start the dev stack, which creates logs there."© deepklarity, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/hk-local-logs of deepklarity/harness-kit.
Open the folder on GitHubat commit 87305cd
Hk Local Logs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hk Local Logs this skilldeepklarity/harness-kit | 100 | — | ~2.1k | Automated safety check: Notes | MIT | |
| Premortemjoetawil7/first-pass | 98 | — | ~2.5k | Automated safety check: Notes | MIT | |
| Code Review Graph Navigatorhandsontable/handsontable | 22k | — | ~939 | Automated safety check: Pass | Custom licence | |
| Diagnose Backend BugQoderAI/better-harness | 2.4k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Vscode MCP Architecturetjx666/vscode-mcp | 105 | — | ~1.5k | Automated safety check: Pass | Custom licence | |
| Developmentweb-infra-dev/rstest | 505 | — | ~2.8k | Automated safety check: Pass | MIT |
joetawil7/first-pass
Run before writing or changing code for any feature, bug fix or refactor that touches data, jobs, money, outside services or user-facing behaviour.
handsontable/handsontable
Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.
QoderAI/better-harness
Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records.
tjx666/vscode-mcp
VSCode MCP Bridge project architecture — current monorepo layout, IPC/EventDispatcher flow, per-workspace socket discovery, MCP/CLI adapters, tool filtering, and VSCode extension services.
web-infra-dev/rstest
Feature and bug-fix development checklist for the Rstest monorepo.
PostHog/posthog
How to instrument PostHog's own Metrics product from PostHog-owned code — record counters, gauges, and histograms that land in posthog.metrics, the same way customers do.
deepklarity/harness-kit
Create new skills, modify and improve existing skills, and measure skill performance.
deepklarity/harness-kit
Run comprehensive agent-native architecture review with scored principles.
deepklarity/harness-kit
Mock-first, layer-by-layer feature development. An agent skill from deepklarity/harness-kit.
deepklarity/harness-kit
Audit whether an AI agent can autonomously close the loop on problems in a given area — from discovering a symptom to verifying a fix — without human intervention.
deepklarity/harness-kit
Traces a workflow end-to-end through the harness-kit monorepo and creates a breadcrumb analysis doc in docs/breadcrumbanalysis/.
deepklarity/harness-kit
Generate changelog entries from git diffs, prepend to CHANGELOG.md, and optionally commit + PR.
Categories
Inspect and debug errors via logs across the harness-kit monorepo. Hk Local Logs is an agent skill from deepklarity/harness-kit. Inspect and debug errors via logs across the harness-kit monorepo.
Hk Local Logs fits situations like: someone mentions a 500 error; what went wrong; A service not starting; celery task failures.
Run `npx skills add deepklarity/harness-kit --skill hk-local-logs -a claude-code`. Or copy the skill folder (.claude/skills/hk-local-logs in deepklarity/harness-kit) into .claude/skills/hk-local-logs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add deepklarity/harness-kit --skill hk-local-logs -a codex`. Or copy the skill folder (.claude/skills/hk-local-logs in deepklarity/harness-kit) into .agents/skills/hk-local-logs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add deepklarity/harness-kit --skill hk-local-logs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hk-local-logs, .gemini/skills/hk-local-logs, .github/skills/hk-local-logs and .opencode/skills/hk-local-logs in your project.
Going by SKILL.md and its folder, Hk Local Logs needs the command-line tools its instructions call (git, python and python3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read, Grep.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Hk Local Logs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hk Local Logs: Premortem (joetawil7/first-pass, 98 stars), Code Review Graph Navigator (handsontable/handsontable, 22k stars), Diagnose Backend Bug (QoderAI/better-harness, 2.4k stars) and Vscode MCP Architecture (tjx666/vscode-mcp, 105 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
deepklarity (a GitHub organization) maintains it in deepklarity/harness-kit, which has 100 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on July 15, 2026.
Source: deepklarity/harness-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.