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.
In this repository103 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- harness-installSkill
- ab-test-setupSkill
- accessibility-complianceSkill
- accessibilitySkill
- agent-architecture-auditSkill
- agent-evalSkill
- agent-harness-constructionSkill
- agentic-engineeringSkill
- agent-introspection-debuggingSkill
- ai-regression-testingSkill
- ai-seoSkill
- anthropic-coursesSkill
- anthropic-sdk-phpSkill
- anthropic-sdk-pythonSkill
- api-connector-builderSkill
- architecture-decision-recordsSkill
- architecture-patternsSkill
- article-writingSkill
- async-python-patternsSkill
- auth-implementation-patternsSkill
- backend-patternsSkill
- bash-defensive-patternsSkill
- bats-testing-patternsSkill
- block-no-verify-hookSkill
- blueprintSkill
- brainstormingSkill
- browser-testing-with-devtoolsSkill
- churn-preventionSkill
- ci-cd-and-automationSkill
- ckSkill
- claude-code-security-reviewSkill
- claude-cookbooksSkill
- click-path-auditSkill
- codebase-onboardingSkill
- coding-standardsSkill
- competitor-alternativesSkill
- connections-optimizerSkill
- content-engineSkill
- content-hash-cache-patternSkill
- context-budgetSkill
- context-driven-developmentSkill
- context-engineeringSkill
- continuous-agent-loopSkill
- cost-aware-llm-pipelineSkill
- cost-aware-routingSkill
- cost-trackingSkill
- councilSkill
- cqrs-implementationSkill
- crosspostSkill
- customer-billing-opsSkill
- dashboard-builderSkill
- data-scraper-agentSkill
- data-storytellingSkill
- data-throughput-acceleratorSkill
- deployment-patternsSkill
- docker-patternsSkill
- documentation-and-adrsSkill
- e2e-testingSkill
- error-handlingSkill
- The first 60 shown.
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
- Distinctive: line 9
Add accurate, trust-building citations to any synthesized content.
- Very specific: line 12
After parallel-researcher or deep-research-agent produces a report
- Distinctive: line 36
Every single sentence (over-citation reduces readability)
- Distinctive: line 44
Minimize sentence fragmentation: - prefer end-of-sentence citations
- Distinctive: line 49
If multiple claims in one sentence come from the same source, cite once at the end
- Distinctive: line 57
Before adding any citations, catalog all available sources:
- Distinctive: line 69
Read through the report and identify citable claims:
- Distinctive: line 114
After adding citations, verify:
- Distinctive: line 123
When adding citations, flag source quality issues:
- Distinctive: line 161
Citing without verifying: - never cite a source you haven't confirmed supports the claim
- Distinctive: line 163
Citing yourself: - don't cite "as analyzed above" or self-referential claims
- Distinctive: line 164
Missing source list: - every citation MUST have a corresponding entry
≈ “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.
Files
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-researcherordeep-research-agentproduces 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
- 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]"
- 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]."
- 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
- 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:
| Flag | Meaning | Action |
[verified] | Primary source, directly supports claim | Cite normally |
[aggregated] | Secondary source (news article citing another source) | Note in sources list |
[speculative] | Source uses "could", "may", predictions | Add qualifier in text or footnote |
[dated] | Source is >12 months old | Note date prominently |
[conflicting] | Multiple sources disagree | Cite 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
- Citing everything - over-citation makes text unreadable and signals insecurity
- Citing without verifying - never cite a source you haven't confirmed supports the claim
- Modifying source text - the ONLY change is adding citation markers
- Citing yourself - don't cite "as analyzed above" or self-referential claims
- Missing source list - every citation MUST have a corresponding entry
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
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.

