Credential Fixture Review
python scripts/_env_constants.py is review material for the Academic Citation Style Formatter and Converter skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.
Academic Citation Style Formatter and Converter
When to Use
- Use this skill when the task needs 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.
- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
Key Features
- Scope-focused workflow aligned to: 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.
- Packaged executable path(s):
scripts/main.py.
- Reference material available in
references/ for task-specific guidance.
- Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
Python: 3.10+. Repository baseline for current packaged skills.
Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.
Example Usage
cd "20260318/scientific-skills/Academic Writing/citation-formatter"
python -m py_compile scripts/main.py
python scripts/main.py --help
Example run plan:
- Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings.
- Run
python scripts/main.py with the validated inputs.
- Review the generated output and return the final artifact with any assumptions called out.
Implementation Details
See ## Workflow above for related details.
- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface:
scripts/main.py.
- Reference guidance:
references/ contains supporting rules, prompts, or checklists.
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
Quick Check
Use this command to verify that the packaged script entry point can be parsed before deeper execution.
python -m py_compile scripts/main.py
Audit-Ready Commands
Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py --input "Audit validation sample with explicit symptoms, history, assessment, and next-step plan." --format json
Workflow
- Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
- Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
- Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
- Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
- If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
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:
After using this skill, verify:
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
Output Requirements
Every final response should make these items explicit when they are relevant:
- Objective or requested deliverable
- Inputs used and assumptions introduced
- Workflow or decision path
- Core result, recommendation, or artifact
- Constraints, risks, caveats, or validation needs
- Unresolved items and next-step checks
Error Handling
- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
- If
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
- Do not fabricate files, citations, data, search results, or execution outcomes.
Input Validation
This skill accepts requests that match the documented purpose of citation-formatter and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
citation-formatter only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
Response Template
Use the following fixed structure for non-trivial requests:
- Objective
- Inputs Received
- Assumptions
- Workflow
- Deliverable
- Risks and Limits
- Next Checks
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
1---2name: citation-formatter3description: 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.4license: MIT5---6
7
8
9
10### Credential Fixture Review
11
12`python scripts/_env_constants.py` is review material for the `Academic Citation Style Formatter and Converter` skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.
13
14# Academic Citation Style Formatter and Converter
15
16## When to Use
17
18- Use this skill when the task needs 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.
19- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.
20- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
21
22## Key Features
23
24- Scope-focused workflow aligned to: 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.
25- Packaged executable path(s): `scripts/main.py`.
26- Reference material available in `references/` for task-specific guidance.
27- Structured execution path designed to keep outputs consistent and reviewable.
28
29## Dependencies
30
31- `Python`: `3.10+`. Repository baseline for current packaged skills.
32- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.
33
34## Example Usage
35
36```bash
37cd "20260318/scientific-skills/Academic Writing/citation-formatter"
38python -m py_compile scripts/main.py
39python scripts/main.py --help
40```
41
42Example run plan:
431. Confirm the user input, output path, and any required config values.
442. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.
453. Run `python scripts/main.py` with the validated inputs.
464. Review the generated output and return the final artifact with any assumptions called out.
47
48## Implementation Details
49
50See `## Workflow` above for related details.
51
52- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
53- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
54- Primary implementation surface: `scripts/main.py`.
55- Reference guidance: `references/` contains supporting rules, prompts, or checklists.
56- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
57- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
58
59## Quick Check
60
61Use this command to verify that the packaged script entry point can be parsed before deeper execution.
62
63```bash
64python -m py_compile scripts/main.py
65```
66
67## Audit-Ready Commands
68
69Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
70
71```bash
72python -m py_compile scripts/main.py
73python scripts/main.py --help
74python scripts/main.py --input "Audit validation sample with explicit symptoms, history, assessment, and next-step plan." --format json
75```
76
77## Workflow
78
791. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
802. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
813. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
824. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
835. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
84
85## When to Use This Skill
86
87- formatting references for journal submission
88- converting between citation styles (APA, MLA, Vancouver, Chicago)
89- generating bibliographies for manuscripts
90- ensuring consistent reference formatting
91- checking reference completeness and accuracy
92- preparing grant proposal reference sections
93
94## Quick Start
95
96```python
97from scripts.main import CitationFormatter
98
99# Initialize the tool
100tool = CitationFormatter()
101
102from scripts.citation_formatter import CitationFormatter
103
104formatter = CitationFormatter()
105
106# Format references for specific journal
107formatted_refs = formatter.format_references(
108 references=raw_references,
109 target_style="Nature Medicine",
110 output_format="docx"
111)
112
113# Convert between styles
114converted = formatter.convert_style(
115 bibliography=apa_bibliography,
116 from_style="APA 7th",
117 to_style="Vancouver",
118 include_doi=True,
119 include_pmids=True
120)
121
122# Validate reference completeness
123validation = formatter.validate_references(
124 references=reference_list,
125 required_fields=["authors", "title", "journal", "year", "volume", "pages", "doi"]
126)
127
128print(f"Validation results:")
129print(f" Complete: {validation.complete_count}")
130print(f" Missing fields: {validation.incomplete_count}")
131print(f" Invalid DOIs: {len(validation.invalid_dois)}")
132
133# Generate in-text citations
134in_text = formatter.generate_in_text_citations(
135 citations=[
136 {"author": "Smith", "year": 2023, "type": "paren"},
137 {"author": "Jones et al.", "year": 2022, "type": "narrative"}
138 ],
139 style="APA"
140)
141
142# Batch process multiple documents
143batch_results = formatter.batch_format(
144 files=["chapter1.docx", "chapter2.docx"],
145 style="AMA",
146 output_dir="formatted/"
147)
148```
149
150## Core Capabilities
151
152### 1. Format citations in 1000+ academic styles
153
154```python
155
156# Format functionality
157result = tool.execute(data)
158```
159
160### 2. Convert seamlessly between citation formats
161
162```python
163
164# Convert functionality
165result = tool.execute(data)
166```
167
168### 3. Validate reference completeness and accuracy
169
170```python
171
172# Validate functionality
173result = tool.execute(data)
174```
175
176### 4. Batch process large reference collections
177
178```python
179
180# Batch functionality
181result = tool.execute(data)
182```
183
184## Command Line Usage
185
186```text
187python scripts/main.py --input references.bib --from-style APA --to-style Vancouver --output formatted.docx --validate
188```
189
190## Best Practices
191
192- Always validate DOIs and URLs before submission
193- Check journal-specific requirements beyond standard style
194- Maintain original reference database for updates
195- Review formatting of special cases (websites, preprints)
196
197## Quality Checklist
198
199Before using this skill, ensure you have:
200- [ ] Clear understanding of your objectives
201- [ ] Necessary input data prepared and validated
202- [ ] Output requirements defined
203- [ ] Reviewed relevant documentation
204
205After using this skill, verify:
206- [ ] Results meet your quality standards
207- [ ] Outputs are properly formatted
208- [ ] Any errors or warnings have been addressed
209- [ ] Results are documented appropriately
210
211## References
212
213- `references/guide.md` - Comprehensive user guide
214- `references/examples/` - Working code examples
215- `references/api-docs/` - Complete API documentation
216
217---
218
219**Skill ID**: 625 | **Version**: 1.0 | **License**: MIT
220
221## Output Requirements
222
223Every final response should make these items explicit when they are relevant:
224
225- Objective or requested deliverable
226- Inputs used and assumptions introduced
227- Workflow or decision path
228- Core result, recommendation, or artifact
229- Constraints, risks, caveats, or validation needs
230- Unresolved items and next-step checks
231
232## Error Handling
233
234- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
235- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
236- If `scripts/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
237- Do not fabricate files, citations, data, search results, or execution outcomes.
238
239## Input Validation
240
241This skill accepts requests that match the documented purpose of `citation-formatter` and include enough context to complete the workflow safely.
242
243Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
244
245> `citation-formatter` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
246
247## Response Template
248
249Use the following fixed structure for non-trivial requests:
250
2511. Objective
2522. Inputs Received
2533. Assumptions
2544. Workflow
2555. Deliverable
2566. Risks and Limits
2577. Next Checks
258
259If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.