security-audit
它能做什么
这个技能检查游戏代码中常见的安全弱点,例如存档文件被修改、作弊和数据暴露,然后对修复方案排序。适合准备公开发布或多人发布的游戏团队。
适用场景
- ✓当游戏即将公开发布,需要进行安全审阅的时候。
- ✓当即将开启联网或多人功能,必须检查作弊风险的时候。
- ✓当报告了一个与安全有关的缺陷,团队需要进行更广泛审计的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/security-audit/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们开放多人游戏之前,请审计我的游戏是否存在存档篡改和作弊风险。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会在代码库中搜索最常见的游戏安全问题,并生成一份按优先级排列的修复计划。它会把报告保存为带日期的安全文件,并且无论哪个工作流程级别,审计方式都相同。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
workflow (resolved above) decides only what Phase 7 tells you about the
release gate: at standard and full it requires this report; at minimal it
does not. The audit itself runs the same at every tier.
Security Audit
Security is not optional for any shipped game. Even single-player games have save tampering vectors. Multiplayer games have cheat surfaces, data exposure risks, and denial-of-service potential. This skill systematically audits the codebase for the most common game security failures and produces a prioritised remediation plan.
Run this skill:
- Before any public release (required for the Polish → Release gate at
workflow: standardandfull) - Before enabling any online/multiplayer feature
- After implementing any system that reads from disk or network
- When a security-related bug is reported
Output: production/security/security-audit-[date]-[scope].md — the scope
in the name keeps a same-day quick or save run from overwriting the full
report the release gate reads.
Phase 1: Parse Arguments and Scope
Modes:
full— all categories (recommended before release)network— network/multiplayer onlysave— save file and serialization onlyinput— input validation and injection onlyquick— high-severity checks only (fastest, for iterative use)- No argument — run
full
Read project.yaml to determine the following, falling back to .claude/docs/technical-preferences.md for engine/language/platforms when a key is absent or empty:
engine.nameandengine.language— load-bearing: they select the Phase 3 pattern set, and an engine with no sourced set for a category makes that categoryNOT ASSESSED. Ifengine.nameis absent or empty, say so in the report and treat every grep category asNOT ASSESSED; do not fall back to the Godot lists because they are the ones written out in fullplatform.targets(affects which attack surfaces apply)platform.multiplayerandplatform.online— whether multiplayer/networking is in scope.technical-preferences.mdhas no equivalent fields, so the legacy fallback cannot supply them.ABSENT DOES NOT MEAN
false. These keys have a reader — this skill — and no writer in the setup flow: neither/setup-enginenor/startemits aplatform:block, and only/settingssets them, when someone runs it, so on most CCGS projects both keys are absent. Defaulting them tofalsewould skip Category 2 (Network and Multiplayer Security) on every project, genuinely multiplayer ones included — a security category failing open on a value nothing sets.When either key is absent or empty: do not assume single-player, and do not skip Category 2. Ask the user whether the game has multiplayer or online features. If you cannot ask, run Category 2 anyway and mark it
NOT ASSESSED — multiplayer scope unconfirmed (platform.multiplayer unset — set it with /settings), which makesCLEAR TO SHIPunreachable per Phase 5. While the scope is unconfirmed, rate severity as for a multiplayer game — an open HIGH is then DO NOT SHIP — and say in the report that the rating assumed multiplayer, assecurity-engineerdoes. Over-scanning a single-player game costs a few minutes; under-scanning a multiplayer one ships the category unrun.Set them explicitly with
/settings platform.multiplayer=true(they are project-wide, so--localis refused). Recording it inproject.yamlis the fix; this rule is the guard for until someone does.
Phase 2: Spawn Security Engineer
Spawn security-engineer via Agent — the audit is its job, so do not run the
categories in this session instead. If it cannot be spawned, say why, run the
scan here, and let the report's Audited by line say so.
Send this fixed brief template. Fill only the {…} slots, from
project.yaml (else technical preferences), the code root resolved per
.claude/docs/code-root-resolution.md, and t
常见问题
它只适用于多人游戏吗?
不是。即使是单人游戏也可能存在存档篡改风险,因此审计也会涵盖它们。
发布前必须有这份报告吗?
在标准和完整工作流程级别下,发布关卡要求必须有这份报告。
它会自己修复问题吗?
它会生成按优先级排列的整改计划,由团队逐项执行。
详情
作者的原始描述
Security audit — save tampering, cheat vectors, network exploits, data exposure, input validation. Before public or multiplayer release.
热度
- GitHub 星标
- 33k
- 排名
- #8479
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …