run-audit
Audit dependencies และ security เพื่อตรวจสอบ vulnerabilities
SKILL.mdrun-audit/SKILL.md
GitHubGoal
Audit dependencies and security to check for vulnerabilities
Scope
Use run-audit for the specific tasks and workflows it covers (audit)
Execute
Pre-Run: always run
/deep-reviewfirst —run-*skills must be reviewed/assessed before the main action, never skip; if findings are blockers, fix or report them before running (audit)
1. Audit Dependencies
Goal: Audit Dependencies
- Run
npm auditorbun audit - Check vulnerabilities in dependencies
- Review the severity levels of the vulnerabilities
2. Audit Licenses
Goal: Audit Licenses
- Check the licenses of dependencies
- Identify unsuitable licenses
- Review compliance requirements
3. Audit Code
Goal: Audit Code
- Scan the code for security vulnerabilities
- Check for hardcoded secrets
- Check for insecure patterns
4. Review Findings
Goal: Review Findings
- Prioritize the issues
- Analyze the impact of each issue
- Define action items
5. Fix Issues
Goal: Fix Issues
- Update dependencies with vulnerabilities
- Fix security issues in the code
- Test after the fixes
6. Generate Report
Goal: Generate Report
- Create an audit report
- Share the findings with the team
- Track remediation progress
Rules
1. Audit Frequency
- Audit dependencies periodically
- Audit after adding new dependencies
- Audit before major releases
2. Severity Handling
- Critical/High: fix immediately
- Medium: fix in the next sprint
- Low: fix when time allows
3. License Compliance
Check license compatibility
Identify copyleft licenses
Track license obligations
Use /follow-best-practice if needed
Use /suggest-next-action if needed
Use /resolve-errors if needed
Use /run-check if needed
Use /run-verify if needed
Expected Outcome
- Dependencies audited
- Vulnerabilities identified and fixed
- License compliance checked
- Security issues fixed
- Audit report created
- Remediation progress tracked