dsh-prompt-catalog: Prompt Asset Ledger

Preface

During the development of full-stack applications, prompts tend to be scattered across code, documentation, and template files. These system prompt strings and template contents often lack centralized management, making changes hard to trace and prone to omissions or duplication. Within the DSH (DeepSeek Harness) plugin ecosystem, dsh-prompt-catalog is designed to “catalog” these scattered prompts into a registry, recording which files they reside in, their lengths, and whether they have been modified.

What Is This

dsh-prompt-catalog is a workflow plugin for DSH. It scans code and documentation in local projects, identifies LLM prompts (system prompt strings, templates, triple-quoted strings, etc.), and outputs a registry recording file paths, locations, lengths, and inferred roles. It only reads local files and does not access the network.

Core Features

  • Scans project directories and identifies prompt fragments
  • Outputs a registry including file/location/length/role inference
  • Supports both Markdown (ledger.md) and HTML (ledger.html) output formats
  • Optional JSON output for further processing

Installation & Activation

Install the plugin in a DSH environment:

dsh plugin --profile web add @deepwhale-cn/dsh-prompt-catalog

Or install directly via npm:

npm i @deepwhale-cn/dsh-prompt-catalog

Or install from the local repository directory:

dsh plugin install ./

Typical Usage

After installation, run the scan in your project directory:

npx @deepwhale-cn/dsh-prompt-catalog --root <project-dir> [--json] [--out ledger.md] [--html ledger.html]

Common parameters:

  • --root <project-dir>: Specifies the root directory to scan
  • --json: Output in JSON format
  • --out ledger.md: Output as a Markdown file
  • --html ledger.html: Output as an HTML file

The plugin depends on the DSH environment and requires:

  • dsh >=0.1.0-rc.6 <0.3.0
  • node >=18

Use Cases & Notes

  • Ideal for centralized prompt management in full-stack application development, avoiding scattered omissions
  • The plugin runs with the current DSH process permissions; it is recommended to review the source code and license before installation

In Closing

dsh-prompt-catalog provides a prompt asset registry capability, suitable for developers who need to uniformly inventory and track prompts. For more information, visit the catalog page and the GitHub repository.

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

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

Xiaoye