SummerSec/semantic-linter2

semantic-linter

Semantic-Linter plugin and CLI for narrowing wide-boundary wording in LLM instruction files.

AI 分析

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

パッケージ
semantic-linter
バージョン
1.3.4
最終更新
2026/08/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SummerSec/semantic-linter

ドキュメント

README 全文を読む ↗

配置

可选配置文件为 .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 扫描