CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

debug-incident

Diagnose a production failure from the evidence the user gives, such as logs, stack traces, screenshots or an alert, one step per run, before anything is fixed: triage (impact, timeline, the symptom apart from any suspected cause, missing evidence), then a reproduction at the deployed revision, run and shown to fail, then hypotheses with evidence for and against each and a test that tells them apart. Each run saves its step to ROOT-CAUSE.md and stops, so a person or a tool can check it; the last step marks the cause CONFIRMED, UNCONFIRMED or BLOCKED, and the fix waits for approval in /knackpack:fix-incident. It uses a separate git worktree when the checkout isn't the deployed revision or has uncommitted work. Start it only on request, as /knackpack:debug-incident. Not for fixing the failure (fix-incident), the incident review (incident-review), an ordinary bug with no production incident, which Claude fixes directly, or an active breach or leaked credential, which needs its own response first.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

81%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly disciplined operational skill: an explicit status-driven state machine, copy-paste-ready git/shell commands for every branch (worktree, detached HEAD, failed checks, blocked reproduction), and validation gates at each step. Its main weakness is prose density — multi-clause run-on sentences in 'Rules' and 'Where things go' make it slower to follow than its content warrants.

Suggestions

Break the long sentences in 'Where things go' (steps 3 and 4 especially) into short bullet rules — one condition, one command, one consequence each — which would raise conciseness without losing any precision.

Convert the paragraph-form rules in 'Rules that hold throughout' into a compact checklist (bold rule + one-line rationale) so the invariants are scannable mid-incident.

Consider moving the ROOT-CAUSE.md template or the folder/worktree conventions into a reference file if the skill grows, keeping SKILL.md as the state machine and rules.

DimensionReasoningScore

Conciseness

The body assumes Claude's competence (no concept explanations, no library tutorials) but the prose itself is noticeably over-written: long multi-clause sentences like the checkout rule ('Work in place when HEAD is the deployed SHA and no tracked file has changes (`git status --porcelain --untracked-files=no` prints nothing); untracked files, such as a log the user saved, don't count, since nothing here touches them, but name any that aren't evidence, since a later review of the fix would include them; if HEAD is detached there...') pack several rules into single sentences, and the 'Where things go' section is four dense walls of text that could be broken into short rules. That fits anchor 3 ('could be tightened') better than anchor 4 — the tightening needed is more than minor.

3 / 5

Actionability

Fully executable, copy-paste-ready commands throughout: `git rev-parse <tag>^{commit}`, `git status --porcelain --untracked-files=no`, `git switch -c incident-<task>`, `git worktree add -b incident-<task> <parent>/<name>-incident-<task> <deployed SHA>`, `mkdir -p -m 700 <folder>` with a follow-up `[ -d <folder> ] && [ ! -L <folder> ] && [ -O <folder> ] && chmod 700 <folder>` check, `git worktree add --detach <folder>/experiment <SHA>`, `git show HEAD:<path> | shasum -a 256`, and the commit-docs.sh invocation with its failure path ('when it starts with `not committed`'). The complete ROOT-CAUSE.md template with fixed headings is likewise concrete. This matches anchor 5: specific commands cover the common cases, including edge handling (detached HEAD, failed folder check, non-reproducing failure).

5 / 5

Workflow Clarity

The status table ('no file → Triage, TRIAGED → Reproduce, REPRODUCED → Root cause, UNCONFIRMED/BLOCKED → ask for missing evidence, CONFIRMED → nothing') gives an explicit state machine, and validation checkpoints are everywhere: the reproduction 'must fail the way the incident failed', a test that 'fails for another reason ... reproduces nothing'; scratch-folder creation is followed by a filesystem check that stops on failure; a wrong-revision reproduction 'has to run again'; experiments live in a throwaway worktree that is force-removed afterwards. Feedback loops for the failure paths (BLOCKED on non-reproduction, status reset on user correction) match anchor 5's 'explicit validation steps; feedback loops for error recovery'. No destructive or batch operation lacks validation — the skill's central rule is to change nothing before confirmation.

5 / 5

Progressive Disclosure

The skill is a single self-contained file with no bundle (references/, scripts/, assets/ are absent), clear section headers, and one external pointer (`${CLAUDE_PLUGIN_ROOT}/scripts/commit-docs.sh`, a plugin-level script outside this bundle, referenced with its exact invocation and expected output). All content is workflow-critical and appropriately inline, including the ROOT-CAUSE.md template. It does not reach 5 because at ~117 lines it exceeds the 'under 50 lines with no need for external references' case the guidelines allow to score 5 on sections alone, and sections like the four-paragraph 'Where things go' could be a reference file or tighter list; it is above 3 because nothing is buried and no nesting exists.

4 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An unusually strong description: it specifies the full diagnostic workflow concretely, gives explicit invocation guidance plus a precise exclusion list, and stays in third person. The only meaningful gap is a handful of natural incident-language synonyms (outage, root cause, production is down) that would broaden trigger-term coverage.

Suggestions

Consider adding one or two common incident phrasings users actually say (e.g., 'production is down', 'outage', 'find the root cause') to the trigger vocabulary, keeping the length increase minimal.

The description is dense; the worktree sentence ('It uses a separate git worktree when the checkout isn't the deployed revision or has uncommitted work') is implementation detail that could be trimmed to leave room for trigger synonyms without net growth.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions with comprehensive coverage: 'triage (impact, timeline, the symptom apart from any suspected cause, missing evidence)', 'a reproduction at the deployed revision, run and shown to fail', 'hypotheses with evidence for and against each and a test that tells them apart', 'saves its step to ROOT-CAUSE.md', and 'marks the cause CONFIRMED, UNCONFIRMED or BLOCKED'. It stays in third person throughout ('Diagnose', 'It uses'), so no voice penalty applies; not the level below (4) because coverage of the workflow's actions is complete rather than having minor gaps.

5 / 5

Completeness

Both questions are answered explicitly: 'what' is the full triage → reproduce → root-cause pipeline with named artifacts and statuses, and 'when' is stated directly ('Start it only on request, as /knackpack:debug-incident') plus explicit negative triggers ('Not for fixing the failure (fix-incident), the incident review (incident-review), an ordinary bug with no production incident ... or an active breach'). The exclusion list makes the when-clause unusually precise, matching the anchor-5 example's explicit trigger phrasing rather than the weaker 'when' of anchor 4.

5 / 5

Trigger Term Quality

Good natural keyword coverage: 'production failure', 'logs', 'stack traces', 'screenshots', 'alert', 'incident', 'debug' — terms a user during an incident would plausibly say. Not 5 because common variations like 'outage', 'root cause', 'production is down', or 'postmortem' are absent, leaving a few natural trigger phrases missing; clearly above 3 since the evidence-type terms (logs, stack traces, alert) are exactly what users paste when invoking this.

4 / 5

Distinctiveness Conflict Risk

It carves out a clear niche (production-incident diagnosis only) and explicitly disambiguates from the four nearest neighbors by name: fix-incident, incident-review, ordinary bugs 'which Claude fixes directly', and security breaches needing their own response. This is stronger than anchor 4's 'minor overlap risk with closely related skills' — the conflicts are named and resolved, leaving minimal risk of triggering the wrong skill.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

bezmoradi/knackpack

Path

skills/debug-incident/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.