rpa-bot-handoff: drop to_docx.py, Claude builds the PDF itself

SKILL.md step 4 now tells Claude to render the SOP as one styled HTML page
(A4, 1.8 cm margins, 10.5 pt sans, bordered tables with a shaded header,
grey email box) and print it with headless Chrome or Edge, then look at
every page. The skill is one 54-line SKILL.md. Tests updated; the docx
selfcheck test is removed with the converter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
VasanthandClaude Opus 5.5 committed 2026-10-28 17:45:47 +05:30
1 parent b35796e1a5
commit 1b0f83a4ad
5 files changed
+7 -208

No files matched your search

+4 -10
View File
@@ -49,12 +49,11 @@ def handoff_skill():
return (ROOT / "skills" / "rpa-bot-handoff" / "SKILL.md").read_text(encoding="utf-8")
def test_handoff_skill_is_one_short_file_plus_the_converter():
files = sorted(p.relative_to(ROOT / "skills" / "rpa-bot-handoff").as_posix()
for p in (ROOT / "skills" / "rpa-bot-handoff").rglob("*") if p.is_file())
assert files == ["SKILL.md", "templates/to_docx.py"], files
def test_handoff_skill_is_one_short_file():
files = [p.name for p in (ROOT / "skills" / "rpa-bot-handoff").rglob("*") if p.is_file()]
assert files == ["SKILL.md"], files
assert len(handoff_skill().splitlines()) <= 60
assert "templates/to_docx.py" in handoff_skill()
assert "--print-to-pdf" in handoff_skill()
def test_handoff_skill_lists_six_dont_miss_checks():
@@ -68,8 +67,3 @@ def test_handoff_sop_shape_has_five_sections_and_to_cc():
assert "To: <developer>" in shape and "CC: <manager>" in shape
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