agentleFS
automagik-devautomagik-dev/genie/skills/report/SKILL.md

report

Skill351 starsChanged 7 months agoApache-2.0View on GitHub

Investigate a failure to its root cause with grounded evidence, hand the diagnosis to fix, and create a GitHub issue only when asked.

93 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use opportunities, export and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ansvisorSkill

    opportunities

    Finds content gaps, prompts worth tracking, and the off-site sources AI cites instead of the brand.

    Also in 3 projects that use this

  • soilmassSkill

    export

    Animation export configurations including format selection, resolution, framerate, quality, and optimization settings. Use when rendering animations for web, mobile, video, or social media. Provides tokens for all export parameters across Lottie, GIF, video, and sprite sheet formats.

    Also in 4 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 7 projects that use this

  • tokyubevoxelverseSkill

    checkup

    Give a repository a full health exam — doc rot, dependency staleness, CI decay, git hygiene, dead links, docs contradicting code — and grade it. Use when the user wants to know what quietly rotted, or a prioritized maintenance list.

    Also in 3 projects that use this

  • rajnavakotiSkill

    scan

    Run the AI dashboard scanner and generate the HTML report.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 67 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search existing issues first.

    line 46
  2. Distinctive:

    If creation fails or authentication is missing, return the full report for manual submission.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 67 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Report

Investigate; never fix. The deliverable is a diagnosis another agent can act on without reproducing the failure. Source edits belong to fix; creating an issue is a separate external write that happens only when the request asks for it or the user confirms it.

When to use

  • A failure exists and the cause is unknown, or the error points nowhere obvious.
  • review or fix needs a root cause before spending a repair attempt.
  • Someone wants a self-contained bug report, with or without a GitHub issue.
  • A QA criterion in a wish failed after merge; map the failure to the criterion it violates before tracing.

Investigate

  1. Collect symptoms: the description (required), plus error text, stack traces, logs, URL, and expected versus actual behavior when offered. Ask only for what the investigation needs.
  2. Build a red loop before forming a theory: name one command that fails right now for the reason under investigation, run it at least once, and keep its output. The loop must be red-capable (it drives the failing path and asserts the reported symptom, not merely "something errored"), deterministic, fast, and runnable unattended. Build it from whatever is cheapest that still reaches the failure: a failing test at any seam, a request script against a running service, a CLI invocation diffed against known-good output, a headless browser script, a replay of a captured trace, a bisection run over the history between a known-good and a known-bad state, a differential loop that puts one input through two versions, configurations, providers or datasets, a property or fuzz loop when the wrong output only appears across a broad input space, or a throwaway harness that boots the smallest slice of the system that still fails. Tighten it before trusting it — sharper assertion, pinned time and seed, fewer seconds. When the failure refuses to fire every time, raise the reproduction rate rather than chase determinism: repeat the trigger, run copies in parallel, add load, narrow the timing window, pin the clock, and seed every source of randomness. Say the rate out loud, because it decides what happens next — a failure that fires about half the time is debuggable, and one that fires once in a hundred runs is a measurement problem to solve before it is a bug to trace. If you catch yourself reading code to build a theory before this command exists, stop; jumping to a hypothesis is the failure this gate prevents. When no loop can be built at all, say so, list what was tried, and name what would unblock it (access to an environment that reproduces, a redacted capture, permission to instrument) rather than hypothesizing without one.
  3. Minimize the reproduction: with the loop red, cut one thing at a time — an input, a caller, a configuration value, a data row, a step — and re-run after every cut, keeping only what the failure needs. You are done when removing anything that remains turns the loop green. What survives is the smallest true statement of the bug, and it is usually the regression test fix should land.
  4. Trace: reproduce, hypothesize, and isolate the root cause with read-only tools: search and non-mutating commands only, no edits, staging, commits, or publication. Investigate directly when one bounded investigation suffices; delegate a read-only scout through the runtime's native delegation surface when independent searches can run in parallel or the investigation needs isolated context, giving it the symptoms, relevant files, and the report format below, and steering it with follow-up messaging rather than starting a duplicate. If the failure cannot be reproduced, the report says so. Show 3-5 ranked falsifiable hypotheses before testing any of them — each stating what change would make the failure disappear or worsen — and then test one variable at a time against the loop. Generate hypotheses cheaply from code in this repository that does the same job and works: list every difference from the failing path, however small, and treat "that cannot matter" as an untested assumption rather than a conclusion.
  5. Instrument without mutating what you are investigating: keep probes in scratch files outside the working tree. When a temporary in-tree probe is genuinely unavoidable, tag every added line with one unique marker such as [DEBUG-a4f2], remove them all before handing off, and prove the tree is clean with git status --porcelain. Instrumentation is never a fix, and an untagged probe is a leak.
  6. Compile: every statement traces to tool output from this investigation. Include the supporting evidence the project already offers — a browser, console or network capture where a URL or dev server exists, recent related errors from monitoring the project actually configures — and where expected evidence could not be captured, say so with the reason. Never present a planned capture as evidence.

Diagnosis format

Root cause: <what is broken — file, line, condition>
Evidence: <reproduction steps, traces, proof>
Causal chain: <root cause → intermediate effects → observed symptom>
Recommended correction: <what to change, where, why>
Correction type: <root / containment / guard; a containment names the follow-up that removes the root>
Affected scope: <other files or features impacted>
Confidence: <high / medium / low>

Type every recommended correction. A root correction removes the proven cause. A containment holds the symptom while the cause stays (a retry, a longer timeout, a skip, a special-case branch, a prompt rule standing in for a code defect), and is recommended only together with the follow-up that removes the root. A guard keeps the failure from coming back (a test, a lint, a gate), and every root correction gets one. A handler that only hides the error, such as an except that swallows it, is none of the three. Give file paths and line numbers for every claim. Verify every symbol named in the correction against the real file with rg -n '<symbol>' <path> and cite the matching line; a wrong name sends fix into a failing type-check. When more than one system is at fault, report each with its own confidence. An inconclusive trace is reported as "investigation incomplete" with the evidence gathered so far.

Two further outcomes are first-class, not failures to hide. No correct seam: when no seam exercises the real failure pattern as it occurs at the call site, a regression test placed there would give false confidence — report that as the finding and route it to wish, because the architecture, not the bug, is what blocks the lock-down. Architecture, not hypothesis: when repair attempts keep surfacing a new problem somewhere else and the group's configured repair budget is spent, stop counting failed hypotheses and report a wrong architecture; a further attempt is not authorized.

GitHub issue (only when asked)

  1. Search existing issues first; link an identical open issue instead of duplicating it.
  2. Compose the body from references/issue-template.md, with only the evidence that applies and a note for expected evidence that could not be captured.
  3. Present repository, title, labels (bug plus labels the repository already uses), and the body summary; create it through the GitHub connector when available, otherwise gh with the body passed as a file or stdin, never interpolated into a shell command — that is the rule for every payload this skill hands to a command line, not a detail of this one.
  4. Read the issue back and believe only the read-back: a create call that exits zero is not evidence that the body, the labels, or the target repository stored as you sent them, because permission to create an issue is routinely wider than permission to label one. A write that times out or answers ambiguously is not proof that nothing happened — find the record before retrying, or the retry files the issue twice. This holds for any external write, not only for an issue.
  5. If creation fails or authentication is missing, return the full report for manual submission.

The bug can also go on the Genie board with genie task create --title "bug: <title> (gh#<n>)" --agent <roster agent> --why "<reason>"; skip it when there is no .genie/genie.db.

Handoff

Pass the diagnosis to fix or to the caller. Your final message is the completion signal; it carries the diagnosis and names any expected evidence that could not be captured.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.