firstp1ck/pi-coding-agent-forge/code-security
Claude Code and agent skill by firstp1ck/pi-coding-agent-forge
- community
Checking that the SKILL.md file is still in the repository.
Agents should invoke this skill for code security reviews, leaked secret checks, dependency risk, unsafe shell/Python/TypeScript/Rust patterns, auth/input-validation flaws, SAST-style audits, or supply-chain concerns in repositories.
Install
npx vskill@latest install firstp1ck/pi-coding-agent-forge/code-securitySKILL.md
Code Security
Secret scanning, dependency vulnerability auditing, static analysis patterns, and supply chain security for the user's codebases.
Quick Start
Quick Repo Security Check
Run these in order for any repository:
Secret Scanning
Patterns to Detect
| Pattern | Regex | Severity | |||
|---|---|---|---|---|---|
| OpenAI API key | sk-proj-[A-Za-z0-9_-]{20,} | Critical | |||
| OpenAI legacy key | sk-[A-Za-z0-9]{20,} | Critical | |||
| AWS access key | AKIA[0-9A-Z]{16} | Critical | |||
| GitHub PAT | ghp_[A-Za-z0-9]{36} | Critical | |||
| GitHub OAuth | gho_[A-Za-z0-9]{36} | Critical | |||
| GitHub App token | github_pat_[A-Za-z0-9_]{22,} | Critical | |||
| Slack token | xox[bpors]-[A-Za-z0-9-]{10,} | High | |||
| Telegram bot token | [0-9]{8,10}:AA[A-Za-z0-9_-]{33} | High | |||
| Discord bot token | [MN][A-Za-z0-9]{23,}\.[A-Za-z0-9_-]{6}\.[A-Za-z0-9_-]{27,} | High | |||
| JWT token | eyJ[A-Za-z0-9_-]*\.eyJ[A-Za-z0-9_-]*\.[A-Za-z0-9_-]* | High | |||
| Generic API key | [Aa]pi[_-]?[Kk]ey.*[=:]\s*["'][A-Za-z0-9]{20,} | Medium | |||
| Password in URL | ://[^:]+:[^@]+@ | High | |||
| Private key header | `-----BEGIN (RSA | EC | DSA )?PRIVATE KEY-----` | Critical | |
| Password assignment | [Pp]assword\s*[=:]\s*["'][^"']{8,} | High |
Manual Secret Scan
Git History Check
Secrets removed from current files may still be in git history:
If secrets found in history:
- Rotate the credential immediately (it's already compromised)
- Use
git filter-repoto remove from history (if critical) - Force push (coordinate with team)
- Document in
MEMORY.md
.gitignore Hygiene
Every repo should ignore:
Audit checklist:
- [ ]
.envand.env.*are in.gitignore - [ ] No
.envfiles are tracked:git ls-files | grep "\.env" - [ ] Private keys (
.pem,.key) are ignored - [ ] Credential JSON files are ignored
- [ ] No sensitive files in git history
Dependency Vulnerability Audit
Rust (cargo audit)
Evaluate findings:
| Advisory Severity | Action | |
|---|---|---|
| Critical / unmaintained | Update or replace immediately | |
| High | Update within 24h | |
| Medium | Include in next release | |
| Low | Update when convenient |
JavaScript / TypeScript (npm audit)
Python (pip-audit)
Supply Chain Risk Indicators
Look for these red flags in dependencies:
| Indicator | Risk | Check | |
|---|---|---|---|
| Very new package (<1 month) | Typosquatting | Check publish date and download count | |
| Single maintainer | Bus factor | Check maintainer count | |
| No recent updates (>2 years) | Abandoned | Check last commit/release | |
| Unexpected install scripts | Malicious payload | Review postinstall scripts | |
| Excessive permissions | Over-privileged | Review package permissions | |
| Name similar to popular package | Typosquatting | Compare with intended package |
Static Analysis (SAST) Patterns
Common Vulnerability Patterns
Command Injection:
Path Traversal:
SQL Injection:
Hardcoded Credentials:
Language-Specific Checks
Rust:
Python:
Shell Scripts:
Code Security Report Format
_Zero skill — Code security analysis and dependency auditing_
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpi-skill-code-security/skills/code-security/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/firstp1ck/pi-coding-agent-forge/code-security)