/appsec-advisor:check-permissionsfrom appsec-advisor
Preflight checks Claude Code permission allow-list for the AppSec plugin, reporting missing Bash/Write/Edit/Read rules from required-permissions.yaml to prevent blocked prompts during unattended runs. Optionally merges missing entries into settings.json.
Ships in appsec-advisor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running a preflight check that tells the user which Claude Code permission rules are still needed for unattended AppSec runs, and optionally writes them into their settings.json. This skill does not analyze code, dispatch agents, or modify repository content. It only reads / writes settings.json files.
--help / -h — inline help (early exit)If the user's arguments contain --help or -h, delegate to the helper with --help and exit — the helper owns the canonical help text.
Recognized flags:
--repo <path> --output <path> --plugin-dir <path> --scope <scope>
--update --json --help | -h
Parse these and set REPO_ROOT, OUTPUT_DIR, PLUGIN_DIR, SCOPE,
UPDATE_MODE, JSON_MODE. Default REPO_ROOT by resolving the git
repository root (so that the skill works correctly even when invoked from a
subdirectory such as docs/security); leave OUTPUT_DIR empty unless
--output is given, so check_permissions.py uses the repository's assessment
directory <data dir>/appsec-advisor/assessments/<repo-name>-<hash8>; default
SCOPE to local.
If the invocation contains any token that is not one of the recognized
flags above — or is not the value consumed by --repo / --output /
--plugin-dir / --scope — DO NOT proceed. Do not invoke the helper.
Print the following block verbatim to stderr, substituting <TOKEN> with
the first unknown token, then exit with status 2:
Error: unknown argument '<TOKEN>'
/appsec-advisor:check-permissions accepts only:
--repo <path> Repository to inspect (default: git repo root of cwd)
--output <path> Output directory (default: the repo's assessment directory)
--plugin-dir <path> Plugin install directory (default: $CLAUDE_PLUGIN_ROOT)
--scope <scope> Settings scope: local | user | project (default: local)
--update Merge missing permission entries into settings.json
--json Emit the result as machine-readable JSON
--help, -h Show full help and exit
Run `/appsec-advisor:check-permissions --help` for details.
A flag that takes a value counts as unknown when its value is missing — treat the flag itself as the offending token. Repeated occurrences of the same flag are allowed; the last value wins.
If --repo was not passed, resolve REPO_ROOT from the git repository root:
if [ -z "$REPO_ROOT" ]; then
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
fi
Delegate to the Python helper that owns the formatting and JSON merging:
ARGS="--repo-root $REPO_ROOT ${OUTPUT_DIR:+--output-dir $OUTPUT_DIR} --plugin-dir $CLAUDE_PLUGIN_ROOT --scope $SCOPE"
[ "$UPDATE_MODE" = "true" ] && ARGS="$ARGS --update"
[ "$JSON_MODE" = "true" ] && ARGS="$ARGS --json"
python3 "$CLAUDE_PLUGIN_ROOT/scripts/check_permissions.py" $ARGS
Capture the helper's exit code and propagate it.
IMPORTANT: print the helper's stdout verbatim and stop. Do NOT add any text before or after it — no summary, no paraphrase, no "All permissions are already configured" sentence, no closing remark of any kind. The helper's output is the complete and final response.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
permissions, preflight-check, appsec, settings-json, allow-list
npx claudepluginhub appsec-foundry/appsec-advisor --plugin appsec-advisor28 skills in this plugin
/abuse-casesList the technical and business abuse cases defined for a repository — the plugin's standard cases, the organization profile's cases, and the repository's own cases in docs/security/abuse-cases/ — each with its origin, kind, and title. Use for "which abuse cases are defined?", "welche abuse cases gibt es?", "show our business abuse cases", or to look up the ID to pass to analyze-threats --abuse-case. Read-only; it does not check a case against the code. For the outcome a past run recorded, use ask-security-assessment./analyze-threatsAdvisory threat analysis on request: a planned design, selected code changes, a concrete threat hypothesis against named files or directories at a Git revision, or a defined abuse case by its ID. Combines source evidence with requirements, business context, and an optional threat model. Reports findings, scenarios, assumptions, and questions whose answers change the assessment. Hypothesis checks distinguish supported, not confirmed in scope, and unresolved; no result proves safety. Answers can be saved explicitly to a feature file. Never edits code, changes the threat model, or grants security approval./appsec-analyzerSecurity assessment of one repository through the deterministic controller; writes security-assessment.md and security-assessment.yaml to a private directory per application under the user data directory, or to --output. Runs full assessments only: --incremental, --rerender, --dry-run, --base, --pr-mode, --restore-from and a free-text focus are refused. Without a budget flag the depth sets a hard budget (quick 10, standard 20, thorough 40 USD). Models are fixed per role, not taken from the session; --model, --stride-model, --triage-model, --merger-model and --reasoning-model change them. --width sets the widest progress line (72 by default). Stop a running assessment with --stop.Other plugins' skills for the same job