src/core/templates/builtin/skill-customization/example/SKILL.md
Analyzes code for quality and best practices
npx skillsauth add dexhorthy/kustomark-ralph-bash code-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A comprehensive skill for analyzing code quality, detecting issues, and suggesting improvements.
This skill provides tools to analyze code files for:
When using this skill to analyze code:
Analyzes a single code file for quality and best practices.
async function analyze(
filePath: string,
language: string,
config?: AnalysisConfig
): Promise<AnalysisReport>
Parameters:
filePath: Path to the file to analyzelanguage: Programming language (javascript, typescript, python, java, etc.)config: Optional configuration for analysis rulesReturns:
AnalysisReport: Detailed analysis results with issues and suggestionsScans a directory for code files to analyze.
async function scan(
directory: string,
options?: ScanOptions
): Promise<string[]>
Parameters:
directory: Directory to scanoptions: Optional scan configuration (recursive, file patterns, etc.)Returns:
Generates a formatted report from analysis results.
async function report(
results: AnalysisReport[],
format: 'text' | 'json' | 'html'
): Promise<string>
Parameters:
results: Array of analysis reportsformat: Output format (text, json, or html)Returns:
The skill can be configured with custom rules and settings:
name: code-analyzer
config:
severity: warning # Minimum severity to report (info, warning, error)
rules:
no-console: warning
no-eval: error
no-var: warning
max-complexity: 10
max-lines: 500
excludePatterns:
- '**/*.test.ts'
- '**/*.spec.ts'
- '**/node_modules/**'
const result = await analyze('./src/main.ts', 'typescript');
console.log(await report([result], 'text'));
const files = await scan('./src', { recursive: true });
const results = await Promise.all(
files.map(file => analyze(file, detectLanguage(file)))
);
console.log(await report(results, 'html'));
const config = {
severity: 'error',
rules: {
maxComplexity: 5,
maxLines: 200,
},
};
const result = await analyze('./src/main.ts', 'typescript', config);
When using this skill:
Original skill from Claude Skills Library.
testing
# Iterate Research Skill ## Description This skill helps you iterate on existing research. ## Usage Execute this skill to refine and improve your research. ## References See the final answer template in the references directory.
testing
# Create Research Skill ## Description This skill helps you create initial research documents. ## Usage Execute this skill to start a new research project. ## References See the research template in the references directory.
testing
# Iterate Research Skill ## Description This skill helps you iterate on existing research. ## Usage Run this skill to refine and improve your research. ## References See the final answer template in the references directory.
testing
# Create Research Skill ## Description This skill helps you create initial research documents. ## Usage Run this skill to start a new research project. ## References See the research template in the references directory.