citation-formatter

Use when formatting references for journal submission, converting between citation styles (APA, MLA, Vancouver, Chicago), generating bibliographies for manuscripts, or ensuring consistent reference formatting. Automatically formats citations and bibliographies in 1000+ academic styles. Ensures reference accuracy, completeness, and compliance with journal requirements. Supports batch conversion and integration with reference managers.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "citation-formatter" with this command: npx skills add googolme/citation-formatter

Academic Citation Style Formatter and Converter

When to Use This Skill

  • formatting references for journal submission
  • converting between citation styles (APA, MLA, Vancouver, Chicago)
  • generating bibliographies for manuscripts
  • ensuring consistent reference formatting
  • checking reference completeness and accuracy
  • preparing grant proposal reference sections

Quick Start

from scripts.main import CitationFormatter

# Initialize the tool
tool = CitationFormatter()

from scripts.citation_formatter import CitationFormatter

formatter = CitationFormatter()

# Format references for specific journal
formatted_refs = formatter.format_references(
    references=raw_references,
    target_style="Nature Medicine",
    output_format="docx"
)

# Convert between styles
converted = formatter.convert_style(
    bibliography=apa_bibliography,
    from_style="APA 7th",
    to_style="Vancouver",
    include_doi=True,
    include_pmids=True
)

# Validate reference completeness
validation = formatter.validate_references(
    references=reference_list,
    required_fields=["authors", "title", "journal", "year", "volume", "pages", "doi"]
)

print(f"Validation results:")
print(f"  Complete: {validation.complete_count}")
print(f"  Missing fields: {validation.incomplete_count}")
print(f"  Invalid DOIs: {len(validation.invalid_dois)}")

# Generate in-text citations
in_text = formatter.generate_in_text_citations(
    citations=[
        {"author": "Smith", "year": 2023, "type": "paren"},
        {"author": "Jones et al.", "year": 2022, "type": "narrative"}
    ],
    style="APA"
)

# Batch process multiple documents
batch_results = formatter.batch_format(
    files=["chapter1.docx", "chapter2.docx"],
    style="AMA",
    output_dir="formatted/"
)

Core Capabilities

1. Format citations in 1000+ academic styles

# Format functionality
result = tool.execute(data)

2. Convert seamlessly between citation formats

# Convert functionality
result = tool.execute(data)

3. Validate reference completeness and accuracy

# Validate functionality
result = tool.execute(data)

4. Batch process large reference collections

# Batch functionality
result = tool.execute(data)

Command Line Usage

python scripts/main.py --input references.bib --from-style APA --to-style Vancouver --output formatted.docx --validate

Best Practices

  • Always validate DOIs and URLs before submission
  • Check journal-specific requirements beyond standard style
  • Maintain original reference database for updates
  • Review formatting of special cases (websites, preprints)

Quality Checklist

Before using this skill, ensure you have:

  • Clear understanding of your objectives
  • Necessary input data prepared and validated
  • Output requirements defined
  • Reviewed relevant documentation

After using this skill, verify:

  • Results meet your quality standards
  • Outputs are properly formatted
  • Any errors or warnings have been addressed
  • Results are documented appropriately

References

  • references/guide.md - Comprehensive user guide
  • references/examples/ - Working code examples
  • references/api-docs/ - Complete API documentation

Skill ID: 625 | Version: 1.0 | License: MIT

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

aicade-create-service

Use when registering, updating, querying, or disabling aicade service-management APIs under /services, especially when preparing service metadata, billing, r...

Registry SourceRecently Updated
General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v6.0.0 — npm 包改名 @huo15/openclaw-enhance → @huo15/huo15-openclaw-enhance(与 huo15-* 命名规范对齐 + 让 ClawHub 重新创建干净的 plugin entry,绕开老 slug 1.3.0-5.1....

Registry SourceRecently Updated
General

Xiaohongshu Creator Marketplace (Pugongying) Creator Core Metrics API

Call GET /api/xiaohongshu-pgy/api/pgy/kol/data/core_data/v1 for Xiaohongshu Creator Marketplace (Pugongying) Creator Core Metrics through JustOneAPI with use...

Registry SourceRecently Updated
General

Xiaohongshu Creator Marketplace (Pugongying) Creator Search API

Call GET /api/xiaohongshu-pgy/api/solar/cooperator/blogger/v2/v1 for Xiaohongshu Creator Marketplace (Pugongying) Creator Search through JustOneAPI.

Registry SourceRecently Updated