Agent skill

Oleafly Related Work

by Oleafly in Oleafly/Oleafly

Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography.

MITAuto-check passedResearch & Science

Install Oleafly Related Work

skills CLI
$ npx skills add Oleafly/Oleafly --skill oleafly-related-work -a claude-code

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

GitHub CLI
$ gh skill install Oleafly/Oleafly oleafly-related-work --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/Oleafly/Oleafly.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src-tauri/resources/skills/oleafly-related-work .claude/skills/oleafly-related-work && 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
oleafly-related-work
GitHub stars
212
Token cost
~2.7k tokens
SKILL.md length
1,522 words
Files
6 (incl. references, assets)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography.

  • Works in 7 steps: Establish the target → Inventory what you can cite → Group by theme, then order the themes → …
  • The user asks to write related work
  • SKILL.md covers Step 1. Establish the target, Step 2. Inventory what you can…, Step 3. Group by theme, then… and Step 4. Close the citation…, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Oleafly Related Work is an agent skill from Oleafly/Oleafly. Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography. Use when the user asks to write related work, expand the background, group prior work by theme, position their contribution against existing work, or repair a section full of unresolved citations. Checks projectmap unresolvedCites, adds verified entries before writing, and compiles until nothing is left unresolved.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files and assets (for example `assets/related-work-skeleton.md`, `references/citation-syntax.md` and `references/structure.md`). Compatibility notes: Needs a project with a bibliography and an engine that can compile. projectmap is offered only when the engine advertises a document index, and this skill…

It sits in Research & Science, covering Literature review, Citation management and LaTeX. It works with LaTeX. The repository describes itself as: The local-first AI assisted research workspace for scientific writing & publishing. Research, Write, Compile, Verify and Publish in LaTeX • Typst • Markdown • Git-native • Open…. The licence is MIT.

When your agent uses it

  • The user asks to write related work
  • Expand the background
  • Group prior work by theme
  • Position their contribution against existing work

Example prompts

  • “/oleafly-related-work”

Requirements

  • Compatibility (from SKILL.md): Needs a project with a bibliography and an engine that can compile. project_map is offered only when the engine advertises a document index, and this skill falls back to search_project.
  • Pre-approved tools (allowed-tools): project_map, search_project, project_library_search, read_file, write_file, replace_in_file, create_file, compile, get_log, get_pdf_text, verify_citation, update_todos, load_skill

Workflow steps

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

  1. Establish the target
  2. Inventory what you can cite
  3. Group by theme, then order the themes
  4. Close the citation gaps before writing
  5. Write
  6. Compile and verify
  7. Hand off

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • project_map
    • search_project
    • project_library_search
    • read_file
    • write_file
    • replace_in_file
    • create_file
    • compile
    • get_log
    • get_pdf_text

    …and 3 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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.

  • Compatibility

    Needs a project with a bibliography and an engine that can compile. project_map is offered only when the engine advertises a document index, and this skill falls back to search_project.

    From compatibility in the SKILL.md frontmatter.

Context cost

Oleafly Related Work loads about 2.7k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 1,522 words of instructions outside code blocks.

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

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 Oleafly/Oleafly at commit dc582ef, republished under its MIT licence (© Oleafly). 1,522 words, ~2,680 tokens.

Download SKILL.mdSave it as .claude/skills/oleafly-related-work/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
oleafly-related-work
description
Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography. Use when the user asks to write related work, expand the background, group prior work by theme, position their contribution against existing work, or repair a section full of unresolved citations. Checks project_map unresolvedCites, adds verified entries before writing, and compiles until nothing is left unresolved.
allowed-tools
project_map, search_project, project_library_search, read_file, write_file, replace_in_file, create_file, compile, get_log, get_pdf_text, verify_citation, update_todos, load_skill
compatibility
Needs a project with a bibliography and an engine that can compile. project_map is offered only when the engine advertises a document index, and this skill falls back to search_project.
license
MIT
metadata.version
1.0.0
metadata.skill-author
Oleafly

A related-work section has one job: show where this work sits among what already exists, and why the gap it fills is a real gap. It is an argument, not an annotated bibliography. Paragraphs that open "Smith et al. proposed..." and close "...achieved good results" are a list with margins.

The hard rule of this skill: never write a citation key that is not already in the project bibliography. Not as a placeholder, not with a comment saying to fix it later, not because the paper obviously exists. An invented key either fails to compile or renders as a question mark that survives to submission. If you want to cite something that has no entry, stop and add the entry first (step 4).

Step 1. Establish the target

Answer these before writing a sentence. Ask when you cannot infer it.

  • Which file. search_project with {"query": "Related Work"} or {"query": "\\section{Related"} finds an existing section. project_map with {} returns sections with file and line for each, and files for the project structure.
  • Whether this is a new section, a rewrite, or a repair of an existing one. A rewrite of the user's prose needs their agreement first.
  • The length budget. Related work is where page limits get lost. Ask for a paragraph count or a page fraction if the venue is tight.
  • The markup. LaTeX, Typst and Markdown cite differently and the wrong syntax fails silently in two of the three. See references/citation-syntax.md.

Set the plan with update_todos.

Step 2. Inventory what you can cite

Three sources, in this order.

  1. project_map with {}. Read bibKeys, which is the exact set of keys you are allowed to use, and unresolvedCites, which is the set of keys the document already cites with no entry behind them. A non empty unresolvedCites is a bug in the document and part of your job.
  2. read_file with {"path": "research/reading-list.md"}. If a sweep ran, this is the thematic grouping already done, with a "why it matters" sentence per paper that is the seed of your prose. If the file does not exist, the sweep has not run: consider handing off to oleafly-literature-sweep before drafting, and say so.
  3. project_library_search with {"query": "<topic>"} surfaces anything the user already wrote about this prior work elsewhere in the project, which you should not contradict.

When project_map is not offered, read_file the bibliography directly and take the keys from the @type{key, lines. search_project with {"query": "@"} locates them if you do not know the path.

Step 3. Group by theme, then order the themes

Group the papers by the question they answer, not by year and not by author. Three to five themes is the usual shape for a conference paper. Each theme becomes one paragraph, occasionally two.

Order the themes so that the last one is closest to this work. The section should narrow as it goes, ending where the contribution begins, so the transition into the next section needs no announcement.

Write the grouping down before you write prose. A three column sketch is enough: theme, the papers in it, the one sentence that paragraph must land.

Common groupings that work: by approach family (what they do), by the assumption they make (what they require), by the limitation they share (why the gap exists). The last one is the strongest when the paper's contribution is removing that limitation.

Step 4. Close the citation gaps before writing

Now, not later. For each paper you intend to cite that is not in bibKeys:

  1. verify_citation with {"doi": "<doi>"}, or {"title": "<exact title>"} when there is no DOI.
  2. A verified: false result means the paper is not confirmed. Do not cite it. Either drop the point or find a source that does verify.
  3. Append the returned BibTeX to the bibliography. Read the file first with read_file, then replace_in_file anchored on the last entry. Never write_file over an existing bibliography.
  4. compile with {} to confirm the file still parses.

If more than three or four entries are missing, this is a sweep, not a gap. Hand off with load_skill and {"id": "oleafly-literature-sweep"} so the papers get source notes and provenance rather than bare entries.

For keys already sitting in unresolvedCites, work out which is true: the entry is missing (add it as above), or the key is misspelled in the prose (fix the prose, do not add an entry to match a typo). search_project with {"query": "<the key>"} shows every use.

Step 5. Write

Use the skeleton in assets/ for your markup. Write with write_file for a new section file, or replace_in_file anchored on the existing section heading for a rewrite. For a rewrite, read_file the current text first: the user's own framing and terminology should survive your edit.

What a paragraph does, in order: name the approach family, say what those works achieve, say precisely what they do not handle, and connect that to this work. The fourth part is what makes it an argument.

Rules that keep it honest:

  • Every claim about what a paper does or does not do must come from the source note or the paper itself, not from the title. Titles overstate.
  • Cite at the point of the claim, not in a heap at the end of the paragraph. A trailing block of six keys tells the reader nothing about which paper supports which half of the sentence.
  • Name a limitation, do not insinuate one. "Does not scale" is a criticism. "Evaluated only up to 10k nodes" is a fact.
  • No superlatives about the user's own work in this section. It positions; it does not sell.
  • Do not summarise a paper you have not read past its abstract. If the reading list marks it to read, either read it with read_file on its source note, or leave the claim general enough to be supported by the abstract.
  • Keep the user's terminology. If they call it a "manifold prior" throughout, do not switch to "geometric prior" here.

Write the section, then reread it once asking a single question: if these paragraphs were deleted, what would the reader not understand about the contribution? If the answer is nothing, the section is a list and needs the fourth part of each paragraph.

Show full SKILL.md (487 more words)Show less

Step 6. Compile and verify

  1. compile with {}. On failure, get_log with {}, fix, compile again.
  2. project_map with {}. unresolvedCites must be empty. If it is not, every key in it is either a missing entry or a typo, and both are yours to fix.
  3. get_pdf_text with {}. Read the rendered section. This is the step that catches what compiles but is wrong: a citation rendering as [?], an entry rendering with the wrong year, a paragraph that ran to three pages, a bibliography that lost an author list.

A citation that resolves at compile time can still render as a question mark if the bibliography style dropped the entry. The PDF text is the only place that shows up.

Step 7. Hand off

  • The prose needs a quality pass for structure, hedging and reporting standards: load_skill with {"id": "scientific-writing"}.
  • The claims in the section need auditing against their sources one by one: load_skill with {"id": "oleafly-verify-claims"}.
  • More papers are needed than the gaps you closed: load_skill with {"id": "oleafly-literature-sweep"}.
  • The evidence in a specific paper needs appraising before you can characterise it fairly: load_skill with {"id": "scientific-critical-thinking"}.

Failure handling

What happenedWhat to do
project_map is not offeredThe engine has no document index. Read the bibliography with read_file and take keys from the @type{key, lines. Verify with compile and get_pdf_text instead
A key you want is not in bibKeysStep 4. Never write it and fix later
verify_citation cannot confirm a paperDo not cite it. Rewrite the point around a source that verifies, or drop it
compile fails after a bibliography appendThe entry is malformed. get_log, fix the entry, compile again. Do not comment out the citation to make the build pass
unresolvedCites still lists a key after your editEither the entry did not land or the prose spells the key differently. search_project on the key shows both sides
A citation renders as [?] in get_pdf_textThe entry exists but the style rejected it, usually a missing required field. Check the entry against the minimum fields for its type
The user asks you to cite a paper you cannot findSay you could not verify it. Ask for a DOI or a link. Do not write the key

Done when

  • Every citation key in the section appears in bibKeys.
  • unresolvedCites is empty.
  • Every entry added this session came from verify_citation.
  • Each paragraph names an approach family, what it achieves, what it does not handle, and how that connects to this work.
  • The themes narrow toward the contribution, and the last one is the closest.
  • compile is green and the rendered section in get_pdf_text shows no [?] and no missing bibliography entries.
  • The section fits the length the user asked for.

Reference files

  • references/structure.md covers grouping patterns, paragraph shapes, and the failure modes of each.
  • references/citation-syntax.md covers cite commands per engine and how to detect which one the project uses.
  • assets/related-work-skeleton.tex, .typ and .md are starting skeletons.

© Oleafly, 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 5 other files (references, assets) in src-tauri/resources/skills/oleafly-related-work of Oleafly/Oleafly.

  • SKILL.md
  • assets/related-work-skeleton.md
  • assets/related-work-skeleton.tex
  • assets/related-work-skeleton.typ
  • references/citation-syntax.md
  • references/structure.md

Open the folder on GitHubat commit dc582ef

Compare with similar skills

Oleafly Related Work 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.

Oleafly Related Work compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Oleafly Related Work this skillOleafly/Oleafly212—~2.7kAutomated safety check: PassMIT
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
Arxiv MCP Serverblazickjp/arxiv-mcp-server3.2k—~353Automated safety check: PassApache-2.0
Arxiv Paper Writerappautomaton/latex-arxiv-SKILL458—~2.3kAutomated safety check: PassMIT
Arxiv Paper Writeryunshenwuchuxun/latex-paper-skills267—~3.2kAutomated safety check: PassMIT
Paper SkillcLin-c/paper-skill119—~2.6kAutomated safety check: PassMIT

Similar skills

  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated 2 days ago
    Research & ScienceAuto-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 2 days ago
    Research & ScienceAuto-check passed
  • Arxiv Paper Writer

    appautomaton/latex-arxiv-SKILL

    Write LaTeX ML/AI review articles for arXiv using the IEEEtran template and verified BibTeX citations.

    458 GitHub stars~2.3k tokensUpdated 27 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
  • Paper Skill

    cLin-c/paper-skill

    End-to-end, Chinese-first academic research and publication workflow for reading papers, literature reviews, research framing, manuscript planning and writing, Chinese-English translation, LaTeX…

    119 GitHub stars~2.6k tokensUpdated 14 days ago
    Research & ScienceAuto-check passed
  • Research Survey

    EvoScientist/EvoSkills

    Generates structured literature survey reports from collected papers using a multi-stage pipeline: outline generation (query-type adaptive) → draft survey → section-by-section expansion → summary…

    478 GitHub starsUsed in 3 repos~2.5k tokens
    Research & ScienceAuto-check passed

More from Oleafly/Oleafly

All 12 skills in this repo
  • Perform bounded, local exploratory analysis of explicitly supported scientific files.

    212 GitHub starsUsed in 2 repos~3.4k tokens
    Auto-check: notes
  • Experimental Design

    Oleafly/Oleafly

    Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable.

    212 GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Facilitates evidence-aware scientific ideation with independent generation, structured discussion, explicit assumptions, transparent evaluation, adversarial review, and decision logs.

    212 GitHub starsUsed in 2 repos~3.5k tokens
    Auto-check passed
  • Create and audit truthful, accessible, publication-ready scientific figures with Matplotlib, Seaborn, or Plotly.

    212 GitHub stars~3.4k tokensUpdated today
    Auto-check: notes
  • Turn a research question into an annotated reading list with provenance.

    212 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Oleafly Research Loop

    Oleafly/Oleafly

    Entry point for research writing in Oleafly. An agent skill from Oleafly/Oleafly.

    212 GitHub stars~3.7k tokensUpdated today
    Auto-check passed

Works with

Questions about Oleafly Related Work

What does Oleafly Related Work do?

Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography. Oleafly Related Work is an agent skill from Oleafly/Oleafly. Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the project bibliography.

When should I use Oleafly Related Work?

Oleafly Related Work fits situations like: the user asks to write related work; expand the background; group prior work by theme; position their contribution against existing work.

How do I install Oleafly Related Work in Claude Code?

Run `npx skills add Oleafly/Oleafly --skill oleafly-related-work -a claude-code`. Or copy the skill folder (src-tauri/resources/skills/oleafly-related-work in Oleafly/Oleafly) into .claude/skills/oleafly-related-work in your project. Claude Code loads it when a task matches its description.

How do I install Oleafly Related Work in Codex?

Run `npx skills add Oleafly/Oleafly --skill oleafly-related-work -a codex`. Or copy the skill folder (src-tauri/resources/skills/oleafly-related-work in Oleafly/Oleafly) into .agents/skills/oleafly-related-work in your project. Codex loads it when a task matches its description.

Can I use Oleafly Related Work 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 Oleafly/Oleafly --skill oleafly-related-work -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/oleafly-related-work, .gemini/skills/oleafly-related-work, .github/skills/oleafly-related-work and .opencode/skills/oleafly-related-work in your project.

What does Oleafly Related Work need to run?

SKILL.md names no scripts, command-line tools or credentials: Oleafly Related Work is instructions for the agent only. Its frontmatter pre-approves these tools: project_map, search_project, project_library_search, read_file, write_file, replace_in_file, create_file, compile, get_log, get_pdf_text, verify_citation, update_todos, load_skill. Compatibility (from SKILL.md): Needs a project with a bibliography and an engine that can compile. project_map is offered only when the engine advertises a document index, and this skill falls back to search_project..

Does Oleafly Related Work 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 Oleafly Related Work 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 Oleafly Related Work use?

Oleafly Related Work is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Oleafly Related Work use?

About 2.7k tokens (SKILL.md is roughly 11k 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 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Oleafly Related Work?

Skills that share tags, products or a category with Oleafly Related Work: Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars), Arxiv MCP Server (blazickjp/arxiv-mcp-server, 3.2k stars), Arxiv Paper Writer (appautomaton/latex-arxiv-SKILL, 458 stars) and Arxiv Paper Writer (yunshenwuchuxun/latex-paper-skills, 267 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Oleafly Related Work?

Oleafly (a GitHub organization) maintains it in Oleafly/Oleafly, which has 212 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 10, 2026.

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