agentsclimarketplace

Cite style converter

Skill serejaris/kimi-skills/skills/cite-style-converter

Полная коллекция скиллов Kimi (267 built-in + 7 plugin skills), выгруженная из сандбокса агента

Install
npx -y skills add serejaris/kimi-skills --skill cite-style-converter

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 22 days oldThe repository was created 22 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Convert academic citations between APA, MLA, IEEE, and Harvard styles with batch processing and format validation. Trigger when users ask to convert, check, or fix their references, mention specific citation styles, or talk about their bibliography.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.6 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it

Cite Style Converter

An academic citation style conversion tool supporting APA (7th), MLA (9th), IEEE, and Harvard — the four most widely used citation formats. It enables cross-format conversion, format validation, and batch processing.

Supported Styles

StyleDescriptionExample
APAAmerican Psychological Association, 7th ed.Smith, J. A. (2023). Title. *Journal*, *1*(2), 10-20.
MLAModern Language Association, 9th ed.Smith, John A. "Title." *Journal*, vol. 1, no. 2, 2023, pp. 10-20.
IEEEInstitute of Electrical and Electronics Engineers[1] J. A. Smith, "Title," *Journal*, vol. 1, no. 2, pp. 10-20, 2023.
HarvardHarvard Referencing StyleSmith, J.A. (2023) 'Title', *Journal*, 1(2), pp. 10-20.

Quick Start

1. Convert by Text Input

Convert an APA citation to IEEE format:

python3 scripts/citation_formatter.py convert --to ieee "Smith, J. A. (2023). Machine learning approaches. Nature, 12(3), 45-67."

2. Convert by Structured JSON Input (More Precise)

echo '{"authors":["Smith, John A.","Jones, Mary B."],"year":"2023","title":"Machine learning approaches","journal":"Nature","volume":"12","issue":"3","pages":"45-67","entry_type":"article"}' | python3 scripts/citation_formatter.py format --style ieee

3. Format Validation

python3 scripts/citation_formatter.py check --style apa "Smith J (2023) Machine learning. Nature 12(3) 45-67"

4. Batch Processing

# Batch convert from a file (one citation per line)
python3 scripts/citation_formatter.py convert --to mla --input refs.txt

# Batch validate
python3 scripts/citation_formatter.py check --style apa --input refs.txt

5. Auto-Detect Style

python3 scripts/citation_formatter.py detect "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

Subcommand Reference

format — Format Structured Data

Converts structured citation data in JSON into a formatted citation string. This is the most reliable method since it doesn't require text parsing.

# Pass JSON via stdin
echo '{"authors":["Zhang, Wei"],"year":"2024","title":"Deep Learning","publisher":"Springer","entry_type":"book"}' | python3 scripts/citation_formatter.py format --style harvard

# Pass JSON via --data flag
python3 scripts/citation_formatter.py format --style apa --data '{"authors":["Li, Ming"],"year":"2024","title":"AI Methods","journal":"Science","volume":"5","pages":"1-10","entry_type":"article"}'

# Batch: pass a JSON array file
python3 scripts/citation_formatter.py format --style mla --input citations.json

JSON Field Reference:

FieldTypeRequiredDescription
authorsstring[]YesList of authors in "Last, First" format
yearstringYesPublication year
titlestringYesTitle of the work
journalstringFor articlesJournal name
volumestringVolume number
issuestringIssue number
pagesstringPage range, e.g. "45-67"
publisherstringFor booksPublisher name
doistringDOI
urlstringURL
entry_typestringarticle / book / chapter / webpage
editionstringEdition
citystringCity of publication

parse — Parse Text into Structured Data

python3 scripts/citation_formatter.py parse "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."
# Outputs structured JSON

convert — Convert Between Styles

# Auto-detect source style, convert to target
python3 scripts/citation_formatter.py convert --to harvard "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

# Specify source style explicitly
python3 scripts/citation_formatter.py convert --from apa --to ieee "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

# JSON output
python3 scripts/citation_formatter.py convert --to mla --json "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

check — Validate Citation Format

# Check if a citation conforms to APA style
python3 scripts/citation_formatter.py check --style apa "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

# JSON output (useful for programmatic processing)
python3 scripts/citation_formatter.py check --style apa --json "Smith, J. A. (2023). Title. Nature, 12(3), 45-67."

Validation checks include:

  • Missing required fields (author, title, year)
  • Year format correctness
  • Journal name, volume, and page numbers for journal articles
  • Publisher information for books
  • DOI format
  • Style-specific punctuation and structural conventions

detect — Auto-Detect Citation Style

python3 scripts/citation_formatter.py detect "[1] J. Smith, \"Title,\" Nature, vol. 1, 2023."
# Output: ieee

Usage Tips

  1. Most reliable method: Extract structured information from user input, build the JSON, then use the format subcommand
  2. Quick conversion: If the user already has properly formatted citation text, use the convert subcommand directly
  3. Batch processing: Place citations in a file (one per line) and use the --input flag
  4. Quality assurance: After conversion, verify results with the check subcommand

Prerequisites

  • Python 3.7+
  • No additional dependencies required (uses only the standard library)
  • No API key needed

What ships with it: 2 files

30.3 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 326,970. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.