Langsung ke konten
Skillpedia
Keamanan48k Β· #3678

luna

Fungsinya

Luna memeriksa kode Anda untuk memastikan kode tersebut berjalan dengan benar, aman, dan andal. Luna mencari masalah yang bisa menimbulkan kendala serius, seperti celah keamanan atau crash, tetapi tidak mempermasalahkan tampilan kode.

Kapan dipakai

  • βœ“Saat Anda selesai menulis sebuah kode dan ingin memastikan kode tersebut sudah baik sebelum melanjutkan.
  • βœ“Sebelum mengirimkan kode untuk diuji atau digunakan oleh orang lain.
  • βœ“Jika Anda curiga kode Anda memiliki celah keamanan atau bisa rusak dalam kondisi tertentu.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/luna/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPeriksa kode ini untuk mencari celah keamanan dan bug yang bisa menyebabkan crash.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Luna membandingkan kode Anda dengan aturan dan tujuan yang seharusnya dicapai. Luna mencari masalah spesifik, seperti masalah keamanan (injeksi data, kata sandi yang terekspos), bug yang membuat program crash (misalnya tidak menangani error pada operasi penting), atau kode yang menyimpang dari rencana.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

…

Pertanyaan umum

Apakah Luna memeriksa gaya penulisan kode?

Tidak. Luna hanya fokus pada apakah kode berjalan dengan benar, aman, dan andal. Luna tidak mempermasalahkan format atau nama variabel, kecuali jika hal tersebut menimbulkan masalah nyata.

Apa yang dimaksud dengan temuan 'critical' atau 'high'?

Ini adalah masalah paling serius yang ditemukan Luna. Masalah critical bisa menyebabkan celah keamanan berat atau kehilangan data. Masalah high bisa membuat program crash atau berperilaku tidak semestinya. Keduanya harus diperbaiki sebelum melanjutkan.

Apakah Luna bisa memperbaiki kesalahannya sendiri?

Tidak. Luna mengidentifikasi masalah dan menjelaskan apa yang perlu diperbaiki. Orang yang menulis kode (seperti Mason dalam contoh) yang melakukan perbaikannya.

Detail

Deskripsi asli dari pembuat

Reviews code for objective correctness, security, and reliability.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#3678
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa