skills/secrets-scanner/SKILL.md
Scan files or text for hardcoded secrets, API keys, tokens, PEMs, passwords, and connection strings. Use when importing external skills, vetting content, or auditing for credential leaks. Keywords: scan, secrets, credentials, api key, token, password, PEM, leak, vet, audit
npx skillsauth add avifenesh/cairn secrets-scannerInstall 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.
Scan a file or set of files for hardcoded secrets and credentials.
Read the target file(s)
$ARGUMENTS is a file path, read it$ARGUMENTS is a glob pattern, expand and read matching filesCheck content against these secret patterns
| Pattern | Type | Examples |
|---------|------|----------|
| Well-known token prefixes | vendor_token | ghp_, ghs_, sk-, xoxb-, glpat-, pypi-, npm_ |
| AWS access keys | aws_access_key | AKIA followed by 16 alphanumeric chars |
| Stripe keys | stripe_key | sk_live_, pk_live_, rk_live_ |
| Twilio SID | twilio_sid | AC followed by 32 hex chars |
| SendGrid keys | sendgrid_key | SG. followed by base64 segments |
| PEM private keys | pem_private_key | -----BEGIN * PRIVATE KEY----- blocks |
| Connection strings | connection_string | postgres://user:pass@host, mongodb://..., redis://... |
| Labeled credentials | labeled_credential | api_key=..., token: ..., password=..., secret=... |
| Bearer tokens | bearer_token | Bearer followed by long token string |
| High-entropy strings | entropy | Hex strings 32-256 chars, base64-like 64-512 chars |
Report findings
For each finding, report:
- **[TYPE]** line N: `prefix...suffix` (redacted)
Group by severity:
Summary and remediation
## Scan Results: filename
**Status**: CLEAN | N findings detected
### Findings
[grouped by severity]
### Remediation
- Move secrets to environment variables
- Use a `.env` file (excluded from git)
- For production: use a secrets manager (AWS SSM, Vault, etc.)
- For skills: reference `${ENV_VAR}` instead of hardcoding values
data-ai
Detect agent-cairn PRs that have stalled (no activity >=90 min) and classify the failure mode to route to appropriate recovery agent.
tools
Post-install skill adaptation: read a newly installed SKILL.md, fix environment-specific references (paths, accounts, tool names), assign the skill to relevant agent types, and propose an AGENTS.md update. Triggered automatically after cairn.installSkill completes.
data-ai
Monthly self-improvement brief for Cairn. Queries error_patterns, action_exemplars, experiment_windows, and session_journal to synthesize what Cairn learned, where it failed, and 3 concrete proposals for Avi to approve. Run on the 1st of each month. Keywords: growth brief, monthly review, self-improvement, what did cairn learn, how is cairn doing, monthly report
testing
Decision support with memory-backed context. Retrieves past decisions, journal history, and relevant facts before answering questions that involve a choice or tradeoff. Keywords: should I, which is better, tradeoff, compare, decide, choose, option, alternative, pros and cons, recommend