---
name: dossier-collect-380b0300fb3f
description: Build a graph-structured dossier on a seed entity via parallel fan-out + recursive expansion across web, memory, knowledge-graph, codebase, ADR index, and git intel
argument-hint: "<seed> [--max-depth N] [--max-breadth N] [--sources s1,s2] [--budget-usd N] [--exact]"
allowed-tools: mcp__claude-flow__memory_store mcp__claude-flow__memory_search mcp__claude-flow__memory_search_unified mcp__claude-flow__agentdb_pattern-search mcp__claude-flow__agentdb_pattern-store mcp__claude-flow__agentdb_hierarchical-recall mcp__claude-flow__embeddings_search mcp__claude-flow__hooks_intelligence_pattern-search mcp__claude-flow__hooks_intelligence_pattern-store mcp__claude-flow__hooks_intelligence_trajectory-start mcp__claude-flow__hooks_intelligence_trajectory-step mcp__claude-flow__hooks_intelligence_trajectory-end mcp__claude-flow__task_create Bash WebSearch WebFetch Read Write Grep Glob
---

# Dossier Collect

Recursive parallel investigation that builds a graph-structured dossier on a seed entity.

## When to use

You have a seed (a username, file, symbol, ADR-id, URL, or concept) and want to **expand outward** discovering every connected entity, with provenance per claim — rather than answering a specific question.

For specific questions use `deep-research`. For multi-step plans use `goal-plan`.

## Steps

1. **Detect seed type** — classify as one of: `username` (handle), `file` (path), `symbol` (code identifier), `adr` (ADR-NNN), `url`, or `concept` (free text).
2. **Pick sources** — match the source matrix to the seed type. Default: all applicable.
3. **Start trajectory** — call `mcp__claude-flow__hooks_intelligence_trajectory-start` with task `dossier:<slug>`.
4. **Round 0 fan-out** — issue ALL source queries in ONE message. Examples:
   - For `username`: `WebSearch`, `WebFetch` on github.com/<user>, `mcp__claude-flow__memory_search_unified`
   - For `adr`: `Read` ADR file, `Grep` references, `mcp__claude-flow__memory_search` namespace `adr`
   - For `symbol`: `Grep`, `Glob`, `mcp__claude-flow__embeddings_search`
5. **Extract entities** — from each hit, surface entities (people, repos, files, adrs, urls, terms). Lightweight regex + heuristics; no LLM extraction unless ambiguous.
6. **De-dup** — drop entities already in the dossier. If `--exact` is unset, also drop entities whose embedding cosine similarity ≥ 0.92 to an existing node.
7. **Round k recursion** — for each new entity (capped at `--max-breadth` per source), recurse to step 4 until depth ≥ `--max-depth` OR budget exhausted.
8. **Aggregate** — build `{ nodes, edges }` graph. Each node carries `{ id, type, attrs, sources: [...] }`. Each edge carries `{ from, to, kind, source, confidence }`.
9. **Render artifacts**:
   - `<slug>.md` — executive summary, entity table, mermaid graph, source-provenance footnotes
   - `<slug>.json` — machine-readable graph
   - Default location: `v3/docs/examples/dossiers/<slug>/`
10. **Persist** — `mcp__claude-flow__memory_store` namespace `dossier` key `<slug>`.
11. **End trajectory** — `mcp__claude-flow__hooks_intelligence_trajectory-end` with success status.

## Output schema (JSON)

```json
{
  "seed": "ruvnet",
  "seedType": "username",
  "depth": 2,
  "truncated": false,
  "generatedAt": "ISO-8601",
  "nodes": [
    { "id": "ruvnet", "type": "username", "attrs": { "...": "..." }, "sources": ["WebSearch", "github.com"] }
  ],
  "edges": [
    { "from": "ruvnet", "to": "ruflo", "kind": "owns", "source": "github.com", "confidence": "high" }
  ],
  "stats": { "nodesByType": {}, "sourcesUsed": [], "tokensSpent": 0 }
}
```

## Budget discipline

- If `--budget-usd` is set, track approximate cost via trajectory. On exhaustion: emit partial dossier with `truncated: true` and the entities still queued.
- BFS expansion only — finish round *k* before round *k+1*.
- Never silently truncate. Always mark and record what was skipped.

## Examples

```
/ruflo-goals:dossier-collect ruvnet
/ruflo-goals:dossier-collect ADR-097 --max-depth 1
/ruflo-goals:dossier-collect "src/memory/hnsw.ts" --sources codebase,git,memory
/ruflo-goals:dossier-collect "ruflo-goals" --max-breadth 5 --budget-usd 1
```


---
Source attribution: wodeh
Original project: https://github.com/wodeh/ruflo-kimi/blob/257ccb7e80a2619f8af236554ae6f0ca362abfa6/plugins/ruflo-goals/skills/dossier-collect/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2024-2026 ruvnet

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: wodeh
Original project: https://github.com/wodeh/ruflo-kimi/blob/257ccb7e80a2619f8af236554ae6f0ca362abfa6/plugins/ruflo-goals/skills/dossier-collect/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Marketing, Product Management, Sales
Roles: Business Development, Data Analyst, Growth Marketer, Market Research Analyst, Product Manager
Specialties: Specialty not specified
Tools: Bash, Glob, Grep, Webfetch, Websearch, Mcp__Claude Flow__Agentdb_Hierarchical Recall, Mcp__Claude Flow__Agentdb_Pattern Search, Mcp__Claude Flow__Agentdb_Pattern Store, Mcp__Claude Flow__Embeddings_Search, Mcp__Claude Flow__Hooks_Intelligence_Pattern Search, Mcp__Claude Flow__Hooks_Intelligence_Pattern Store, Mcp__Claude Flow__Hooks_Intelligence_Trajectory End, Mcp__Claude Flow__Hooks_Intelligence_Trajectory Start, Mcp__Claude Flow__Hooks_Intelligence_Trajectory Step, Mcp__Claude Flow__Memory_Search, Mcp__Claude Flow__Memory_Search_Unified, Mcp__Claude Flow__Memory_Store, Mcp__Claude Flow__Task_Create
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: af3680ab78d11749bf5953195feae50a40545284405346d0e7d3b3baf681b215
