claude-code-best/src/costrict/skill/codeReviewSecurity.ts
Askhz df65350c35 feat(skill): add security review builtin skill with code audit support
- Add generate-skills script to download and bundle skills from external repositories.
- Register code-review-security skill for vulnerability detection and integrate into bundled skill initialization.
2026-04-09 15:59:14 +08:00

20 lines
791 B
TypeScript

import { registerBundledSkill } from '../../skills/bundledSkills.js'
import { BUNDLED_SKILLS } from './builtin.js'
export function registerCodeReviewSecuritySkill(): void {
const files = BUNDLED_SKILLS['security-review'] ?? {}
const skillMd = files['SKILL.md'] ?? ''
registerBundledSkill({
name: 'code-review-security',
description: 'Systematic code security audit — identifies vulnerabilities like SQL injection, XSS, command injection, SSRF, etc.',
whenToUse:
'Use when the user requests a code audit, security audit, or vulnerability scan; or mentions /code-review-security, /audit, or wants a security check before deployment',
userInvocable: true,
files,
async getPromptForCommand() {
return [{ type: 'text', text: skillMd }]
},
})
}