Skip to content
Skillpedia
Security48k · #2064

luna

Lets your agent check if the code is secure and working correctly. It looks for errors and flaws that could cause problems.

What it does

Luna reviews your code to ensure it works correctly, is secure, and reliable. She looks for issues that could cause serious problems, like security flaws or crashes, but doesn't worry about how the code looks.

When to use it

  • ✓When you finish writing a piece of code and want to make sure it's okay before moving on.
  • ✓Before submitting your code for testing or for others to use.
  • ✓If you suspect your code might have security vulnerabilities or break in certain situations.

Example of what to ask your AI

“Review this code for security flaws and bugs that could cause crashes.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/luna/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/luna/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

Luna compares your code against rules and what it's supposed to do. She looks for specific problems like security issues (data injection, exposed passwords), bugs that crash the program (like not handling errors in important operations), or if the code deviates from the plan.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill luna

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/luna/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from 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, innerHTML with 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.

…

FAQ

Does Luna review code style?

No, Luna focuses only on whether the code works correctly, is secure, and reliable. She doesn't care about formatting or variable names unless they cause an actual problem.

What are 'critical' or 'high' findings?

These are the most serious problems Luna finds. Critical issues can lead to severe security vulnerabilities or data loss. High issues can cause the program to crash or behave incorrectly. These must be fixed before proceeding.

Can Luna fix the errors herself?

No, Luna identifies the problems and explains what needs to be fixed. The person who wrote the code (like Mason in the example) is the one who makes the corrections.

Details

Original description by the author

Reviews code for objective correctness, security, and reliability.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#2064
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills