C++ audit skill: detects the target project's actual C++ standard before making any recommendation, then reports findings across RAII and ownership, move semantics, exception safety, performance and memory, containers and algorithms, concurrency, templates and compile-time, standard boundary, and type safety, ABI and interface design, each with a checkpoint, a reason, a bad-to-good example and the minimum standard.
Install
# from npm (prebuilt)
dsh plugin --profile web add @chtholly-fan/dsh-cpp-optimization
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ChthollyFan/dsh-cpp-optimization
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 中文
A bundle plugin for DeepSeek Harness (DSH) that ships one skill, cpp-opt-audit, for auditing or writing fast and safe low-level C++.
Its central constraint is that the target project's actual C++ standard is detected first: when detection fails the skill asks the user, and until the standard is confirmed it never recommends or writes a feature newer than that standard. Every finding carries a checkpoint, a reason, a bad→good code pair, and the minimum standard.
Install
Install it into a profile with the dsh CLI:
dsh plugin --profile web add @chtholly-fan/dsh-cpp-optimization
--profile picks the profile to install into (web here; tui works the same), while desktop is managed exclusively by the desktop app — the CLI rejects it, so use plugin_manager's install_bundle instead. Everything after dsh plugin is passed straight to pnpm — so to install from a local checkout, pass the directory's absolute path instead of the package name:
dsh plugin --profile web add <absolute path of this repository>
This is a bundle plugin: installation writes the profile's package dependency and selects this package's cordis.patch.yml. Do not edit the profile's package.json or cordis.patch.yml by hand, and do not run pnpm inside the profile directory.
Alternative: ask the agent in a DSH session to install it with the plugin_manager tool's install_bundle action, passing the package name or the directory's absolute path as target.
The skill appears in the session catalog without a restart; replacing an already installed copy of the package requires a restart to load the new module.
Usage
- Automatic: whenever a task touches C++ review, optimization, or low-level implementation, the catalog tells the model to load the skill first.
- Explicit: type
/cpp-opt-audit.
The skill works in two phases: stages 0–3 audit read-only and report findings with evidence, while stage 4 edits code only after you agree.
Layout
assets/cpp-opt-audit/
├── SKILL.md # rules, entry routing, five-phase workflow (stages 0–4), nine-dimension quick table, top checkpoints
└── references/
├── standard-detection.md # standard detection, __cplusplus checks, C++17/20/23 downgrades
├── audit-report-template.md # report shape, P0/P1/P2 grading
├── verification-tooling.md # cross-cutting 1: san/Valgrind/clang-tidy/perf, platform checks, minimum verification bar
├── symptom-index.md # cross-cutting 2: symptom → candidate cause lookup
├── raii-ownership.md # 1. RAII and ownership (16)
├── move-value-categories.md # 2. Move semantics and value categories (12)
├── exception-safety.md # 3. Exception safety (14)
├── performance-memory.md # 4. Performance and memory (13)
├── containers-algorithms.md # 5. Containers and algorithms (7)
├── concurrency.md # 6. Concurrency (15)
├── templates-compile-time.md # 7. Templates and compile time (13)
├── standard-boundary.md # 8. Standard boundaries and C++20/23 mechanisms (24 + 11)
├── type-safety-abi.md # 9. Type safety and ABI (19)
└── interface-design.md # 10. Object semantics and interfaces (15)
Checkpoints are grouped into nine dimensions (type safety, ABI and interface design form one dimension), which map to ten checkpoint files; each names its minimum standard. Two cross-cutting references are not split by dimension: one goes from symptoms to candidate causes, the other turns conclusions into verifiable evidence. Every file lists the topics that are not covered yet.
Use as a plain filesystem skill
Without installing the plugin, copy assets/cpp-opt-audit/ into any scanned skill root, for example ~/.dsh/skills/cpp-opt-audit/ or <project>/.dsh/skills/cpp-opt-audit/. The directory name is the skill name.
Development
Host-only bundle: no runtime dependencies and no build step. index.js exports apply, inject, and name directly.
node --check index.js
node -e "import('./index.js').then(m => console.log(m.name, m.inject))"
npm test
npm test runs node --test, which spawns child processes; where child processes are restricted (for example inside some sandboxes), run node test/provider.test.mjs and node test/package-manifest.test.mjs individually.
apply(ctx) registers a provider through ctx.skills.registerProvider(...). list() parses the SKILL.md frontmatter into a catalog entry, and get() re-reads the body on every load, so editing skill content needs no reinstall.
Keep the frontmatter in a supported shape: name stays on one line as name: cpp-opt-audit, and description accepts a single line, a description: > folded block, or a description: | literal block. Any other form makes the plugin fail at load time with a message listing the accepted shapes.
Publish
npm publish --access public
Before publishing, check repository/homepage/bugs and the files list in package.json, and confirm the tarball contents and version with npm pack --dry-run.
License
MIT
Links
More in this category
tw93/Mole#mole★ 76740
Official agent skill for the open-source Mole CLI (mo), a disk cleanup tool for macOS and Windows: read disk usage, preview and run cleanup, inspect installed apps, and read system health and cleanup history from Mole's JSON output. It previews with --dry-run and asks before removing anything, and leaves app uninstalls and privileged steps to the user's own terminal. The plugin ships only the skill; the CLI is installed separately.
zhu1090093659/dsh-web#packages/dsh-skill-explorer★ 10696
Skill center for the dsh web GUI: browse all loaded skills grouped by source, enable or disable model invocation, create new skills, and delete into a recoverable trash.
QingYunA/answer-me-with-html★ 6742
Answers a question with a one-page visual HTML explainer: the model writes a short Markdown draft and the bundled `am` CLI builds the page, with flow, sequence, tree, timeline and ER diagrams, tables and callouts.
iflytek/skillhub#dsh★ 5514
Browse and search a SkillHub registry and manage local skill installation, updates, and removal inside DeepSeek Harness. Targets DSH 0.2.0-rc.2 and 0.2.1-rc.2; not yet compatible with 0.2.1-rc.3.
hyhmrright/brooks-lint★ 1595
Provides six code quality skills for code review, architecture audits, technical debt, test quality, health dashboards, and remediation.
GanyuanRan/Aegis★ 1460
Software-engineering method pack for coding agents, with skills for baseline-first planning, systematic debugging, prompt hygiene, verification before completion, and repair/retirement tracking.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.