SecDevAI Secure Development Assistant Command
Description
AI-powered secure development assistant that dispatches to specialized sub-skills. Use /secdevai with no arguments for help, or specify a subcommand.
Important: /secdevai with no arguments shows help. Use /secdevai review to perform security reviews.
Usage
/secdevai # Show help (default)
/secdevai help # Show all available commands
/secdevai review # Review selected code (if selected) or full codebase scan
/secdevai review @ file # Review specific file
/secdevai review last-commit # Review last commit
/secdevai review last-commit --number N # Review last N commits
/secdevai fix [severity high] # Apply suggested fixes (with approval, optional severity filter)
/secdevai tool bandit # Use specific tool (bandit, scorecard, all)
/secdevai git-commit # Commit approved fixes (requires git config and approved fixes)
/secdevai export json # Export report (json, markdown, sarif)
/secdevai oci-image-security # Analyze OCI container images for security issues
Aliases
/secdevai-help # Show help (alias for /secdevai help)
/secdevai-fix # Apply suggested fixes (alias for /secdevai fix)
/secdevai-review # Review code (alias for /secdevai review)
/secdevai-report # Generate security report
/secdevai-tool # Use specific tool (alias for /secdevai tool)
/secdevai-export # Export report (alias for /secdevai export)
/secdevai-oci-image-security # Analyze OCI container images for security issues
Command Dispatch
When user runs /secdevai, route to the appropriate sub-skill:
No arguments /
help(default):- IMPORTANT:
/secdevaiwith no arguments should ONLY show help, NOT run review - Display all available commands with descriptions
- Show usage examples
- List all options and flags
- Do NOT perform any security review unless
reviewis explicitly specified
- IMPORTANT:
review: Delegate to thesecdevai-reviewskill. The review skill handles all security code review logic including scope detection, security context loading, OWASP/WSTG analysis, findings presentation, and result export.fix: Delegate to thesecdevai-fixskill. The fix skill handles applying security remediation with before/after diffs, severity filtering, explicit approval, and result export.tool: Delegate to thesecdevai-toolskill. The tool skill handles external tool execution (Bandit, Scorecard), output parsing, AI synthesis, and result export.export: Delegate to thesecdevai-exportskill. The export skill handles converting findings to Markdown and SARIF formats.oci-image-security: Delegate to thesecdevai-oci-image-securityskill. The OCI image security skill analyzes container images for CVE/package vulnerabilities, configuration security issues, supply chain risks, and hardening gaps. Use when reviewing Dockerfiles, Containerfiles, or OCI images from any registry.git-commit:- Only proceed if there are approved fixes that have been applied
- Verify git is configured (check for git repository and user config)
- If conditions met: Create a commit with descriptive message about security fixes
- If conditions not met: Explain what's missing (no approved fixes or git not configured)
Security Principles
Follow these principles from the security context:
- Complete Mediation
- Defense in Depth
- Least Privilege
- Secure by Design, Default, Deployment
Security Context Sources
This command uses multiple security context files:
secdevai-review/context/security-review.context- OWASP Top 10 patterns (always loaded)secdevai-review/context/wstg-testing.context- OWASP WSTG v4.2 web app testing patterns (auto-loaded for web code)secdevai-review/context/golang-security.context- Go-specific vulnerabilities and weaknesses (auto-loaded for Go code)
Multi-Language Support: While context files contain primarily Python examples, all sub-skills MUST adapt security patterns to the language being reviewed (JavaScript, Java, Go, Ruby, PHP, C#, Rust, etc.). Translate the security principles and provide language-specific remediation with appropriate frameworks and idioms.
Integration
This command integrates with:
secdevai-review/context/directory for security analysis guidelinessecdevai-toolfor optional tool integration via containerized runnerssecdevai-export/scripts/results_exporter.pyfor result export.secdevaiignorefor excluding files from scanssecdevai-oci-image-security/references/for OCI container image security patterns- External tools: Bandit, Scorecard, Trivy, Grype
Important Notes
- Never modify code without explicit approval
- Always show preview before changes
- Create backups before applying fixes
- Respect
.secdevaiignorefile - Cache results to avoid re-scanning
Converted and distributed by TomeVault — claim your Tome and manage your conversions.