office-docs-1-template-versioning

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

5 stars

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

$curl -o ~/.claude/skills/1-template-versioning/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/data/office/office-docs/1-template-versioning/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/1-template-versioning/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How office-docs-1-template-versioning Compares

Feature / Agentoffice-docs-1-template-versioningStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

Prevent deleted workflow/path references from creeping back into live docs by combining strict scans, legacy allowlists, and shared regex helpers.

office-docs

5
from vamseeachanta/workspace-hub

Automate Microsoft Office and PDF document workflows including generation, manipulation, and template-based document processing.

mkdocs-with-title

5
from vamseeachanta/workspace-hub

Sub-skill of mkdocs: With Title.

mkdocs-warning

5
from vamseeachanta/workspace-hub

MkDocs warning admonition syntax. Use when alerting readers to potential issues or cautions in MkDocs documentation.

mkdocs-tip

5
from vamseeachanta/workspace-hub

MkDocs tip admonition syntax. Use when adding best-practice suggestions or pro tips to MkDocs documentation.

mkdocs-tabbed-code-blocks

5
from vamseeachanta/workspace-hub

Sub-skill of mkdocs: Tabbed Code Blocks.

mkdocs-success

5
from vamseeachanta/workspace-hub

MkDocs success admonition syntax. Use when indicating completed actions or successful outcomes in MkDocs documentation.

mkdocs-subsection-11

5
from vamseeachanta/workspace-hub

Sub-skill of mkdocs: Subsection 1.1.

mkdocs-state-diagram

5
from vamseeachanta/workspace-hub

Sub-skill of mkdocs: State Diagram.

mkdocs-sequence-diagram

5
from vamseeachanta/workspace-hub

Sub-skill of mkdocs: Sequence Diagram.