/pokayokay:security <area-to-audit>from pokayokay
Conducts a security audit on code, dependencies, configuration, or architecture. Delegates scanning to an agent, checks against OWASP Top 10, classifies findings by severity, generates a report, and creates remediation tasks.
Ships in pokayokay. Installing the plugin adds it to Claude Code.
Security audit: $ARGUMENTS
Delegate the security scanning to the yokay-security-scanner agent for isolated execution. This keeps verbose scan output separate and enforces read-only constraints.
Use the yokay-security-scanner agent to scan: $ARGUMENTS
Return the severity summary and critical/high findings to this conversation.
The agent will:
After receiving the agent's findings, continue with remediation task creation below.
From $ARGUMENTS, identify:
# Dependency vulnerabilities
npm audit
# or
pnpm audit
# Secret detection
git secrets --scan
OWASP Top 10:
| Severity | Description | Action |
|---|---|---|
| Critical | Immediate exploit risk | Fix now |
| High | Significant vulnerability | Fix this sprint |
| Medium | Moderate risk | Plan fix |
| Low | Minor issue | Backlog |
| Info | Best practice | Consider |
Document findings with:
Automatically create ohno tasks for each finding using MCP tools based on severity:
| Severity | Priority | Task Type | Action |
|---|---|---|---|
| Critical | P0 | bug | Always create |
| High | P1 | bug | Always create |
| Medium | P2 | bug | Create if actionable |
| Low | P3 | bug | Skip (or create if explicitly requested) |
For each Critical/High/Medium finding, use ohno MCP create_task:
create_task({
title: "Security: [vulnerability name]",
description: "[Description]\n\nLocation: [file:line]\nCWE: [CWE-XXX]\nRemediation: [steps]",
task_type: "bug",
estimate_hours: [1-4 based on complexity]
})
Example task creation for findings:
create_task("Security: Fix SQL injection in user search", type: bug) with P0 priority note in descriptioncreate_task("Security: Fix XSS in comment rendering", type: bug) with P1 priority notecreate_task("Security: Upgrade password hashing algorithm", type: bug) with P2 priority noteAfter creating tasks, report summary:
Created [N] remediation tasks:
- [task-id]: Security: [name] (Critical/High/Medium)
- ...
/pokayokay:api - Secure API design/pokayokay:cicd - Security in pipelines/pokayokay:work - Implement fixesWhen security audit involves:
api-design skilldatabase-design skillci-cd skillWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub srstomp/pokayokay --plugin pokayokay23 commands in this plugin
/apiAPI Design WorkflowDesign RESTful APIs with consistent patterns/archArchitecture Review WorkflowReview architecture and plan refactoring/auditFeature Audit WorkflowAudit feature completeness and identify gaps/cicdCI/CD Pipeline WorkflowCreate, debug, or optimize CI/CD pipelines/dbDatabase Design WorkflowDesign database schemas and migrations/docsDocumentation WorkflowCreate or improve documentationOther plugins' commands for the same job