prowler-test-api
Skill by prowler-cloud
Provides testing patterns for the Prowler API, covering JSON:API requests, Celery tasks, RLS tenant isolation and RBAC. Written for developers who write tests under api/ in the Prowler repository.
Install prowler-test-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.claude/skills && cp -r /tmp/prowler/skills/prowler-test-api ~/.claude/skills/prowler-test-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/prowler/skills/prowler-test-api ~/.gemini/antigravity-cli/skills/prowler-test-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The prowler-test-api skill gives an AI assistant the testing conventions used in the Prowler API. It lists critical rules, a fixture dependency chain and key fixtures such as authenticated_client, tenants_fixture and the RBAC client fixtures. It also shows how to build JSON:API POST and PATCH bodies with the API_JSON_CONTENT_TYPE constant.
It explains how to test cross-tenant isolation, where RLS returns 404 instead of 403, and how to mock .delay() and Task.objects.get for views that return 202. It also covers Celery testing strategies, fake secrets for TruffleHog, a table of response status codes and pytest commands. The skill is aimed at developers writing or reviewing tests in api/ for the Prowler project.
Written from the project's SKILL.md and checked against it.
What it can do
- JSON:API request patternsShows how to build POST and PATCH bodies with the JSON:API content type.
- Cross-tenant isolation testsCovers asserting a 404 response when a resource belongs to another tenant.
- RBAC fixturesLists client fixtures with all permissions, no roles and no permissions.
- Celery task testingDescribes mocking .delay(), using task.apply() and mocking Canvas chains and groups.
- Fixture referenceDescribes tenant, provider, scan and task fixtures defined in conftest.py.
- Response status code guideLists the expected status code for each scenario, such as 202 for async operations.
What you need
- Python with uv
- PostgreSQL
- Valkey
- A shell without the dev .env file for running the pytest commands
Try asking
- Write a pytest test for a new Prowler API endpoint with JSON:API bodies
- Add a cross-tenant isolation test that asserts a 404 response
- Mock .delay() and Task.objects.get for a view that returns 202
Good to know
- Test order is randomized, so tests must not depend on each other.
- Tests must not reach real cloud APIs; patch the job function instead.
- Running the tests needs PostgreSQL and Valkey.
Security check
B- Allowed to use Edit, Write, Bash without limitsIn
SKILL.md
Checked automatically: skills/prowler-test-api/SKILL.md, skills/prowler-test-api/assets/api_test.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadEditWriteGlobGrepBashWebFetchWebSearchTask
-
SKILL.md7 KB -
assets/api_test.py13 KB -
references/test-api-docs.md7 KB
Alternatives to prowler-test-api
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
prowler-test-api: common questions
Does RLS isolation return 403 or 404 in Prowler API tests?
The skill says RLS returns 404, not 403, because the resource is invisible rather than forbidden.
Why does the skill advise against task_always_eager?
It lists problems such as no task serialization, no broker interaction and a different context for self.request. It recommends task.apply() for synchronous task logic.
Which client should normal view tests use?
The skill says to use authenticated_client for normal view behavior tests. Serializer-generated JWTs are for token-specific tests only.
How do I install prowler-test-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is prowler-test-api free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is prowler-test-api safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use edit, write, bash without limits). Review the code before you install. How grades work.
What are alternatives to prowler-test-api?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
