dsh-ASD-100
其他 活跃维护

dsh-ASD-100

yang1604454533-netizen/dsh-ASD-100

常开式 STE100 输出插件,支持 /ste on 开启、/ste off 关闭、/ste 查询状态,自动化规范英文技术写作的用词与句式。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
22 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:yang1604454533-netizen/dsh-ASD-100
git clone https://github.com/yang1604454533-netizen/dsh-ASD-100.git
git clone git@github.com:yang1604454533-netizen/dsh-ASD-100.git
README.md main

dsh-ASD-100

Forces ASD-STE100 Simplified Technical English on every reply and every document.

What it does

When the mode is on, the plugin adds an always-on section to the system prompt of
every request. The section holds the writing rules of simplified technical English:
20 words in a procedure sentence, 25 in a descriptive sentence, one instruction per
sentence, active voice, simple tenses, the condition before the command, one word
with one meaning, no semicolons, no em dashes, no contractions. A reply answers
first and uses prose only.

Commands

  • /asd100 on turns the mode on.
  • /asd100 off turns the mode off.
  • /asd100 reports the current state.

/asd-100 is accepted as an alias.

State

The mode is one flag file: ~/.dsh/dsh-asd-100/.active. The plugin reads it on every
request, so all sessions share the state and a change takes effect at once. To turn
the mode off from outside the chat, delete the file.

Where the rules come from

The rules ship with the plugin in skills/simple-english/, so a fresh install follows
the full rule set and the four reference files it points to. When
~/.agents/skills/simple-english/SKILL.md exists, that copy wins, and you can edit
your own rules there. When neither copy exists, the plugin uses a built-in rule set
of nine lines. All three paths are in lib/index.js.

Config

Two optional fields, set in the bundle patch that loads the plugin:

- insert:
    - id: dsh-asd-100
      name: dsh-asd-100
      config:
        skillDir: /path/to/simple-english   # default: ~/.agents/skills/simple-english, then the packaged copy
        stateFile: /path/to/.active         # default: ~/.dsh/dsh-asd-100/.active

Development

node --test test/ste.test.mjs

The plugin imports node builtins only. It has no dependencies.

Files

  • lib/index.js — the plugin: the prompt section, the command handler, the flag file.
  • cordis.patch.yml — the bundle patch that loads it.
  • skills/simple-english/ — the rule text and its references, spliced from the
    simple-english agent skill (MIT), version 2.1.1, standard ASD-STE100 Issue 9.
  • test/ste.test.mjs — seven tests.
  • awesome-dsh-plugin-entry.yml — the list entry for the awesome-dsh-plugin PR.

License

MIT