office-docs-1-template-versioning
Sub-skill of office-docs: 1. Template Versioning (+3).
Best use case
office-docs-1-template-versioning is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of office-docs: 1. Template Versioning (+3).
Teams using office-docs-1-template-versioning should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/1-template-versioning/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How office-docs-1-template-versioning Compares
| Feature / Agent | office-docs-1-template-versioning | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of office-docs: 1. Template Versioning (+3).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 1. Template Versioning (+3)
## 1. Template Versioning
```
templates/
├── v1/
│ └── contract_template.docx
├── v2/
│ └── contract_template.docx # Updated branding
└── current -> v2/ # Symlink to current version
```
## 2. Validation Before Generation
```python
def validate_context(context, required_fields):
"""Validate context before document generation."""
missing = [f for f in required_fields if f not in context or not context[f]]
if missing:
raise ValueError(f"Missing required fields: {missing}")
return True
```
## 3. Output Organization
```python
from datetime import datetime
def get_output_path(doc_type, client_id, extension='docx'):
"""Generate organized output path."""
date_str = datetime.now().strftime('%Y/%m/%d')
return f"output/{doc_type}/{date_str}/{client_id}.{extension}"
```
## 4. Logging and Audit Trail
```python
def generate_with_audit(template, context, output_path):
"""Generate document with audit logging."""
start_time = time.time()
result = generate_document(template, context, output_path)
audit_log.info({
'action': 'document_generated',
'template': template,
'output': output_path,
'duration': time.time() - start_time,
'context_keys': list(context.keys())
})
return result
```Related Skills
bulk-docstring-addition
Add Google-style docstrings to all public functions and classes in a Python package. Uses AST parsing for precise gap detection, priority ranking by coverage ratio, and multi-file patching.
python-project-template
Generate standardized Python project structure with pyproject.toml, UV environment, pytest configuration, and workspace-hub compliance. Creates production-ready project scaffolding.
docs-stale-reference-guardrails
Prevent deleted workflow/path references from creeping back into live docs by combining strict scans, legacy allowlists, and shared regex helpers.
office-docs
Automate Microsoft Office and PDF document workflows including generation, manipulation, and template-based document processing.
mkdocs-with-title
Sub-skill of mkdocs: With Title.
mkdocs-warning
MkDocs warning admonition syntax. Use when alerting readers to potential issues or cautions in MkDocs documentation.
mkdocs-tip
MkDocs tip admonition syntax. Use when adding best-practice suggestions or pro tips to MkDocs documentation.
mkdocs-tabbed-code-blocks
Sub-skill of mkdocs: Tabbed Code Blocks.
mkdocs-success
MkDocs success admonition syntax. Use when indicating completed actions or successful outcomes in MkDocs documentation.
mkdocs-subsection-11
Sub-skill of mkdocs: Subsection 1.1.
mkdocs-state-diagram
Sub-skill of mkdocs: State Diagram.
mkdocs-sequence-diagram
Sub-skill of mkdocs: Sequence Diagram.