firstp1ck/pi-coding-agent-forge/deep-research
Claude Code and agent skill by firstp1ck/pi-coding-agent-forge
- community
Checking that the SKILL.md file is still in the repository.
Agents should invoke this skill for high-stakes or complex research needing multi-source evidence, scientific/technical fact-checking, decision traces, or rigorous verification. Runs deterministic two-phase research with schema/policy validation.
Install
npx vskill@latest install firstp1ck/pi-coding-agent-forge/deep-researchSKILL.md
Deep Research
Deterministic research pipeline that produces reproducible, schema-validated output. Same input + same state = same output.
Triggers
Activate when the user asks for rigorous multi-source research or uses any of these commands:
/deep-research [topic]/deepresearch [topic]/dpr [topic]/dp [topic]/dr [topic]
Quick Start
Exit codes: 0 success, 1 validation/policy error, 2 partial retrieval, 3 no-evidence fallback.
Workflow
Phase 1: General Research (Agent-Driven)
Search the web to understand the topic. Identify up to 5 key claims to fact-check.
Write claims to a JSON file using this exact schema:
Required fields per claim: claim_text, evidence_required, confidence_target.
Phase 2: Scientific Fact-Check (Agent-Driven)
For each claim, search source databases in tier order:
| Tier | Sources | Flag | |
|---|---|---|---|
peer_reviewed | PubMed, Google Scholar | ✅ | |
preprint | arXiv, bioRxiv, medRxiv | 📝 | |
community | Reddit, StackExchange, forums | 🗨️ | |
social | X/Twitter | 🐦 |
Evidence budget per claim: 2 peer-reviewed + 1 fallback (max 5 total).
Write evidence to a JSON file:
Important: Always trace secondary-source citations back to original papers.
Phase 3: Deterministic Classification (Runner)
Run the deterministic runner. It applies these verdict rules from policy.json:
| Verdict | Rule | |
|---|---|---|
| Supported | >= 2 peer-reviewed sources, agreement ratio >= 0.8 | |
| Partially Supported | >= 1 peer-reviewed source, agreement ratio >= 0.5 | |
| Insufficient Evidence | 0 peer-reviewed sources or no evidence at all | |
| Contradicted | >= 1 contradicting source, agreement ratio < 0.3 |
Every verdict includes a decision_trace entry with rule_id, inputs, and result.
Fallback Behaviors
All fallbacks are explicit and policy-defined. There is no implicit "best effort" path.
| Condition | Action | Verdict Cap | |
|---|---|---|---|
| No peer-reviewed sources found | Descend to next tier in fallback order | partially_supported max | |
| No sources found at all | Emit insufficient_evidence | insufficient_evidence | |
| Source database unreachable | Mark partial, continue with available | Exit code 2 | |
| Cannot extract claims from topic | Reject run, require explicit claims | Exit code 1 |
Fallback Text Blocks (Verbatim)
No peer-reviewed sources:
No sources at all:
Retrieval failure:
Claim extraction failure:
Output Contract
All outputs validate against output-schema.json. Required top-level fields: topic, run_id, policy_version, claims[], verdict_summary, decision_trace[], failures[].
Run IDs follow the pattern: dr-YYYYMMDDTHHMMSSZ-<8-char topic hash>.
Deterministic Ordering
- Claims ordered by
claim_idascending (C001, C002, ...). - Evidence per claim ordered by: tier (highest first) -> recency (newest first) -> URL lexical.
- Sections in fixed order: topic_summary, claims, evidence_matrix, verdict_summary, decision_trace, failures.
Source Priority
- Highest: Peer-reviewed journals (open access)
- Medium: Preprints (arXiv, bioRxiv) — flag as "not peer-reviewed"
- Low: Community discussions — flag as anecdotal
- Lowest: Social media — flag as unverified
Deduplication
Sources are deduped by composite key: title_normalized + canonical_url_host + publication_year. URLs are normalized by stripping query parameters and fragments.
File Inventory
Scripts Reference
./scripts/run_deep_research.py
| Arg | Required | Description | |
|---|---|---|---|
--topic | Yes | Research topic | |
--topic-summary | No | Phase 1 summary text | |
--claims-file | Yes | JSON file with structured claims | |
--evidence-file | No | JSON file with pre-collected evidence | |
--policy | Yes | Path to policy.json | |
--schema | No | Path to output-schema.json | |
--state | Yes | Path to state.json | |
--output-json | No | Write JSON output to file | |
--output-md | No | Write Markdown output to file |
| Exit Code | Meaning | |
|---|---|---|
| 0 | Success | |
| 1 | Validation or policy error | |
| 2 | Upstream retrieval partial | |
| 3 | No-evidence fallback produced |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpi-skill-deep-research/skills/deep-research/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/firstp1ck/pi-coding-agent-forge/deep-research)