Agent skill

Literature Survey

by ai4s-research in ai4s-research/ai4s-skills

A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

MITAuto-check passedDocuments & Office

Install Literature Survey

skills CLI
$ npx skills add ai4s-research/ai4s-skills --skill literature-survey -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ai4s-research/ai4s-skills literature-survey --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ai4s-research/ai4s-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/literature-survey .claude/skills/literature-survey && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
literature-survey
GitHub stars
237
Used in
2 other repos
Token cost
~2k tokens
SKILL.md length
885 words
Files
12 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

  • Works in 4 steps: Understand the topic and scope → Set up the run directory → Build the survey (REQUIRED — this is the… → …
  • The user wants a comprehensive literature survey on a specific research topic
  • SKILL.md covers Overview, When to Use, When NOT to Use and Workflow, plus 2 more sections
  • Runs Python and Shell scripts from its folder; calls python3

What it does

Literature Survey is an agent skill from ai4s-research/ai4s-skills. Use when the user wants a comprehensive literature survey on a specific research topic. Outputs a complete PDF survey (6–20 pages, 60+ real citations, 100+ recommended) with LaTeX source, topic-specific publication figures, and a classified literature table. Single-stage, no Python runtime.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including reference files (for example `references/00-incremental-execution.md`, `references/01-bibliography-expansion.md` and `references/02-survey-figures.md`).

It sits in Documents & Office, covering Citation management, LaTeX and Data visualization. It works with Python and LaTeX. The repository describes itself as: Open-source agent skills for AI for Science: topic exploration, literature survey, experiments, paper writing, and integrity audit — driven by any coding agent. The licence is MIT.

When your agent uses it

  • The user wants a comprehensive literature survey on a specific research topic
  • Tasks that involve Citation management
  • Tasks that involve LaTeX

Example prompts

  • “/literature-survey”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Understand the topic and scope
  2. Set up the run directory
  3. Build the survey (REQUIRED — this is the whole job)
  4. Deliver

What it can do on your machine

Read from SKILL.md and the folder at commit 744ab20. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Literature Survey loads about 2k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 77 tokens; SKILL.md has 885 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~23k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ai4s-research/ai4s-skills at commit 744ab20, republished under its MIT licence (© ai4s-research). 885 words, ~2,009 tokens.

Download SKILL.mdSave it as .claude/skills/literature-survey/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
literature-survey
description
Use when the user wants a comprehensive literature survey on a specific research topic. Outputs a complete PDF survey (6–20 pages, 60+ real citations, 100+ recommended) with LaTeX source, topic-specific publication figures, and a classified literature table. Single-stage, no Python runtime.

Literature Survey

Overview

End-to-end literature survey builder. Single stage, full quality from the start. The agent (Claude Code / Cursor / Aider / Codex / …) does the entire build using its own tools (WebFetch, WebSearch, Write, Bash). This SKILL is procedure + reference playbooks + LaTeX template — no Python runtime, no LLM SDK.

The substantive work is decomposed into reference playbooks under references/:

ReferenceTopic
references/00-incremental-execution.mdhow to actually do this without losing work: batch sizes, persistence, resume — read first
references/01-bibliography-expansion.mdgrow bibliography.bib to 60+ real entries (100+ recommended) via WebFetch (no memory)
references/02-survey-figures.mdtaxonomy / timeline / coverage-matrix / area-map figures
references/03-survey-section-playbook.mdper-section structure for survey-shaped papers
references/04-layout-discipline.mdtables, figures, floats, cross-refs, author + disclosure footnote
references/05-quality-gate.mdself-check before delivery

Read the relevant reference before writing, not after. The full pass does not fit in a single turn — references/00-incremental-execution.md is the only execution mode that completes.

When to Use

  • User asks for a "survey" / "review" on a specific topic.
  • User has a research topic and wants a structured map of the field with citations.
  • User needs background reading curated for a thesis chapter or grant section.

When NOT to Use

  • User wants original research with experiments → paper-writer.
  • User wants only an outline / topic exploration → research-explorer.
  • User wants experiment code → experiment-suite.
  • Topic is too broad (e.g., "all of AI") — narrow it before starting.

Workflow

Step 1 — Understand the topic and scope

Confirm with the user:

  • Topic — specific research area (e.g., "federated learning in healthcare"). If too broad, narrow it first.
  • Scope — broad survey of a field vs. focused review of a sub-area.
  • Citation budget — minimum 60 unique entries; aim for 100+ (push higher for a broad survey).
  • Language — default Chinese in conversation; the LaTeX paper is English unless requested otherwise.

Always tell the user that human review by a domain expert is recommended before publication or production use.

Step 2 — Set up the run directory
bash
TOPIC="<topic>"
SLUG=$(python3 -c "import re,hashlib,sys; t=sys.argv[1]; n=re.sub(r'[\\s_]+','-',re.sub(r'[^\\w\\s-]','',t.lower().strip())).strip('-')[:40].rstrip('-'); h=hashlib.sha1(t.encode()).hexdigest()[:8]; print(f'{n}-{h}')" "$TOPIC")
TS=$(date +%Y-%m-%d_%H%M%S)
RUN=output/literature-survey/$SLUG/$TS/survey_paper

mkdir -p "$RUN/sections" "$RUN/figures"
cp -r literature-survey/templates/survey/. "$RUN/"
ln -sfn "$TS" "output/literature-survey/$SLUG/latest"

In commands below $RUN = output/literature-survey/<slug>/latest/survey_paper.

Step 3 — Build the survey (REQUIRED — this is the whole job)

Open references/00-incremental-execution.md first. Then carry out the five tracks below across many turns, persisting state to $RUN/ after every batch.

Open: references/01-bibliography-expansion.md.

First (§0 of that reference): read the topic's temporal/scope intent and pick a search posture. AI4S and similarly fast-moving fields default to at least 60% of references from the current calendar year and previous two years. If the topic names a year or says "latest/recent", use the stricter recency-led profile. Historical/theoretical surveys retain a timeline-spanning exception.

Then plan 12–20 query angles, weighted by the posture. For each angle: WebSearch → triage → WebFetch each kept candidate's abstract URL → extract canonical title/authors/year/venue/url → append a BibTeX entry to $RUN/bibliography.bib. Every entry must originate from a URL fetched in this session. Memory entries forbidden.

Hard stop: do not draft prose until the bibliography has ≥ 60 entries (100+ recommended) and passes check_bibliography_freshness.py for the recorded profile.

3.2 Figures — 6–10 survey-shaped

Open: references/02-survey-figures.md.

A survey is defined by how well it organises a field. Choose 6–10 topic-specific figures from the families that the evidence supports:

  • taxonomy / classification diagram when the field has defensible branches;
  • timeline when chronology explains a change in the field;
  • area / capability matrix when comparable coverage data exists;
  • architecture / mechanism diagram when a shared mechanism needs explanation;
  • quantitative trend plots when extracted data supports them;
  • citation network or paradigm comparison when the relationship itself matters.

Never force a family to fill a slot. Save each figure into $RUN/figures/ with reproducible source alongside.

Show full SKILL.md (317 more words)Show less
3.3 Sections — survey-shaped prose

Open: references/03-survey-section-playbook.md.

Survey sections differ in shape from research-paper sections. Order: introduction → background → methods (themed survey) → discussion → conclusion → related work → abstract last.

3.4 Layout discipline

Open: references/04-layout-discipline.md.

Put each figure or table in the section whose prose first introduces or interprets it, immediately after that paragraph in the source. Use standard LaTeX floats with booktabs for tables and choose [htbp], [tbp], or [p] from the artifact's size and narrative role; do not force a common position or section. Use ~\cite{} and ~\ref{}. Let LaTeX assign citation, figure, table, equation, and section numbers from 1 in first-appearance order; never type display numbers manually. Set \author{AI4S Agent} with a \thanks footnote that always recommends human review. Surveys carry no simulated numerical experiments, so do not include a simulated clause.

3.5 Compile + quality gate
bash
cd "$RUN"
pdflatex -interaction=nonstopmode main.tex
bibtex main
pdflatex -interaction=nonstopmode main.tex
pdflatex -interaction=nonstopmode main.tex

Open: references/05-quality-gate.md. Survey-specific targets: ≥ 60 bib entries (100+ recommended), ≥ 6 pages, and only figures justified by the topic's evidence.

If a gate cannot honestly be met (e.g., the field is genuinely small), say so explicitly. Do not pad.

Step 4 — Deliver

Report:

  1. output/literature-survey/<slug>/latest/survey_paper/main.pdf
  2. output/literature-survey/<slug>/latest/survey_paper/ — complete LaTeX project (reproducible)
  3. output/literature-survey/<slug>/latest/literature_table.md — classified literature table (write this alongside the bib build)
  4. Stats per the report format in references/05-quality-gate.md.

Cross-skill data flow (path convention)

A downstream skill (e.g., paper-writer) computing the same slug for the same topic will look here:

  • output/literature-survey/<slug>/latest/survey_paper/bibliography.bib — bib starting point.

Important rules

  • No LLM SDK in this skill. No import anthropic / import openai. The skill is SKILL.md + references + LaTeX template only.
  • No fabricated citations. Every BibTeX entry must trace back to a URL fetched this session. Real or weaker claim — never fake reference.
  • Honest stop > padding. If the field is too small for 60 real citations, say so to the user instead of inventing entries.
  • Survey scope is 6–20 pages with 60–150 references (100+ recommended). For longer or shorter formats, adjust scope explicitly with the user up front.

© ai4s-research, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (references) in skills/literature-survey of ai4s-research/ai4s-skills.

  • SKILL.md
  • references/00-incremental-execution.md
  • references/01-bibliography-expansion.md
  • references/02-survey-figures.md
  • references/03-survey-section-playbook.md
  • references/04-layout-discipline.md
  • references/05-quality-gate.md
  • templates/survey/check_bibliography_freshness.py
  • templates/survey/compile.sh
  • templates/survey/figures/.gitkeep
  • templates/survey/main.tex
  • templates/survey/sections/.gitkeep

Open the folder on GitHubat commit 744ab20

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in ai4s-research/ai4s-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Literature Survey next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Literature Survey compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Literature Survey this skillai4s-research/ai4s-skills2372 repos~2kAutomated safety check: PassMIT
Tablebrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~3.3kAutomated safety check: PassCustom licence
Latex Thesis Zhbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~1.5kAutomated safety check: PassCustom licence
Latex ScaffoldWILLOSCAR/research-units-pipeline-skills513—~874Automated safety check: PassNone
Latex Compile QAWILLOSCAR/research-units-pipeline-skills513—~696Automated safety check: PassNone
Arxiv MCP Serverblazickjp/arxiv-mcp-server3.2k—~353Automated safety check: PassApache-2.0

Similar skills

  • Table

    brycewang-stanford/Auto-Empirical-Research-Skills

    Econometrics skill for creating publication-quality LaTeX regression and summary tables.

    4.6k GitHub stars~3.3k tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Latex Thesis Zh

    brycewang-stanford/Auto-Empirical-Research-Skills

    Chinese LaTeX thesis assistant for existing .tex degree thesis projects (XeLaTeX/LuaLaTeX/latexmk).

    4.6k GitHub stars~1.5k tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Latex Scaffold

    WILLOSCAR/research-units-pipeline-skills

    Scaffold a LaTeX project (latex/main.tex, optional bibliography wiring, structure) from an existing Markdown draft.

    513 GitHub stars~874 tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Latex Compile QA

    WILLOSCAR/research-units-pipeline-skills

    Compile a LaTeX project and run basic QA (missing refs, bib errors, broken citations), producing latex/main.pdf and a build report.

    513 GitHub stars~696 tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Arxiv MCP Server

    blazickjp/arxiv-mcp-server

    A skill your agent uses when finding, comparing, reading, or monitoring arXiv papers, including requests for abstracts, citation graphs, original LaTeX, section-level technical details, or…

    3.2k GitHub stars~353 tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Arxiv Paper Writer

    yunshenwuchuxun/latex-paper-skills

    Writes ML/AI review and survey papers for arXiv using the IEEEtran LaTeX template with verified BibTeX citations.

    267 GitHub stars~3.2k tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed

More from ai4s-research/ai4s-skills

  • Experiment Suite

    ai4s-research/ai4s-skills

    A skill your agent uses when the user has a research question and needs a complete experiment package — design document, runnable code, results (measured or simulated with honest provenance)…

    237 GitHub starsUsed in 2 repos~2.5k tokens
    Auto-check passed
  • Integrity Auditor

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a paper audited for integrity issues — image misuse, numerical anomalies, logical gaps — and needs a reviewable evidence report.

    237 GitHub starsUsed in 1 repo~5k tokens
    Auto-check passed
  • Paper Writer

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of…

    237 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Research Explorer

    ai4s-research/ai4s-skills

    A skill your agent uses when the user has a vague research direction and wants to explore feasible specific topics.

    237 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Ai4s Agent

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants an end-to-end AI4S research pipeline — broad direction or specific topic in, full research package out (exploration + literature survey + experiment +…

    237 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Mindmap Render

    ai4s-research/ai4s-skills

    Generate beautiful, high-resolution mindmaps from Markdown unordered lists.

    237 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed

Works with

Questions about Literature Survey

What does Literature Survey do?

A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic. Literature Survey is an agent skill from ai4s-research/ai4s-skills. Use when the user wants a comprehensive literature survey on a specific research topic.

When should I use Literature Survey?

Literature Survey fits situations like: the user wants a comprehensive literature survey on a specific research topic; tasks that involve Citation management; tasks that involve LaTeX.

How do I install Literature Survey in Claude Code?

Run `npx skills add ai4s-research/ai4s-skills --skill literature-survey -a claude-code`. Or copy the skill folder (skills/literature-survey in ai4s-research/ai4s-skills) into .claude/skills/literature-survey in your project. Claude Code loads it when a task matches its description.

How do I install Literature Survey in Codex?

Run `npx skills add ai4s-research/ai4s-skills --skill literature-survey -a codex`. Or copy the skill folder (skills/literature-survey in ai4s-research/ai4s-skills) into .agents/skills/literature-survey in your project. Codex loads it when a task matches its description.

Can I use Literature Survey in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai4s-research/ai4s-skills --skill literature-survey -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/literature-survey, .gemini/skills/literature-survey, .github/skills/literature-survey and .opencode/skills/literature-survey in your project.

What does Literature Survey need to run?

Going by SKILL.md and its folder, Literature Survey needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; A Bash shell.

Does Literature Survey access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Literature Survey safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Literature Survey use?

Literature Survey is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Literature Survey use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 21k tokens, read only when the agent opens those files.

What are the alternatives to Literature Survey?

Skills that share tags, products or a category with Literature Survey: Table (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars), Latex Thesis Zh (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars), Latex Scaffold (WILLOSCAR/research-units-pipeline-skills, 513 stars) and Latex Compile QA (WILLOSCAR/research-units-pipeline-skills, 513 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Literature Survey?

ai4s-research (a GitHub organization) maintains it in ai4s-research/ai4s-skills, which has 237 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 28, 2026.

Source: ai4s-research/ai4s-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.