/apiiro:guardian-secure-promptfrom apiiro
Use when the user is about to implement a coding task and wants Apiiro security requirements added to it ("make this prompt more secure", "what security should I consider"). Full STRIDE report on a design: guardian-threat-model.
Ships in apiiro. 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.
Takes a coding task and returns it with security requirements injected. The enhanced prompt preserves the original business intent while adding targeted security considerations based on the repository context.
This is different from apiiro threat-model — secure-prompt enhances a task you're about to code, while threat-model produces a standalone STRIDE analysis report.
Requires a repository monitored by Apiiro: auto-detects it from the current git repository, or pass --repository-key <key>.
apiiro secure-prompt "implement user authentication with JWT"
apiiro secure-prompt "add file upload endpoint"
apiiro secure-prompt "build payment processing module" -o json
apiiro secure-prompt "implement OAuth flow" -f enhanced.txt
apiiro secure-prompt "build payment module" --force # Bypass classifier gate
On unknown command 'secure-prompt' (older CLI), use apiiro guardian secure-prompt with the same arguments.
Options: --repository-key <key>, --force (bypass classifier gate), -o, --output <json|text> (default: text), -f, --file <path>.
Text output returns the original prompt followed by the security requirements (or the prompt unchanged when there's nothing to add). JSON output includes success, enrichment, gate_decision, and error fields.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub apiiro/marketplace --plugin apiiro9 skills in this plugin
/guardian-apiApiiro REST queries across repos or organizations, connectors, audit logs and exports. Policies, coverage, issues and reports have dedicated commands. Applications and application groups: guardian-inventory. Repo risks: guardian-risks./guardian-fixUse when the user wants to fix, remediate, or resolve a security risk or vulnerability ("how do I fix this risk", "remediate this finding"): Apiiro remediation prompts, Guardian AI fixes, and server-side AutoFix jobs. To list risks: guardian-risks./guardian-inventoryApiiro inventory: applications, application groups, teams, artifacts, APIs, dependencies, sensitive data, secrets, validity, technologies, modules, SBOMs, contributors, OSS, licenses, incidents, feed, advisories, repositories, SCM tags, monitoring./guardian-queryUse for freeform security questions about code ("is this code secure?", attack surface, auth flows) or org-wide posture ("top risks across the org", --global), answered by the Apiiro Guardian AI agent. One repo's risks: guardian-risks./guardian-risksUse when the user asks about known security risks or findings in this repo ("what risks does this repo have"), filters Apiiro risks, or wants to accept, ignore, re-level, tag or triage one. Org-wide: guardian-query --global; fixing: guardian-fix./guardian-scanUse to scan code with the Apiiro CLI for secrets, leaked credentials, or vulnerable OSS dependencies, set up pre-commit hooks, or diff-scan branches and PRs for CI gates ("check my code before I push", "scan this PR").