treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:axetroy/dsh-plugin-skills
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个 Agent Skill,用于指导 DeepSeek Harness (DSH) 插件的开发。
DSH 的插件框架是 Cordis:插件是一个导出 apply 函数的 TypeScript 模块,通过 ctx 注册工具、service、事件与 LLM adapter,卸载时自动回收。
推荐用 skills CLI(Vercel Labs 出品的 agent skills 生态 CLI)安装。它支持 Claude Code、Codex、Cursor、OpenCode 等 80 多个 agent,会自动把技能放进对应 agent 的 skills 目录。
要求 Node.js 22.20 或更高版本。在你的项目目录下执行:
npx skills add axetroy/dsh-plugin-skills
交互式安装会让你选择要装的技能与目标 agent。常用变体:
# 只装到指定 agent
npx skills add axetroy/dsh-plugin-skills -a claude-code
# 装到全局(所有项目可用),非交互
npx skills add axetroy/dsh-plugin-skills -g -y
# 先看看仓库里有哪些技能,不安装
npx skills add axetroy/dsh-plugin-skills --list
默认装到当前项目的 .agents/skills/(可随项目提交、团队共享);加 -g 装到用户目录(跨项目可用)。
安装后用 npx skills list 查看,用 npx skills update dsh-plugin-skills 更新,用 npx skills remove dsh-plugin-skills 卸载。
不想用 CLI 时,直接把技能目录放进 agent 的 skills 目录即可:
git clone --depth 1 https://github.com/axetroy/dsh-plugin-skills.git \
~/.claude/skills/dsh-plugin-skills
把路径换成你所用 agent 的 skills 目录。技能名必须与目录名一致(dsh-plugin-skills)。
SKILL.md # 入口:任务路由 + 实时文档入口 + 排查流程
references/
├── 01-plugin-basics.md # 第一个插件、apply/inject、Fiber 状态机、ctx.effect
├── 02-tool-authoring.md # defineTool、execute 契约、后台任务、UI 卡片、PTC
├── 03-plugin-config.md # Config + Schemastery、校验、HMR
├── 04-services-and-lifecycle.md # Service 子类、inject、声明合并、service 隔离
├── 05-events.md # emit/bail/serial/waterfall、typed events
├── 06-llm-adapter.md # LlmAdapter、StreamChunk 协议、LlmError
├── 07-packaging-and-publish.md # bundle / profile、层顺序、GitHub 安装
└── 08-capability-layering.md # Definition / Provider / Consumer 三角色
references/,渐进披露,SKILL.md 保持精简并做路由。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: development、开发、插件开发。