Auto-Research Repo
Use this skill to work in repositories whose purpose is cumulative research, not one-off answers. Preserve source evidence, compile it into a durable wiki, and publish portable HTML outputs only when their evidence status is clear.
Core Pattern
Follow a one-way pipeline:
ref/ -> docs/wiki/ -> docs/public/
- Keep
ref/ as immutable evidence: papers, datasets, scans, archives, source bundles, and provenance records.
- Keep
plans/notes/notebook/ as a mutable scratchpad for rough project thoughts, hunches, outlines, dead ends, meeting notes, copied snippets, prompts, and other useful junk that is not yet evidence or synthesis.
- Keep
docs/wiki/ as the maintained synthesis layer: concepts, entities, source notes, evidence maps, questions, conjectures, contradictions, and paper seeds.
- Keep
docs/public/ as the publication output lane, with docs/public/index.html as the public table of contents.
- Use
docs/public/exploratory/ for publishable working reports, labs, evidence browsers, and conjecture pressure tests.
- Use
docs/public/treatise/ for mature paper-shaped publications promoted from wiki synthesis, not as the starting point.
- Keep
ref/inbox/ as a mutable intake tray for user-provided files; files become immutable after they are identified and moved elsewhere under ref/.
- Keep
plans/to-do/sources.md as the source queue for missing, blocked, paywalled, or strategically important sources.
In an existing repository, recognize legacy equivalents per project-layout and keep using one established tree rather than creating a parallel one.
Start By Reading The Repo
Before changing anything:
- Inspect the folder structure with
rg --files, find, or existing project docs.
- Read local instructions such as
AGENTS.md, README.md, SKILL.md, schema files, ref/README.md, plans/notes/notebook/README.md, docs/wiki/index.md, docs/wiki/log.md, and manifest examples.
- Infer existing naming conventions, link syntax, manifest fields, and log style from current files.
- Follow existing content conventions within the canonical paths.
If the repo is new or incomplete, create the smallest useful scaffold:
ref/
ref/manifests/
ref/inbox/
plans/notes/notebook/
plans/notes/notebook/README.md
docs/wiki/
docs/wiki/index.md
docs/wiki/log.md
docs/public/
docs/public/index.html
docs/public/exploratory/
docs/public/treatise/
plans/to-do/sources.md
Notebook Workflow
Use the notebook as a deliberately low-friction workbench.
- Put messy, mutable, informal material in
plans/notes/notebook/: stray observations, half-formed arguments, reading plans, temporary outlines, prompts, conversation notes, false starts, and things the user wants to remember without hardening into the wiki.
- Prefer lightweight dated or topic files when creating new notebook entries, but do not over-organize it. The folder is allowed to be rough.
- Do not treat notebook notes as evidence. If a notebook idea matters, connect it back to
ref/, a manifest, a source page, or a wishlist entry before using it for a strong claim.
- Do not cite notebook notes in publications as if they were sources. Promote useful material into
docs/wiki/ once it becomes durable synthesis, and cite the underlying evidence there.
- Preserve the user's voice and intent in personal notes. Clean up, split, or move notebook material only when asked or when promoting selected ideas into the wiki.
- Search
plans/notes/notebook/ for leads, open questions, and user hunches, but distinguish those from sourced wiki claims.
- Log only meaningful promotions from the notebook into
docs/wiki/, plans/to-do/sources.md, or docs/public/; routine scribbling does not need a wiki log entry.
Reference Source Rules
Treat sources in ref/ as evidence.
- Do not edit downloaded or user-provided source files in place.
- Rename archived files descriptively unless their original names are already clear.
- Prefer names like
YYYY-author-short-title.ext for papers and stable descriptive names for datasets.
- Store datasets with enough surrounding metadata to make later analysis reproducible.
- Record provenance before relying on a source for claims.
- Use checksums, preferably SHA-256, for archived files.
For each source batch, update or create a manifest. Include, when available:
- final file path
- citation or source title
- source URL, DOI, archive location, or user-provided provenance
- retrieval or ingest date
- checksum
- page count, row count, file inventory, or other shape notes
- why the source matters
- suggested wiki targets
Ingest Workflow
When files appear in ref/inbox/:
- Identify each file and its best bibliographic or dataset description.
- Rename it according to repo conventions.
- Move it into the appropriate immutable
ref/ lane.
- Update the relevant manifest with provenance and checksum.
- If it satisfies a wishlist entry, mark that entry found with date, final path, and manifest or checksum reference. Preserve the historical search trail.
- Update enough wiki pages that the source is discoverable.
- Append a dated entry to
docs/wiki/log.md.
- Leave
ref/inbox/ empty after processing.
Ask the user to place manually sourced files into ref/inbox/ when a source is blocked, paywalled, unavailable, or needs human retrieval.
Wiki Workflow
Use the wiki as cumulative working memory.
- Compile each important source, observation, dataset, concept, entity, hypothesis, and contradiction once.
- Add or update source pages for important reference files or datasets.
- Add or update concept/entity pages for reusable domain knowledge.
- Add or update synthesis pages for cross-source arguments, evidence maps, tensions, conjectures, and teardowns.
- Keep
docs/wiki/index.md current as the navigation hub.
- Keep
docs/wiki/log.md as a dated record of ingest, query, synthesis, artifact, exploratory-publication, and treatise work.
- Keep source-corpus or bibliography pages aligned with
ref/ when the repo has them.
- Use the repo's link syntax. If none exists, use normal Markdown links or Obsidian-style
[[page|label]] consistently.
Strong claims need citations to reference files, manifests, source pages, or datasets. If the evidence is missing, add an entry to plans/to-do/sources.md instead of presenting the claim as settled.
Wishlist Workflow
Maintain the wishlist as a historical source-acquisition queue.
Open entries should include:
- priority
- citation, dataset name, archival target, or best-known description
- why it matters
- attempted locations or failure modes
- likely destination under
ref/
Found entries should keep the original search trail and add:
- date found
- final reference path
- source route or user-provided provenance
- checksum or manifest reference when available
Do not delete fulfilled entries unless the repo explicitly uses a different archival convention.
Query And Synthesis Workflow
When answering research questions inside an auto-research repo:
- Search the wiki first.
- Check source pages, manifests, and reference filenames behind the relevant wiki claims.
- Distinguish evidence, inference, conjecture, and rhetoric.
- Update the wiki when the answer produces durable synthesis.
- Update open questions or wishlist entries when the answer exposes missing evidence.
- Log meaningful additions in
docs/wiki/log.md.
Avoid duplicating pages or rediscovering arguments. Extend the existing synthesis unless a new page is justified by a distinct concept, source corpus, or paper-shaped claim.
Publication Workflow
Use docs/public/ for canonical publication output. Publication projects should be portable HTML packages with self-contained publication files.
Exploratory publications may be created before a claim is paper-ready when they expose data, pressure-test a conjecture, or make a useful working artifact publishable. Create them under docs/public/exploratory/<project-slug>/, and label them as exploratory.
Draft mature treatise publications only from worked wiki synthesis. Before creating a mature treatise publication:
- Verify the claim is already represented in the wiki.
- Verify supporting and contradicting sources are linked.
- Add or update a paper seed if the repo uses one.
- Record the decision in
docs/wiki/log.md.
Create one directory per publication project under docs/public/exploratory/ or docs/public/treatise/. Output should be HTML-first so it can be archived, moved, and published online without a custom build environment. Prefer:
index.html as the directory table of contents, linking to every publication in that project.
- One self-contained single-page HTML file per publication, with inline CSS and JavaScript.
- No external CDN, remote stylesheet, remote script, or web-font dependency in the canonical HTML artifact.
- Inline or locally generated figures, tables, data extracts, and interactive elements tied back to
ref/, source pages, manifests, or reproducible scripts.
refs.bib, references.md, or an embedded references section drawn from source pages and reference manifests.
- A README or metadata block describing the lane, claim or purpose, status, category when applicable, source wiki pages, and reproducibility notes.
- Optional print/PDF export scripts only as secondary outputs generated from the HTML publication.
Useful mature treatise categories:
prove: constructive result, new bound, derivation, model, or positive finding.
disprove: refutation of a specific claim with evidence.
expose: evidence-backed critique of unsupported, misleading, fraudulent, p-hacked, unfalsifiable, or citation-laundered work.
Research Standards
- Prefer primary sources and reproducible datasets.
- Preserve uncertainty and unresolved contradictions.
- State what would falsify a conjecture.
- Attack the strongest version of a claim that the literature actually supports.
- Separate domain facts from repo-local hypotheses.
- Do not let unsupported claims harden into wiki synthesis.
- Prefer updating existing pages over creating fragmented parallel notes.
- Keep the output concise enough that future agents can use it as operational memory.
1---2name: auto-research-repo3description: Create, audit, maintain, ingest into, query, or draft from an auto-research repository using the shared project paths for immutable references, work notes, an LLM-maintained wiki, manifests, inbox staging, a source wishlist, and portable HTML publications. Use when Codex needs to author a new research repo, clean up repo instructions, process newly provided sources, capture rough project thoughts, consolidate research notes, turn evidence into wiki pages, create exploratory publications, or move mature wiki synthesis toward a treatise.4---56# Auto-Research Repo78Use this skill to work in repositories whose purpose is cumulative research, not one-off answers. Preserve source evidence, compile it into a durable wiki, and publish portable HTML outputs only when their evidence status is clear.910## Core Pattern1112Follow a one-way pipeline:1314`ref/` -> `docs/wiki/` -> `docs/public/`1516- Keep `ref/` as immutable evidence: papers, datasets, scans, archives, source bundles, and provenance records.17- Keep `plans/notes/notebook/` as a mutable scratchpad for rough project thoughts, hunches, outlines, dead ends, meeting notes, copied snippets, prompts, and other useful junk that is not yet evidence or synthesis.18- Keep `docs/wiki/` as the maintained synthesis layer: concepts, entities, source notes, evidence maps, questions, conjectures, contradictions, and paper seeds.19- Keep `docs/public/` as the publication output lane, with `docs/public/index.html` as the public table of contents.20- Use `docs/public/exploratory/` for publishable working reports, labs, evidence browsers, and conjecture pressure tests.21- Use `docs/public/treatise/` for mature paper-shaped publications promoted from wiki synthesis, not as the starting point.22- Keep `ref/inbox/` as a mutable intake tray for user-provided files; files become immutable after they are identified and moved elsewhere under `ref/`.23- Keep `plans/to-do/sources.md` as the source queue for missing, blocked, paywalled, or strategically important sources.2425In an existing repository, recognize legacy equivalents per `project-layout` and keep using one established tree rather than creating a parallel one.2627## Start By Reading The Repo2829Before changing anything:30311. Inspect the folder structure with `rg --files`, `find`, or existing project docs.322. Read local instructions such as `AGENTS.md`, `README.md`, `SKILL.md`, schema files, `ref/README.md`, `plans/notes/notebook/README.md`, `docs/wiki/index.md`, `docs/wiki/log.md`, and manifest examples.333. Infer existing naming conventions, link syntax, manifest fields, and log style from current files.344. Follow existing content conventions within the canonical paths.3536If the repo is new or incomplete, create the smallest useful scaffold:3738- `ref/`39- `ref/manifests/`40- `ref/inbox/`41- `plans/notes/notebook/`42- `plans/notes/notebook/README.md`43- `docs/wiki/`44- `docs/wiki/index.md`45- `docs/wiki/log.md`46- `docs/public/`47- `docs/public/index.html`48- `docs/public/exploratory/`49- `docs/public/treatise/`50- `plans/to-do/sources.md`5152## Notebook Workflow5354Use the notebook as a deliberately low-friction workbench.5556- Put messy, mutable, informal material in `plans/notes/notebook/`: stray observations, half-formed arguments, reading plans, temporary outlines, prompts, conversation notes, false starts, and things the user wants to remember without hardening into the wiki.57- Prefer lightweight dated or topic files when creating new notebook entries, but do not over-organize it. The folder is allowed to be rough.58- Do not treat notebook notes as evidence. If a notebook idea matters, connect it back to `ref/`, a manifest, a source page, or a wishlist entry before using it for a strong claim.59- Do not cite notebook notes in publications as if they were sources. Promote useful material into `docs/wiki/` once it becomes durable synthesis, and cite the underlying evidence there.60- Preserve the user's voice and intent in personal notes. Clean up, split, or move notebook material only when asked or when promoting selected ideas into the wiki.61- Search `plans/notes/notebook/` for leads, open questions, and user hunches, but distinguish those from sourced wiki claims.62- Log only meaningful promotions from the notebook into `docs/wiki/`, `plans/to-do/sources.md`, or `docs/public/`; routine scribbling does not need a wiki log entry.6364## Reference Source Rules6566Treat sources in `ref/` as evidence.6768- Do not edit downloaded or user-provided source files in place.69- Rename archived files descriptively unless their original names are already clear.70- Prefer names like `YYYY-author-short-title.ext` for papers and stable descriptive names for datasets.71- Store datasets with enough surrounding metadata to make later analysis reproducible.72- Record provenance before relying on a source for claims.73- Use checksums, preferably SHA-256, for archived files.7475For each source batch, update or create a manifest. Include, when available:7677- final file path78- citation or source title79- source URL, DOI, archive location, or user-provided provenance80- retrieval or ingest date81- checksum82- page count, row count, file inventory, or other shape notes83- why the source matters84- suggested wiki targets8586## Ingest Workflow8788When files appear in `ref/inbox/`:89901. Identify each file and its best bibliographic or dataset description.912. Rename it according to repo conventions.923. Move it into the appropriate immutable `ref/` lane.934. Update the relevant manifest with provenance and checksum.945. If it satisfies a wishlist entry, mark that entry found with date, final path, and manifest or checksum reference. Preserve the historical search trail.956. Update enough wiki pages that the source is discoverable.967. Append a dated entry to `docs/wiki/log.md`.978. Leave `ref/inbox/` empty after processing.9899Ask the user to place manually sourced files into `ref/inbox/` when a source is blocked, paywalled, unavailable, or needs human retrieval.100101## Wiki Workflow102103Use the wiki as cumulative working memory.104105- Compile each important source, observation, dataset, concept, entity, hypothesis, and contradiction once.106- Add or update source pages for important reference files or datasets.107- Add or update concept/entity pages for reusable domain knowledge.108- Add or update synthesis pages for cross-source arguments, evidence maps, tensions, conjectures, and teardowns.109- Keep `docs/wiki/index.md` current as the navigation hub.110- Keep `docs/wiki/log.md` as a dated record of ingest, query, synthesis, artifact, exploratory-publication, and treatise work.111- Keep source-corpus or bibliography pages aligned with `ref/` when the repo has them.112- Use the repo's link syntax. If none exists, use normal Markdown links or Obsidian-style `[[page|label]]` consistently.113114Strong claims need citations to reference files, manifests, source pages, or datasets. If the evidence is missing, add an entry to `plans/to-do/sources.md` instead of presenting the claim as settled.115116## Wishlist Workflow117118Maintain the wishlist as a historical source-acquisition queue.119120Open entries should include:121122- priority123- citation, dataset name, archival target, or best-known description124- why it matters125- attempted locations or failure modes126- likely destination under `ref/`127128Found entries should keep the original search trail and add:129130- date found131- final reference path132- source route or user-provided provenance133- checksum or manifest reference when available134135Do not delete fulfilled entries unless the repo explicitly uses a different archival convention.136137## Query And Synthesis Workflow138139When answering research questions inside an auto-research repo:1401411. Search the wiki first.1422. Check source pages, manifests, and reference filenames behind the relevant wiki claims.1433. Distinguish evidence, inference, conjecture, and rhetoric.1444. Update the wiki when the answer produces durable synthesis.1455. Update open questions or wishlist entries when the answer exposes missing evidence.1466. Log meaningful additions in `docs/wiki/log.md`.147148Avoid duplicating pages or rediscovering arguments. Extend the existing synthesis unless a new page is justified by a distinct concept, source corpus, or paper-shaped claim.149150## Publication Workflow151152Use `docs/public/` for canonical publication output. Publication projects should be portable HTML packages with self-contained publication files.153154Exploratory publications may be created before a claim is paper-ready when they expose data, pressure-test a conjecture, or make a useful working artifact publishable. Create them under `docs/public/exploratory/<project-slug>/`, and label them as exploratory.155156Draft mature treatise publications only from worked wiki synthesis. Before creating a mature treatise publication:157158- Verify the claim is already represented in the wiki.159- Verify supporting and contradicting sources are linked.160- Add or update a paper seed if the repo uses one.161- Record the decision in `docs/wiki/log.md`.162163Create one directory per publication project under `docs/public/exploratory/` or `docs/public/treatise/`. Output should be HTML-first so it can be archived, moved, and published online without a custom build environment. Prefer:164165- `index.html` as the directory table of contents, linking to every publication in that project.166- One self-contained single-page HTML file per publication, with inline CSS and JavaScript.167- No external CDN, remote stylesheet, remote script, or web-font dependency in the canonical HTML artifact.168- Inline or locally generated figures, tables, data extracts, and interactive elements tied back to `ref/`, source pages, manifests, or reproducible scripts.169- `refs.bib`, `references.md`, or an embedded references section drawn from source pages and reference manifests.170- A README or metadata block describing the lane, claim or purpose, status, category when applicable, source wiki pages, and reproducibility notes.171- Optional print/PDF export scripts only as secondary outputs generated from the HTML publication.172173Useful mature treatise categories:174175- `prove`: constructive result, new bound, derivation, model, or positive finding.176- `disprove`: refutation of a specific claim with evidence.177- `expose`: evidence-backed critique of unsupported, misleading, fraudulent, p-hacked, unfalsifiable, or citation-laundered work.178179## Research Standards180181- Prefer primary sources and reproducible datasets.182- Preserve uncertainty and unresolved contradictions.183- State what would falsify a conjecture.184- Attack the strongest version of a claim that the literature actually supports.185- Separate domain facts from repo-local hypotheses.186- Do not let unsupported claims harden into wiki synthesis.187- Prefer updating existing pages over creating fragmented parallel notes.188- Keep the output concise enough that future agents can use it as operational memory.