rj-jiangyichen/dsh-rules ↗★ 1

dsh-rules

DSH 规则插件:通过通配符匹配智能体读取或编辑的文件来激活规则提示词或 markdown 文档 核心用途是根据智能体操作的文件自动激活对应的开发规则(类似于 Claude Code 的 rules.md)。适合需要规范智能体代码行为的开发者。

套件
dsh-rules
相容性
待驗證
Harness 依賴範圍
^0.1.0-rc.6
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年8月17日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rj-jiangyichen/dsh-rules

Configuration

OptionDefaultDescription
dshHome$DSH_HOME / ~/.dshRoot 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)
includeUserRulestrueEnable ~/.dsh/rules/*.md
includeClaudeSectionsfalseParse # 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
maxBytes32768Per-injection render budget (UTF-8 bytes); <= 0 disables the plugin
maxSourceBytes1048576Per-rule source size cap; larger files are skipped
maxTouchedPaths512Touched-path cap per session (FIFO eviction)