SummerSec/semantic-linter2

semantic-linter

用于收窄 LLM 指令文件中宽泛表述的语义检查插件及命令行工具。

AI 分析

核心用途是静态分析和优化 Prompt/System Prompt,减少模糊指令以提升 AI 执行稳定性。适合 Prompt 工程师、Agent 开发者或需要精细调优提示词的用户。

套件
semantic-linter
版本
1.3.4
最近更新
2026年8月15日

安裝

$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 支持 offpointerguardedstrict
  • ruleSource 支持 project-firstplugin-only
  • enablePromptScan 会在 guarded 模式下启用 UserPromptSubmit
  • strict 会始终开启 prompt 扫描