dsh-ask-template: Generating Five-Section Structured Question Templates via Zero-Model Invocation with /ask

Preface

When asking complex requirements to models in DSH (DeepSeek Harness) Web, if the background, constraints, and output format are not fully specified, the first-round response often requires back-and-forth follow-up questions. A common practice in the community is to use skills, letting the model call ask_user_question to pop up forms item by item—functionally complete, but it adds an extra model round trip. If you prefer to fill everything out yourself in the input box and send it all at once, you need a local path that doesn’t go through the model. Below is the client plugin dsh-ask-template (maintainer maboloshi): type a bare /ask in the input box and press Enter, and the browser writes a fixed five-section blank template into the draft, with zero model calls throughout the entire process; after filling it out and pressing Enter, it is identical to a regular user message.

What Is This

dsh-ask-template is a DSH client-class plugin (currently 0 GitHub stars), version 0.1.0, MIT licensed. The repository delivers two halves of capability simultaneously, sharing the same set of five-section fields:

Half Carrier Gesture Who Pops the Form Model Calls
Client command (main body of this plugin) DSH client plugin Bare /ask + Enter Browser locally writes draft 0
Companion skill ask-user Skill file /ask-user or / menu Model calls ask_user_question Yes

If you want to save model round trips and type yourself—use /ask; if you want the agent to ask item by item in the conversation with just click-and-select—use /ask-user (skill, requires separate placement of SKILL.md).

The DSH ecosystem philosophy is “everything is a plugin”; SkillHub and other community directories are independent sites with no official affiliation with DeepSeek/Hunyuan.

Core Features

How Bare /ask Works

When you type /ask and there are no space parameters after it, the model is not touched throughout the entire process:

  1. The / command source hits this plugin’s action-type command contribution on the bare token /ask;
  2. It consumes the /ask word and executes a pure client callback, without submitting any message;
  3. The callback obtains the session scope through ctx.sessions.scope(sessionId), then uses ctx.conversation.input.for(actx).setDraft(template) to write the blank template into the input box draft;
  4. You fill it out and press Enter—at this point it becomes a regular user message, and the model only sees the filled-in five-section form.

/ask parameters... (with spaces) does not hit the command, and will be sent as regular text as usual; the skill path is still available.

Five-Section Template

【Background】

【Core Question】

【Constraints & Requirements】

【Output Format】
Not provided

【Existing Attempts】
Not provided

The three required sections (background, core question, constraints & requirements) are left blank waiting for you to fill in; the two optional sections are pre-filled with Not provided—leaving them unchanged means the final value for that item is “Not provided,” with no need to delete or modify.

Implementation Notes (for Maintainers)

  • The browser half is a hand-written CJS closure bundle, with no React, no build step, and no runtime dependencies; after modification, refreshing the page takes effect.
  • When Enter hits action, the submission machine records it as handled and produces no effect, so the draft won’t be eaten by the “clear after submission” logic.

Installation & Activation

The plugin runs with the current dsh process permissions; before installation, please review the repository source code and LICENSE (MIT) yourself.

1. Client Command (Plugin)

Local link installation (from README):

dsh plugin --profile web add link:<repository path>

This command installs via pnpm and automatically adds dsh-ask-template to dsh.profile.bundles in ~/.dsh/profiles/web/package.json. After installation, refresh the DSH Web page.

After release, it can also be installed from the npm registry:

dsh plugin --profile web add dsh-ask-template

2. Companion Skill ask-user (Optional)

If you need the model-driven form-popping path, save the front matter and description from the README as:

~/.agents/skills/ask-user/SKILL.md

(The path convention in the repository is skills/ask-user/SKILL.md.) The skill was originally called ask; the name change was made to give the bare /ask gesture to the client command, avoiding two entries with the same name appearing in the / menu.

Uninstall

dsh plugin --profile web remove dsh-ask-template

For the skill side, simply delete the skills/ask-user/ directory.

Typical Usage

  1. Type /ask in the DSH Web session input box—do not add spaces or parameters after /ask, and press Enter directly.
  2. The five-section template draft appears in the input box; start filling in the required sections from “【Background】” and modify the optional sections as needed.
  3. After confirming the content, press Enter to send, and the model will respond based on the structured information you filled in.

If there is already text in the input box, executing /ask will replace the entire text with the template; a prompt will appear before replacement, and the old draft will not be preserved.

Applicable Scenarios & Notes

Who It’s For

  • Those who frequently ask questions involving “background + constraints + output format” and want complete information in the first round;
  • Those who want to reduce one round trip of “model popping forms” and prefer editing in a local draft before sending.

Known Limitations (from README)

  • After setDraft, the cursor stays at the end of the draft (after the Not provided of “【Existing Attempts】”); to fill in the first section, you need to click there yourself; the contract currently has no entry for “writing a draft with cursor position.”
  • The command and skill share the same set of five-section fields; if you change fields, both sides need to be updated together.

Security Reminder

The client plugin executes callbacks on the browser side and modifies the input draft; before installation, please verify from GitHub whether lib/client.js and other behaviors meet your expectations.

Conclusion

dsh-ask-template separates structured form filling from “model popping forms” into a zero model call /ask path, with field consistency with the optional skill ask-user; choose one of the two based on your preference.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye