skills/secrets-guardian/SKILL.md
Protect repositories from accidental secret commits. Essential when working with AI agents. Use when: setting up new project, adding pre-commit hooks, scanning for secrets, fixing leaked credentials. Triggers: "настрой защиту секретов", "setup secrets", "check secrets", "scan secrets", "проверь секреты", "pre-commit", "gitleaks". PROACTIVELY suggest when creating new projects or when .pre-commit-config.yaml is missing.
npx skillsauth add timequity/vibe-coder secrets-guardianInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-layered protection against accidental secret commits. Critical for AI-assisted development where agents may not recognize sensitive data.
For new projects, run this setup:
# 1. Check if pre-commit is installed
which pre-commit || pip install pre-commit
# 2. Copy pre-commit config from assets
# See assets/pre-commit-config.yaml
# 3. Create secrets baseline
echo '{"version": "1.5.0", "results": {}}' > .secrets.baseline
# 4. Install hooks
pre-commit install
pre-commit install --hook-type pre-push
# 5. Verify .gitignore has secret patterns
# See assets/gitignore-secrets
When user says "настрой защиту секретов" or "setup secrets protection":
ls -la .pre-commit-config.yaml .secrets.baseline .gitignore 2>/dev/null
If .pre-commit-config.yaml missing:
assets/pre-commit-config.yamlCheck .gitignore for secret patterns:
grep -E "\.env|\.key|API_KEY|secret" .gitignore
assets/gitignore-secretsecho '{"version": "1.5.0", "results": {}}' > .secrets.baseline
pre-commit install
pre-commit install --hook-type pre-push
assets/security-workflow.yaml to .github/workflows/When user says "проверь секреты" or "check secrets":
# Quick scan with gitleaks
gitleaks detect --no-git -v
# Detailed scan with detect-secrets
detect-secrets scan --all-files
Report findings and suggest fixes.
When secret is detected:
Identify the secret type (API key, password, private key, etc.)
Suggest remediation:
.env file (ensure it's in .gitignore)os.environ.get("API_KEY").secrets.baselineIf already committed:
For false positives, update the baseline:
detect-secrets scan --baseline .secrets.baseline
IMPORTANT: When working in any project, check for secret protection:
# Quick check
if [ ! -f .pre-commit-config.yaml ]; then
echo "WARNING: No pre-commit config found"
fi
If missing, ask user: "В проекте нет защиты от утечки секретов. Настроить?"
Copy these to project as needed:
assets/pre-commit-config.yaml - Pre-commit hooks configurationassets/gitignore-secrets - Patterns to add to .gitignoreassets/security-workflow.yaml - GitHub Actions CI workflowdevelopment
Hidden quality gate that runs before showing "Done!" to user - ensures all tests pass, build succeeds, and requirements met before claiming completion
data-ai
Use when about to claim work is complete or fixed - requires running verification commands and confirming output before making any success claims
tools
Generate UI components from natural language descriptions. Use when: user asks for a page, component, or UI element. Triggers: "create page", "add component", "show form", "make button", "страница", "компонент", "форма".
content-media
10 ready-to-use themes with colors and fonts for consistent styling. Use when: applying visual themes to pages, components, or design systems. Triggers: "theme", "color palette", "color scheme", "fonts", "branding", "visual identity", "design system colors".