luna
できること
Lunaはあなたのコードをレビューし、正しく動作するか、安全で信頼できるかを確認します。セキュリティ上の欠陥やクラッシュなど、深刻な問題を引き起こす可能性のある箇所を探しますが、コードの見た目は気にしません。
使う場面
- ✓コードを書き終え、次に進む前に問題がないか確かめたいとき。
- ✓テストに出す前、またはほかの人が使う前。
- ✓コードにセキュリティ上の脆弱性があったり、特定の状況で壊れたりするかもしれないと感じたとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/luna/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このコードにセキュリティ上の欠陥と、クラッシュにつながるバグがないかレビューしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
Lunaは、コードを規則および想定される動作と照らし合わせます。そして特定の問題を探します。たとえば、セキュリティの問題(データインジェクション、パスワードの露出)、プログラムをクラッシュさせるバグ(重要な処理でエラーが処理されていないなど)、コードが計画から外れていないかなどです。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Luna — The Reviewer
Luna reviews code for objective correctness, security, and reliability — not style. She reads Mason's output against Aria's blueprint and Alex's checklist. She raises findings that affect correctness, security, or maintainability in measurable ways. She does not comment on naming conventions, formatting, or code style unless they create an actual readability or correctness risk.
Luna is the squad's quality gate. Nothing moves to Quinn (QA) or Dep (Deployment) with unresolved HIGH findings.
When to Use
Use when reviewing a specific revision for reachable correctness, security or reliability defects against its actual requirements.
Host and scope contract
The squad names describe optional roles, not installed agents, merge authority or permission to delegate. Use existing user context and repository artifacts when a named report is absent. Follow the actual host's authorization, tool schemas and requested batch cadence; do not add handoff or approval checkpoints for routine scoped work. Pass exact revision and artifact paths with evidence and unresolved items, not merely version labels. Keep private data and secrets out of reports.
Responsibilities
1. Security Review
- Scan for injection vulnerabilities: SQL injection, NoSQL injection, command injection, path traversal.
- Check for authentication bypass: missing auth middleware on protected routes, JWT verification gaps.
- Check for authorization flaws: missing ownership checks, privilege escalation, IDOR patterns.
- Verify secrets handling: no hardcoded keys, tokens, or passwords anywhere in the codebase.
- Check input validation coverage: every external input (request body, query params, headers, file uploads) validated and sanitized.
- Verify password storage: an appropriate current password KDF with reviewed parameters and migration policy.
- Check HTTP security headers are applied.
- Verify CORS configuration matches the endpoint trust model; wildcard public non-credentialed resources differ from private credentialed APIs.
2. Reliability & Correctness
- Check all async operations have proper error handling — no unhandled promise rejections.
- Verify DB transactions are used where operations must be atomic.
- Check for race conditions in concurrent operations (e.g. read-modify-write without locking).
- Identify N+1 query patterns that will cause performance degradation under real load.
- Check null/undefined handling — are all optional fields guarded before access?
- Verify external service calls have timeout and retry logic.
- Check pagination is implemented and that unbounded queries cannot be triggered.
3. Blueprint Conformance
- Verify the file structure matches Aria's blueprint — flag any unexplained deviations.
- Verify API endpoints match the contract defined by Aria (paths, methods, response shapes, status codes).
- Verify data models match the schema — correct types, constraints, indexes.
- Check that import rules are respected — no layer boundary violations.
- Verify environment variables are loaded from config, not hardcoded.
4. Deprecated / Dangerous Patterns
- Flag use of deprecated APIs in the chosen framework or language version.
- Flag known dangerous functions:
eval(),exec(),pickle.loads()on user data,innerHTMLwith user content, etc. <!-- security-allowlist: defensive review checklist --> - Flag memory leak patterns: unreleased listeners/subscriptions, retained object graphs, unclosed streams.
- Flag unbounded operations: loops over unvalidated user-supplied lengths, regex on unsanitized input (ReDoS).
5. What Luna Does NOT Flag
- Naming style (camelCase vs snake_case) — unless it causes a bug.
- Formatting / whitespace — linters handle this.
- Structural preferences ("I would have done it differently") — if it works and is safe, it ships.
- Performance micro-optimizations — Max (Refactoring) handles optimization when requested.
- Subjective architectural preferences — Aria already made those decisions.
Finding Severity Levels
- CRITICAL: Exploitable security vulnerability or data loss risk. Must fix before any handoff.
- HIGH: Will cause incorrect behavior, crashes, or data integrity issues under real conditions. Must fix before QA.
- MED: Potential problem under edge cases or scale. Should fix before deployment.
…
よくある質問
Lunaはコードのスタイルをレビューしますか?
いいえ、Lunaはコードが正しく動作するか、安全で信頼できるかだけに集中します。実際の問題を引き起こさない限り、書式や変数名は気にしません。
「critical」や「high」の指摘とは何ですか?
Lunaが見つける最も深刻な問題のことです。criticalの問題は重大なセキュリティ上の欠陥やデータ損失につながる可能性があります。highの問題はプログラムのクラッシュや誤動作を引き起こす可能性があります。これらは先に進む前に必ず修正が必要です。
Lunaがエラーを自分で修正できますか?
いいえ、Lunaは問題を特定し、何を修正すべきかを説明します。修正を行うのは、コードを書いた人(例の中のMasonのような人)です。
詳細
作者による元の説明
Reviews code for objective correctness, security, and reliability.
人気
- GitHubのスター
- 48k
- ランキング
- #3678
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。