craft-coder/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/plugins 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 workflowtools
Backup strategies, disaster recovery planning, and business continuity.
devops
Cloud cost management, rightsizing, and FinOps practices.
testing
CI/CD pipeline design with GitHub Actions, GitLab CI, and best practices.
development
Validate idea and create detailed PRD. Saves docs/PRD.md to project. Use when: user describes an app idea, wants to create something new. Triggers: "I want to build", "create app", "make website", "build MVP", "хочу создать", "сделать приложение".