Analyzer Quickstart
Run from code
ts
import { Analyzer } from "@FeiyouG/skill-lab";
const analyzer = new Analyzer();
const result = await analyzer.analyze({
source: "./my-skill",
});
console.log(result.riskLevel, result.score, result.summary);This is equivalent to the following CLI command:
bash
slab analyze ./my-skill --jsonTypical checks
- Ensure
SKILL.mdexists and has valid frontmatter. - Review
permissionsfor scope and necessity. - Review
riskswithcriticalseverity first, thenwarning.