rj-jiangyichen/dsh-rules1

dsh-rules

DSH 规则插件:通过通配符匹配智能体读取或编辑的文件来激活规则提示词或 markdown 文档

AI 分析

核心用途是根据智能体操作的文件自动激活对应的开发规则(类似于 Claude Code 的 rules.md)。适合需要规范智能体代码行为的开发者。

包名
dsh-rules
版本
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)