pre-publish-checker
🐉 Thoroughly checks files for profanity, internal links, sensitive paths, and professionalism before publication. Use when preparing a codebase or extension for public release.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-12
- Stars
- ★ 131
- Forks
- 9
01 前言 Front Matter
- name
- pre-publish-checker
- metadata
- { "author": "SRE Team", "status": "draft", "version": "0.1.0" }
- description
- 🐉 Thoroughly checks files for profanity, internal links, sensitive paths, and professionalism before publication. Use when preparing a codebase or extension for public release.
02 资源文件 3
- 参考文档references/checklist_template.md568 B
- 脚本scripts/check_file.py2.5 KB
- 脚本scripts/summarize_checklist.py1.9 KB
03 SKILL.md 正文
Pre-Publish Checker
This skill guides you through a thorough audit of your project to ensure it meets publication standards. It combines automated script-based checks with a manual review workflow.
Policies
- Do Not Simply Remove TODOs: Do not delete
TODOmarkers just to make the check pass. Instead: <!-- pre-publish-checker: ignore -->- Action them: Resolve the task described.
- Move them: Transfer the
TODOto a tracking system (e.g., GitHub Issues) and replace the marker with a link to the issue. <!-- pre-publish-checker: ignore -->
- User Bypass: Any flagged issue can be bypassed if there is a valid reason. In
PUBLICATION_CHECKLIST.md, mark the status as[Pass]and include the keywordUSER_BYPASS: <explanation>.
Workflow
1. Initialization
- List all relevant files: Markdown (.md), code files (.py, .js, .go, etc.),
justfile, andREADMEs. - Create a
PUBLICATION_CHECKLIST.mdin the project root by copying the template fromreferences/checklist_template.md. - Populate the file list in the checklist.
2. Automated Audit
For each file in the checklist, run the automated check script:
uv run -s skills/pre-publish-checker/scripts/check_file.py <file_path>
Note: If uv is not available, use python3.
3. Iterative Review
- Process files one by one (or in small batches).
- Update the
PUBLICATION_CHECKLIST.mdwith the status and any issues found. - Fix issues as they are identified.
- For "long work", you can resume the process by reading the current state of
PUBLICATION_CHECKLIST.md. - Get a Synopsis: At any point, you can generate a quick summary of remaining work by running:
(Defaults to readinguv run -s skills/pre-publish-checker/scripts/summarize_checklist.pyPUBLICATION_CHECKLIST.md)
4. Final Verification
- Perform manual checks for "Google-bar professionalism" and overall quality.
- Ensure all boxes in
PUBLICATION_CHECKLIST.mdare checked.
Check Categories
- Profanity: Scans for common offensive language.
- Internal Links: Finds internal shortlinks (e.g.,
go/links) which are not accessible outside. - Internal Paths: Identifies local machine or company-specific paths that reveal internal infrastructure.
- Professionalism: Checks for development markers (e.g., "to-do", "fix-me") that should be resolved before release.
04 同仓库更多 Skills
safe-sre-investigator
🐉 Sets up and uses read-only Service Accounts for GCP and Kubernetes investigations using the principle of least privilege, and provides risk assessments for suggested commands. Use when asked to investigate GCP/GKE resources or suggest gcloud/kubectl commands.
postmortem-generator
🐉 Creates a PostMortem given enough context about an incident/outage. Will guide user to timeline, action items/bugs, and finally draft a Google Doc with the results.
postmortem-aggregator
🐉 To be used when you have a folder containing N Post Mortem files. This will help crunch data and maintain/update a POMO_AGGREGATED.md file.
monitoring-graphs
🐉 Skill for generating high-quality, annotated incident graphs for post-mortems using Python. Use this when the user needs to visualize an outage, show error rates, or correlate metrics with incident milestones.
investigation-entrypoint
🐉 The primary entrypoint for investigating production outages, orchestrating SRE response, and mitigating incidents on Google Cloud Platform (GKE, Cloud Run, etc.). Start here when an incident occurs.
generic-mitigations
🐉 Guidance on utilizing generic mitigations for rapid incident response.