agentleFS
cano721cano721/ai-harness/.agents/skills/investigate/SKILL.md

investigate

Skill1 starsChanged 4 months agoMITView on GitHub

Start a project-local root-cause investigation that changes no code. Use when a bug, QA report, incident, or unexpected behavior needs its cause found and explained with evidence before anyone decides on a fix; not for fixing it (use fix-bug), reviewing a change, or building a feature.

141 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-deploy, plan-devex-review 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.
  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 17 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 15 projects that use this

  • seek888Skill

    pair-agent

    Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".

    Also in 11 projects that use this

  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 20 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 21 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 130 edited versions we read keep these.

  • 1

    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:

    Follow the graph nodes in order.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 130 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

Investigate

This is a project adapter, not the source of project policy. Read these files in order before investigating:

  1. AGENTS.md
  2. .ai-harness/workflows/investigate.md
  3. .ai-harness/workflows/investigate-graph.json
  4. The personas and .ai-harness/docs/ files selected by the workflow

The project workflow and graph are authoritative. They define where the domain documents are, how to reproduce safely, which logs and data may be read, where the report goes, and when to hand a fix to fix-bug.

Do not edit, create, or delete any file in the repository (build output that .gitignore already covers, such as a test run leaves, is not a change), and do not change the index, commit, switch branches, or move the checkout. Keep scratch scripts, logs, the report, and drafts outside the working tree, under ~/.ai-harness/investigations/<repository name>/ unless the project workflow names another place outside the repository. Delegate only read-only exploration to the project's explorer persona.

Steps

Follow the graph nodes in order. Each step builds on the previous one; do not skip one because the cause looks obvious.

  1. triage — State the observed behavior, the expected behavior, the impact, when it happens (environment, data, account, version), and the relevant modules and files. This is the same node as fix-bug triage.
  2. baseline — Read code as it is on the remote base branch, not as the local checkout happens to be. Run git fetch origin and compare the checkout with origin/<base> (the base branch the project workflow names). When the checkout is behind, read files with git show origin/<base>:<path> and search with git grep <pattern> origin/<base> instead of the working tree. When the report concerns a deployed version, read that tag or commit the same way. Record the commit you read; if fetch fails, say the baseline is unverified in the report.
  3. domain_docs — Read the domain documents the workflow lists for the modules involved (.ai-harness/docs/domain.md and the files it points to) before deciding what the correct behavior is. A behavior the documents describe as intended is not a bug; report it as such.
  4. reproduce — Reproduce with the smallest safe steps: a test or command run, or a request against a local server with the local or test configuration the project documents. Run it against the baseline commit: when the checkout is behind, export that commit outside the repository (git archive origin/<base> | tar -x -C <scratch dir>) and run there. Record the commit you ran; a reproduction on other code is not evidence about the baseline. Never use production data or credentials, and point anything the app writes outside the repository. When it cannot be run, collect equivalent evidence: log lines, data queries the workflow allows as read-only, a stack trace, or code paths with a falsifiable hypothesis. This is the same node as fix-bug reproduce. If there is neither a reproduction nor such evidence, stop at user_decision and list what a person must provide (an environment, logs, data, or the expected behavior).
  5. report — Write the investigation report as a Markdown file and show its path and summary. It contains: symptom and reproduction conditions; the commit read (and whether it is origin/<base>); the documents read; each hypothesis with how it was checked and whether it was confirmed or refuted; the evidence (commands and their decisive output, log lines, code locations as path:line at the commit read); the cause, or the remaining candidates when it is not settled; a suggested fix direction (files, approach, regression test); and open questions. End with whether a code fix is needed.
  6. handoff — When a code fix is needed, hand it to fix-bug with the report: /fix-bug <report path>, or with the runner bash .ai-harness/workflows/workflow-driver.sh start --workflow bug-fix --request "<one-line summary>" --investigation <report>. fix-bug then starts from its brief instead of repeating triage and reproduce. Do not start the fix yourself.

External systems

Writes to external systems — issue or PR comments, tracker status changes, chat messages — are drafts. Save each draft next to the report (for example <report>.comment.md) and show where it is; a person posts it. Reading the tracker, logs, or dashboards the workflow names is allowed. Leave tracker issue status as it is; the issue moves when the fix starts.

Graph runner

The graph runner runs this workflow: bash .ai-harness/workflows/workflow-driver.sh start --workflow investigate --request "<symptom or issue>". It changes no code and has no approval stop, so it starts on the base branch and with uncommitted changes, and it runs to done or user_decision in one go. The runner settles the baseline itself (git fetch origin, the commit read, how far the checkout is behind), runs triage, domain_docs, reproduce, and report as read-only sessions (a session that changes the working tree stops the run), and writes the report and the comment draft outside the repository to ~/.ai-harness/investigations/<repository>/<YYYYMMDD-HHMM>-<slug>.md and .comment.md, with the commit read on its first line; an existing name gets -2, -3, and is never overwritten. When a code fix is needed it ends with the handoff command, start --workflow bug-fix --request <summary> --investigation <report> (or /fix-bug <report>); it does not start the fix. Without the runner, follow investigate-graph.json in this conversation as described above. The runner picks the node runtime from --runtime, then HM_RUNTIME_REPOS (matching repository), then HM_RUNTIME in ~/.ai-harness/config, then the calling CLI and integrations; pass --runtime only when the user asks for a specific CLI.

To stop a running run, use only bash .ai-harness/workflows/workflow-driver.sh stop [--run <id>] [--reason "<why>"]: it ends just the processes that run recorded (the runner and its node session group, TERM then KILL after 5 seconds) and records stopped with the node, time, and reason. Never kill the runner or agent sessions by pattern (pkill, killall, pgrep -f); the same pattern matches other runs and sessions on the machine. status shows a stopped run and a run cut off outside the runner (stale); continue either with resume. resume, approve, and revise refuse a run whose runner is still alive (exit 2).

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.