GUOZIJAN/dsh-tech-stack-survey ↗★ 0
dsh-tech-stack-survey
DSH 技术栈调研插件,在项目设计前由模型通过浏览器卡片自适应提出 2-5 个技术栈问题,根据用户回答继续设计。
AI 分析
核心用途是在生成项目方案前自动收集技术栈偏好。适合需要 Agent 针对特定技术栈进行定制化项目架构设计的开发任务。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗Installation & Usage
Option 1: Dynamic plugin (recommended for a quick trial)
In a DSH cordis (creation) mode session, ask the model to:
cordis_define— create the plugin:cordis_runto activate; approve the Client half in the browser UI.- Then just say "design a XX project" (without a tech stack) — the model calls
design_stack_survey, the survey card appears, and after you answer, the design continues with the chosen stack.
The dynamic plugin lives only in the session process that defined it (lost on restart). For a permanent install see Option 2.
Option 2: Permanent install (deployment-level)
The repo ships as a ready-to-install dual-face package (package.json + lib/), verified on a local DSH web profile:
- Package layout: the Host half is
lib/index.js(static ESM, injectstools/userQuestions, registers the tool viactx.tools.register(defineTool(...))); the Client half islib/client.js(a lazy-CJSwindow.__ModuleLoader__.load({ id, factory })bundle exporting{ inject: ['slots','locale'], apply }).package.jsondeclaresdsh.client: { platform: 'web', inject: [...] }andexports['./client']. - Install the package: copy
package.json+lib/into the profile's hoistednode_modulesroot (e.g.C:\Users\guozi\.dsh\profiles\node_modules\dsh-tech-stack-survey), so it is resolvable from the profile directory. - Compose: append one row to the profile's
cordis.patch.yml(e.g.C:\Users\guozi\.dsh\profiles\web\cordis.patch.yml):- insert: - id: tech-stack-survey name: 'dsh-tech-stack-survey' - Restart: restart
dsh web. No web-artifact rebuild is needed — the client-modules node half scans Loader entries at runtime and serves/plugins//client.js, which the browser pulls viawindow.__DSH_BOOT__. - Verify:
GET /plugins/dsh-tech-stack-survey/client.jsanswers 200; the/api/pluginInventory/listRPC showsinclude:tech-stack-surveywithfiberPhase: active.
Notes: the Host half registers its tool from the host plane, landing in the tools registry's global layer, which every agent preset inherits (presets apply no allow/deny restrictions) — so new sessions see
design_stack_survey; sessions created before the install keep their fixed tool catalog. If you later runpnpm installin the profile directory, also add this package to the profile'spackage.jsondependencies so pnpm does not prune it.