dsh-doctor
asdf17128
Find what your DeepSeek Harness (dsh) patches silently broke — dead patches, config fields dropped by whole-config repla…
PROJECT TOPICS
PROJECT README
A DeepSeek Harness (dsh) plugin that brings GitHub (gh), Gitea (tea), and npm into the agent. It detects and installs the CLIs, guides the user through authentication with explicit choices, and operates issues and publishes packages.
gh / tea
~/.local/binlist · view · create · comment · close · reopennpm
npm whoami), and registrynpm login --auth-type=web) or automation tokennpm publish --access public)Skill
gh-tea-npm skill that documents the workflows and points at each CLI's own --help as the authoritative command surfacegh and tea are optional — the plugin installs them if missingnpx -y @deepseek-ai/dsh plugin add @tommyfang/gh-tea-npm-dsh
This is a host-only bundle: cordis.patch.yml (referenced by the package's dsh.bundle manifest) inserts the plugin row, and dsh/index.js registers the tools and the skill.
The plugin never poses open-ended questions. It returns a menu, the agent presents it as options, and the user advances one step at a time.
gh / tea — gitclis_configure:
gitclis_configure method=auto → current state + next-step menugitclis_install, or pick a token source:method=envmethod=web (returns a device code) → method=poll to verifygitclis_set_tokengitclis_statusnpm — npm_configure:
npm_configure method=auto → current state + next-step menumethod=web (returns a login URL) → method=poll to verify, or automation token → method=tokennpm_publish (or npm_publish dry_run=true)npm now caps access tokens — including automation tokens — at a 90-day lifetime. An expired token breaks npm publish, so rotate before it lapses:
https://www.npmjs.com/settings/<user>/tokens/new, then npm_configure method=token; ornpm_configure method=web.npm_status surfaces this policy and npm_configure walks through rotation.
| Tool | Description |
|---|---|
gitclis_status |
detect gh/tea install, version, auth, env tokens (masked) |
gitclis_configure |
guided gh/tea config — auto/env/web/manual/poll |
gitclis_install |
install gh and/or tea |
gitclis_set_token |
store a gh/tea token (never echoed) |
gitclis_token_env |
read/import token environment variables |
gitclis_issue_list |
list issues |
gitclis_issue_view |
view one issue, optionally with comments |
gitclis_issue_create |
create an issue |
gitclis_issue_comment |
comment on an issue |
gitclis_issue_close |
close an issue |
gitclis_issue_reopen |
reopen an issue |
npm_status |
detect node/npm, login state, registry |
npm_configure |
guided npm auth — auto/web/token/poll |
npm_publish |
publish to npm |
Issue tools take a provider argument: github → gh, gitea → tea.
The companion skill is registered at runtime and shipped on disk at skills/gh-tea-npm/SKILL.md. It documents issue-workflow recipes, the auth flows, and the npm token policy, and defers to gh <cmd> --help, tea <cmd> --help, and npm <cmd> --help for exact flags.
dsh/index.js Host Cordis plugin — registers tools + the gh-tea-npm skill
cordis.patch.yml dsh bundle layer — inserts this package
skills/gh-tea-npm/ companion skill markdown
package.json dsh + exports manifest
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。