← 返回 Skills 市场
330
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install citation-formatter
功能描述
Use when formatting references for journal submission, converting between citation styles (APA, MLA, Vancouver, Chicago), generating bibliographies for manus...
使用说明 (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 guidereferences/examples/- Working code examplesreferences/api-docs/- Complete API documentation
Skill ID: 625 | Version: 1.0 | License: MIT
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install citation-formatter - 安装完成后,直接呼叫该 Skill 的名称或使用
/citation-formatter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Citation Formatter 是什么?
Use when formatting references for journal submission, converting between citation styles (APA, MLA, Vancouver, Chicago), generating bibliographies for manus... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 330 次。
如何安装 Citation Formatter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install citation-formatter」即可一键安装,无需额外配置。
Citation Formatter 是免费的吗?
是的,Citation Formatter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Citation Formatter 支持哪些平台?
Citation Formatter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Citation Formatter?
由 googolme(@googolme)开发并维护,当前版本 v0.1.0。
推荐 Skills