rpa-bot-handoff: end with HANDOVER.docx for the ops team

New last step: templates/to_docx.py turns the finished HANDOVER.md into a
Word document (python-docx), the skill checks it and gives that path to
the user as the deliverable. --selfcheck converts the Tebra example and
is run by tests/test_templates.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
VasanthandClaude Opus 5.5 committed 2026-10-28 15:01:42 +05:30
1 parent 3942fad6cd
commit f4c42f2956
4 files changed
+135 -2

No files matched your search

+8
View File
@@ -2,6 +2,7 @@
import re
import shutil
import subprocess
import sys
from pathlib import Path
import pytest
@@ -60,3 +61,10 @@ def test_handoff_lists_twelve_failure_classes():
def test_handoff_ops_guide_has_eleven_sections_in_order():
guide = (ROOT / "skills" / "rpa-bot-handoff" / "templates" / "HANDOVER.md").read_text(encoding="utf-8")
assert [int(n) for n in re.findall(r"^## (\d+)\.", guide, re.MULTILINE)] == list(range(1, 12))
def test_handoff_docx_selfcheck():
pytest.importorskip("docx")
script = ROOT / "skills" / "rpa-bot-handoff" / "templates" / "to_docx.py"
r = subprocess.run([sys.executable, str(script), "--selfcheck"], capture_output=True, text=True)
assert r.returncode == 0, r.stderr