prowler-api

prowler-api is a skill for Claude Code from prowler-cloud/prowler. It costs 61 tokens per session (4,738 once invoked), scanned A, original, Apache-2.0.

A guide to Prowler-specific Django API work, including tenant isolation, user roles, cloud providers, and background tasks. Tenant isolation keeps one customer's data separate from another customer's data.

In plain words
What is it for?
It helps developers safely change Prowler API models, serializers, views, filters, provider operations, permissions, and Celery background tasks.
Why use it?
It helps prevent security bugs such as background tasks reading the wrong customer's data or bypassing access rules. It explains the required database and permission patterns for Prowler's multi-tenant system.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps developers safely change Prowler API models, serializers, views, filters, provider operations, permissions, and Celery background tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prowler-cloud/prowler/prowler-api
About the project

Prowler is an open-source cloud security platform that checks cloud environments for security issues and compliance with standards such as CIS, NIST, and GDPR. Security teams use it to assess configurations, prioritize findings, produce reports, and guide remediation.

prowler-cloud/prowler · 15,347 stars · on GitHub · prowler.com

Install

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.

Any agent
npx skills add prowler-cloud/prowler --skill prowler-api
Clone the repo
git clone --depth 1 https://github.com/prowler-cloud/prowler

Made for: Claude Code.

Wrote 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.

agentmods badge for prowler-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/prowler-cloud/prowler/prowler-api/github.svg)](https://agentmods.dev/skills/prowler-cloud/prowler/prowler-api)
Your own site
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/prowler-api"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/prowler-api/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.

agentmods 80×15 button for prowler-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/prowler-api"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/prowler-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,738 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.04738
Opus 5.5 $0.00024 $0.01895
Sonnet 5.5 $0.00012 $0.00948
Haiku 4.5 $0.00006 $0.00474

Measured 25d ago against content hash d3acf457e304, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prowler-api 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 25d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (assets/celery_patterns.py, assets/security_patterns.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/prowler-api/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

Use this skill for Prowler-specific patterns:

  • Row-Level Security (RLS) / tenant isolation
  • RBAC permissions and role checks
  • Provider lifecycle and validation
  • Celery tasks with tenant context
  • Multi-database architecture (primary, replica, admin)
  • Server-Sent Events (SSE) endpoints

For generic DRF patterns (ViewSets, Serializers, Filters, JSON:API), use django-drf skill.

All paths below are relative to api/src/backend/ unless they start with api/.


Critical Rules

  • ALWAYS use rls_transaction(tenant_id) when querying tenant data outside a ViewSet (tasks, jobs, management commands)
  • ALWAYS take tenant_id from the auth token (request.tenant_id), NEVER from request.data
  • ALWAYS pass tenant_id to get_role(user, tenant_id); inside BaseRLSViewSet use the cached self.user_role
  • ALWAYS use explicit through models (inheriting RowLevelSecurityProtectedModel) for M2M relationships
  • ALWAYS give Celery tasks a name=; route with queue= (omitted = default celery queue)
  • ALWAYS call tasks with keyword arguments (tenant_id=...): the decorators read kwargs
  • NEVER access Provider.objects (or any tenant model) in Celery without RLS context
  • NEVER combine plain @set_tenant with @handle_provider_deletion: @set_tenant pops tenant_id, which @handle_provider_deletion needs. Use @set_tenant(keep_tenant=True)
  • NEVER use MainRouter.admin_db unless it is an auth or cross-tenant admin operation (it bypasses RLS)

rls_transaction(value, parameter=POSTGRES_TENANT_VAR, using=None, retry_on_replica=True) validates that value is a UUID (UUID objects and strings both work) and raises ValidationError otherwise.


Architecture Overview

Databases (config/django/{devel,production,testing}.py)

Alias DB user Purpose RLS
default POSTGRES_USER (default = the prowler_user entry) Standard API queries Yes
admin POSTGRES_ADMIN_USER Migrations, auth lookups, Django internal tables No
replica POSTGRES_REPLICA_USER Read-only queries Yes
admin_replica POSTGRES_ADMIN_USER Admin reads on replica No
neo4j NEO4J_USER Graph DB for Attack Paths (not routed by Django) -

Read the full file on GitHub · 412 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 25d ago Changed · -94 lines · +8 tokens per session d3acf457e304
  2. 3mo ago First seen · 506 lines · 53 tokens per session scan A 133438f95e30

Subscribe to this mod's changes

prowler-api is a skill published in the GitHub repository prowler-cloud/prowler (15,347 stars, last pushed 3d ago), licensed Apache-2.0. It adds 61 tokens to every session and 4,738 once invoked, about $0.0002 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-08-30.

Related

prowler-api compared with skills from other repositories

prowler-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prowler-apiprowler-cloud/prowlerSkill15k3d agoApache-2.0A61Claude Code
amazon-alexasickn33/agentic-awesome-skillsSkill51ktodayMITA53Claude Code
amazon-location-serviceawslabs/agent-pluginsSkill953todayApache-2.0A107Claude Code
amplify-workflowawslabs/agent-pluginsSkill953todayApache-2.0A214Claude Code
aws-lambda-durable-functionsawslabs/agent-pluginsSkill953todayApache-2.0A109Claude Code
securing-api-gateway-with-aws-wafxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
performing-aws-account-enumeration-with-scout-suitexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A39Claude Code, Codex