dsh-rules
DSH rules plugin: activate rule prompts / markdown documents by glob-matching the files an agent reads or edits (Claude Code rules.md style).
AI 分析
核心用途是根据智能体操作的文件自动激活对应的开发规则(类似于 Claude Code 的 rules.md)。适合需要规范智能体代码行为的开发者。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rj-jiangyichen/dsh-rulesドキュメント
README 全文を読む ↗Configuration
| Option | Default | Description |
|---|---|---|
dshHome | $DSH_HOME / ~/.dsh | Root for user rules and ~/.dsh/AGENTS.md |
projectRootMarkers | [".git"] | Marker files/dirs used to find the project root by walking up |
ruleDirNames | [".dsh/rules"] | Rule directories inside the project (relative to the project root, multiple allowed) |
includeUserRules | true | Enable ~/.dsh/rules/*.md |
includeClaudeSections | false | Parse # Path: sections |
instructionFileCandidates | ["AGENTS.md", "CLAUDE.md"] | Candidate file names for # Path: sections |
localInstructionFileCandidates | ["AGENTS.local.md", "CLAUDE.local.md"] | Per-directory candidate file names |
maxBytes | 32768 | Per-injection render budget (UTF-8 bytes); <= 0 disables the plugin |
maxSourceBytes | 1048576 | Per-rule source size cap; larger files are skipped |
maxTouchedPaths | 512 | Touched-path cap per session (FIFO eviction) |