Skillpedia
الأمان33k · #8479

security-audit

ما الذي تفعله

تفحص هذه المهارة شيفرة اللعبة بحثاً عن نقاط الضعف الأمنية الشائعة، مثل تعديل ملفات الحفظ والغش والبيانات المكشوفة، ثم ترتب الإصلاحات. وهي موجهة لفرق الألعاب التي تستعد لإصدار علني أو متعدد اللاعبين.

متى تستخدمها

  • ✓عندما ستُنشر اللعبة علناً وتحتاج إلى مراجعة أمنية.
  • ✓عندما يوشك تفعيل ميزة متصلة بالإنترنت أو متعددة اللاعبين، ويجب فحص مخاطر الغش.
  • ✓عندما يُبلَّغ عن مشكلة أمنية ويحتاج الفريق إلى تدقيق أوسع.

رابط المهارة

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/security-audit/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/security-audit/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“دقق لعبتي بحثاً عن مخاطر العبث بملفات الحفظ والغش قبل أن نفتح اللعب متعدد اللاعبين.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تبحث المهارة في قاعدة الشيفرة عن أكثر إخفاقات الأمان شيوعاً في الألعاب، وتنتج خطة إصلاح مرتبة حسب الأولوية. وتحفظ التقرير كملف أمني مؤرخ، ويعمل التدقيق بالطريقة نفسها في كل مستوى من مستويات سير العمل.

المحتوى التقني (ملف 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: standard and full)
  • 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 only
  • save — save file and serialization only
  • input — input validation and injection only
  • quick — 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.name and engine.language — load-bearing: they select the Phase 3 pattern set, and an engine with no sourced set for a category makes that category NOT ASSESSED. If engine.name is absent or empty, say so in the report and treat every grep category as NOT ASSESSED; do not fall back to the Godot lists because they are the ones written out in full

  • platform.targets (affects which attack surfaces apply)

  • platform.multiplayer and platform.online — whether multiplayer/networking is in scope. technical-preferences.md has 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-engine nor /start emits a platform: block, and only /settings sets them, when someone runs it, so on most CCGS projects both keys are absent. Defaulting them to false would 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 makes CLEAR TO SHIP unreachable 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, as security-engineer does. 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 --local is refused). Recording it in project.yaml is 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.

repo: Donchitos/Claude-Code-Game-Studios

الشعبية

نجوم GitHub
33k
الترتيب
#8479
الترخيص
MIT
آخر تحديث
18‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة