dsh-launch-card: Generate release cards from local repository artifacts and lint unverifiable claims

Preface

When creating plugins or tool repositories in DSH (DeepSeek Harness), the release phase often involves manually organizing hero images, feature lists, and bilingual copy. READMEs easily mix in star counts, performance multipliers, “enterprise-grade” claims, and other expressions that cannot be verified within the repository. Once written into external materials, it becomes difficult to trace which line they originated from.

The dsh-launch-card introduced below (maintained by dingchenhui0618-arch) limits its input to the local README.md, package.json, and optional screenshots. It generates SVG, HTML, and Chinese/English copy. Before writing, it uses a rule table to remove assertions that cannot be proven by the repository’s own artifacts. It provides both a CLI and a DSH plugin form: a “Release Card” panel is added to the Web GUI conversation view, allowing regeneration and viewing of judgments within the session. It is categorized as a Workflow; the community directory can be found at SkillHub Plugin Page (This is a community collection site with no official affiliation with DeepSeek or High-Flyer).

What is this

dsh-launch-card is a release card generator: it reads real artifacts from a specified local repository directory, renders hero images, feature grids, and bilingual release copy, and lints assertions before output. The core constraint is Fact First—project name, version, license, intro, features, and installation snippets all come from README.md and package.json; missing fields are not rendered, nor are placeholders filled. Image artifacts are SVG and self-contained HTML, not composited PNGs; dependencies in package.json is empty, using only Node built-in modules. Current version 0.1.0, License MIT, requires Node >= 20.

Core Features

Generated Artifacts

A single run produces the files listed in the table below (supports --theme dark,light):

File Content
hero.dark.svg / hero.light.svg Project name, version, one-liner intro, license
features.dark.svg / features.light.svg Feature grid, with source line numbers for each item
copy.zh.md / copy.en.md Selling points, features, installation snippets, CTA, and source annotations
card.html Self-contained preview: hero, feature grid, fact table, installation snippets, screenshot references, source table, bilingual copy
lint-report.json Entries hitting rules and the removed content, including why
manifest.json sha256 of input/output files, generation time, tool version
summary.json Structured facts and statistics for script consumption

Traceability and Bilingual Support

In summary.json, each feature is {text, source:{file,line}}; copy is annotated with formats like “Source: README.md#L42”; card.html contains a source table. Sentences without sources are not rendered—the renderer only consumes structured models with sources.

copy.zh.md and copy.en.md are rendered from the same model with a consistent number of entries; skeleton copy (section titles, table headers, etc.) is written separately in Chinese and English, while factual text is quoted verbatim from the repository without machine translation. The body text in the English file remains in the original repository language (if the repository is Chinese, the body remains Chinese), with only the framework in English—this is the output boundary stated in the README.

Assertion Lint

Rules are implemented in src/lint.js. Claims that cannot be proven by the repository’s artifacts are intercepted before writing. Hitting lines are not written to the artifact, and the reason is written to lint-report.json with the unified wording “Cannot be verified from repository artifacts.” The rule summary is as follows:

rule What it blocks
stars Star counts / favorites
popularity User counts, downloads, MAU, etc.
sla SLA, uptime, availability percentages (unless agreed files like SLA.md exist)
performance-claim / performance-numbers / latency-claim Performance comparisons, time consumption with numbers, throughput / RPS (requires benchmark artifacts in this repo)
ranking #1, leading, 第一 (No. 1), etc.
endorsement Awards, media reports, etc.
business-claim Funding, revenue, pricing promises
readiness-claim production-ready, battle-tested, enterprise-grade (released only if CI+test directory or Docker/Makefile conditions are met)

Content that can be justified within the repository, such as MIT, version numbers, empty dependencies, and countable test cases in the test directory, will not be blocked. The README notes two fixed exceptions: title lines are skipped entirely if they name a specific rule; and lines following meta-statement markers are skipped—normal copy intended for artifacts does not go through these two paths.

Reproducible Output

manifest.json records the sha256 of every input and output. Using --now <ISO> or the environment variable SOURCE_DATE_EPOCH ensures byte-level identical output across the entire run.

DSH Plugin Form

  • Host half: Mounts the /dsh-launch-card route.
  • Client half: Registers a “Release Card” Tab in the conversation view, facilitating regeneration and viewing of judgments in the GUI.

The plugin skeleton references the layout and build method of the local dsh-warden; this plugin has no LLM and no tools/pre-execute hooks, essentially serving as a pure function generator with a lint rule table.

Installation and Activation

The CLI is not published to npm and can be run directly after cloning the repository (as stated in the original documentation).

CLI Only:

node scripts/launch-card.mjs . --out examples

Add to profile as a DSH plugin:

dsh plugin --profile <your profile> add <repo path or github:dingchenhui0618-arch/dsh-launch-card>

Please read the repository source code and LICENSE yourself before installation to ensure compliance with your requirements. The plugin runs under the current dsh process permissions; adding a path or remote reference is equivalent to trusting that code.

Typical Usage

Command Line Interface:

node scripts/launch-card.mjs <repo directory> --out <output directory> [--lang zh,en] [--theme dark,light] [--now <ISO>]

Generate sample artifacts for this plugin repository itself (Reproducible command from dev docs):

node scripts/build.mjs
node --test
node scripts/launch-card.mjs . --out examples --now 2026-01-01T00:00:00.000Z

examples/ represents the real output of running the CLI once on the above repository, not a manually written static page.

Use Cases and Notes

Suitable for: Teams or individuals who need to quickly produce diffable, reproducible release materials (SVG + Markdown + HTML) for Git repositories, and want external copy to align with the README / package.json while automatically stripping marketing phrases that cannot be verified within the repository.

Not suitable for or boundaries to be aware of (All from the README’s “What it does not do”):

  • Does not composite PNGs; screenshots are only referenced into card.html from the README or screenshots.json.
  • SVG line wrapping relies on character width estimation; cross-browser font effects are not guaranteed.
  • Does not verify real-world facts outside the repository for you, only guarantees that no “unverifiable by this repository” assertions appear in the artifacts.
  • Does not guarantee idiomatic English body text; if English factual translation is required, it must be provided by humans in repository locations like docs/ (The current tool does not implement this workflow).

Links and License

Through the steps above, you can bind the “Release Card” to local repository facts within the DSH workflow: generation, preview, and lint reports are saved to the same directory, reducing the risk of mixing untraceable assertions when manually assembling materials.

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

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

Xiaoye