← Back to Skills Marketplace
googolme

Citation Formatter

by googolme · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
330
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install citation-formatter
Description
Use when formatting references for journal submission, converting between citation styles (APA, MLA, Vancouver, Chicago), generating bibliographies for manus...
README (SKILL.md)

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

Usage Guidance
This skill appears to implement a legitimate citation formatter, but the documentation and manifest contain small inconsistencies that could be accidental or indicate a rushed package. Before installing or running it: 1) quickly scan the full scripts/main.py for any network, subprocess, or file-path operations (look for imports like requests, urllib, socket, subprocess, os.environ access). 2) Test the tool in a sandbox with sample files to confirm imports and CLI behaviour (the SKILL.md examples include incorrect module paths). 3) Verify missing reference files noted in SKILL.md are not required for your workflow. If you expect the skill to access external reference managers or validate DOIs via the web, confirm where those network calls occur and whether they require credentials. If you are not comfortable auditing the code yourself, run it in an isolated environment.
Capability Analysis
Type: OpenClaw Skill Name: citation-formatter Version: 0.1.0 The citation-formatter skill is a Python-based tool designed to parse various academic citation formats (APA, MLA, Vancouver, BibTeX) and convert them to AMA style using regular expressions and string manipulation. While the documentation in SKILL.md is inconsistent with the actual implementation in scripts/main.py (e.g., referencing a non-existent CitationFormatter class and missing files), the provided code contains no malicious logic, network activity, or unauthorized file access. The broad permissions requested (Read, Write, Bash, Edit) are typical for file-processing skills, and no evidence of data exfiltration or prompt injection attacks was found.
Capability Assessment
Purpose & Capability
Name and description describe a citation formatter/converter and the repository includes a Python script (scripts/main.py) that implements parsers and formatting logic; requested capabilities (none) are proportional to the purpose.
Instruction Scope
SKILL.md instructs reading and writing reference files and running scripts/main.py from the CLI — appropriate for the skill. However, the SKILL.md contains inconsistent examples and references (e.g., both `from scripts.main import CitationFormatter` and `from scripts.citation_formatter import CitationFormatter`; references to references/guide.md and references/api-docs/ that are not present in the manifest; references/examples/ path differences). These documentation mismatches could cause runtime/import errors or confuse users.
Install Mechanism
No install spec is provided (instruction-only), so nothing is automatically downloaded or installed. The only code is shipped with the skill (scripts/main.py). This is a low install risk.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The visible Python code imports only standard libraries (re, sys, json, argparse, datetime, typing) — no network, subprocess, or secret-requiring libraries are apparent in the exposed portion.
Persistence & Privilege
The skill does not request always:true or other elevated persistence. It is user-invocable and allows autonomous invocation (platform default), which is normal for skills.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install citation-formatter
  3. After installation, invoke the skill by name or use /citation-formatter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of citation-formatter skill. - Automatically formats citations and bibliographies in 1000+ academic styles. - Converts references between major citation styles (e.g., APA, MLA, Vancouver, Chicago). - Validates reference completeness, accuracy, and compliance with journal requirements. - Supports batch processing and integration with reference managers. - Provides command-line and Python usage examples for easy integration.
Metadata
Slug citation-formatter
Version 0.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Citation Formatter?

Use when formatting references for journal submission, converting between citation styles (APA, MLA, Vancouver, Chicago), generating bibliographies for manus... It is an AI Agent Skill for Claude Code / OpenClaw, with 330 downloads so far.

How do I install Citation Formatter?

Run "/install citation-formatter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Citation Formatter free?

Yes, Citation Formatter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Citation Formatter support?

Citation Formatter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Citation Formatter?

It is built and maintained by googolme (@googolme); the current version is v0.1.0.

💬 Comments