agentleFS
socialadsmentorsocialadsmentor/sam-agentic-harness/skills/citation-engine/SKILL.md

citation-engine

Skill4 starsChanged 3 months agoMITView on GitHub

Post-processing skill that adds accurate citations to research reports and content without modifying the source text. Ensures claims are attributed to sources, improves trust and credibility. Based on Anthropic's citations agent pattern.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add accurate, trust-building citations to any synthesized content.

    line 9
  2. Very specific:

    After parallel-researcher or deep-research-agent produces a report

    line 12
  3. Distinctive:

    Every single sentence (over-citation reduces readability)

    line 36
  4. Distinctive:

    Minimize sentence fragmentation: - prefer end-of-sentence citations

    line 44
  5. Distinctive:

    If multiple claims in one sentence come from the same source, cite once at the end

    line 49
  6. Distinctive:

    Before adding any citations, catalog all available sources:

    line 57
  7. Distinctive:

    Read through the report and identify citable claims:

    line 69
  8. Distinctive:

    After adding citations, verify:

    line 114
  9. Distinctive:

    When adding citations, flag source quality issues:

    line 123
  10. Distinctive:

    Citing without verifying: - never cite a source you haven't confirmed supports the claim

    line 161
  11. Distinctive:

    Citing yourself: - don't cite "as analyzed above" or self-referential claims

    line 163
  12. Distinctive:

    Missing source list: - every citation MUST have a corresponding entry

    line 164

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Citation Engine

Add accurate, trust-building citations to any synthesized content. Zero modification to source text - only adds attribution markers.

When This Triggers

  • After parallel-researcher or deep-research-agent produces a report
  • User asks to "add citations", "add sources", "attribute claims"
  • Any research deliverable that needs source attribution
  • Content that will be client-facing and needs credibility
  • Blog posts, white papers, or reports based on research

When NOT to Use

  • Internal notes or working documents
  • Creative copy (ads, emails) - citations break the flow
  • Content based entirely on the LLM's training data (no external sources to cite)

Citation Rules

What to Cite

  • Key facts, statistics, and data points
  • Specific claims that readers would want to verify
  • Conclusions drawn from external sources
  • Quotes or paraphrased expert opinions
  • Anything that adds credibility when attributed

What NOT to Cite

  • Common knowledge ("the sky is blue")
  • The author's own analysis or opinions
  • Transitional phrases or structural text
  • Every single sentence (over-citation reduces readability)

Citation Quality Standards

  1. Cite meaningful semantic units - complete thoughts, not fragments
  • GOOD: "Revenue grew 23% year-over-year to $4.2B in Q3 2025.[1]"
  • BAD: "Revenue[1] grew 23%[2] year-over-year[3]"
  1. Minimize sentence fragmentation - prefer end-of-sentence citations
  • GOOD: "The company expanded into three new markets and hired 200 employees.[1]"
  • BAD: "The company expanded into three new markets[1] and hired 200 employees[1]."
  1. No redundant citations - one citation per source per sentence max
  • If multiple claims in one sentence come from the same source, cite once at the end
  1. Placement matters - citation goes after the period for full-sentence claims, after the clause for mid-sentence attributions

Process

Step 1: Inventory Sources

Before adding any citations, catalog all available sources:

SOURCE INVENTORY
[1] {title/URL/description} - {type: web, doc, API, database}
[2] {title/URL/description} - {type}
[3] {title/URL/description} - {type}
...

Step 2: Claim Mapping

Read through the report and identify citable claims:

CLAIM MAP
- Paragraph 1, Sentence 2: "{claim text}" → Source [2] (direct support)
- Paragraph 1, Sentence 4: "{claim text}" → Source [1] (partial support)
- Paragraph 3, Sentence 1: "{claim text}" → No source (author analysis - skip)
- Paragraph 3, Sentence 3: "{claim text}" → Sources [1] + [3] (corroborated)

Step 3: Apply Citations

CRITICAL CONSTRAINT: The source text MUST remain 100% identical. Only add citation markers.

Citation format options (match the output format):

Markdown (default):

Revenue grew 23% year-over-year to $4.2B in Q3 2025.[[1]](#source-1)

Numbered inline:

Revenue grew 23% year-over-year to $4.2B in Q3 2025.[1]

Footnote style:

Revenue grew 23% year-over-year to $4.2B in Q3 2025.¹

Step 4: Source List

Append a sources section at the end:

## Sources

1. [Source title](URL) - accessed {date}
2. [Source title](URL) - accessed {date}
3. {Document name}, {author}, {date}

Step 5: Verification

After adding citations, verify:

  • Source text is 100% unmodified (diff check)
  • Every citation has a corresponding entry in the sources list
  • No source is cited that doesn't actually support the claim
  • No over-citation (aim for 1 citation per 2-4 sentences, not every sentence)
  • Citation placement doesn't break sentence flow

Source Quality Flags

When adding citations, flag source quality issues:

FlagMeaningAction
[verified]Primary source, directly supports claimCite normally
[aggregated]Secondary source (news article citing another source)Note in sources list
[speculative]Source uses "could", "may", predictionsAdd qualifier in text or footnote
[dated]Source is >12 months oldNote date prominently
[conflicting]Multiple sources disagreeCite both, note disagreement

Output Format

CITATION REPORT
===============
Total claims identified: {n}
Claims cited: {n}
Claims skipped (common knowledge/analysis): {n}
Sources used: {n} of {total available}
Quality flags: {any issues noted}

[CITED DOCUMENT]
{full text with citations added}

[SOURCES]
{numbered source list}

Integration with Other Skills

  • parallel-researcher → produces report → citation-engine adds attribution
  • content-research-writer → draft content → citation-engine adds credibility layer
  • evaluator-optimizer → citation-engine output can be evaluated for citation quality
  • blog/SEO content → citations improve E-E-A-T signals (expertise, authority, trust)

Anti-Patterns

  1. Citing everything - over-citation makes text unreadable and signals insecurity
  2. Citing without verifying - never cite a source you haven't confirmed supports the claim
  3. Modifying source text - the ONLY change is adding citation markers
  4. Citing yourself - don't cite "as analyzed above" or self-referential claims
  5. Missing source list - every citation MUST have a corresponding entry

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.