meko-bmad-setup — Wire Meko into BMad (Claude Code)
This skill connects the Meko data layer to the
BMad Method so BMad workflows can recall
relevant prior experience and, after explicit consent, publish finalized
artifacts plus one concise learning summary. It is Claude Code-first and
targets BMad Method >=6.10.0,<7.0.0.
Module identity: code mkb, plugin meko-bmad. Never change these — they key
the help rows and override files this skill manages.
Actions
This skill has four actions. Infer the action from the user's request; when
ambiguous, default to status.
| Action |
What it does |
setup |
Full first-time wiring: verify BMad, detect Meko, select datapack, register help rows, wire workflows. |
configure |
Re-run wiring with changed inputs (e.g. switch datapack, toggle publishing). Idempotent. |
status |
Report current wiring without changing files. |
uninstall |
Remove only Meko-managed rows and override entries. |
Read references/actions.md for the full step list of
each action, and references/reference.md for the
override-file formats and the anti-zombie merge rules.
Core principles
- Never a completion dependency. If Meko is missing or unavailable, static
BMad wiring still completes and BMad continues its normal local workflow.
Recall and publishing degrade gracefully; they never block a BMad run.
- Consent before publishing. Recall is enabled by setup. Publishing is
enabled only after the user approves a consent summary (or passes
--enable-publish in headless mode). Omission enables recall only.
- Idempotent and surgical. Re-running setup never duplicates rows or
directives. Uninstall touches only
mkb help rows and exact Meko-managed
override entries — never the Meko server, base skills, hooks, or unrelated
BMad customization.
- Never invent identifiers. Read
agent_id, conversation_id, and the
active datapack_id from the SessionStart-injected context. Do not fabricate
them.
Setup flow (summary)
Verify BMad. Read the installed BMad manifest at
{project-root}/_bmad/_config/manifest.yaml (or _bmad/_cfg/manifest.yaml
in some installs). Confirm the version satisfies >=6.10.0,<7.0.0. If the
major version is unsupported, stop and report — do not modify any files.
Detect Meko. Check whether the Meko MCP server is connected (SessionStart
Meko context present, or the meko MCP tools are available). If missing,
summarize what the installer does, get approval, then run exactly:
npx @yugabytedb/meko-mcp@latest --client claude-code --scope user
This skill never handles or persists secrets itself. A cold install may
finish as restart_required because Claude Code cannot load a newly
registered MCP server mid-session — see below.
Select a datapack. When Meko is active, use the meko-select-datapack
skill. Auto-select when exactly one datapack exists; ask the user when
several exist; warn and continue with recall-only if none exist.
Verify help rows. Installing the module already places the three mkb
rows from assets/module-help.csv at
{project-root}/_bmad/mkb/module-help.csv, and BMad aggregates them into
{project-root}/_bmad/_config/bmad-help.csv. Confirm three Meko for BMad
rows resolve there. Repair only when missing or stale, using the anti-zombie
pattern on _bmad/mkb/module-help.csv (delete all rows whose first column is
the module display name Meko for BMad, then re-insert). This preserves the
13-column shape and other modules' rows. There is no
{project-root}/_bmad/module-help.csv in BMad 6.10+ — never create one.
Wire workflows by capability, not by a fixed list. Scan the
customize.toml files shipped beside the installed workflow skills — for
Claude Code, {project-root}/.claude/skills/<skill-name>/customize.toml.
They do not live under {project-root}/_bmad/**; scanning there matches
nothing and silently wires no workflows:
- Wherever
[workflow] exposes external_sources, append the context
directive (recall).
- Wherever
[workflow] exposes external_handoffs and publishing was
approved, append the publishing directive.
In a stock BMad 6.11 bmm install, bmad-prd, bmad-architecture,
bmad-product-brief, bmad-ux, bmad-deep-recon, and bmad-project-context
expose external_sources; the same set minus bmad-project-context, plus
bmad-brainstorming, exposes external_handoffs. Always scan rather than
trusting this list — it changes between BMad releases.
Author sparse team overrides under {project-root}/_bmad/custom/<workflow>.toml
via BMad's bmad-customize flow, preserving existing entries and verifying
the resolved merge. Skip any directive already present verbatim — this makes
setup idempotent. The exact directive text is in
references/reference.md.
Consent gate for publishing. Before enabling publishing, present one
consent summary: active datapack, matched workflows, allowed artifact
locations/types, summary-memory behavior, and the graceful-degradation
policy. Proceed only on explicit approval. In headless mode, require
--enable-publish; omission enables recall only.
Report. Summarize what was wired, the datapack in use, and any
restart_required follow-ups.
Restart-required outcome
If Meko was just installed cold, Claude Code cannot load the new MCP server in
the current session. Static BMad wiring (help rows, override files) still
completes. Tell the user to restart Claude Code, then re-run
meko-bmad-setup configure so datapack selection and a live recall/publish
canary can run. Report this as restart_required, not a failure.
Uninstall
- Leave the help rows to BMad's module lifecycle — they live in
_bmad/mkb/module-help.csv and the aggregated _bmad/_config/bmad-help.csv,
both owned by the mkb module install. Only when the user keeps mkb
installed but wants the rows gone, anti-zombie delete rows whose first column
is Meko for BMad from _bmad/mkb/module-help.csv.
- Remove only the exact Meko-managed directive entries from the
external_sources / external_handoffs arrays in
{project-root}/_bmad/custom/*.toml, leaving all other entries intact. If an
array becomes empty and Meko created the override file, remove the file only
when it holds no other overrides.
- Never uninstall the Meko MCP server, the base Meko skills, session hooks, or
any unrelated BMad customization.
See references/actions.md and
references/reference.md for exact steps and formats.
1---2name: meko-bmad-setup3description: Sets up, configures, inspects, and uninstalls the Meko integration for the BMad Method. Verifies the installed BMad version, detects the Meko MCP connection, selects a datapack, and wires Meko recall (and, after explicit consent, artifact publishing) into BMad workflows via customization overrides. Triggers on the BMad menu code "MS", or when the user says "set up Meko for BMad", "configure the Meko BMad module", "check Meko BMad status", or "uninstall Meko from BMad".4license: Apache-2.05---6<!--7Licensed to YugabyteDB, Inc. under one or more contributor license agreements.8See the NOTICE file distributed with this work for additional information9regarding copyright ownership. YugabyteDB licenses this file to you under10the Apache License, Version 2.0 (the "License"); you may not use this file11except in compliance with the License. You may obtain a copy of the License at1213 http://www.apache.org/licenses/LICENSE-2.01415Unless required by applicable law or agreed to in writing, software distributed16under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR17CONDITIONS OF ANY KIND, either express or implied. See the License for the18specific language governing permissions and limitations under the License.19-->2021# meko-bmad-setup — Wire Meko into BMad (Claude Code)2223This skill connects the [Meko](https://mekodata.ai) data layer to the24[BMad Method](https://docs.bmad-method.org) so BMad workflows can **recall**25relevant prior experience and, after explicit consent, **publish** finalized26artifacts plus one concise learning summary. It is Claude Code-first and27targets BMad Method `>=6.10.0,<7.0.0`.2829Module identity: code `mkb`, plugin `meko-bmad`. Never change these — they key30the help rows and override files this skill manages.3132## Actions3334This skill has four actions. Infer the action from the user's request; when35ambiguous, default to `status`.3637| Action | What it does |38|--------|--------------|39| `setup` | Full first-time wiring: verify BMad, detect Meko, select datapack, register help rows, wire workflows. |40| `configure` | Re-run wiring with changed inputs (e.g. switch datapack, toggle publishing). Idempotent. |41| `status` | Report current wiring without changing files. |42| `uninstall` | Remove only Meko-managed rows and override entries. |4344Read [references/actions.md](references/actions.md) for the full step list of45each action, and [references/reference.md](references/reference.md) for the46override-file formats and the anti-zombie merge rules.4748## Core principles4950- **Never a completion dependency.** If Meko is missing or unavailable, static51 BMad wiring still completes and BMad continues its normal local workflow.52 Recall and publishing degrade gracefully; they never block a BMad run.53- **Consent before publishing.** Recall is enabled by setup. Publishing is54 enabled **only** after the user approves a consent summary (or passes55 `--enable-publish` in headless mode). Omission enables recall only.56- **Idempotent and surgical.** Re-running setup never duplicates rows or57 directives. Uninstall touches only `mkb` help rows and exact Meko-managed58 override entries — never the Meko server, base skills, hooks, or unrelated59 BMad customization.60- **Never invent identifiers.** Read `agent_id`, `conversation_id`, and the61 active `datapack_id` from the SessionStart-injected context. Do not fabricate62 them.6364## Setup flow (summary)65661. **Verify BMad.** Read the installed BMad manifest at67 `{project-root}/_bmad/_config/manifest.yaml` (or `_bmad/_cfg/manifest.yaml`68 in some installs). Confirm the version satisfies `>=6.10.0,<7.0.0`. If the69 major version is unsupported, stop and report — **do not modify any files.**702. **Detect Meko.** Check whether the Meko MCP server is connected (SessionStart71 Meko context present, or the `meko` MCP tools are available). If missing,72 summarize what the installer does, get approval, then run exactly:7374 ```75 npx @yugabytedb/meko-mcp@latest --client claude-code --scope user76 ```7778 This skill never handles or persists secrets itself. A cold install may79 finish as `restart_required` because Claude Code cannot load a newly80 registered MCP server mid-session — see below.813. **Select a datapack.** When Meko is active, use the `meko-select-datapack`82 skill. Auto-select when exactly one datapack exists; ask the user when83 several exist; warn and continue with recall-only if none exist.844. **Verify help rows.** Installing the module already places the three `mkb`85 rows from [assets/module-help.csv](assets/module-help.csv) at86 `{project-root}/_bmad/mkb/module-help.csv`, and BMad aggregates them into87 `{project-root}/_bmad/_config/bmad-help.csv`. Confirm three `Meko for BMad`88 rows resolve there. Repair only when missing or stale, using the anti-zombie89 pattern on `_bmad/mkb/module-help.csv` (delete all rows whose first column is90 the module display name `Meko for BMad`, then re-insert). This preserves the91 13-column shape and other modules' rows. There is no92 `{project-root}/_bmad/module-help.csv` in BMad 6.10+ — never create one.935. **Wire workflows by capability, not by a fixed list.** Scan the94 `customize.toml` files shipped beside the installed workflow skills — for95 Claude Code, `{project-root}/.claude/skills/<skill-name>/customize.toml`.96 They do **not** live under `{project-root}/_bmad/**`; scanning there matches97 nothing and silently wires no workflows:98 - Wherever `[workflow]` exposes `external_sources`, append the **context99 directive** (recall).100 - Wherever `[workflow]` exposes `external_handoffs` **and** publishing was101 approved, append the **publishing directive**.102103 In a stock BMad 6.11 `bmm` install, `bmad-prd`, `bmad-architecture`,104 `bmad-product-brief`, `bmad-ux`, `bmad-deep-recon`, and `bmad-project-context`105 expose `external_sources`; the same set minus `bmad-project-context`, plus106 `bmad-brainstorming`, exposes `external_handoffs`. Always scan rather than107 trusting this list — it changes between BMad releases.108109 Author sparse team overrides under `{project-root}/_bmad/custom/<workflow>.toml`110 via BMad's `bmad-customize` flow, preserving existing entries and verifying111 the resolved merge. Skip any directive already present verbatim — this makes112 setup idempotent. The exact directive text is in113 [references/reference.md](references/reference.md).1146. **Consent gate for publishing.** Before enabling publishing, present one115 consent summary: active datapack, matched workflows, allowed artifact116 locations/types, summary-memory behavior, and the graceful-degradation117 policy. Proceed only on explicit approval. In headless mode, require118 `--enable-publish`; omission enables recall only.1197. **Report.** Summarize what was wired, the datapack in use, and any120 `restart_required` follow-ups.121122## Restart-required outcome123124If Meko was just installed cold, Claude Code cannot load the new MCP server in125the current session. Static BMad wiring (help rows, override files) still126completes. Tell the user to restart Claude Code, then re-run127`meko-bmad-setup configure` so datapack selection and a live recall/publish128canary can run. Report this as `restart_required`, not a failure.129130## Uninstall131132- Leave the help rows to BMad's module lifecycle — they live in133 `_bmad/mkb/module-help.csv` and the aggregated `_bmad/_config/bmad-help.csv`,134 both owned by the `mkb` module install. Only when the user keeps `mkb`135 installed but wants the rows gone, anti-zombie delete rows whose first column136 is `Meko for BMad` from `_bmad/mkb/module-help.csv`.137- Remove only the exact Meko-managed directive entries from the138 `external_sources` / `external_handoffs` arrays in139 `{project-root}/_bmad/custom/*.toml`, leaving all other entries intact. If an140 array becomes empty and Meko created the override file, remove the file only141 when it holds no other overrides.142- Never uninstall the Meko MCP server, the base Meko skills, session hooks, or143 any unrelated BMad customization.144145See [references/actions.md](references/actions.md) and146[references/reference.md](references/reference.md) for exact steps and formats.