Skip to content
Back to skills

Deep Research Advance

ASecurity

Advanced one-shot deep research. Runs token-heavy web acquisition (Perplexity) and reasoning/verification (Kimi) headless in a script, then Claude audits the findings, writes a cited report, and optionally distills to Odin. Use for a deep, multi-source, fact-checked report on a PUBLIC-web topic. Trigger on "deep-research-advance", "advanced deep research", "deep research on [topic] with verification". Do NOT use for private/internal questions (the topic and corpus go to third-party clouds), q...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentspythongobashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add HEADING-OS-Official/heading-os --skill deep-research-advance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deep Research Advance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deep Research Advance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/heading-os-official-deep-research-advance/badge)](https://www.skillsdirectory.com/skills/heading-os-official-deep-research-advance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deep-research-advance
description: >
  Advanced one-shot deep research. Runs token-heavy web acquisition (Perplexity)
  and reasoning/verification (Kimi) headless in a script, then Claude audits the
  findings, writes a cited report, and optionally distills to Odin. Use for a
  deep, multi-source, fact-checked report on a PUBLIC-web topic. Trigger on
  "deep-research-advance", "advanced deep research", "deep research on [topic]
  with verification". Do NOT use for private/internal questions (the topic and
  corpus go to third-party clouds), quick lookups (use /osint or WebSearch), or
  Odin-brain-only recall (use /odin). BEFORE running, if the question is
  underspecified, ask 2-3 clarifying questions to narrow scope.
argument-hint: "\"<question>\" [--critical] [--audio] [--depth N] [--domains a.com,b.com]"
allowed-tools: "Read, Write, WebSearch, WebFetch, Bash(.venv/bin/python:*), Skill"
context: fork
metadata:
  author: Misha Hanin
  email: misha.hanin@headingos.com
  version: "1.0"
x-heading-capability:
  what: >
    One-shot deep research that offloads acquisition and verification to
    Perplexity and Kimi, then has Claude audit and synthesize a cited report.
  how: >
    /deep-research-advance "<question>" [--critical] [--audio] [--depth N].
    Report lands in `research-surveys`; Odin distillate is proposed for approval.
  when: >
    Use for deep, fact-checked reports on public-web topics. NOT for private
    questions (data leaves to third-party clouds), quick lookups (/osint), or
    Odin-brain recall (/odin).
x-heading-routing:
  category: Intel
  triggers:
    - deep-research-advance
    - advanced deep research
    - deep research with verification on [topic]
  exclusions:
    - Private/internal topic -> /recall or /odin
    - quick lookup -> /osint or WebSearch
    - Odin-brain recall -> /odin
  router: auto
---

**Data addresses.** Resources in the data repository are named here by their
logical name, never by a path. Resolve the name before the file operation and
use what it prints:

    .venv/bin/python scripts/data-path.py path <name>

Use `read <name>` for a source that may legitimately be absent, and
`read --required <name>` for one whose absence is a defect. An unknown name
refuses; it never resolves to a plausible directory, and a path written out
here goes stale the day the directory moves.

# Deep research advance

Multi-source, verified deep research. The headless script handles token-heavy
acquisition (Perplexity) and reasoning/verification (Kimi). Claude takes the
intermediate output, audits it, writes a cited report, and proposes an Odin
distillate for human approval before anything reaches the brain.

## Guardrail (non-negotiable, state first)

This skill sends the user's question and the gathered web corpus to third-party
clouds: Perplexity (acquisition), Kimi (reasoning and verification). Both are
outside the workspace data boundary.

- **NEVER run on a private or internal topic.** CRM contacts, pipeline data, Odin
  brain content, Exchange mail, Telegram history, partner names, pricing -- none
  of these belong in the question text or in `--domains`.
- If the request references private data, refuse immediately. Point to `/recall`
  (workspace-wide semantic memory) or `/odin` (brain-scoped reasoning) instead.
- If in doubt whether a topic is public-web, ask before running.

## Phase 0 -- Scope

If the question is underspecified -- no clear domain, no time horizon, no
geography where those matter -- ask 2-3 focused clarifying questions before
running. Examples worth asking: "Which jurisdiction's regulation?", "What time
window?", "Vendor landscape or technical depth?" Do not pad; ask only what
materially changes the research angle.

Confirm the topic is public-web before proceeding.

## Phase 1 and 2 -- Run the headless script

Run the acquisition and reasoning phases:

```bash
.venv/bin/python scripts/deep-research-advance.py "<question>" [--depth N] [--critical] [--domains a.com,b.com]
```

Notes on flags:
- `--depth N` sets the number of Perplexity angle queries (default 4, max 8).
- `--critical` forces the adversarial audit governor in Phase 3 regardless of
  source count.
- `--recency {hour|day|week|month|year}` sets the Perplexity time window.
  Default is none (full index) — correct for evergreen/footprint research. Use
  a window only for genuinely recent-events research; a narrow window starves a
  footprint search and returns off-topic recent noise.
- `--domains` accepts a comma-separated allow-list of domains to constrain
  Perplexity queries.
- `--audio` is a **skill-level flag** handled in Phase 5. Do NOT pass it to the
  script.

The script prints the run directory path as its last stdout line. Read the
intermediate file:

```bash
# <run_dir> is the last line of the script's stdout
Read <run_dir>/intermediate.json
```

`intermediate.json` shape (all fields Claude relies on):
- `question` -- original question string
- `generated_at` -- ISO timestamp
- `depth` -- number of angles requested
- `critical` -- boolean, whether --critical was passed
- `angles[]` -- list of research angle strings
- `sources[{id,url,angle}]` -- source list (id is the citation key)
- `corpus[{angle,content,source_ids[]}]` -- gathered text per angle
- `kimi_analysis{summary, claims[{claim,status,confidence,source_ids[]}], contradictions[]}` -- Kimi's reasoning pass
- `degraded` -- boolean; true when the script ran in degraded mode
- `degraded_reason` -- string explaining the degradation

**Degraded and error handling:**

| Condition | Action |
|---|---|
| `degraded == true` | Note `degraded_reason` prominently in the report header |
| Script exits 3 (no corpus) | Fall back to a Claude-only pass: research the question yourself with WebSearch and WebFetch, then audit and write the report as usual; note "FALLBACK: headless script returned no corpus" in the report header |
| Script exits 2 (bad args) | Fix the invocation or ask for clarification; do not proceed |
| `kimi_analysis` key absent or empty | Fall back to Claude-only synthesis; note "FALLBACK: Kimi analysis unavailable" in report header |

## Phase 3 -- Audit governor (conditional)

**Fire the adversarial audit when EITHER:**
- `len(sources) > 12` (read from `intermediate.json`), OR
- `critical == true` (read from `intermediate.json`)

**When the governor fires:**
For each claim in `kimi_analysis.claims` where `status == "supported"`, attempt
to refute it from the corpus alone -- cite the `source_ids` used. If you cannot
find corpus evidence that defends the claim, downgrade its status to
`"unsupported"` and record a one-line reason. Surface any claims that flip
status in a "Governor findings" block in the report.

**When the governor does not fire:**
Accept Kimi's analysis as-is. No re-examination of individual claims.

**Always state in the report** which path ran: "Governor: FIRED (N sources /
critical flag)" or "Governor: SKIPPED (N sources, non-critical)".

## Phase 4 -- Synthesize the report

Resolve the output path. The report lands under the data workspace:

```bash
.venv/bin/python scripts/data-path.py path research-surveys
```

Create the run directory first (`mkdir -p "<research_dir>/<run_dir_basename>"`),
then write the report to `<research_dir>/<run_dir_basename>/report.md`.

Report structure (in order):

1. **Header block** -- one line each: question, depth, `critical` flag value,
   governor path, degraded state (or "not degraded").
2. **Executive summary** -- 3-5 sentences, committed stance, no hedging.
3. **Findings by angle** -- one section per angle from `angles[]`, grounded in
   `corpus` content, source citations inline as `[id]`.
4. **Claims table** -- Markdown table: Claim | Status | Confidence | Sources.
   Use post-governor statuses.
5. **Contradictions** -- list from `kimi_analysis.contradictions`; if empty,
   state "No contradictions flagged."
6. **Source list** -- one line per source: `[id] <url>` (angle tag optional).

Prose obeys `.claude/rules/humanization.md`: specificity density, committed
stance, no banned vocabulary, no empty structural patterns. Sentence-case
headings throughout.

Run the sanitizer and report the result:

```bash
.venv/bin/python scripts/sanitize-text.py <report_path> --scan
```

Carry the confirmation line from `.claude/rules/hidden-chars.md`, with both
numbers copied from `sanitize-text.py --scan` — including when the scan was
not clean.

## Phase 5 -- Persist (gated)

Two optional persistence actions. Both are HARD STOP gates; never auto-execute.

**Odin distillate (always proposed):**

Extract the confirmed high-confidence claims from the claims table (status
`"supported"`, confidence >= 0.75) plus their source pointers. Present the
proposed `/odin learn` entries -- one per claim, formatted as the CEO would
approve them -- and STOP.

> "Proposed Odin distillate below. Reply 'approve' to write these to the brain,
> or name specific entries to skip."

Do not call `/odin learn` until the CEO replies with explicit approval.

**NotebookLM audio (only when `--audio` was passed):**

If `--audio` was in the original invocation, after the Odin gate (or if the CEO
skips it), surface a separate confirmation:

> "This will push the corpus to your Google NotebookLM account for an audio
> overview. Confirm to proceed."

Only after explicit confirmation, invoke `/notebooklm` with the corpus. This
sends data to the user's Google account -- separate confirmation required.

## Post-synthesis brain audit

Invoke `/brain-audit` after Phase 4 synthesis and append its footer to the
report:

```
Skill(brain-audit, args="--sources <comma-separated run_dir files> --entity <entity name if question is entity-scoped>")
```

If the question is not entity-scoped (e.g. a regulatory or market topic), omit
`--entity`. The audit gracefully degrades to a no-entity footer.

## Voice

Match `voice-guide` and the humanisation rule. Committed stance,
specific, no hedging. Plain hyphens, not double dashes. Terminology
per `.claude/rules/terminology.md`.

## NEVER

- **Never run on private/internal topics.** CRM, Odin brain, pipeline, partner
  data -- none of it goes near the question or the cloud prompts.
- **Never auto-write to Odin.** The distillate is proposed, never executed
  without explicit CEO approval.
- **Never auto-send the NotebookLM push.** Requires its own explicit confirmation
  after the Odin gate.
- **Never inject business or private context into cloud prompts.** The question
  and `--domains` must contain only public-web information.
- **Never claim a fact absent from `intermediate.json` sources.** If the corpus
  does not support a claim, say so; do not fill gaps from training knowledge.
- **Never pass `--no-verify` on git commits** made as part of any task in this
  workspace.

Files in this skill

  • SKILL.md10.6 KB
  • triggers.json1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.