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.
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
Auto-detects the current git repository for context.
```bash
apiiro guardian secure-prompt "implement user authentication with JWT"
apiiro guardian secure-prompt "add file upload endpoint"
apiiro guardian secure-prompt "build payment processing module" -o json
apiiro guardian secure-prompt "create REST API" --global # Without repo context
apiiro guardian secure-prompt "implement OAuth flow" -f enhanced.txt
apiiro guardian secure-prompt "build payment module" --force # Bypass classifier gate
```
Options: `-g, --global`, `--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.