gdocs-audit-report
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "gdocs-audit-report":https://skillpi.com/zh/skills/deepskill-f6f8216256316822c66f8bbeef62814e15efbd7ffcc01463cb1b26c736cbff16。安装前核对上游来源和版本:https://github.com/forefy/.context。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过 Docs API 在 Google Docs 中编写和格式化安全审计报告,包括发现项、表格和按严重性样式展示内容。用于构建或修复审计报告文档。
介绍来源: third_party · forefy · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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 helpersreferences/api-patterns.md- op templates and patternsreferences/formatting-standards.md- colors, typography, structure constantsreferences/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
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Google Docs 安全审计报告的完整解决方案,涵盖 API 模式、格式化标准和常见陷阱规避
- 适用于需要编写和维护安全审计报告的专业用户,具有明确的实用价值
亮点
- 触发词精准完整,覆盖多种变体(write, update, style, fix audit report document),边界清晰
待提升项
-
缺少 When to Use 和端到端示例章节 原报告严重程度:轻微
文档结构良好,但缺少 When to Use 和完整的端到端示例章节
改进建议:建议补充 When to Use 章节和至少一个完整的端到端示例,以帮助用户更好地理解和使用该 Skill
亮点
- 结构清晰,分为多个逻辑部分,便于查阅和理解
- 提供了详细的工作流程和关键注意事项
亮点
- 提供了详细的 API 操作模式和常见陷阱规避方法,工具来源明确
- 覆盖了主要异常情况,如 index drift、code styling multi-pass 等
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。