Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add getpapi/papi --skill security-auditgit clone --depth 1 https://github.com/getpapi/papiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/getpapi/papi/security-audit)<a href="https://agentmods.dev/skills/getpapi/papi/security-audit"><img src="https://agentmods.dev/badge/skills/getpapi/papi/security-audit/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/getpapi/papi/security-audit"><img src="https://agentmods.dev/badge/skills/getpapi/papi/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.02241 |
| Opus 5.5 | $0.00030 | $0.00896 |
| Sonnet 5.5 | $0.00015 | $0.00448 |
| Haiku 4.5 | $0.00007 | $0.00224 |
Grade A, and why
security-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Audit — Full Codebase Review
Perform a comprehensive security audit of the entire codebase. This is NOT a branch diff review — it scans all source files for security issues.
When to Run
- Periodically as a recurring check (e.g. before a major release)
- After major security-related changes (auth, RLS, API keys)
- Before onboarding external users
- When the user explicitly requests
/security-audit
Steps
1. Secret Exposure Scan
Search for hardcoded secrets, API keys, tokens, and credentials in source code.
Patterns to check:
grep -rfor patterns:sk-,sk_live,sk_test,SUPABASE_SERVICE_ROLE,eyJ(JWT prefixes),ghp_,npm_,Bearer- Check all
.ts,.tsx,.jsfiles forprocess.envusage — verify each env var is listed in.env.example - Check for secrets in: git history (recent 10 commits), config files, test fixtures
- Check that
.envand.env.localare in.gitignore
IMPORTANT: Never include actual secret values in the report. Reference file:line only.
Severity: Critical if secrets found in source, Warning if env var not in .env.example
2. Authentication & Authorization
Review auth middleware and access control.
Files to read:
middleware.ts— auth middleware, route protectionlib/auth.tsor similar — auth helper functionsapp/api/**/route.ts— every API route
Check for:
- API routes without auth checks (missing
getServerSessionor equivalent) - Admin endpoints accessible to non-admin users
- Missing CSRF protection on state-changing endpoints
- Session token handling (httpOnly, secure, sameSite flags)
- RLS policies — verify
user_idscoping on all tables with user data
Severity: Critical for unprotected endpoints, High for weak auth patterns
3. SQL Injection & Data Access
Check for unsafe database queries.
Check for:
- Raw SQL string concatenation (template literals with user input)
- Missing parameterized queries
- Supabase client usage without RLS context
- Service role key usage outside server-side code
- Data returned to client that shouldn't be (PII, internal IDs, other users' data)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 223 lines · 74 tokens per session scan A 241d51e228b6
security-audit is a skill published in the GitHub repository getpapi/papi (11 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 2,241 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
Other skills, from other repositories
memorix-memory
Use when prior workspace context, past decisions, solved bugs, handoff state, or durable project knowledge would help a coding task.
memorix
Use when Claude Code needs Memorix shared memory, reasoning, Git Memory, mini-skills, session handoff, orchestration coordination, or integration troubleshooting.
memorix-mini-skills
Use when durable project knowledge, gotchas, workflows, or repeated fixes should become reusable agent guidance instead of ordinary memory.
memorix-orchestrate
Use when a main agent needs Memorix to coordinate explicit subagent work through tasks, handoffs, messages, file locks, or the orchestrate CLI.
memorix-reasoning
Use when a technical decision, trade-off, rejected alternative, architecture rationale, or design risk should be recorded or recovered.
memorix-sessions
Use when resuming work, preparing handoff context, binding an HTTP control-plane project, or deciding whether sessionstart is useful.