nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xiaoxiaolelang-ai/dsh-rail
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness 的侧边栏做减法:把面板图标收进一条窄栏,把宽度还给会话列表,把工作区与会话分出层次,并在底部栏上方常驻一条 DeepSeek 余额。
¥ 23.41 + 今日 0.42 + 累计 3.70(小标签 + 数值,右对齐成组,中间一条竖线)。圆点四档:正常中性灰、低于 50 琥珀、低于 10 红、未登录暗灰;数字本身也按同样阈值变色。平时每 60 秒自动刷一次,切回窗口时也会刷。deepseekAccount.getState().links.topUpUrl),不是插件里写死的。Shift + 点击才是立即刷新;宿主没给地址时,点击退回刷新。悬停看充值 / 赠金分项、更新时间、今日与累计消费(含累计起始日)、今日充值 / 今日赠金。--dsw-alias-* 主题令牌(包括线条的 alpha 叠加),浅色 / 深色自动跟随。展开状态下数的是屏幕上真实的会话行;折叠状态下宿主根本不渲染那些行,所以用的是上次展开时记下的值(localStorage,键 dsh-rail:session-counts:v2)。
右侧那个 ↓1.50 是今日累计消费,不是"当前余额和早上比差了多少"。
DSH_HOME/dsh-usage/usage-ledger.json 的"账本优先"路径已移除:已经没有插件在写那个文件,读它只会显示过期数字。合并成总余额做差是不行的:一次净涨既可能是充值、也可能是赠金到账,事后拆不开——上一版正是因此把「充值 10 元」显示成了别的数。v: 3,从 v2 迁移时把已有当日值当作起点,不凭空造历史)。toppedUpToday;DSH_HOME/dsh-rail/day-spend.json,重启当天接着算;跨天自动归零。插件管理器里添加 dsh-rail,或者:
dsh plugin install dsh-rail
安装后刷新页面(首次安装或升级客户端代码时,正常退出 Desktop 再启动最稳妥)。
deepseekAccount 服务)。已登录就能显示,不需要 API Key。DEEPSEEK_API_KEY:先读环境变量,再读宿主凭据记录。明文只在 Host 进程内使用,不会下发到浏览器。这条请求带 10 秒超时,不会让余额条卡在「读取中」。凭据只存在 Host 侧,浏览器通过 connection 的精确 fetch 路由(/api/dsh-rail/balance)取已算好的 JSON。
不替换任何 slot、不重排 React 树、也不追加结构性 DOM 节点:
style[data-plugin-css="…"])里解析,宿主升级换哈希也不影响。data 属性上,由 CSS content: attr() 渲染,不插节点;卸载时逐个删掉。title 属性与计数属性,全部还原。engines.dsh >= 0.2.2-rc.1(在 0.2.2-rc.1 与 0.2.2-rc.2 上验证)。scrollArea,面板行外面多包了一层 panelEntry,选中类由 panelActive 改名为 panelEntryActive。插件在运行时探测这些类名,新宿主按新结构挂网格,旧宿主仍走原路径——两边都不用改配置。position: sticky 要求行与滚动容器之间没有 overflow 裁剪,而宿主的行容器不受本插件控制;做了会出现「有时吸、有时不吸」,比不做更糟。scrollArea,图标列与工作区重新并排;压掉宿主为滚动条留的两行占位与 4px 槽。panelEntry 包裹层与「宽行」38px 内边距;选中强调条跟随改名后的 panelEntryActive。余额 │ 今日 x.xx 累计 y.xx)。node --check client.js # 客户端语法
node _smoke.mjs # 假 ctx 跑一遍 apply,打印最终注入的 CSS(29 项)
node _test-degrade.mjs # 拖拽类名缺失时结构层仍在(2 项)
node _test-counts.mjs # 四种 DOM 形状下的会话计数(4 项)
node _smoke-host.mjs # Host 半边取数与今日花费(6 项)
npm pack # 生成可分发的 tarball
阈值在 client.js 顶部:WARN_AT = 50、LOW_AT = 10;窄栏宽度在 railCss() 里。
MIT
A small sidebar plugin for DeepSeek Harness: panel icons move into a narrow 40px rail so the session list gets the whole width, workspaces and sessions gain a quiet visual hierarchy, and a DeepSeek balance line sits just above the sidebar footer.
title tooltip, and the active panel gets a 2px accent bar. No structural DOM is added, moved or replaced.¥ 23.41, and today's net change. The dot is neutral when healthy, amber below 50, red below 10, grey when signed out. Click to refresh now; polls every 60 seconds and on window focus.--dsw-alias-* tokens, alpha layering included, so light and dark follow the host.Where the session count comes from: expanded workspaces are counted from the rows actually on screen; collapsed ones reuse the last value seen while expanded (localStorage, key dsh-rail:session-counts:v2). Nothing is shown for a workspace that has never been expanded in this profile — the plugin does not guess and does not read host internals.
Today's spend prefers the usage ledger at DSH_HOME/dsh-usage/usage-ledger.json; when that has no entry for today it falls back to the balance delta, with the day's baseline persisted at DSH_HOME/dsh-rail/day-spend.json so a restart does not reset it. Positive means spent today, negative means topped up or granted.
The balance comes from the host's deepseekAccount service (no API key needed when signed in), falling back to DEEPSEEK_API_KEY with a 10 second timeout. Credentials never reach the browser; the client reads a pre-computed JSON document over an exact connection fetch route.
Requires DSH >= 0.2.2-rc.1 (verified on 0.2.2-rc.1 and 0.2.2-rc.2). DSH 0.2.2-rc.2 moved the sidebar two-column grid onto a nested scrollArea, wrapped every panel row in a new panelEntry, and renamed panelActive to panelEntryActive; the plugin detects those class names at runtime, so both structures render correctly. When the sidebar collapses to its 56px rail the host hides the footer, so the balance line hides with it. Sticky workspace headers are deliberately not implemented: position: sticky needs no overflow clipping between the row and the scroll container, and the host's row container is outside this plugin's control.
MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。