/appsec-advisor:setup-targetfrom appsec-advisor
Writes Claude Code permission allow-list into a target repository's .claude/settings.json so appsec-advisor runs without permission prompts. One-shot, idempotent setup.
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 performing a one-shot setup that writes the required Claude Code permission rules into a target repository's .claude/settings.json. This skill does not analyse code, dispatch agents, or modify repository content beyond .claude/settings.json.
Recognized flags:
--repo <path> --output <path> --plugin-dir <path> --scope <scope>
Parse these and set REPO_ROOT, OUTPUT_DIR, PLUGIN_DIR, SCOPE.
Default REPO_ROOT to the current working directory (do NOT fall back to the
plugin repo root — this skill is always about a target repo, not the plugin
itself). 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 project (writes <repo>/.claude/settings.json — committed by the repo
maintainer so all contributors get prompt-free runs automatically).
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. Print the block below verbatim
to stderr, substituting <TOKEN>, then exit with status 2:
Error: unknown argument '<TOKEN>'
/appsec-advisor:setup-target accepts only:
--repo <path> Target repository to configure (default: cwd)
--output <path> Output directory for scan artefacts (default: the repo's assessment directory)
--plugin-dir <path> Plugin install directory (default: $CLAUDE_PLUGIN_ROOT)
--scope <scope> Settings scope: project (default) | local | user
project → <repo>/.claude/settings.json (committed, shared; default)
local → <repo>/.claude/settings.local.json (gitignored, personal)
user → ~/.claude/settings.json (global, all projects)
Run `/appsec-advisor:setup-target --help` for details.
mkdir -p "$REPO_ROOT/.claude"
Call check_permissions.py with --update so it merges the required entries
(and promotes any user-only entries to project scope):
python3 "$CLAUDE_PLUGIN_ROOT/scripts/check_permissions.py" \
--repo-root "$REPO_ROOT" \
${OUTPUT_DIR:+--output-dir "$OUTPUT_DIR"} \
--plugin-dir "$PLUGIN_DIR" \
--scope "$SCOPE" \
--update
Capture stdout, stderr, and exit code.
If the helper exited 0, print its stdout verbatim, then add exactly one line:
Restart Claude Code (or reload the session) in <REPO_ROOT> for the new permissions to take effect.
If the helper exited non-zero, print its stderr verbatim and exit with the same code.
Do NOT add any other text — no preamble, no summary, no closing remark.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./ask-security-assessmentAnswer ANY question about the threat model in this repo — read-only Q&A over the committed threat-model.yaml. The default surface for every natural-language query about the model, however simple: does one exist at all ("is there a threat model here?", "gibt es hier ein bedrohungsmodell?"), how it stands ("how bad is it?", "is it still current?"), anything about its contents ("what are the critical findings?", "does it cover SSRF / IDOR / auth?", "which findings touch the payment service?", "is there a fix for F-003?", "welche kritischen findings gibt es?", "deckt mein bedrohungsmodell XSS ab?"), and meta questions ("what does P1 mean?", "what is STRIDE here?"). Grounds every data answer in the model and cites F-ids; never analyzes code, re-scores, spawns agents, or writes files. Prefer this over show-security-assessment for anything phrased as a question — show only prints a fixed summary block on explicit request. To act on findings use triage-security-assessment; to (re)generate use appsec-analyzer./audit-security-requirementsAudit the current repository against a security requirements catalog and verify whether each requirement is implemented. Requirement IDs follow your catalog's own naming scheme (e.g. SEC-CSP-1, SCG-HARDENXML, or anything your YAML defines); tagging code with those IDs is optional and not required. Prints open requirements to the conversation with color-coded status and concise evidence. Optionally saves Markdown/PDF reports. With --json or --gate it also persists a deterministic structured verdict (.requirements-audit.json) and can act as a CI gate./authnz-reviewStandalone AuthN/AuthZ review of any repository. Runs three deterministic Python scanners (route inventory, auth-check scanner, IDOR confirmer) and dispatches a specialized agent that reasons over the combined output: cross-component IDOR chains, RBAC coverage gaps, JWT misconfiguration, and privilege-escalation signals. Optionally annotates findings with violated requirement IDs from a requirements catalog, and exports the findings as pentest tasks for an AI pentest agent. Does NOT require a prior threat model run. Prints results to the console; file output only with --save or --pentest-tasks.Other plugins' skills for the same job