Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

office-docs-1-template-versioning

FreeNo executable scriptsNot checked

Sub-skill of office-docs: 1. Template Versioning (+3).

vamseeachantaby vamseeachanta★ 21 GitHub stars

About this skill

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

Install office-docs-1-template-versioning in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the office-docs-1-template-versioning skill do?

Sub-skill of office-docs: 1. Template Versioning (+3).

How do I install the office-docs-1-template-versioning skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the office-docs-1-template-versioning skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare office-docs-1-template-versioning with