Back to skills
SKILL.md
Prompt Governance
ASecurityThis skill should be used when the user asks to "audit prompts for safety", "check prompts for injection vulnerabilities", "manage a prompt catalog", "version control prompts", or "review prompt quality and compliance".
- 847 stars
- 0 votes
- 0 copies
- 1 view
- Added May 29, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add borghei/Claude-Skills --skill prompt-governance --agent claude-codeAre you the author of Prompt Governance?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/borghei-prompt-governance)---
name: prompt-governance
description: >
This skill should be used when the user asks to "audit prompts for safety",
"check prompts for injection vulnerabilities", "manage a prompt catalog",
"version control prompts", or "review prompt quality and compliance".
license: MIT + Commons Clause
metadata:
version: 1.0.0
author: borghei
category: engineering
domain: ai-governance
updated: 2026-04-02
tags: [prompt-governance, prompt-safety, prompt-audit, prompt-catalog, ai-compliance]
---
# Prompt Governance
> **Category:** Engineering
> **Domain:** AI Governance
## Overview
The **Prompt Governance** skill provides tools for auditing prompts for security vulnerabilities, bias, and safety issues, plus managing a versioned catalog of approved prompts. Essential for organizations deploying LLM-based applications at scale.
## Quick Start
```bash
# Audit a prompt for security and safety issues
python scripts/prompt_auditor.py --file system_prompt.txt
# Audit with specific focus
python scripts/prompt_auditor.py --text "You are a helpful assistant..." --checks injection,bias,safety
# Initialize a prompt catalog
python scripts/prompt_catalog_manager.py --init --catalog-dir ./prompts
# Add a prompt to the catalog
python scripts/prompt_catalog_manager.py --add --name "customer-support-v1" --file prompt.txt --catalog-dir ./prompts
# List all prompts in catalog
python scripts/prompt_catalog_manager.py --list --catalog-dir ./prompts
```
## Tools Overview
| Tool | Purpose | Key Flags |
|------|---------|-----------|
| `prompt_auditor.py` | Audit prompts for injection, bias, and safety | `--file`, `--text`, `--checks`, `--format` |
| `prompt_catalog_manager.py` | Manage versioned prompt catalog | `--init`, `--add`, `--list`, `--diff`, `--catalog-dir` |
## Workflows
### Prompt Review Process
1. Author writes or modifies a prompt
2. Run `prompt_auditor.py` for automated checks
3. Review findings and address critical issues
4. Add approved prompt to catalog with `prompt_catalog_manager.py`
5. Deploy from catalog (never from ad-hoc sources)
### Prompt Versioning
1. Store all prompts in catalog with semantic versioning
2. Use `--diff` to compare versions before promotion
3. Maintain audit trail of all prompt changes
4. Roll back to previous versions when issues detected
## Reference Documentation
- [Prompt Governance Framework](references/prompt-governance-framework.md) - Policies, review processes, and compliance requirements
## Common Patterns
### Prompt Lifecycle
Draft -> Audit -> Review -> Approve -> Deploy -> Monitor -> Retire
### Governance Checklist
- No injection vulnerabilities
- No harmful content generation potential
- Appropriate bias mitigation
- Clear scope boundaries
- Output format constraints
- Error handling instructions
Files in this skill
- SKILL.md
- references/prompt-governance-framework.md
- scripts/prompt_auditor.py
- scripts/prompt_catalog_manager.py
Attribution
Comments
Loading comments…