跳到正文
Skillpedia
部署与云(DevOps)48k · #5508

production-audit

它能做什么

这个工具可以检查你的项目是否已经准备好正式上线。它会查找可能导致故障的常见问题,比如安全漏洞、支付错误或用户体验问题。

适用场景

  • ✓想确认项目是否可以正式上线时。
  • ✓在推出新功能或新应用之前。
  • ✓做了大量代码修改后,想做一次全面检查时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/production-audit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/production-audit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“检查一下我的项目是否已经具备上线条件。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会运行一个外部程序,分析你的代码及其运行环境。它会生成一份带有评分的报告,并列出发现的主要问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Production Audit

Overview

A skill that runs an external audit on a shipped repo's deployed state — live URL, GitHub signals, secrets exposure, RLS gaps, webhook idempotency, indexes, observability, prompt injection, and ten other failure modes that AI-assisted projects routinely miss.

This is complementary to in-session security skills (security-review, OWASP-style, VibeSec, Trail of Bits). Those scan the editor buffer at write-time. This scans the deployed product after you commit. Different timing, different inputs, different findings. Run both for serious launches.

The skill wraps the commit.show audit engine via the public CLI (npx commitshow@0.3.23 audit . --json). Stable JSON envelope (schema_version: "1", additive-only). Writes a .commitshow/audit.{md,json} sidecar so future agent sessions can read prior state without re-running the engine.

When to Use This Skill

  • Use when the user asks "is this production-ready", "what would break in prod", "score my project", "what did I miss", "audit my repo", "ready to ship".
  • Use right after merging a feature branch to main (helpful as a pre-deploy gate).
  • Use before a public launch / Show HN post / investor demo.
  • Use when git log shows >20 commits since the last .commitshow/audit.md was written.

Skip when

  • During active in-session coding — use security-review / OWASP-style for line-level patterns. This skill is for post-merge / pre-ship review.
  • For library / scaffold-form repos — the engine handles app form best; libraries get a partial-substitute score.
  • If .commitshow/audit.json already exists and is < 1 hour old, read that instead of re-running. Audit is rate-limited (anonymous: 20/IP/day · 5/repo/day · 2000/day global).
  • Inside a private / non-GitHub repo — the audit pulls public GitHub signals, so private repos return a not_found error.

How It Works

Step 1: Run the audit

From the repo root. The CLI is pinned to an exact reviewed version so future npm releases are not selected silently. Because npx downloads and runs npm package code locally with the current user's permissions, run it only after the user explicitly approves this external execution and only in a repository where local files and environment variables are safe for that process to access. The sidecar directory is created up-front, and stderr is split off so install/deprecation warnings can't corrupt the JSON envelope:

mkdir -p .commitshow
npx commitshow@0.3.23 audit . --json \
  > .commitshow/audit.json \
  2> .commitshow/audit.stderr.log

This also writes a human-readable .commitshow/audit.md next to it. Subsequent invocations should diff against the prior audit.json if it exists, so you can lead with "+5 since yesterday's audit" instead of just an absolute number.

If the user pointed at a remote URL instead of ., swap . for the URL — keep the same mkdir -p + version pin + stderr split:

mkdir -p .commitshow
npx commitshow@0.3.23 audit github.com/owner/repo --json \
  > .commitshow/audit.json \
  2> .commitshow/audit.stderr.log

Step 2: Parse the envelope

The JSON envelope is stable (schema_version: "1", additive-only). Read these fields:

Field Meaning
score.total 0-100 production-readiness score
score.delta_since_last change vs. parent snapshot · positive = improving
score.band strong (80+) · mid (60-79) · early (<60)
concerns[] top issues, ordered by impact · each has axis + bullet
strengths[] top 3 things that work · for context only
standing optional · only when the project is auditioning on commit.show
snapshot.created_at / trigger_type when the audit ran

Concerns are sorted by decision-impact, not severity. Position 1 is the bullet to lead with.

Step 3: Surface to the user

Lead with score + trajectory in one sentence, then the top concerns. Do not dump the full JSON. Format:

Score: 82/100 (+5 since yesterday) · band: strong

Top concerns:
  ↓ [Security] No API rate limiting on /auth — IP cap missing
  ↓ [Infrastructure] webhook handler at api/stripe.ts — signature verified, but no
    idempotency-key check (replay attack window open)

Want me to fix the webhook idempotency gap first?

Rules:

  • Use the exact bullet from concerns[].bullet — the audit engine already wrote action-oriented copy.

…

常见问题

什么是 RLS?

RLS 是“行级安全”(Row Level Security)的缩写,是数据库的一项功能,用来控制哪些人可以查看或修改哪些数据。

什么是 webhooks?

Webhooks 是当某件事发生时,一个应用自动向另一个应用发送的通知。这个工具会检查它们是否工作正常、是否安全。

什么是幂等性?

幂等性指同一个操作即使重复执行多次,结果也和只执行一次时相同。它对防止支付重复扣款之类的问题非常重要。

详情

作者的原始描述

Audit a shipped repo for production-readiness gaps across RLS, webhooks, secrets, grants, Stripe idempotency, mobile UX, and deployment health.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5508
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能