{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-academic-writing-reference-style-sync-d58e067cd5d5","title":"Reference Style Sync: Literature Format Standardization","summary":"Standardize and synchronize reference formats in literature management tools like Zotero and EndNote, with options to fix metadata errors and unify citation styles. The tool produces a formatted output file in the specified style.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-reference-style-sync-d58e067cd5d5","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-reference-style-sync-d58e067cd5d5","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-reference-style-sync-d58e067cd5d5.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-reference-style-sync-d58e067cd5d5\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure Python 3.10+ is installed and run `pip install -r requirements.txt` before executing the script. Specify the input file path, output file path, and desired citation style (e.g., apa, mla, ama, vancouver, chicago) as required parameters.","instructions":"---\nname: reference-style-sync\ndescription: One-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Reference Style Sync\n\nOne-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.\n\n## When to Use\n\n- Use this skill when the task needs One-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.\n- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\n\n## Key Features\n\nSee `## Features` above for related details.\n\n- Scope-focused workflow aligned to: One-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.\n- Packaged executable path(s): `scripts\/main.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\nSee `## Prerequisites` above for related details.\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `dataclasses`: `unspecified`. Declared in `requirements.txt`.\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Academic Writing\/reference-style-sync\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\npython scripts\/main.py -h\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Overview\n\nReference Style Sync can:\n- Automatically detect and fix erroneous metadata scraped in Zotero\/EndNote\n- Unify literature formats to standard citation styles (APA, MLA, AMA, Vancouver, etc.)\n- Batch process entire literature libraries\n- Intelligently complete missing fields (DOI, page numbers, volume\/issue, etc.)\n- Detect duplicate entries and merge them\n\n## Supported Literature Management Tools\n\n- **Zotero**: Supports RDF, BibTeX, CSL JSON, RIS format export\n- **EndNote**: Supports XML, RIS, BibTeX format export\n- **Universal Formats**: BibTeX, RIS, CSV, JSON\n\n## Features\n\n### \ud83d\udd27 Metadata Repair\n- Author name format standardization\n- Journal name abbreviation\/full name unification\n- DOI format validation and completion\n- Page number format normalization\n- Date format unification\n\n### \ud83c\udfa8 Format Sync\n- Batch conversion to target citation format\n- Field order standardization\n- Punctuation unification\n- Case normalization\n\n### \ud83d\udd0d Quality Check\n- Missing field detection\n- Duplicate entry identification\n- Invalid DOI\/URL marking\n- Journal name spell checking\n\n## Usage\n\n### Command Line Interface\n\n```text\n\n# Process single file\npython scripts\/main.py --input library.bib --output fixed.bib --style apa\n\n# Fix metadata and convert to AMA format\npython scripts\/main.py --input zotero.rdf --output fixed.ris --style ama --fix-metadata\n\n# Batch processing and duplicate detection\npython scripts\/main.py --input library.json --output cleaned.json --deduplicate --style vancouver\n\n# Quality check only\npython scripts\/main.py --input library.bib --check-only\n```\n\n### Python API\n\n```python\nfrom scripts.main import ReferenceSync\n\n# Initialize\nsync = ReferenceSync()\n\n# Load library\nsync.load('library.bib')\n\n# Fix metadata\nsync.fix_metadata()\n\n# Convert to target format\nsync.convert_style(target_style='apa')\n\n# Export\nsync.export('output.bib')\n```\n\n## Parameter Description\n\n| Parameter | Type | Default | Description |\n|------|------|--------|------|\n| `--input` | str | Required | Input file path (.bib, .ris, .json, .xml) |\n| `--output` | str | Required | Output file path |\n| `--style` | str | ama | Target format: apa, mla, ama, vancouver, chicago |\n| `--fix-metadata` | bool | False | Enable metadata repair |\n| `--deduplicate` | bool | False | Detect and merge duplicate entries |\n| `--check-only` | bool | False | Check only, no output |\n| `--format` | str | auto | Input format auto-detect or specify |\n\n## Repair Rules\n\n### Author Names\n```python\n\n# Before repair\nSmith, John, Doe, Jane M.\nSmith J., Doe J.M.\n\n# After repair (AMA)\nSmith J, Doe JM.\n```\n\n### Journal Names\n```python\n\n# Before repair\njournal of the american medical association\nJ. Am. Med. Assoc.\n\n# After repair\nJAMA\n```\n\n### DOI\n```python\n\n# Before repair\nwww.doi.org\/10.1234\/example\ndoi:10.1234\/example\n10.1234\/example\n\n# After repair\ndoi:10.1234\/example\n```\n\n### Page Numbers\n```python\n\n# Before repair\n123-127\n123 -- 127\n123\u2013127\n\n# After repair\n123-127\n```\n\n## Output Example\n\n### Before Repair (Zotero Export)\n```\n@article{smith2020,\n  author = {Smith, John and Doe, Jane M.},\n  title = {A Study of Something},\n  journal = {journal of clinical medicine},\n  year = {2020},\n  volume = {15},\n  pages = {123-127},\n  doi = {10.1234\/example}\n}\n```\n\n### After Repair (AMA Format)\n```\n@article{smith2020,\n  author = {Smith J, Doe JM},\n  title = {A Study of Something},\n  journal = {J Clin Med},\n  year = {2020},\n  volume = {15},\n  pages = {123-127},\n  doi = {doi:10.1234\/example}\n}\n```\n\n## Technical Details\n\n**Difficulty**: Medium  \n**Dependencies**: Python 3.8+, regex, titlecase  \n**Data Processing**: Supports 10000+ entries batch processing\n\n## Supported Citation Formats\n\n- **AMA**: American Medical Association (11th Edition)\n- **APA**: American Psychological Association (7th Edition)\n- **MLA**: Modern Language Association (9th Edition)\n- **Vancouver**: ICMJE Recommended Format\n- **Chicago**: Chicago Manual of Style (17th Edition)\n- **IEEE**: Institute of Electrical and Electronics Engineers\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Notes\n\n1. It is recommended to backup the original library before processing\n2. Metadata repair is based on built-in rule library; complex cases may require manual review\n3. Journal abbreviations follow ISO 4 standard\n4. DOI validation uses regex patterns, does not actually resolve and verify\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python\/R scripts executed locally | Medium |\n| Network Access | No external API calls | Low |\n| File System Access | Read input files, write output files | Medium |\n| Instruction Tampering | Standard prompt guidelines | Low |\n| Data Exposure | Output files saved to workspace | Low |\n\n## Security Checklist\n\n- [ ] No hardcoded credentials or API keys\n- [ ] No unauthorized file system access (..\/)\n- [ ] Output does not expose sensitive information\n- [ ] Prompt injection protections in place\n- [ ] Input file paths validated (no ..\/ traversal)\n- [ ] Output directory restricted to workspace\n- [ ] Script execution in sandboxed environment\n- [ ] Error messages sanitized (no stack traces exposed)\n- [ ] Dependencies audited\n\n## Prerequisites\n\n```text\n\n# Python dependencies\npip install -r requirements.txt\n```\n\n## Evaluation Criteria\n\n### Success Metrics\n- [ ] Successfully executes main functionality\n- [ ] Output meets quality standards\n- [ ] Handles edge cases gracefully\n- [ ] Performance is acceptable\n\n### Test Cases\n1. **Basic Functionality**: Standard input \u2192 Expected output\n2. **Edge Case**: Invalid input \u2192 Graceful error handling\n3. **Performance**: Large dataset \u2192 Acceptable processing time\n\n## Lifecycle Status\n\n- **Current Stage**: Draft\n- **Next Review Date**: 2026-03-06\n- **Known Issues**: None\n- **Planned Improvements**: \n  - Performance optimization\n  - Additional feature support\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `reference-style-sync` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `reference-style-sync` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## References\n\n- [references\/audit-reference.md](references\/audit-reference.md) - Supported scope, audit commands, and fallback boundaries\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Fix metadata errors in Zotero\/EndNote exports","Unify citation styles across multiple literature sources","Batch process entire reference libraries"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Academic%20Writing\/reference-style-sync\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T10:37:24.000000Z","updated_at":"2026-11-24T07:14:40.000000Z","seo_title":"Reference Style Sync: Standardize Literature Formats","seo_description":"One-click reference format standardization for Zotero, EndNote, and other tools. Fix metadata errors and unify citation styles.","seo_keywords":["reference format standardization","Zotero citation style fix","EndNote metadata repair","literature format unification","citation style synchronization"]}}