SummerSec/semantic-linter ↗★ 2
semantic-linter
Semantic-Linter plugin and CLI for narrowing wide-boundary wording in LLM instruction files.
AI 분석
核心用途是静态分析和优化 Prompt/System Prompt,减少模糊指令以提升 AI 执行稳定性。适合 Prompt 工程师、Agent 开发者或需要精细调优提示词的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SummerSec/semantic-linter配置
可选配置文件为 .semantic-linter.json。
支持的字段:
{
"ignoreTrapIds": ["T01"],
"ignorePathSubstrings": ["fixtures/generated/"],
"ignoreStructuralTypes": ["open_ended_verb"],
"defaultMode": "guarded",
"ruleSource": "project-first",
"enablePromptScan": false,
"maxFindingsPerHook": 3
}
说明:
defaultMode支持off、pointer、guarded、strictruleSource支持project-first和plugin-onlyenablePromptScan会在guarded模式下启用UserPromptSubmitstrict会始终开启 prompt 扫描