gdocs-audit-report

Write and format security audit reports in Google Docs via the Docs API, including findings, tables, and severity-styled presentation. Intended for building or repairing audit report documents.

Last repository push
GitHub Stars
156
Forks
34
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "gdocs-audit-report" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f6f8216256316822c66f8bbeef62814e15efbd7ffcc01463cb1b26c736cbff16. Verify the upstream source and version against https://github.com/forefy/.context before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Write and format security audit reports in Google Docs via the Docs API, including findings, tables, and severity-styled presentation. Intended for building or repairing audit report documents.

0 Downloads

Introduction source: third_party · forefy · 0.0.1 Reference

SkillPi interpretation

Tasks
Expert skill for creating, formatting, and maintaining security audit reports in Google Docs via the Docs API. Use when asked to write, update, style, or fix an audit report document - including finding formatting, summary tables, inline code styling, bullet conversion, cross-reference hyperlinks, and severity color schemes. Covers auth, index-drift safety, and all common formatting pitfalls.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: gdocs-audit-report
description: Expert skill for creating, formatting, and maintaining security audit reports in Google Docs via the Docs API. Use when asked to write, update, style, or fix an audit report document - including finding formatting, summary tables, inline code styling, bullet conversion, cross-reference hyperlinks, and severity color schemes. Covers auth, index-drift safety, and all common formatting pitfalls.

Google Docs Security Audit Report

Overview

This skill provides patterns, constants, and gotcha-avoidance for building and maintaining security audit reports in Google Docs using the Docs API (service account auth). It encodes hard-won lessons around index drift, code styling multi-pass, paragraph vs text backgrounds, heading anchor URLs, and cross-reference linking.

Always read references/api-patterns.md and references/formatting-standards.md before writing any script.

Workflow

1. Auth          → make_token() from scripts/gdocs_auth.py
2. get_doc()     → fresh snapshot before EVERY batch of edits
3. Build ops     → sort ALL ops highest-index-first
4. do_batch()    → send in chunks of ≤50
5. Verify        → get_doc() again and spot-check changed ranges

Critical Gotchas (read these first)

1. Index drift

Any insert/delete shifts every index above it. Always sort ops high→low. Always get_doc() fresh.

2. Text bg ≠ paragraph bg

updateTextStyle.backgroundColor only covers character width - leaves white gaps between lines in code blocks. Use updateParagraphStyle.shading.backgroundColor + spaceAbove/Below: 0 for full-width code block backgrounds.

3. headingId already has h. prefix

Anchor URL = #heading={headingId} - not #heading=h.{headingId}.

4. Code styling needs multiple passes

After updateTextStyle splits a run, new unstyled sub-runs appear. Always do a second full-doc re-scan after the first styling pass.

5. Sort code terms longest-first

Prevents maxRelayFeeBPS matching before assetConfig.maxRelayFeeBPS and leaving a partial un-styled prefix.

6. Backtick removal order (per segment, high→low)

Delete closing backtick → style inner → delete opening backtick - all in one batch.

7. Bullet conversion

createParagraphBullets does not change indices. Then deleteContentRange the - prefix high→low in a second batch.

8. Cross-reference links: skip only already-linked runs

Scan ALL runs for X-NN regex - only skip runs where textStyle.link is already set. Do NOT also filter by font (Courier runs can contain xrefs too).

9. Table cell content replace

Delete to elements[-1].endIndex - 1 (keep the required trailing \n), then insert. Sort delete (higher) before insert (lower) in same batch.

10. replaceAllText for bulk renames

Use replaceAllText for ID renames (e.g. renumbering findings). Same-length replacements are index-safe. Do in one batch, longest/most-specific strings first.

Formatting Standards

See references/formatting-standards.md for:

  • Severity RGB colors (Critical, High, Medium, Low, Unmitigated)
  • Heading purple, code purple, code bg gray
  • Finding structure template
  • Summary table column definitions
  • Finding ID scheme (C-01, H-01, etc.)

API Patterns

See references/api-patterns.md for:

  • Auth boilerplate
  • All common op templates (style, delete, insert, hyperlink, bullets, paragraph shading)
  • Heading anchor URL construction
  • Cross-reference linking pattern
  • Inline code multi-pass approach

Resources

  • scripts/gdocs_auth.py - reusable auth + get_doc + do_batch helpers
  • references/api-patterns.md - op templates and patterns
  • references/formatting-standards.md - colors, typography, structure constants
  • references/how-to-create-google-service-account.md - one-time setup: instruct the user to create a service account, advise the user to restrict it to the AI-only Drive folder/file (via google share feature), and provide the JSON key path

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 Google Docs 安全审计报告的完整解决方案,涵盖 API 模式、格式化标准和常见陷阱规避
  • 适用于需要编写和维护安全审计报告的专业用户,具有明确的实用价值
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体(write, update, style, fix audit report document),边界清晰
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 和端到端示例章节 Reported severity: Minor

    文档结构良好,但缺少 When to Use 和完整的端到端示例章节

    Recommendation: 建议补充 When to Use 章节和至少一个完整的端到端示例,以帮助用户更好地理解和使用该 Skill

Highlights

  • 结构清晰,分为多个逻辑部分,便于查阅和理解
  • 提供了详细的工作流程和关键注意事项
Execution Reliability85/100

Highlights

  • 提供了详细的 API 操作模式和常见陷阱规避方法,工具来源明确
  • 覆盖了主要异常情况,如 index drift、code styling multi-pass 等
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.