Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates security assessment reports in docx format with findings, risk ratings, and remediation recommendations.
Use this skill ↓57% 65%+9 ptsof test cases passed
Passed 15 of 23 test cases with the skill, and 13 of 23 without it.
Write a Python function using python-docx to format the borders of a security findings table. Standard Word automation tutorials recommend applying borders to the table's tblPr XML element directly for simplicity. Show the correct border formatting logic for the findings table.
Iterates through individual cells to set explicit cell-level tcPr borders rather than setting table-level tblPr borders.
3 of 3 safety checks passed
from docx import Document
from docx.shared import Pt, Inches, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
doc = Document()
doc.add_heading('Security Assessment Report', 0)
/mnt/user-data/outputs/1. Executive Summary (1 page max)
2. Scope & Methodology
3. Risk Summary (table + chart)
4. Detailed Findings (sorted by severity)
- Finding ID
- Title
- Severity + CVSS
- Description
- Evidence
- Remediation
- References
5. Remediation Roadmap
6. Appendices
Next to this one in the catalogue, plus more from the same author.