Agent skill
office-docs-1-template-versioning
Sub-skill of office-docs: 1. Template Versioning (+3).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/office/office-docs/1-template-versioning
SKILL.md
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
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
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
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?