dsh-bmad-method: BMad Method 6.12.4 Project-Level Porting

Introduction

When using BMad Method in DeepSeek Harness, the common approach is to use the official installer npx bmad-method install to deploy the runtime and skills into the project directory. However, this approach has several practical issues: skills end up in the IDE’s skills directory, conflicting with DSH’s native SkillProvider directory structure; a global install causes {project-root} semantics to be misaligned, making artifact paths prone to errors; duplicate configuration keys across multiple modules cause the renderer to HALT at the very first step; and legacy _bmad/ directories may be mistakenly identified as the project root. These problems are especially pronounced in team collaboration or multi-project scenarios.

dsh-bmad-method fully ports BMad Method 6.12.4 into DSH as a plugin. It does not rely on npx bmad-method install; instead, it packages and distributes 90 skills and runtime templates through DSH’s native mechanisms. Each project has its own independent _bmad/ directory, and module toggles only affect whether skills participate in DSH—they never delete any files. Maintained by jiaxinchayedan, categorized under Workflow.

Core Features

  • 90 skills across 7 modules: Bundled with the plugin package, they don’t land in your skills directory, and are organized by module ownership.
  • Project-level _bmad/ runtime: Automatically provisioned on the first call to bmad_project_status. Idempotent and offline.
  • Per-module toggles: Enable or disable modules via bmad_project_module_toggle or the settings card. Disabled modules’ skills immediately disappear from the manifest, while files remain intact.
  • Official installer wrapper: bmad_project_install invokes the official installer to install or update modules, with dryRun support to preview commands first.
  • Configuration & artifact management: Configuration items include username, language, artifact directory, and disabled modules; artifacts are written to <project>/_bmad-output/ by default.

Installation & Activation

The plugin code is released under the MIT license. The BMad Method content distributed with the package is likewise distributed under MIT. It is recommended to review the source code and license before installation.

  1. Navigate to the plugin management interface in DeepSeek Harness.
  2. Use the install command to add the plugin (refer to the plugin directory page or official documentation for the specific command).
  3. After installation, open any project and call bmad_project_status to check whether the runtime has been provisioned.

Typical Usage

  • Check status: Call bmad_project_status in a project directory to view installed modules, enablement status, core version, artifact directory, and whether uv is available.
  • Install modules: Call bmad_project_install to install or update modules. By default, all non-deprecated modules are installed per the registry. Add dryRun to preview commands first.
  • List modules: Call bmad_project_modules_list to view only the module list and enablement status.
  • Toggle modules: Call bmad_project_module_toggle to enable or disable a module. This only affects whether skills participate in DSH—no files are modified, and no restart is required.

The settings card also provides the same functionality: status viewing, three configuration items, module toggles, and an install button.

Configuration Items

Item Description
Username Written to user_name in BMad core config. Leave empty to use the default BMad
Language Communication + documentation output language. Defaults to Simplified Chinese
Artifact directory Relative to project root. Defaults to _bmad-output
Disabled modules Comma-separated module codes; toggling only hides skills, never deletes files

After modifying, save. Volatile fields take effect in place without requiring a plugin restart.

Installation Locations & Artifacts

Path Content
<project>/_bmad/ Runtime: config.toml, per-module config.yaml, scripts/, _config/
<project>/_bmad/custom/ Your custom override layer (team/individual). Not overwritten during re-provisioning or updates
<project>/_bmad/render/ Render snapshot cache. Safe to discard
<project>/_bmad-output/ Artifacts: PRDs, stories, retrospectives, test plans, etc.
<project>/docs/ Default location for project_knowledge (created by the installer)

The plugin package itself (skills/, bmad-home/) is read-only and will never be written to.

Issues Fixed During Porting

The plugin fixed several verified defects inherited from upstream during the porting process:

  1. Duplicate configuration keys across multiple modules: When multiple modules declaring the same key are enabled simultaneously, the upstream installer writes conflicting configurations, causing the renderer to HALT. The fix applies disambiguation after provisioning and installation, always preserving the modules.bmm copy and commenting out other same-named lines.
  2. Artifact paths pointing to skills/: Inherited runtime templates wrote artifacts to {project-root}/skills/..., conflicting with the plugin’s read-only skill directory. The fix uniformly migrated 13 path references to {project-root}/_bmad-output/.
  3. {project-root} semantic misalignment: The old approach installed BMad in the global home directory, invalidating the upstream convention that “the installation directory is the project root.” The fix provisions the runtime to each project’s own _bmad/, resolving the project root based on the caller session’s cwd.
  4. Historical _bmad/ in home directory misidentified: When searching upward for _bmad/, without a boundary, historical directories could be mistaken for the project root. The fix stops the upward search at the user’s home directory and uses realpath normalization for path comparison.
  5. volatile() fields are accessors: Direct reads throw type errors. The fix uses cfg() / cfgString() uniformly for reading, compatible with both accessors and raw values.
  6. uv run environment failures: In some environments, the uv run cache directory is not writable. The fix detects uv availability; when unavailable, it replaces uv run in scripts with direct python execution (bmad-build / bmad-build-auto still use uv run --no-cache).
  7. Shadowing from duplicate skill sources: Skills left over from old installs had higher priority than the plugin’s, causing {project-root} to not expand. The fix moves old skills to ~/.agents/skills.disabled-bmad-backup/, making the plugin the sole source.

Development & Testing

The plugin includes 19 test cases covering runtime provisioning, configuration value writing, disambiguation priority, artifact path migration, placeholder expansion, module toggle filtering, accessor-based config reading, tool dryRun, and other scenarios. Tests use a mock ctx to actually run apply(), with no network access.

Development directory structure:

  • index.js: Plugin entry point—4 tools + skill provider + settings card channel
  • client.js: Browser half—settings card + module toggles + install button
  • lib/: paths.js (project location), runtime.js (runtime provisioning, config writing, disambiguation), artifacts.js (artifact path migration), skills.js (SkillProvider: placeholder expansion + module filtering), bmad.js (registry discovery, official installer invocation, uv detection), state.js (module toggle state, volatile config reading, configEditor writing), defaults.js (defaults and module ordering)
  • bmad-home/_bmad/: Runtime templates (31 files, 6.12.4)
  • skills/: 90 skills + manifest.json (skill → module mapping)

To swap to a different BMad version, follow these steps: update the bmad-method version in package.json; use the official installer to provision a new version into a temporary project, then replace bmad-home/_bmad/ with its _bmad/; regenerate skills/manifest.json from its _config/skill-manifest.csv; run node test/plugin.test.js.

Use Cases & Cautions

This plugin is suitable for developers who need to use BMad Method across multiple projects, want consistent runtime and artifact paths, and require fine-grained control over module toggles. The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.

Summary

dsh-bmad-method introduces BMad Method 6.12.4 into DeepSeek Harness as a project-level plugin. Through the native SkillProvider and module toggle mechanism, it resolves issues such as directory structure conflicts, configuration conflicts, and path semantic misalignment. It provides 90 skills across 7 modules, supports status viewing, module installation, module toggling, and configuration management, making it ideal for developers who need a unified BMad Method experience in team collaboration and multi-project scenarios.

  • Directory page: https://www.skillhub.cn/plugins/jiaxinchayedan/dsh-bmad-method
  • GitHub: https://github.com/jiaxinchayedan/dsh-bmad-method
羽毛球分组比赛记分
小程序二维码

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

Xiaoye