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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Guardian Secure Prompt?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/apiiro-guardian-secure-prompt)
---
name: guardian-secure-prompt
description: "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."
---
# Apiiro Secure Prompt
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.
## Usage
Requires a repository monitored by Apiiro: auto-detects it from the current git repository, or pass `--repository-key <key>`.
```bash
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.