Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Deep Research Ingest?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nickgou-nuke-deep-research-ingest)
<!-- repository-context-rule -->
## Repository context rule
For repository work, the current checked-out codebase is the context. Search
existing implementation and trace actual carriers, definitions, imports,
instances, theorem statements, and uses before claiming a structure is missing
or incorrect. A local absence is not a repository-wide absence. Names,
heuristics, summaries, and documentation guide discovery but do not override
source. Follow `docs/REPO_DEEP_SEARCH_PROTOCOL.md` before repo-wide gap claims.
# Deep Research Ingest Skill
## Constructive Closure Mandate
Replacing witness-gated and external-certificate leftovers with native Lean 4 proofs is the highest mandate. Treat witness packets, certificate fields, external certificates, assumption interfaces, literature owners, graph edges, and physics analogies as closure debt until discharged by kernel-checked Lean or imported mathlib theorems. Follow docs/CONSTRUCTIVE_CLOSURE_MANDATE.md; never promote anonymous or unformalized sockets as complete.
## Purpose
Run topic-focused deep research using internet + literature sources and inject results into the repo's authoritative intake pipeline (`handover/injections/*`).
This skill is for:
- specific-topic web and paper discovery
- source-quality triage
- structured distillation into claim packets
- translation-ready handoff for codex execution lane
## Core Rules
- Prefer primary sources: official docs, papers, standards, maintainers.
- Preserve provenance for every claim (URL, title, date).
- Keep research and implementation separate:
- Gemini lane: exploration/distillation
- Codex lane: translation/validation/integration
- No direct canonical edits from raw research text.
## Output Contract
Every research session must produce a packet in `handover/injections/` with:
- `packet_id`, `title`, `source`
- `raw_text` (topic + raw findings)
- `research` block with questions and sources
- `distilled_claim` (if available)
- `repo_mapping` placeholders (or concrete mapping when translated)
- `verification_plan` placeholders (or concrete build targets)
## Workflow
1. Define topic and questions.
2. Syntactic chunk pass: cut intake into segment cards.
3. Gemini pass: creative elaboration per chunk.
4. Hermes pass: strict literature/evidence enrichment per segment.
5. Seed/update packet in `raw`/`distilled` with workflow and segment cards.
6. Promote through lanes as certainty increases.
7. Translate to repo-native owner surfaces before coding.
## Commands
Seed a research packet:
```bash
python3 tools/infra/injection_research_packet.py \
--topic "Tomita-Takesaki modular flow on doubled-real carrier" \
--question "What bounded surrogate theorem family is feasible now?" \
--question "What owner files already prove prerequisites?" \
--source-url "https://example.org/paper" \
--source-url "https://example.org/docs" \
--workflow-mode gemini-hermes-codex \
--segment "seed segment one" \
--segment "seed segment two" \
--lane raw
```
Syntactic chunking + ideation prompt export:
```bash
python3 tools/infra/injection_chunk_ideate.py <PACKET_ID> \
--max-chars 650 \
--prompt-dir handover/injections/prompts/<PACKET_ID> \
--set-workflow-mode gemini-hermes-codex
```
Gemini CLI account-auth capture (no API key):
```bash
python3 tools/infra/injection_capture_gemini_cli.py <PACKET_ID> \
--gemini-bin gemini \
--input-mode stdin \
--sleep-sec 4 \
--mark-creative-complete
```
Single-segment account-auth adapter (Hermes piping mode):
```bash
echo '{"segment_id":"S1","content":"..."}' \
| python3 tools/infra/gemini_account_adapter.py \
--gemini-bin gemini \
--input-mode stdin
```
Attach segment enrichment from Gemini/Hermes:
```bash
python3 tools/infra/injection_enrich_segment.py <PACKET_ID> \
--segment-id S1 \
--creative-notes "Gemini creative expansion..." \
--claim "candidate claim" \
--inference-flag "inference:creative" \
--mark-creative-complete
python3 tools/infra/injection_enrich_segment.py <PACKET_ID> \
--segment-id S1 \
--enriched-context "Hermes verified context..." \
--evidence-url "https://example.org/source" \
--evidence-summary "evidence summary" \
--mark-verification-complete
```
Promote packet:
```bash
python3 tools/infra/injection_promote.py <PACKET_ID> --to distilled --note "distilled"
python3 tools/infra/injection_promote.py <PACKET_ID> --to translated --note "repo-mapped"
python3 tools/infra/injection_promote.py <PACKET_ID> --to gated --note "ready to implement"
```
Status:
```bash
python3 tools/infra/injection_status.py --list raw
python3 tools/infra/injection_status.py --list distilled
```
Build reviewer/examiner digest:
```bash
python3 tools/infra/injection_build_digest.py <PACKET_ID> --update-packet
```
OpenAI Deep Research gateway (Codex-facing MCP):
```bash
python3 tools/infra/openai_deep_research_gateway.py
```
Then from MCP client tooling:
- `dr_start` with deep-research brief and source config
- `dr_status` until `completed`
- `dr_ingest_result_to_packet` to attach output into packet segment cards
## Quality Checklist
- Source dates verified
- Contradictions noted
- Inference labeled as inference
- Confabulation output separated from validated claims
- Rejected high-novelty hypotheses preserved with rejection reason
- Every promoted claim has declaration/evidence/verification trace
- For `gemini-hermes-codex` mode, both workflow stage flags are set to true before `translated`
- No speculative theorem names without owner symbols
- Targeted verification surface identified before integration
## UTMOST MANDATE: Native Lean proof closure over witness/certificate scaffolding
Effective immediately, replacing witness-gated and external-certificate leftovers with native Lean proofs is the top-priority mandate.
Policy requirements:
- Witness packets, certificate fields, external certificates, and assumption interfaces are temporary scaffolding only.
- They are not final mathematical closure and not promotion authority.
- Every promoted proposition must be discharged by native Lean derivation chains in-repo (owner -> translator -> mathlib-rooted proof path).
- When a native Lean proof is not yet available, the gap must be recorded explicitly as open closure debt; do not package it as complete.
- **Do not “resolve” debt with wording.** Progress must be structural, not just textual.
- **Do not remove debt labels** unless there is a native explicit Lean proof term checked by the kernel closing that specific debt.
- **Real progress** = replacing certificate/witness fields with theorem-backed native derivations.