/yka-code:security-auditfrom yka-code
[yka-code] Run a multi-layered security audit using installed tools. Use when the user asks for a security review, vulnerability scan, audit, or wants to check for injection/XSS/secrets/unsafe patterns. Chains snyk MCP, silent-failure-hunter, pre-secrets-guard hook findings, and claude-mem prior findings.
Ships in yka-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Layer the user's installed security tooling into one systematic pass.
Load and apply the karpathy-guidelines skill alongside this workflow. Short version:
| Condition | Tool | Why |
|---|---|---|
| Always, first thing | /claude-mem:mem-search "security" | Don't re-flag known accepted issues |
| Code-level vulns (SQL-i, XSS, path traversal) | snyk_code_scan (snyk MCP) | SAST |
| Dependency vulns (supply chain) | snyk_sca_scan | SCA on package-lock/requirements |
| Infrastructure as Code in scope | snyk_iac_scan | Terraform/K8s/CloudFormation |
| Dockerfile or container in scope | snyk_container_scan | Image vulns |
| Run all four in parallel when scope covers them — ONE message, 4 MCP calls | ||
| Test a vuln repro safely | container-use CLI | Sandboxed execution, can't escape |
| Silent-failure patterns near security code | pr-review-toolkit:silent-failure-hunter | Swallowed errors in auth/crypto paths |
| Weak types around security boundaries | pr-review-toolkit:type-design-analyzer | string where Branded<UserId, "verified"> belongs |
| Past security fixes in related repos | github MCP (needs GITHUB_PAT) | Cross-repo CVE/fix search |
| Known vulns in similar OSS code | deepwiki MCP | Q&A against public repos |
| DB query security (parameterization, injection) | psql / mongosh + Grep for raw-concat query patterns | Run EXPLAIN + search source for "SELECT " + var anti-patterns |
Ask the user what's in scope if unclear:
Don't audit everything by default — that's noise. Scope to what the user actually wants.
/claude-mem:mem-search "security" — surface any prior audits or known-issue patterns. If we already logged "don't use rand() for session tokens", do NOT re-raise it as a new finding.
The snyk MCP is already registered. Invoke its tools:
snyk_code_scan — SAST for code-level vulns (SQL-i, XSS, path traversal, etc.)snyk_sca_scan — dependency vulnerability scan (supply-chain)snyk_iac_scan — if there's IaC in scope (Terraform/Kubernetes/CloudFormation)snyk_container_scan — if there's a Dockerfile in scopeRun ONLY the scans relevant to the scope. No point running IaC scan on a pure TypeScript library.
Spawn pr-review-toolkit:silent-failure-hunter on the auth / crypto / validation code. Swallowed exceptions in security-critical paths are where real bugs hide (e.g., catch { return user } that returns the wrong user under load).
Spawn pr-review-toolkit:type-design-analyzer. Security bugs frequently stem from weak types — e.g., string for something that should be UserId & Brand<"verified">. This agent catches that.
Our ~/.claude/settings.json has a deny-list. Verify the current rules are still appropriate for the code in scope. If new patterns have emerged (e.g., code now makes external HTTP calls — add rate-limit rules), note them.
Our pre-secrets-guard.sh hook catches AWS/Stripe/GitHub/Anthropic keys, .env reads, etc. If the audit scope includes handling secrets, verify the expected patterns are in the hook.
Group by severity. For each finding:
Present CRITICAL and HIGH together. MEDIUM and below in a collapsible list. Don't bury a critical finding in a 40-item dump.
/claude-md-management:revise-claude-md — add a "Security notes" section with the patterns we found and their fixes. Future audits should benefit.
audit-rigor — load at Phase 0 alongside the base skills. Owns the output discipline (≥70% confidence, inline citations, SWAP/ADD/DROP format, delegate retrieval). Security-audit supplies the WHAT (vulns, scanners); audit-rigor supplies the HOW.fix-bug — each confirmed finding routes there for the actual remediation (red test → patch → verify).ci-hygiene — wire snyk_code_scan / snyk_iac_scan into CI so future regressions fail the pipeline.doc-hygiene — record remediations in SECURITY.md / CHANGELOG.md under its rules.test-driven-development — vulnerabilities get a red test (exploit proof-of-concept) before the fix ships.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (youssefkadaouiabbassi/yka-code) — no native marketplace selected
npx claudepluginhub p/youssefkadaouiabbassi-code-tools-setupOther plugins' skills for the same job
20 skills in this plugin
/audit-rigor[yka-code] Discipline for audit, review, and technology-comparison tasks. Use when the request is "audit X", "review our stack", "is this the best option", "compare alternatives", "what should we swap / add / drop", or any task that produces prioritized recommendations rather than new code. Enforces a ≥70% confidence threshold, delegate-retrieval-to-subagent pattern, inline citations with ISO dates, MCP-first sourcing, and a fixed output format (SWAP / ADD / DROP / KEEP-BUT-UPGRADE / SURPRISE). Pair with research-first (retrieval discipline) and karpathy-guidelines (surgical scope). Chained from security-audit, onboard-codebase, and any /do route that smells like "is this the best we have"./ci-hygiene[yka-code] CI/CD and DevOps hygiene enforcer. Activates when editing GitHub Actions workflows, Dockerfiles, docker-compose, justfile, deploy scripts, or any CI configuration. Enforces pinned versions, proper Claude Code invocation in CI (--bare, API key not Max sub), secret management, and reproducibility. Fills the DevOps gap — no plugin covers this in the wild./coding-style[yka-code] Enforce minimalist, self-documenting, defensively-sane coding style. Use ALWAYS when writing, editing, or reviewing ANY code in ANY language — every function, every edit, every diff, no exceptions. Covers five rules: (1) no comments unless critical (WHY only, never WHAT, never history), (2) clean + optimized (no dead code, no speculative abstractions, no stale imports, delete over deprecate), (3) self-documenting names (full words, verbs for functions, nouns for data), (4) smallest surface (one function one concern, extract only on 3rd reuse, validate only at boundaries), (5) no dead defense (no try/catch for impossible cases, no fallbacks for inputs you control, let errors bubble to the right handler). Pair with karpathy-guidelines for behavioral principles (Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution).