Agent SkillsNeverSight/learn-skills.dev › result-diagnosis

result-diagnosis

GitHub

用于诊断机器学习实验中负面、异常或不稳定的结果,通过系统性检查确定原因并给出后续决策建议。

data/skills-md/a-green-hand-jack/ml-research-skills/result-diagnosis/SKILL.md NeverSight/learn-skills.dev

Trigger Scenarios

方法未超越基线 不同种子结果差异大 指标间出现矛盾变化 用户询问结果含义或下一步行动

Install

npx skills add NeverSight/learn-skills.dev --skill result-diagnosis -g -y
More Options

Non-standard path

npx skills add https://github.com/NeverSight/learn-skills.dev/tree/main/data/skills-md/a-green-hand-jack/ml-research-skills/result-diagnosis -g -y

Use without installing

npx skills use NeverSight/learn-skills.dev@result-diagnosis

指定 Agent (Claude Code)

npx skills add NeverSight/learn-skills.dev --skill result-diagnosis -a claude-code -g -y

安装 repo 全部 skill

npx skills add NeverSight/learn-skills.dev --all -g -y

预览 repo 内 skill

npx skills add NeverSight/learn-skills.dev --list

SKILL.md

Frontmatter
{
    "name": "result-diagnosis",
    "description": "Diagnose surprising or negative ML\/AI results. Use when methods fail, metrics conflict, seeds vary, baselines win, plots look suspicious, or next action is unclear.",
    "allowed-tools": "Read, Write, Edit, Bash, Glob, WebSearch, WebFetch",
    "argument-hint": "[project-dir] [--result <summary>] [--mode quick|full|debug|decision]"
}

Result Diagnosis

Diagnose what an experiment result means for the project. This skill is for decision-making after results exist, especially when they are negative, surprising, unstable, or hard to interpret.

Use this skill when:

  • a method does not improve over baseline
  • results vary strongly across seeds
  • a metric improves but another metric worsens
  • a baseline unexpectedly wins
  • a plot or table looks suspicious
  • a result may be caused by an implementation bug, metric bug, data issue, or unfair comparison
  • early experiments suggest revising the algorithm or paper claim
  • the user asks "what does this result mean?" or "what should we do next?"

Do not use this skill to write a polished report. Pair it with experiment-report-writer after the diagnosis is clear.

Pair this skill with:

  • research-project-memory when the diagnosis should update claims, evidence, risks, actions, or worktree status
  • experiment-report-writer when results need a shareable report
  • algorithm-design-planner when the diagnosis points to method revision
  • experiment-design-planner when the diagnosis requires a new controlled experiment
  • run-experiment when the next step is a rerun, sanity check, or ablation
  • conference-writing-adapter when the right action is to narrow or reframe paper claims

Skill Directory Layout

<installed-skill-dir>/
├── SKILL.md
└── references/
    ├── diagnosis-taxonomy.md
    ├── evidence-audit.md
    ├── next-decision-rules.md
    ├── report-template.md
    └── triage-protocol.md

Progressive Loading

  • Always read references/diagnosis-taxonomy.md, references/triage-protocol.md, and references/next-decision-rules.md.
  • Read references/evidence-audit.md when inspecting logs, configs, metrics, plots, runs, or code state.
  • Use references/report-template.md for full diagnosis reports.
  • If a result depends on current SOTA, benchmark conventions, or recent baseline performance, verify current sources with web search or user-provided papers.

Core Principles

  • Diagnose before optimizing.
  • Separate observed result from interpretation.
  • Prefer simple sanity checks before expensive reruns.
  • Treat negative results as information: they may kill a claim, not the whole project.
  • Do not blame the algorithm before checking implementation, data, metric, baseline, and selection rules.
  • Do not blame implementation forever when repeated controlled evidence falsifies the claim.
  • Every diagnosis should end with a decision: debug, rerun, ablate, revise method, narrow claim, write, park, or kill.
  • Record uncertainty explicitly.

Step 1 - Define the Result and Expected Behavior

Extract:

  • experiment question and linked claim
  • method and baseline
  • dataset/split
  • metrics and expected direction
  • observed result
  • number of seeds/repeats
  • configs, commit, logs, tables, and figures
  • what result was expected and why
  • whether this result affects paper claims or only internal debugging

Rewrite vague input into:

Expected [method] to improve [metric/diagnostic] over [baseline] on [setting], but observed [result] under [controls].

If expected behavior was never defined, route back to experiment-design-planner.

Step 2 - Classify the Symptom

Read references/diagnosis-taxonomy.md.

Classify the primary symptom:

  • no improvement
  • regression
  • instability or high variance
  • metric conflict
  • suspiciously large gain
  • baseline unexpectedly strong
  • diagnostic/performance mismatch
  • training failure or divergence
  • reproducibility failure
  • plot/table inconsistency
  • result contradicts paper story

Then classify likely diagnosis categories:

  • implementation bug
  • metric/evaluation bug
  • data/split/preprocessing issue
  • unfair baseline or tuning issue
  • seed variance or insufficient repeats
  • optimization/hyperparameter issue
  • method mechanism failure
  • scale/regime mismatch
  • claim/evidence mismatch
  • expected negative result

Step 3 - Gather Evidence

Read references/evidence-audit.md.

Prefer primary artifacts:

  • config diffs
  • run commands
  • git commit
  • logs and stderr
  • metric files
  • checkpoints
  • seeds
  • dataset versions and split hashes
  • plots and tables
  • previous baseline runs
  • implementation changes

Mark missing evidence rather than guessing.

Step 4 - Run Triage

Read references/triage-protocol.md.

Use this order:

  1. Reproducibility and provenance: correct commit, config, data, seed, output path.
  2. Metric and evaluation: metric direction, aggregation, split, leakage, postprocessing.
  3. Baseline fairness: same budget, tuning, checkpoint rule, data, sampler, and code path.
  4. Implementation sanity: feature flag, tensor shapes, gradient flow, loss scale, train/eval mode.
  5. Statistical stability: seeds, variance, confidence intervals, outliers.
  6. Mechanism diagnostic: whether the intended mechanism changed.
  7. Claim alignment: whether the result supports, weakens, or falsifies the paper claim.

Stop early only when a blocking bug or invalid comparison is found.

Step 5 - Build Competing Explanations

For each plausible explanation, state:

  • evidence for it
  • evidence against it
  • cheapest test that would distinguish it
  • decision if true

At minimum consider:

  • bug
  • bad metric
  • weak experiment design
  • baseline too strong or under-tuned
  • hyperparameter issue
  • mechanism false
  • claim too broad

Step 6 - Choose Next Decision

Read references/next-decision-rules.md.

Choose one primary decision:

  • debug: result is not trustworthy until a bug or provenance issue is resolved
  • rerun: result is plausible but underpowered or missing controls
  • ablate: result needs mechanism isolation
  • revise-method: mechanism likely needs design change
  • narrow-claim: evidence supports a smaller or different claim
  • write: evidence is trustworthy enough to report
  • park: result is inconclusive and not worth immediate compute
  • kill: claim or direction is falsified under fair controls

Do not pick write if basic provenance or fairness is unresolved.

Step 7 - Write the Diagnosis

Use references/report-template.md for full reports.

If saving to a project and no path is given, use:

docs/diagnosis/result_diagnosis_YYYY-MM-DD_<short-name>.md

Required output:

# Result Diagnosis: [Short Name]

## Result Snapshot
## Expected vs Observed
## Symptom Classification
## Evidence Checked
## Competing Explanations
## Most Likely Diagnosis
## Decision
## Next Checks or Actions
## Claim Impact
## Project Memory Writeback

Step 8 - Write Back to Project Memory

If the project uses research-project-memory, update:

  • memory/evidence-board.md: observed result, limitations, and source paths
  • memory/provenance-board.md: mark result provenance verified, stale, contradictory, or missing when diagnosis depends on source validity
  • memory/claim-board.md: claims supported, weakened, revised, evidence-needed, provisional, parked, or cut
  • memory/risk-board.md: bugs, metric risks, baseline risks, mechanism risks, or claim risks
  • memory/action-board.md: debug, rerun, ablation, method revision, writing, park, or kill actions
  • memory/handoff-board.md: create handoffs to method design, experiment design, paper evidence, or writing when diagnosis changes downstream work
  • memory/phase-dashboard.md: update the active gate when diagnosis advances evidence production or regresses the project to debugging, method revision, or claim narrowing
  • memory/decision-log.md: durable decisions such as killing a claim, changing method, or narrowing scope
  • worktree .agent/worktree-status.md: latest result and exit condition if a branch/worktree is involved

Use observed for verified results and inferred for explanations. Mark stale claims explicitly.

Final Sanity Check

Before finalizing:

  • observed result and interpretation are separated
  • provenance and config are checked or listed as missing
  • metric direction and aggregation are clear
  • baseline fairness is addressed
  • implementation sanity checks are considered
  • seed variance and repeats are considered
  • mechanism diagnostic is checked when relevant
  • result is mapped to a concrete decision
  • paper claim impact is explicit
  • project memory is updated when present

Version History

  • e0220ca Current 2026-07-05 21:37

Same Skill Collection

data/skills-md/00prabalk00/claude-skills/knowledge-base-gap-finder/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-agile/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-auth/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-issues/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-project-management/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-projects/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-safe/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-search/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-spaces/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-transitions/SKILL.md
data/skills-md/0731coderlee-sudo/wechat-publisher/wechat-publisher/SKILL.md
data/skills-md/0froq/skills/conventionalcommits/SKILL.md
data/skills-md/0froq/skills/nuxt/SKILL.md
data/skills-md/0froq/skills/oq/SKILL.md
data/skills-md/0froq/skills/pinia/SKILL.md
data/skills-md/0froq/skills/pnpm/SKILL.md
data/skills-md/0froq/skills/slidev/SKILL.md
data/skills-md/0froq/skills/tsdown/SKILL.md
data/skills-md/0froq/skills/turborepo/SKILL.md
data/skills-md/0froq/skills/unocss/SKILL.md
data/skills-md/0froq/skills/vitepress/SKILL.md
data/skills-md/0froq/skills/vitest/SKILL.md
data/skills-md/0froq/skills/vue-best-practices/SKILL.md
data/skills-md/0froq/skills/vue-router-best-practices/SKILL.md
data/skills-md/0froq/skills/vue-testing-best-practices/SKILL.md
data/skills-md/0froq/skills/vue/SKILL.md
data/skills-md/0froq/skills/vueuse-functions/SKILL.md
data/skills-md/0froq/skills/web-design-guidelines/SKILL.md
data/skills-md/0juano/agent-skills/bondterminal-x402/SKILL.md
data/skills-md/0juano/agent-skills/edgeone-pages-deploy/SKILL.md
data/skills-md/0juano/agent-skills/ley-ar/SKILL.md
data/skills-md/0juano/agent-skills/ticktick/SKILL.md
data/skills-md/0juano/agent-skills/x-image-cards/SKILL.md
data/skills-md/0juano/x-image-cards/x-image-cards/SKILL.md
data/skills-md/0x0funky/agent-sprite-forge/generate2dsprite/SKILL.md
data/skills-md/0x0funky/agent-sprite-forge/video2dsprite/SKILL.md
data/skills-md/0x2e/superpowers/brainstorming/SKILL.md
data/skills-md/0x2e/superpowers/dispatching-parallel-agents/SKILL.md
data/skills-md/0x2e/superpowers/executing-plans/SKILL.md
data/skills-md/0x2e/superpowers/finishing-a-development-branch/SKILL.md
data/skills-md/0x2e/superpowers/receiving-code-review/SKILL.md
data/skills-md/0x2e/superpowers/requesting-code-review/SKILL.md
data/skills-md/0x2e/superpowers/subagent-driven-development/SKILL.md
data/skills-md/0x2e/superpowers/systematic-debugging/SKILL.md
data/skills-md/0x2e/superpowers/test-driven-development/SKILL.md
data/skills-md/0x2e/superpowers/using-git-worktrees/SKILL.md
data/skills-md/0x2e/superpowers/using-superpowers/SKILL.md
data/skills-md/0x2e/superpowers/verification-before-completion/SKILL.md
data/skills-md/0x2e/superpowers/writing-plans/SKILL.md
data/skills-md/0x2e/superpowers/writing-skills/SKILL.md

Metadata

Files
0
Version
5f4efd0
Hash
bd591267
Indexed
2026-07-05 21:37

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-15 03:00
浙ICP备14020137号-1 $お客様$