Intelligence investigator

From Tibsfox/gsd-skill-creator · View interactive version

Intelligence investigator is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Generate intelligence briefings for the planning dashboard. Use this skill whenever a request file appears in `.planning/console/inbox/pending/` whose `type` field starts with `intelligence.` (refresh_briefing, triage_finding, snapshot_diff, investigate_section, dismiss_finding). The skill reads the

How to use this skill

Skill file

Intelligence Investigator

You are responsible for generating planning briefings for the GSD intelligence

dashboard. The dashboard surfaces these briefings to the developer at the start

of every planning meeting. You run inside a gsd-skill-creator session that is

already watching .planning/console/inbox/pending/.

When to activate

Activate when you find a file matching req_*.json in

.planning/console/inbox/pending/ whose type field starts with

intelligence.:

Process

1. Parse the request

Read the request file. Extract id, type, project, branch, payload,

respond_to, timeout_hint_ms. The request fields define the scope:

2. Load KB context

Run bash scripts/load-kb-context.sh <project> to extract a redacted JSON

context summary. The script:

emitting context (S14, D-25-31)

The output is structured JSON; parse it before reasoning.

3. Synthesize briefing

Following references/briefing-format.md, write a briefing of 2-3 paragraphs

that:

  1. Opens with what's currently happening (1-2 sentences)
  2. Proposes at least one causal hypothesis ("Coupling spike between X and

Y is probably driving the held gate, because…")

  1. Acknowledges at least one uncertainty ("It's unclear whether the

calibration modules can land before the gate clears")

  1. Ends with a confidence label: low, medium, or high

(See references/confidence-calibration.md for guidance)

A briefing without a causal hypothesis or without an acknowledged uncertainty

fails verification. Do not produce summary-only briefings.

4. Rank suggested moves

Following references/move-ranking.md, propose 3-5 ranked next moves. For each:

A move without a rationale fails verification. A move that doesn't reference

any source findings is acceptable only if it's a forward-looking move (e.g.,

"Snapshot diff to see what's drifted") — its rationale must explicitly note

"no prior evidence".

5. Self-check the briefing

Run bun scripts/verify-briefing.ts <briefing-json-path> (or node if bun is

unavailable). Exit 0 = pass; exit 1 = fail with violation list.

If self-check fails:

  1. Do not proceed to step 6 (KB write). The briefing must NOT be persisted.
  2. Write a status file with status: "failed" to respond_to. Include the

violation list in error.

  1. End the run.

D-25-28: Every briefing MUST contain causal hypothesis pattern + uncertainty

pattern + valid confidence label. Failed self-check → no KB write.

6. Write briefing to KB

Run node scripts/write-briefing.ts <projectId> <briefing-json-path>. The

script:

The web tool picks up the new briefing via the intelligence:briefing_ready

event.

7. Write status to outbox

Write a JSON status file to the path in the request's respond_to field:

{
  "request_id": "req_2026-05-02_1430_c8e1",
  "status": "complete",
  "briefing_id": "B-2026-0502-1430",
  "completed_at": "2026-05-02T14:31:42Z"
}

For triage_finding / dismiss_finding requests, the status payload may also

carry decision_id if a recommendation was committed.

Failure paths

If you cannot produce a briefing meeting the verification criteria:

If timeout_hint_ms is approaching (>80% elapsed) and you have not finished:

Critical constraints

findings only. The load-kb-context.sh script enforces this.

intentional. Do not attempt to reconstruct or guess at masked values.

See references/confidence-calibration.md for thresholds.

causal-hypothesis requirement as a hard gate, not an aesthetic suggestion.

analyzer pipeline already redacted secrets and condensed source ranges into

rationales. Bypassing this layer reintroduces secrets to the AI's context.

Reference files

two bad examples)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.