deep-app-audit
БесплатноБез исполняемых скриптовНе проверенDeep audit of a Frappe app for security, correctness, and customization defects. Runs every security scope and every quality rule in a separate agent…
от frappe★ 185 звёзд на GitHubОб этом скилле
Deep app audit
This skill audits one Frappe app checkout on three tracks and writes one report:
| Track | Prompts | Id prefix |
|---|---|---|
| Security | the scopes in the area directories of security/ |
S-A to S-L |
| Security | the posture checks in security/checks/ |
S-P |
| Correctness | the rules in quality/B-correctness/ |
Q-B |
| Customization | the rules in quality/A-customization/ |
Q-A |
| Customization | the checks in quality/checks/ |
Q-K |
The id of a prompt is its track prefix and its file id: security/A-authorization/A02-*.md is
S-A02. quality/mechanisms/ is background for the quality rules, not a set of prompts.
Both tracks work the same way. security/_conventions.md and quality/_conventions.md have the
same sections, and each one is the contract for its track: the method, the finding bar, the
severity ladder, the verification steps, and the finding format. The task prompts in prompts/
are the same for both tracks, and they point each agent to the conventions of its track.
How a run works
A run has two parts:
| Part | Who does it | Steps |
|---|---|---|
| Setup: the arguments, the target, the inventory, semgrep, the test site | you, the coordinator | 1 to 4 |
| Tasks: the scans, the checks, the verifications, the report | scripts/run_audit.py |
5 |
Setup needs judgement: a bench is different on each machine, and an app has its own actors. So you do it. The tasks need no judgement to schedule, so a script schedules them. The script starts each task as a new process of an agent CLI, so each task has a fresh context. A verifier that saw the scan is not independent, and one context cannot hold 160 scans.
The script does not depend on one model or one harness. agents.json maps each task kind to a
command, and a command can be any CLI that takes a prompt and can read files, run commands, and
write a file. The scan and the verify tasks can use different models.
The script:
- runs the tasks in parallel, with one set of test users for each worker
- queues the verifiers of a scan when the scan file lands, most severe first, within the caps
- checks the format of each result file, and runs the task again when the file is missing or wrong
- runs the site reset command after each task, and stops when the site stops answering
- writes
run.json(the state of each task) andsummary.json(the counts), and starts the report when the tasks are complete
Every task writes its result to a file in the run directory. A task whose result file is valid is complete, so a stopped run continues where it stopped when you start the script again.
Do not audit the app yourself, and do not start task agents yourself.
1. Read the arguments
The argument is the app checkout to audit, then options in plain words. With no path, use the current directory.
| Option | Example | Default |
|---|---|---|
only: id prefixes to run |
S-A, Q-B05 |
everything |
skip: id prefixes to leave out |
S-L, S-P05 |
nothing |
no checks: run no whole-surface check |
checks run | |
no site: read the source only |
create a site | |
site: reuse an existing disposable site |
myapp-audit.localhost |
create one |
db root password: for bench new-site |
none | |
bench: the bench directory |
found above the checkout | |
output: the run directory |
<target>/../<app>-deep-audit/ |
|
semgrep rules: a local clone of frappe/semgrep-rules |
~/src/semgrep-rules |
clone into the run directory |
no semgrep: do not run the semgrep rules |
semgrep runs | |
drop site: drop the created site at the end |
keep it for triage | |
agents: the agent commands file |
~/audit-agents.json |
<run dir>/agents.json |
jobs: agents that run at the same time |
4 |
16 |
max candidates: verification cap for each scan |
15 |
15 |
max verifications: verification cap for the run |
600 |
600 |
timeout: hours before the run stops |
12 |
8 |
"Only security" is only: S-. "Only correctness" is only: Q-B. "Only quality" is only: Q-.
2. Confirm the target
Confirm that the path holds a Frappe app: one package in it holds hooks.py. If it does not,
stop and tell the user.
Tell the user in two or three lines what will run: the app, the tracks, whether a test site is created, the agent CLI and the models, and the approximate agent count. A full run is about 160 scan and check agents, plus one agent for each candidate. It can be several hundred agents. Do not ask for confirmation when the user gave the path and the options. The command is the opt-in.
The test site needs write access to a bench. When the checkout is not in a bench, or the bench
looks like production, use no site and say so.
3. Prepare the run
Do this yourself. Change no file inside the app checkout.
- Resolve the checkout to an absolute path. Record the app package name (the directory that
holds
hooks.py) and the short commit hash from `git
Установить deep-app-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл deep-app-audit?
Deep audit of a Frappe app for security, correctness, and customization defects. Runs every security scope and every quality rule in a separate agent, verifies each candidate in a fresh context, and compiles one report. User-invoked only - run /deep-app-audit [app path] [options].
Как установить скилл deep-app-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deep-app-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic