[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QZTDTR1V0HMH5M3EKWF8KT":3,"skill-same:01M6QZTDTR1V0HMH5M3EKWF8KT":159},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M6QZTDTR1V0HMH5M3EKWF8KT","bmad-pulse-setup",null,"Installs and configures the PULSE module in a BMAD project. Use when the user requests 'install PULSE', 'configure PULSE', or 'setup PULSE'.","nidelson\u002Fbmad-module-pulse","nidelson","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2224625?v=4","01M6QZR48HZK5VTJH6SNAA1BXY","Nidelson Gimenez","01M6QZR4CQHR3MPZJPJ3G8XFBX",1,"MIT","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"setup","pulse","bmad","bmad pulse setup","configure","user","install","use","project","module","requests","when","2026-11-10 10:12:30",false,"---\nname: bmad-pulse-setup\ndescription: Installs and configures the PULSE module in a BMAD project. Use when the user requests 'install PULSE', 'configure PULSE', or 'setup PULSE'.\n---\n\n# Module Setup\n\n## Overview\n\nInstalls and configures a BMad module into a project. Module identity (name, code, version) comes from `.\u002Fassets\u002Fmodule.yaml`. Collects user preferences and writes them to these files:\n\n- **`{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml`** — the module section `[modules.pulse]` with the `pulse_*` values (issue #73, toml-first). This is the layer `resolve_config.py` reads with higher priority than the installer defaults in `config.toml`, so the team's answers win. Existing comments and other sections in this human-owned file are preserved (tomlkit round-trip).\n- **`{project-root}\u002F_bmad\u002Fconfig.yaml`** — shared project config: core settings at root only (e.g. `output_folder`, `document_output_language`). The legacy `pulse:` module section is **no longer** written here; a stale one is stripped on run (that strip is the yaml→toml migration). User-only keys (`user_name`, `communication_language`) are **never** written here.\n- **`{project-root}\u002F_bmad\u002Fconfig.user.yaml`** — personal settings intended to be gitignored: `user_name`, `communication_language`, and any module variable marked `user_setting: true` in `.\u002Fassets\u002Fmodule.yaml`. These values live exclusively here.\n- **`{project-root}\u002F_bmad\u002Fmodule-help.csv`** — registers module capabilities for the help system.\n\nThe config scripts use an anti-zombie pattern — the module's answered keys are overwritten with fresh values on each run, and the stale legacy `pulse:` yaml section is removed, so stale values never persist.\n\n**Migrating an existing yaml install (issue #73):** re-running this setup is the migration path. Before prompting, read the current effective values (via `resolve_config.py --key modules.pulse` and the legacy `pulse:` section of `config.yaml`) and offer them as the prompt defaults, so accepting the defaults carries the team's existing answers into `custom\u002Fconfig.toml` and strips the legacy yaml section.\n\n`{project-root}` is a **literal token** in config values — never substitute it with an actual path. It signals to the consuming LLM that the value is relative to the project root, not the skill root.\n\n## On Activation\n\n1. Read `.\u002Fassets\u002Fmodule.yaml` for module metadata and variable definitions (the `code` field is the module identifier)\n2. Check if `{project-root}\u002F_bmad\u002Fconfig.yaml` exists — if a section matching the module's code is already present, inform the user this is an update\n3. Check for per-module configuration at `{project-root}\u002F_bmad\u002Fpulse\u002Fconfig.yaml` and `{project-root}\u002F_bmad\u002Fcore\u002Fconfig.yaml`. If either file exists:\n   - If `{project-root}\u002F_bmad\u002Fconfig.yaml` does **not** yet have a section for this module: this is a **fresh install**. Inform the user that installer config was detected and values will be consolidated into the new format.\n   - If `{project-root}\u002F_bmad\u002Fconfig.yaml` **already** has a section for this module: this is a **legacy migration**. Inform the user that legacy per-module config was found alongside existing config, and legacy values will be used as fallback defaults.\n   - In both cases, per-module config files and directories will be cleaned up after setup.\n\nIf the user provides arguments (e.g. `accept all defaults`, `--headless`, or inline values like `user name is BMad, I speak Swahili`), map any provided values to config keys, use defaults for the rest, and skip interactive prompting. Still display the full confirmation summary at the end.\n\n## Reconcile Installed Skills (Self-Heal)\n\nRun this **first**, before any other step. The upstream BMAD installer\nperforms an *additive* deploy when PULSE is already installed: brand-new\nfiles are copied, but pre-existing files (`module.yaml`, `SKILL.md`, …) are\nnever overwritten and renamed\u002Fremoved skills are never pruned. Updating\nover an existing install therefore leaves a mixed state stuck at the old\nversion (see issue #36). This step force-syncs every PULSE skill directory\nfrom the authoritative source (the freshly-fetched BMAD custom-module\ncache) and prunes orphaned renamed folders.\n\n```bash\npython3 .\u002Fscripts\u002Freconcile-skills.py --project-root \"{project-root}\"\n```\n\nThe script is idempotent — on an already-in-sync tree it writes nothing and\nreports `action: up_to_date`. It is non-fatal on fresh installs: when no\nsource\u002Fcache is found it exits 0 with `action: skipped_no_source`, so\ncontinue normally. Exit codes: 0=success, 1=validation error, 2=runtime\nerror. Surface any non-zero exit and stop.\n\nInspect the JSON `action` field:\n\n- `up_to_date` \u002F `skipped_no_source` — continue silently.\n- `reconciled` — report `from_version → to_version` to the user. If the\n  payload includes a `notice` saying `bmad-pulse-setup` was updated in\n  place, tell the user to re-run `\u002Fbmad-pulse-setup` once more so the\n  current version of this skill executes, then stop.\n\nRun `.\u002Fscripts\u002Freconcile-skills.py --help` for full usage (including\n`--source` and `--dry-run`).\n\n## Collect Configuration\n\nAsk the user for values. Show defaults in brackets. Present all values together so the user can respond once with only the values they want to change (e.g. \"change language to Swahili, rest are fine\"). Never tell the user to \"press enter\" or \"leave blank\" — in a chat interface they must type something to respond.\n\n**Default priority** (highest wins): existing new config values > legacy config values > `.\u002Fassets\u002Fmodule.yaml` defaults. When legacy configs exist, read them and use matching values as defaults instead of `module.yaml` defaults. Only keys that match the current schema are carried forward — changed or removed keys are ignored.\n\n**Core config** (only if no core keys exist yet): `user_name` (default: BMad), `communication_language` and `document_output_language` (default: English — ask as a single language question, both keys get the same answer), `output_folder` (default: `{project-root}\u002F_bmad-output`). Of these, `user_name` and `communication_language` are written exclusively to `config.user.yaml`. The rest go to `config.yaml` at root and are shared across all modules.\n\n**Module config**: Read each variable in `.\u002Fassets\u002Fmodule.yaml` that has a `prompt` field. Ask using that prompt, pre-filling the default with the **current effective value** when re-running on an existing install: prefer the resolved `modules.pulse` value (`resolve_config.py --key modules.pulse`), then the legacy `pulse:` value in `config.yaml`, then any legacy per-module value, then the `module.yaml` default. This is what carries an existing team's answers into `custom\u002Fconfig.toml` on the migration re-run.\n\n**Validation rules:**\n- If `pulse_estimation_method` = `story_points` and `pulse_story_point_hours_factor` has not been set, warn before continuing\n- If `pulse_estimation_method` = `bcp`: do **not** require `pulse_story_point_hours_factor` (no factor applies — `estimated_hours` comes from a complexity score times the category baseline, not from converting a point value). Scoring lives in this module, in the `bmad-bcp-*` skills, so no companion install is required. Two further setup steps apply and are described below: the `--with-bcp` customize variant, and giving the `bcp_*` settings a home.\n- If `pulse_dev_categories` = `custom`, request a comma-separated list\n\n## Write Files\n\nWrite a temp JSON file with the collected answers structured as `{\"core\": {...}, \"module\": {...}}` (omit `core` if it already exists). Then run both scripts — they can run in parallel since they write to different files:\n\n```bash\nuv run .\u002Fscripts\u002Fmerge-config.py --config-path \"{project-root}\u002F_bmad\u002Fconfig.yaml\" --user-config-path \"{project-root}\u002F_bmad\u002Fconfig.user.yaml\" --module-yaml .\u002Fassets\u002Fmodule.yaml --answers {temp-file} --legacy-dir \"{project-root}\u002F_bmad\"\npython3 .\u002Fscripts\u002Fmerge-help-csv.py --target \"{project-root}\u002F_bmad\u002Fmodule-help.csv\" --source .\u002Fassets\u002Fmodule-help.csv --legacy-dir \"{project-root}\u002F_bmad\" --module-code pulse\n```\n\n> **Note (PEP 723):** only `merge-config.py` runs via `uv run` — it declares third-party dependencies (`pyyaml`, `tomlkit`) in its inline `# \u002F\u002F\u002F script` header. Plain `python3` fails with `Error: tomlkit is required (PEP 723 dependency)`. `uv run` reads the header and provisions the libraries in an ephemeral environment. The other scripts in this skill are stdlib-only (`dependencies = []`) and run under plain `python3`.\n\n`merge-config.py` writes the `[modules.pulse]` section to `{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml` (derived from the `--config-path` directory; override with `--custom-config-path`), writes core keys to `config.yaml`, strips any legacy `pulse:` yaml section, and writes user settings to `config.user.yaml`. Check `custom_config_path` and `module_keys` in the output.\n\nBoth scripts output JSON to stdout with results. If either exits non-zero, surface the error and stop. The scripts automatically read legacy config values as fallback defaults, then delete the legacy files after a successful merge. Check `legacy_configs_deleted` and `legacy_csvs_deleted` in the output to confirm cleanup.\n\nRun `uv run .\u002Fscripts\u002Fmerge-config.py --help` or `.\u002Fscripts\u002Fmerge-help-csv.py --help` for full usage.\n\n## Register Agent in Party Mode Roster\n\nAfter writing config and help CSV, register the PULSE agent (Max) so it joins the Party Mode roster and other agent-aware features.\n\nParty Mode builds its roster from the `[agents]` table resolved by `resolve_config.py` — a deep-merge of `{project-root}\u002F_bmad\u002Fconfig.toml` (base) and `{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml` (team). Official modules get their `[agents.*]` entries written into the base `config.toml` by the BMAD core installer, but a **custom module** like PULSE is never written there — so without this step the agent is installed as a skill yet stays invisible to Party Mode (`\u002Fbmad-party-mode` never lists him). Register him in the team-owned `custom\u002Fconfig.toml` layer, which survives re-install:\n\n```bash\nuv run .\u002Fscripts\u002Fregister-party-agent.py --project-root \"{project-root}\" --fragment .\u002Fassets\u002Fagent-manifest-fragment.csv\n```\n\nThe script upserts `[agents.bmad-agent-pulse]` (anti-zombie, idempotent) from the `agent-manifest-fragment.csv` values, preserving existing comments and sections (tomlkit round-trip). It runs via `uv run` for its PEP 723 `tomlkit` dependency. Check `agent_key` and `custom_config_path` in the JSON output.\n\nIf successful, inform the user: \"Agent Max registered in the Party Mode roster (`_bmad\u002Fcustom\u002Fconfig.toml` -> `[agents.bmad-agent-pulse]`) — run `\u002Fbmad-party-mode` to see him. To spotlight him, add a curated party group (e.g. a delivery\u002Fretro room) to `_bmad\u002Fcustom\u002Fbmad-party-mode.toml`.\"\n\nWhen the script reports `\"action\": \"migrated\"`, also tell the user which fields it corrected and why: `migrated_fields` lists entries that still held a value a previous release of PULSE wrote (e.g. the retired name `Levi`), so refreshing them restores the truth rather than overwriting a choice they made.\n\n### Legacy `agent-manifest.csv` (optional, compat)\n\nOlder BMAD layouts also read `{project-root}\u002F_bmad\u002F_config\u002Fagent-manifest.csv`. If that file exists, additionally merge the fragment into it (harmless where unused). If it does not exist, skip — the `[agents]` registration above is what Party Mode actually reads.\n\n```bash\npython3 .\u002Fscripts\u002Fmerge-help-csv.py --target \"{project-root}\u002F_bmad\u002F_config\u002Fagent-manifest.csv\" --source .\u002Fassets\u002Fagent-manifest-fragment.csv --module-code pulse\n```\n\n## Create Output Directories\n\nAfter writing config, create any output directories that were configured. For filesystem operations only (such as creating directories), resolve the `{project-root}` token to the actual project root and create each path-type value from `config.yaml` that does not yet exist — this includes `output_folder` and any module variable whose value starts with `{project-root}\u002F`. The paths stored in the config files must continue to use the literal `{project-root}` token; only the directories on disk should use the resolved paths. Use `mkdir -p` or equivalent to create the full path.\n\n## Cleanup Legacy Directories\n\nAfter both merge scripts complete successfully, remove the installer's package directories. Skills and agents in these directories are already installed at `.claude\u002Fskills\u002F` — the `_bmad\u002F` directory should only contain config files.\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py --bmad-dir \"{project-root}\u002F_bmad\" --module-code pulse --skills-dir \"{project-root}\u002F.claude\u002Fskills\"\n```\n\nThe script verifies that every skill in the legacy directories exists at `.claude\u002Fskills\u002F` before removing anything. Directories without skills (like `_config\u002F`) are removed directly. If the script exits non-zero, surface the error and stop. Missing directories (already cleaned by a prior run) are not errors — the script is idempotent.\n\nCheck `directories_removed` and `files_removed_count` in the JSON output for the confirmation step. Run `.\u002Fscripts\u002Fcleanup-legacy.py --help` for full usage.\n\n## Generate Customize Overrides (Auto-Tracking)\n\nAfter cleanup, configure auto-tracking by emitting two `customize.toml`\noverrides in the consumer project. Auto-tracking now uses BMAD v6.4.0's\nTOML-based customization framework instead of injecting steps into\n`workflow.md`. This survives BMAD core upgrades because the override files\nlive in `_bmad\u002Fcustom\u002F`, which BMAD never overwrites.\n\n### Capability Gate\n\nRun the capability detector first:\n\n```bash\npython3 .\u002Fscripts\u002Fdetect_bmad_capability.py --project-root \"{project-root}\"\n```\n\nThe script exits 0 (BMAD supports TOML customization), 1 (BMAD ≤6.3.x), or 2\n(BMAD not installed) and prints a JSON payload to stdout describing the\ndetection.\n\n- **Exit 0** — proceed with override emission below. **Read `capability` and\n  `inject_targets` from the payload — do not assume the targets.** Exit 0\n  covers two different architectures:\n  - `\"capability\": \"bmad-build\"` — unified architecture, `inject_targets` is\n    `[\"bmad-build\"]`\n  - `\"capability\": \"bmad-6.4.0+\"` — split architecture, `inject_targets` is\n    `[\"bmad-dev-story\", \"bmad-code-review\"]`\n- **Exit 1** — abort with this message: \"PULSE v0.4.0 requires BMAD ≥6.4.0.\n  Detected BMAD ≤6.3.x. Either upgrade BMAD (`npx bmad-method install`) or\n  pin to PULSE v0.3.x via `--version`.\"\n- **Exit 2** — abort: \"BMAD is not installed in this project root. Run\n  `npx bmad-method install` first, then re-run `\u002Fbmad-pulse-setup`.\"\n\n> **Why the payload and not the exit code.** BMAD keeps `bmad-dev-story` on\n> disk as a deprecated shim after the unified architecture lands, so both\n> layouts look alike from the exit code alone. Injecting the split pair on a\n> `bmad-build` project writes the hooks into workflows the user never invokes:\n> the gate passes, this skill reports success, and auto-tracking never fires.\n> The absence of `pulse_metrics` weeks later is the only symptom.\n\n### Cleanup Legacy Markers\n\nEven on a fresh BMAD ≥6.4.0 install, scan for stale `\u003C!-- PULSE:auto-inject -->`\nblocks in `workflow.md` left over from previous PULSE versions. The script\nsilently skips when `workflow.md` is absent (BMAD 6.4.0 removed it from\n`bmad-dev-story`).\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py \\\n    --remove-pulse-markers \\\n    --project-root \"{project-root}\"\n```\n\nThe script exits 0 in all normal cases and prints `{\"removed\": \u003Cint>, \"path\": \"...\"}`\non stdout (or `{\"removed\": 0, \"skipped\": \"workflow.md not found\", \"path\": \"...\"}` when\nthe file is absent — this is the common case on fresh BMAD 6.4.0 installs and is NOT\na failure). A non-zero exit indicates `--project-root` is missing or the file system\nis broken; surface the error and stop.\n\n### Cleanup Legacy `bmad-pulse-agent-levi\u002F` Folder\n\nPre-v0.4.5 PULSE distributed its own `bmad-pulse-agent-levi\u002F` skill folder\nin parallel with the canonical `bmad-agent-pulse\u002F` folder auto-provisioned\nby the BMAD installer from `agent-manifest-fragment.csv`. On BMAD v6.6.0\nprojects this produced two divergent entry points for the same Levi agent.\n\nThis step removes the legacy folder when the canonical folder is present.\nThe script refuses to remove the legacy folder if the canonical replacement\nis missing, so a partial-state install is never stranded without an agent.\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py \\\n    --remove-legacy-agent \\\n    --project-root \"{project-root}\"\n```\n\nThe script exits 0 in every non-fatal case and prints a JSON payload with\nan `action` field: `removed`, `skipped_already_absent`, or\n`skipped_no_canonical`. Surface the `notice` to the user when `action`\nis `removed` so they understand which folder was deleted. A non-zero exit\nindicates `--project-root` is missing or the file system is broken;\nsurface the error and stop.\n\n### Emit Override Files\n\nEmit one override file per entry in `inject_targets` from the capability gate\nabove — one file on the unified architecture, two on the split one. The\nconflict policy is **abort + `--force`**: if a destination already exists, the\nscript exits 3 and the file is left untouched (sha256-stable). The user can\nre-run with `--force` after inspecting the conflict.\n\n**Unified architecture** (`\"capability\": \"bmad-build\"`) — a single file carries\nboth hooks, because implementation and review run in one workflow:\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build\n```\n\n**Split architecture** (`\"capability\": \"bmad-6.4.0+\"`) — two files, because\n`bmad-dev-story` ends at status \"review\" and only `bmad-code-review` reaches\n\"done\":\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-dev-story\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-code-review\n```\n\nDo not emit both sets. On a `bmad-build` project the split pair is inert, and\n`bmad-code-review` would fire track-done a second time if the user ever invoked\nthat skill directly.\n\n### BCP variant — only when scoring is enabled\n\nIf, and only if, the resolved `pulse_estimation_method` is `bcp`, append\n`--with-bcp` to the invocation for `bmad-build` (unified) or\n`bmad-code-review` (split):\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build --with-bcp\n```\n\nThe variant writes to the **same destination** — it replaces the plain template\nrather than adding a second file. Its `on_complete` carries both steps in one\nauthored sequence: track-done first, then BCP recalibrate, which reads the\n`actual_hours` that only exists once track-done has finished.\n\n`--with-bcp` is rejected for `bmad-dev-story` (exit 2): that file carries\ntrack-start, which recalibration does not extend.\n\nThen emit the scoring trigger, which is **not** tier-dependent — the same file\non both architectures, and not listed in `inject_targets`:\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-create-story --with-bcp\n```\n\nThis one closes the loop. The templates above run *after* implementation —\ntrack-done, then recalibrate — and recalibrate checks for `bcp.total` before\ndoing anything. Without a hook that produces `bcp.total` in the first place, it\nfinds nothing and skips, silently and by design, forever.\n\n`bmad-create-story` is a core BMAD skill under both architectures. `bmad-build`\ndoes not replace it: `bmad-build` writes a *spec*, whose frontmatter carries\n`title`, `type` and `status` but no `estimated_hours` to derive; it consumes a\nstory only by `story_key`. So story authoring is where scoring belongs, and it\nis the same place either way.\n\n`bmad-create-story` has no plain template — emitting it without `--with-bcp`\nexits 2. PULSE has nothing to say to story authoring unless scoring is on.\n\n### Cover the unattended route (`bmad-build-auto`)\n\nEmit this whenever the project is driven by an orchestrator — `bmad-loop` or any\nrunner that executes stories without a human at the keyboard. It is independent\nof the tier question above: `bmad-build-auto` is a **separate skill directory**,\nnot a variant of `bmad-build`.\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build-auto          # add --with-bcp when scoring is on\n```\n\n**Why a project needs it even with `bmad-build.toml` already installed.** BMAD\nresolves customization per skill *name* — `load_customization()` reads\n`_bmad\u002Fcustom\u002F\u003Cskill-name>.toml`. The hooks installed for `bmad-build` are\ninvisible to `bmad-build-auto`, so without this file an orchestrated run ships\nthe story and PULSE never hears about it. Nothing errors: an absent\ncustomization file is a valid state, so the gap only surfaces later, as a story\nwith no `start_ts` and a baseline that never learned from it.\n\n**What the unattended template does differently, and why it is not a downgrade.**\nThe template **starts** the measurement and never closes it. Closing belongs to\nthe loop plugin (next section) — `on_complete` fires at the end of the DEV\nsession, and under an orchestrator the review runs *after* that.\n\n**The planning leg is skipped on purpose.** With `spec_checkpoint` enabled the\nworkflow runs in two legs — leg 1 plans and halts at `ready-for-dev` having\nwritten no code, leg 2 implements — and both legs execute the activation steps.\nStamping `start_ts` on leg 1 would fold the human checkpoint wait, which can be\nminutes or a weekend, into `actual_hours`.\n\n**With `--with-bcp`, this file also carries the scoring trigger** — the only\ntemplate besides `bmad-create-story` that does. An orchestrated run may never\ncall `bmad-create-story`: the loop dispatches build-auto against a story id and\nthe spec is written by step-02 of that same workflow. So the a-priori window\nhere is the end of step-02, once the spec reaches `ready-for-dev` and before\nstep-03 implements. A leg-1 halt is the cleanest form of that window: the\nestimate exists and no code does.\n\n### Install the loop plugin — it is what closes the measurement\n\nRequired whenever the project is driven by `bmad-loop`. Copy the plugin and add\nit to the trust allowlist:\n\n```bash\nmkdir -p \"{project-root}\u002F.bmad-loop\u002Fplugins\u002Fpulse\"\ncp .\u002Fassets\u002Floop-plugin\u002F* \"{project-root}\u002F.bmad-loop\u002Fplugins\u002Fpulse\u002F\"\n```\n\nThen, in `{project-root}\u002F.bmad-loop\u002Fpolicy.toml`:\n\n```toml\n[plugins]\nenabled = [\"pulse\"]\n```\n\n**Installing is not enabling.** The loop pins a digest of `policy.toml` at launch\nand never loads a plugin outside the allowlist — editing that file is a manual\noperator action, outside any run, by design.\n\n**Why closing lives here and not in the template.** `on_complete` fires at the\nend of the DEV session. Under `bmad-loop` the review runs afterwards, as\nindependent orchestrator sessions, so a `track-done` anchored there stamps\n`end_ts` before review has started.\n\nMeasured on a real story: `end_ts` at 02:45:25 while review ran 02:48:07 →\n04:45:01 — **1.05h recorded against a 3.05h span**, and `first_pass: true` on a\nstory that took three review cycles. Under-measured by 2.9x, with numbers\nplausible enough to enter the baseline unchallenged.\n\nThat premise was inherited from `bmad-build.toml`, where it is true and says so\n(\"review has already run inside this workflow via `workflow.review_layers`\").\nUnder the loop it is false, and no wording fixes it: no instruction can observe\na session that has not started.\n\n`post_story` is the correct seam — the engine emits it after `story-done` and\nafter worktree integration, including on the resumed path.\n\n**Recalibration moved with it**, and not only for tidiness: it reads\n`actual_hours`, which only becomes correct once the measurement closes. Left in\nthe template it would feed the per-category baseline a number written before\nreview — and that baseline prices every story scored afterwards.\n\n**The hook is deterministic — no agent session.** It reads the run's\n`journal.jsonl` and writes the fields:\n\n| field | source |\n| --- | --- |\n| `end_ts` | the `story-done` event |\n| `review_cycles` | count of review sessions (a session that timed out counts — it burned real time that is already inside `actual_hours`) |\n| `first_pass` | derived, not asserted |\n\nSo it costs no tokens, needs no auth, and cannot invent a value. During the work\nthat produced this plugin an expiring OAuth session killed four separate\nprocesses, each with a silent 73-byte stderr — a measurement step that fails\nthat way is missing exactly when the run was long enough to matter.\n\n**If you drive `bmad-build-auto` without `bmad-loop`**, the plugin never fires\nand stories carry `start_ts` with no `end_ts`. Close them with\n`\u002Fbmad-pulse-track-done \u003Cstory_id>`, or `bmad-pulse-track-backfill` after the\nfact. An open measurement is visible and fixable; a wrong one is neither.\n\n### Give the `bcp_*` settings a home that survives\n\nStill only when `pulse_estimation_method` is `bcp`. The scoring skills read\ntheir settings — the baseline seed, the confidence threshold, the frozen\nreference rate — through `bcp_config.py`. Resolve what a project has now:\n\n```bash\npython3 {project-root}\u002F.claude\u002Fskills\u002Fbmad-bcp-score\u002Fscripts\u002Fbcp_config.py \\\n    --project-root \"{project-root}\"\n```\n\nThe `sources` map in that output names the layer each value came from. Act on\nwhat it says:\n\n- **Any key reads `modules.bcp`.** The project still has the standalone\n  `bmad-module-bcp` installed, and that table is written by the installer from\n  *that* module's `module.yaml`. Uninstalling it — the end state of issue #84 —\n  deletes the table, and resolution falls through to the built-in defaults\n  without failing. Copy those values into `_bmad\u002Fcustom\u002Fconfig.toml` under\n  `[modules.pulse]` now, while the source is still readable. Show the user the\n  block before writing it.\n- **Any key reads `default` .** Nothing is configured. The defaults are a floor\n  chosen so the module runs, not an estimate of this team. Tell the user which\n  keys are unset and what each one does; `bcp_baseline_seed` and\n  `bcp_reference_h_per_bcp` are the two worth deciding deliberately, since one\n  seeds every cold-start estimate and the other is the frozen denominator the\n  leverage-vs-reference figure is measured against. Write the agreed values to\n  the same place.\n- **Keys read `modules.pulse`.** Already home. Nothing to do.\n\nWrite to `_bmad\u002Fcustom\u002Fconfig.toml`, not `_bmad\u002Fconfig.toml`: the installer\nregenerates the latter on every run and would drop the block. Merge into an\nexisting `[modules.pulse]` table rather than appending a second one.\n\n> **Why these are not install prompts.** They were, in the standalone module —\n> installing it was itself the opt-in, so asking ten questions was reasonable.\n> PULSE installs for everyone, most of whom estimate in hours, and BMAD's\n> `module.yaml` has no conditional prompts. Ten questions that do not apply is a\n> worse failure than a setup step that only runs when scoring is on.\n\n### Create the baseline\n\nStill only when `pulse_estimation_method` is `bcp`. Every scoring run reads\n`bcp-baseline.yaml`, and `apply_score.py` fails outright when it is absent — so\na project that enables scoring without this file has six skills that cannot run.\nCreate it with the values resolved in the previous step:\n\n```bash\npython3 .\u002Fscripts\u002Fseed_baseline.py \\\n    --baseline-path \"{project-root}\u002F\u003Cresolved bcp_baseline_path>\" \\\n    --seed \u003Cbcp_baseline_seed> \\\n    --min-samples \u003Cbcp_baseline_min_samples> \\\n    --rolling-window \u003Cbcp_baseline_rolling_window>\n```\n\nIdempotent: an existing baseline is left untouched and the script reports\n`action: skipped_exists`. That matters for a project migrating off the\nstandalone module — its baseline already holds real calibration history, and\noverwriting it would discard every sample the team accumulated. Do **not** pass\n`--force` on a migration; only when the user explicitly asks to start over.\n\nThe file records a `config_snapshot` of the three values above alongside an\nempty `categories` map. Categories fill in later, from real `actual_hours`, via\n`bmad-bcp-recalibrate` — until a category reaches `min_samples` it stays on the\nseed and is marked `is_seed: true`.\n\n> **Why the recalibrate step is not simply always present.** It could be written\n> to check for `bcp.total` and skip when absent — it does exactly that when\n> present. But an instruction the agent reads on every single run, in a project\n> that will never satisfy it, is not free: it is context spent, and it is one\n> more thing implying the project is missing something. With scoring off, PULSE\n> is the baseline product, not a degraded one. The opt-in lives in which file\n> gets written, not in a runtime check.\n\nIf either invocation exits 3, surface the message to the user verbatim\n(it includes the destination path and instructs how to re-run with\n`--force`). Do NOT auto-retry with `--force` — the choice is the user's.\n\n### .gitignore Allowlist Snippet\n\nPrint a copy-paste-ready snippet for the consumer's `.gitignore` so that\n`_bmad\u002Fcustom\u002F*.toml` is committed (team overrides) while `*.user.toml`\nstays private. The script is read-only — never modifies the file.\n\n```bash\npython3 .\u002Fscripts\u002Fprint_gitignore_snippet.py --project-root \"{project-root}\"\n```\n\nSurface the script's stdout to the user.\n\n### Post-Injection\n\nInform the user:\n\nName the files you actually wrote and the workflow the user actually runs —\na message naming `\u002Fbmad-dev-story` on a `bmad-build` project is how a broken\nintegration passes for a working one.\n\n- Unified architecture: \"PULSE auto-tracking integrated via\n  `_bmad\u002Fcustom\u002Fbmad-build.toml`. Every story will now automatically track\n  start and completion during `\u002Fbmad-build`.\"\n- Split architecture: \"PULSE auto-tracking integrated via\n  `_bmad\u002Fcustom\u002Fbmad-dev-story.toml` and `_bmad\u002Fcustom\u002Fbmad-code-review.toml`.\n  Every story will now automatically track start (during `\u002Fbmad-dev-story`)\n  and completion (after `\u002Fbmad-code-review`).\"\n- \"To disable: delete the emitted `.toml` file(s) from `_bmad\u002Fcustom\u002F`.\"\n- \"To customize: edit the files manually. Re-running `\u002Fbmad-pulse-setup` will\n  abort if you changed them — pass `--force` only if you want PULSE's\n  defaults restored.\"\n\nIf any step above failed, do NOT block the rest of the setup. Report the\nfailure clearly and continue — the user can rerun the failing piece later.\n\n## Confirm\n\nUse the script JSON output to display what was written — config values set (written to `config.yaml` at root for core, module section for module values), user settings written to `config.user.yaml` (`user_keys` in result), help entries added, fresh install vs update. If legacy files were deleted, mention the migration. If legacy directories were removed, report the count and list (e.g. \"Cleaned up 106 installer package files from pulse\u002F, core\u002F — skills are installed at .claude\u002Fskills\u002F\"). Then display the `module_greeting` from `.\u002Fassets\u002Fmodule.yaml` to the user.\n\n## Outcome\n\nOnce the user's `user_name` and `communication_language` are known (from collected input, arguments, or existing config), use them consistently for the remainder of the session: address the user by their configured name and communicate in their configured `communication_language`.\n","# Module Setup\n\n## Overview\n\nInstalls and configures a BMad module into a project. Module identity (name, code, version) comes from `.\u002Fassets\u002Fmodule.yaml`. Collects user preferences and writes them to these files:\n\n- **`{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml`** — the module section `[modules.pulse]` with the `pulse_*` values (issue #73, toml-first). This is the layer `resolve_config.py` reads with higher priority than the installer defaults in `config.toml`, so the team's answers win. Existing comments and other sections in this human-owned file are preserved (tomlkit round-trip).\n- **`{project-root}\u002F_bmad\u002Fconfig.yaml`** — shared project config: core settings at root only (e.g. `output_folder`, `document_output_language`). The legacy `pulse:` module section is **no longer** written here; a stale one is stripped on run (that strip is the yaml→toml migration). User-only keys (`user_name`, `communication_language`) are **never** written here.\n- **`{project-root}\u002F_bmad\u002Fconfig.user.yaml`** — personal settings intended to be gitignored: `user_name`, `communication_language`, and any module variable marked `user_setting: true` in `.\u002Fassets\u002Fmodule.yaml`. These values live exclusively here.\n- **`{project-root}\u002F_bmad\u002Fmodule-help.csv`** — registers module capabilities for the help system.\n\nThe config scripts use an anti-zombie pattern — the module's answered keys are overwritten with fresh values on each run, and the stale legacy `pulse:` yaml section is removed, so stale values never persist.\n\n**Migrating an existing yaml install (issue #73):** re-running this setup is the migration path. Before prompting, read the current effective values (via `resolve_config.py --key modules.pulse` and the legacy `pulse:` section of `config.yaml`) and offer them as the prompt defaults, so accepting the defaults carries the team's existing answers into `custom\u002Fconfig.toml` and strips the legacy yaml section.\n\n`{project-root}` is a **literal token** in config values — never substitute it with an actual path. It signals to the consuming LLM that the value is relative to the project root, not the skill root.\n\n## On Activation\n\n1. Read `.\u002Fassets\u002Fmodule.yaml` for module metadata and variable definitions (the `code` field is the module identifier)\n2. Check if `{project-root}\u002F_bmad\u002Fconfig.yaml` exists — if a section matching the module's code is already present, inform the user this is an update\n3. Check for per-module configuration at `{project-root}\u002F_bmad\u002Fpulse\u002Fconfig.yaml` and `{project-root}\u002F_bmad\u002Fcore\u002Fconfig.yaml`. If either file exists:\n   - If `{project-root}\u002F_bmad\u002Fconfig.yaml` does **not** yet have a section for this module: this is a **fresh install**. Inform the user that installer config was detected and values will be consolidated into the new format.\n   - If `{project-root}\u002F_bmad\u002Fconfig.yaml` **already** has a section for this module: this is a **legacy migration**. Inform the user that legacy per-module config was found alongside existing config, and legacy values will be used as fallback defaults.\n   - In both cases, per-module config files and directories will be cleaned up after setup.\n\nIf the user provides arguments (e.g. `accept all defaults`, `--headless`, or inline values like `user name is BMad, I speak Swahili`), map any provided values to config keys, use defaults for the rest, and skip interactive prompting. Still display the full confirmation summary at the end.\n\n## Reconcile Installed Skills (Self-Heal)\n\nRun this **first**, before any other step. The upstream BMAD installer\nperforms an *additive* deploy when PULSE is already installed: brand-new\nfiles are copied, but pre-existing files (`module.yaml`, `SKILL.md`, …) are\nnever overwritten and renamed\u002Fremoved skills are never pruned. Updating\nover an existing install therefore leaves a mixed state stuck at the old\nversion (see issue #36). This step force-syncs every PULSE skill directory\nfrom the authoritative source (the freshly-fetched BMAD custom-module\ncache) and prunes orphaned renamed folders.\n\n```bash\npython3 .\u002Fscripts\u002Freconcile-skills.py --project-root \"{project-root}\"\n```\n\nThe script is idempotent — on an already-in-sync tree it writes nothing and\nreports `action: up_to_date`. It is non-fatal on fresh installs: when no\nsource\u002Fcache is found it exits 0 with `action: skipped_no_source`, so\ncontinue normally. Exit codes: 0=success, 1=validation error, 2=runtime\nerror. Surface any non-zero exit and stop.\n\nInspect the JSON `action` field:\n\n- `up_to_date` \u002F `skipped_no_source` — continue silently.\n- `reconciled` — report `from_version → to_version` to the user. If the\n  payload includes a `notice` saying `bmad-pulse-setup` was updated in\n  place, tell the user to re-run `\u002Fbmad-pulse-setup` once more so the\n  current version of this skill executes, then stop.\n\nRun `.\u002Fscripts\u002Freconcile-skills.py --help` for full usage (including\n`--source` and `--dry-run`).\n\n## Collect Configuration\n\nAsk the user for values. Show defaults in brackets. Present all values together so the user can respond once with only the values they want to change (e.g. \"change language to Swahili, rest are fine\"). Never tell the user to \"press enter\" or \"leave blank\" — in a chat interface they must type something to respond.\n\n**Default priority** (highest wins): existing new config values > legacy config values > `.\u002Fassets\u002Fmodule.yaml` defaults. When legacy configs exist, read them and use matching values as defaults instead of `module.yaml` defaults. Only keys that match the current schema are carried forward — changed or removed keys are ignored.\n\n**Core config** (only if no core keys exist yet): `user_name` (default: BMad), `communication_language` and `document_output_language` (default: English — ask as a single language question, both keys get the same answer), `output_folder` (default: `{project-root}\u002F_bmad-output`). Of these, `user_name` and `communication_language` are written exclusively to `config.user.yaml`. The rest go to `config.yaml` at root and are shared across all modules.\n\n**Module config**: Read each variable in `.\u002Fassets\u002Fmodule.yaml` that has a `prompt` field. Ask using that prompt, pre-filling the default with the **current effective value** when re-running on an existing install: prefer the resolved `modules.pulse` value (`resolve_config.py --key modules.pulse`), then the legacy `pulse:` value in `config.yaml`, then any legacy per-module value, then the `module.yaml` default. This is what carries an existing team's answers into `custom\u002Fconfig.toml` on the migration re-run.\n\n**Validation rules:**\n- If `pulse_estimation_method` = `story_points` and `pulse_story_point_hours_factor` has not been set, warn before continuing\n- If `pulse_estimation_method` = `bcp`: do **not** require `pulse_story_point_hours_factor` (no factor applies — `estimated_hours` comes from a complexity score times the category baseline, not from converting a point value). Scoring lives in this module, in the `bmad-bcp-*` skills, so no companion install is required. Two further setup steps apply and are described below: the `--with-bcp` customize variant, and giving the `bcp_*` settings a home.\n- If `pulse_dev_categories` = `custom`, request a comma-separated list\n\n## Write Files\n\nWrite a temp JSON file with the collected answers structured as `{\"core\": {...}, \"module\": {...}}` (omit `core` if it already exists). Then run both scripts — they can run in parallel since they write to different files:\n\n```bash\nuv run .\u002Fscripts\u002Fmerge-config.py --config-path \"{project-root}\u002F_bmad\u002Fconfig.yaml\" --user-config-path \"{project-root}\u002F_bmad\u002Fconfig.user.yaml\" --module-yaml .\u002Fassets\u002Fmodule.yaml --answers {temp-file} --legacy-dir \"{project-root}\u002F_bmad\"\npython3 .\u002Fscripts\u002Fmerge-help-csv.py --target \"{project-root}\u002F_bmad\u002Fmodule-help.csv\" --source .\u002Fassets\u002Fmodule-help.csv --legacy-dir \"{project-root}\u002F_bmad\" --module-code pulse\n```\n\n> **Note (PEP 723):** only `merge-config.py` runs via `uv run` — it declares third-party dependencies (`pyyaml`, `tomlkit`) in its inline `# \u002F\u002F\u002F script` header. Plain `python3` fails with `Error: tomlkit is required (PEP 723 dependency)`. `uv run` reads the header and provisions the libraries in an ephemeral environment. The other scripts in this skill are stdlib-only (`dependencies = []`) and run under plain `python3`.\n\n`merge-config.py` writes the `[modules.pulse]` section to `{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml` (derived from the `--config-path` directory; override with `--custom-config-path`), writes core keys to `config.yaml`, strips any legacy `pulse:` yaml section, and writes user settings to `config.user.yaml`. Check `custom_config_path` and `module_keys` in the output.\n\nBoth scripts output JSON to stdout with results. If either exits non-zero, surface the error and stop. The scripts automatically read legacy config values as fallback defaults, then delete the legacy files after a successful merge. Check `legacy_configs_deleted` and `legacy_csvs_deleted` in the output to confirm cleanup.\n\nRun `uv run .\u002Fscripts\u002Fmerge-config.py --help` or `.\u002Fscripts\u002Fmerge-help-csv.py --help` for full usage.\n\n## Register Agent in Party Mode Roster\n\nAfter writing config and help CSV, register the PULSE agent (Max) so it joins the Party Mode roster and other agent-aware features.\n\nParty Mode builds its roster from the `[agents]` table resolved by `resolve_config.py` — a deep-merge of `{project-root}\u002F_bmad\u002Fconfig.toml` (base) and `{project-root}\u002F_bmad\u002Fcustom\u002Fconfig.toml` (team). Official modules get their `[agents.*]` entries written into the base `config.toml` by the BMAD core installer, but a **custom module** like PULSE is never written there — so without this step the agent is installed as a skill yet stays invisible to Party Mode (`\u002Fbmad-party-mode` never lists him). Register him in the team-owned `custom\u002Fconfig.toml` layer, which survives re-install:\n\n```bash\nuv run .\u002Fscripts\u002Fregister-party-agent.py --project-root \"{project-root}\" --fragment .\u002Fassets\u002Fagent-manifest-fragment.csv\n```\n\nThe script upserts `[agents.bmad-agent-pulse]` (anti-zombie, idempotent) from the `agent-manifest-fragment.csv` values, preserving existing comments and sections (tomlkit round-trip). It runs via `uv run` for its PEP 723 `tomlkit` dependency. Check `agent_key` and `custom_config_path` in the JSON output.\n\nIf successful, inform the user: \"Agent Max registered in the Party Mode roster (`_bmad\u002Fcustom\u002Fconfig.toml` -> `[agents.bmad-agent-pulse]`) — run `\u002Fbmad-party-mode` to see him. To spotlight him, add a curated party group (e.g. a delivery\u002Fretro room) to `_bmad\u002Fcustom\u002Fbmad-party-mode.toml`.\"\n\nWhen the script reports `\"action\": \"migrated\"`, also tell the user which fields it corrected and why: `migrated_fields` lists entries that still held a value a previous release of PULSE wrote (e.g. the retired name `Levi`), so refreshing them restores the truth rather than overwriting a choice they made.\n\n### Legacy `agent-manifest.csv` (optional, compat)\n\nOlder BMAD layouts also read `{project-root}\u002F_bmad\u002F_config\u002Fagent-manifest.csv`. If that file exists, additionally merge the fragment into it (harmless where unused). If it does not exist, skip — the `[agents]` registration above is what Party Mode actually reads.\n\n```bash\npython3 .\u002Fscripts\u002Fmerge-help-csv.py --target \"{project-root}\u002F_bmad\u002F_config\u002Fagent-manifest.csv\" --source .\u002Fassets\u002Fagent-manifest-fragment.csv --module-code pulse\n```\n\n## Create Output Directories\n\nAfter writing config, create any output directories that were configured. For filesystem operations only (such as creating directories), resolve the `{project-root}` token to the actual project root and create each path-type value from `config.yaml` that does not yet exist — this includes `output_folder` and any module variable whose value starts with `{project-root}\u002F`. The paths stored in the config files must continue to use the literal `{project-root}` token; only the directories on disk should use the resolved paths. Use `mkdir -p` or equivalent to create the full path.\n\n## Cleanup Legacy Directories\n\nAfter both merge scripts complete successfully, remove the installer's package directories. Skills and agents in these directories are already installed at `.claude\u002Fskills\u002F` — the `_bmad\u002F` directory should only contain config files.\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py --bmad-dir \"{project-root}\u002F_bmad\" --module-code pulse --skills-dir \"{project-root}\u002F.claude\u002Fskills\"\n```\n\nThe script verifies that every skill in the legacy directories exists at `.claude\u002Fskills\u002F` before removing anything. Directories without skills (like `_config\u002F`) are removed directly. If the script exits non-zero, surface the error and stop. Missing directories (already cleaned by a prior run) are not errors — the script is idempotent.\n\nCheck `directories_removed` and `files_removed_count` in the JSON output for the confirmation step. Run `.\u002Fscripts\u002Fcleanup-legacy.py --help` for full usage.\n\n## Generate Customize Overrides (Auto-Tracking)\n\nAfter cleanup, configure auto-tracking by emitting two `customize.toml`\noverrides in the consumer project. Auto-tracking now uses BMAD v6.4.0's\nTOML-based customization framework instead of injecting steps into\n`workflow.md`. This survives BMAD core upgrades because the override files\nlive in `_bmad\u002Fcustom\u002F`, which BMAD never overwrites.\n\n### Capability Gate\n\nRun the capability detector first:\n\n```bash\npython3 .\u002Fscripts\u002Fdetect_bmad_capability.py --project-root \"{project-root}\"\n```\n\nThe script exits 0 (BMAD supports TOML customization), 1 (BMAD ≤6.3.x), or 2\n(BMAD not installed) and prints a JSON payload to stdout describing the\ndetection.\n\n- **Exit 0** — proceed with override emission below. **Read `capability` and\n  `inject_targets` from the payload — do not assume the targets.** Exit 0\n  covers two different architectures:\n  - `\"capability\": \"bmad-build\"` — unified architecture, `inject_targets` is\n    `[\"bmad-build\"]`\n  - `\"capability\": \"bmad-6.4.0+\"` — split architecture, `inject_targets` is\n    `[\"bmad-dev-story\", \"bmad-code-review\"]`\n- **Exit 1** — abort with this message: \"PULSE v0.4.0 requires BMAD ≥6.4.0.\n  Detected BMAD ≤6.3.x. Either upgrade BMAD (`npx bmad-method install`) or\n  pin to PULSE v0.3.x via `--version`.\"\n- **Exit 2** — abort: \"BMAD is not installed in this project root. Run\n  `npx bmad-method install` first, then re-run `\u002Fbmad-pulse-setup`.\"\n\n> **Why the payload and not the exit code.** BMAD keeps `bmad-dev-story` on\n> disk as a deprecated shim after the unified architecture lands, so both\n> layouts look alike from the exit code alone. Injecting the split pair on a\n> `bmad-build` project writes the hooks into workflows the user never invokes:\n> the gate passes, this skill reports success, and auto-tracking never fires.\n> The absence of `pulse_metrics` weeks later is the only symptom.\n\n### Cleanup Legacy Markers\n\nEven on a fresh BMAD ≥6.4.0 install, scan for stale `\u003C!-- PULSE:auto-inject -->`\nblocks in `workflow.md` left over from previous PULSE versions. The script\nsilently skips when `workflow.md` is absent (BMAD 6.4.0 removed it from\n`bmad-dev-story`).\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py \\\n    --remove-pulse-markers \\\n    --project-root \"{project-root}\"\n```\n\nThe script exits 0 in all normal cases and prints `{\"removed\": \u003Cint>, \"path\": \"...\"}`\non stdout (or `{\"removed\": 0, \"skipped\": \"workflow.md not found\", \"path\": \"...\"}` when\nthe file is absent — this is the common case on fresh BMAD 6.4.0 installs and is NOT\na failure). A non-zero exit indicates `--project-root` is missing or the file system\nis broken; surface the error and stop.\n\n### Cleanup Legacy `bmad-pulse-agent-levi\u002F` Folder\n\nPre-v0.4.5 PULSE distributed its own `bmad-pulse-agent-levi\u002F` skill folder\nin parallel with the canonical `bmad-agent-pulse\u002F` folder auto-provisioned\nby the BMAD installer from `agent-manifest-fragment.csv`. On BMAD v6.6.0\nprojects this produced two divergent entry points for the same Levi agent.\n\nThis step removes the legacy folder when the canonical folder is present.\nThe script refuses to remove the legacy folder if the canonical replacement\nis missing, so a partial-state install is never stranded without an agent.\n\n```bash\npython3 .\u002Fscripts\u002Fcleanup-legacy.py \\\n    --remove-legacy-agent \\\n    --project-root \"{project-root}\"\n```\n\nThe script exits 0 in every non-fatal case and prints a JSON payload with\nan `action` field: `removed`, `skipped_already_absent`, or\n`skipped_no_canonical`. Surface the `notice` to the user when `action`\nis `removed` so they understand which folder was deleted. A non-zero exit\nindicates `--project-root` is missing or the file system is broken;\nsurface the error and stop.\n\n### Emit Override Files\n\nEmit one override file per entry in `inject_targets` from the capability gate\nabove — one file on the unified architecture, two on the split one. The\nconflict policy is **abort + `--force`**: if a destination already exists, the\nscript exits 3 and the file is left untouched (sha256-stable). The user can\nre-run with `--force` after inspecting the conflict.\n\n**Unified architecture** (`\"capability\": \"bmad-build\"`) — a single file carries\nboth hooks, because implementation and review run in one workflow:\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build\n```\n\n**Split architecture** (`\"capability\": \"bmad-6.4.0+\"`) — two files, because\n`bmad-dev-story` ends at status \"review\" and only `bmad-code-review` reaches\n\"done\":\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-dev-story\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-code-review\n```\n\nDo not emit both sets. On a `bmad-build` project the split pair is inert, and\n`bmad-code-review` would fire track-done a second time if the user ever invoked\nthat skill directly.\n\n### BCP variant — only when scoring is enabled\n\nIf, and only if, the resolved `pulse_estimation_method` is `bcp`, append\n`--with-bcp` to the invocation for `bmad-build` (unified) or\n`bmad-code-review` (split):\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build --with-bcp\n```\n\nThe variant writes to the **same destination** — it replaces the plain template\nrather than adding a second file. Its `on_complete` carries both steps in one\nauthored sequence: track-done first, then BCP recalibrate, which reads the\n`actual_hours` that only exists once track-done has finished.\n\n`--with-bcp` is rejected for `bmad-dev-story` (exit 2): that file carries\ntrack-start, which recalibration does not extend.\n\nThen emit the scoring trigger, which is **not** tier-dependent — the same file\non both architectures, and not listed in `inject_targets`:\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-create-story --with-bcp\n```\n\nThis one closes the loop. The templates above run *after* implementation —\ntrack-done, then recalibrate — and recalibrate checks for `bcp.total` before\ndoing anything. Without a hook that produces `bcp.total` in the first place, it\nfinds nothing and skips, silently and by design, forever.\n\n`bmad-create-story` is a core BMAD skill under both architectures. `bmad-build`\ndoes not replace it: `bmad-build` writes a *spec*, whose frontmatter carries\n`title`, `type` and `status` but no `estimated_hours` to derive; it consumes a\nstory only by `story_key`. So story authoring is where scoring belongs, and it\nis the same place either way.\n\n`bmad-create-story` has no plain template — emitting it without `--with-bcp`\nexits 2. PULSE has nothing to say to story authoring unless scoring is on.\n\n### Cover the unattended route (`bmad-build-auto`)\n\nEmit this whenever the project is driven by an orchestrator — `bmad-loop` or any\nrunner that executes stories without a human at the keyboard. It is independent\nof the tier question above: `bmad-build-auto` is a **separate skill directory**,\nnot a variant of `bmad-build`.\n\n```bash\npython3 .\u002Fscripts\u002Finject_customize.py \\\n    --project-root \"{project-root}\" \\\n    --skill bmad-build-auto          # add --with-bcp when scoring is on\n```\n\n**Why a project needs it even with `bmad-build.toml` already installed.** BMAD\nresolves customization per skill *name* — `load_customization()` reads\n`_bmad\u002Fcustom\u002F\u003Cskill-name>.toml`. The hooks installed for `bmad-build` are\ninvisible to `bmad-build-auto`, so without this file an orchestrated run ships\nthe story and PULSE never hears about it. Nothing errors: an absent\ncustomization file is a valid state, so the gap only surfaces later, as a story\nwith no `start_ts` and a baseline that never learned from it.\n\n**What the unattended template does differently, and why it is not a downgrade.**\nThe template **starts** the measurement and never closes it. Closing belongs to\nthe loop plugin (next section) — `on_complete` fires at the end of the DEV\nsession, and under an orchestrator the review runs *after* that.\n\n**The planning leg is skipped on purpose.** With `spec_checkpoint` enabled the\nworkflow runs in two legs — leg 1 plans and halts at `ready-for-dev` having\nwritten no code, leg 2 implements — and both legs execute the activation steps.\nStamping `start_ts` on leg 1 would fold the human checkpoint wait, which can be\nminutes or a weekend, into `actual_hours`.\n\n**With `--with-bcp`, this file also carries the scoring trigger** — the only\ntemplate besides `bmad-create-story` that does. An orchestrated run may never\ncall `bmad-create-story`: the loop dispatches build-auto against a story id and\nthe spec is written by step-02 of that same workflow. So the a-priori window\nhere is the end of step-02, once the spec reaches `ready-for-dev` and before\nstep-03 implements. A leg-1 halt is the cleanest form of that window: the\nestimate exists and no code does.\n\n### Install the loop plugin — it is what closes the measurement\n\nRequired whenever the project is driven by `bmad-loop`. Copy the plugin and add\nit to the trust allowlist:\n\n```bash\nmkdir -p \"{project-root}\u002F.bmad-loop\u002Fplugins\u002Fpulse\"\ncp .\u002Fassets\u002Floop-plugin\u002F* \"{project-root}\u002F.bmad-loop\u002Fplugins\u002Fpulse\u002F\"\n```\n\nThen, in `{project-root}\u002F.bmad-loop\u002Fpolicy.toml`:\n\n```toml\n[plugins]\nenabled = [\"pulse\"]\n```\n\n**Installing is not enabling.** The loop pins a digest of `policy.toml` at launch\nand never loads a plugin outside the allowlist — editing that file is a manual\noperator action, outside any run, by design.\n\n**Why closing lives here and not in the template.** `on_complete` fires at the\nend of the DEV session. Under `bmad-loop` the review runs afterwards, as\nindependent orchestrator sessions, so a `track-done` anchored there stamps\n`end_ts` before review has started.\n\nMeasured on a real story: `end_ts` at 02:45:25 while review ran 02:48:07 →\n04:45:01 — **1.05h recorded against a 3.05h span**, and `first_pass: true` on a\nstory that took three review cycles. Under-measured by 2.9x, with numbers\nplausible enough to enter the baseline unchallenged.\n\nThat premise was inherited from `bmad-build.toml`, where it is true and says so\n(\"review has already run inside this workflow via `workflow.review_layers`\").\nUnder the loop it is false, and no wording fixes it: no instruction can observe\na session that has not started.\n\n`post_story` is the correct seam — the engine emits it after `story-done` and\nafter worktree integration, including on the resumed path.\n\n**Recalibration moved with it**, and not only for tidiness: it reads\n`actual_hours`, which only becomes correct once the measurement closes. Left in\nthe template it would feed the per-category baseline a number written before\nreview — and that baseline prices every story scored afterwards.\n\n**The hook is deterministic — no agent session.** It reads the run's\n`journal.jsonl` and writes the fields:\n\n| field | source |\n| --- | --- |\n| `end_ts` | the `story-done` event |\n| `review_cycles` | count of review sessions (a session that timed out counts — it burned real time that is already inside `actual_hours`) |\n| `first_pass` | derived, not asserted |\n\nSo it costs no tokens, needs no auth, and cannot invent a value. During the work\nthat produced this plugin an expiring OAuth session killed four separate\nprocesses, each with a silent 73-byte stderr — a measurement step that fails\nthat way is missing exactly when the run was long enough to matter.\n\n**If you drive `bmad-build-auto` without `bmad-loop`**, the plugin never fires\nand stories carry `start_ts` with no `end_ts`. Close them with\n`\u002Fbmad-pulse-track-done \u003Cstory_id>`, or `bmad-pulse-track-backfill` after the\nfact. An open measurement is visible and fixable; a wrong one is neither.\n\n### Give the `bcp_*` settings a home that survives\n\nStill only when `pulse_estimation_method` is `bcp`. The scoring skills read\ntheir settings — the baseline seed, the confidence threshold, the frozen\nreference rate — through `bcp_config.py`. Resolve what a project has now:\n\n```bash\npython3 {project-root}\u002F.claude\u002Fskills\u002Fbmad-bcp-score\u002Fscripts\u002Fbcp_config.py \\\n    --project-root \"{project-root}\"\n```\n\nThe `sources` map in that output names the layer each value came from. Act on\nwhat it says:\n\n- **Any key reads `modules.bcp`.** The project still has the standalone\n  `bmad-module-bcp` installed, and that table is written by the installer from\n  *that* module's `module.yaml`. Uninstalling it — the end state of issue #84 —\n  deletes the table, and resolution falls through to the built-in defaults\n  without failing. Copy those values into `_bmad\u002Fcustom\u002Fconfig.toml` under\n  `[modules.pulse]` now, while the source is still readable. Show the user the\n  block before writing it.\n- **Any key reads `default` .** Nothing is configured. The defaults are a floor\n  chosen so the module runs, not an estimate of this team. Tell the user which\n  keys are unset and what each one does; `bcp_baseline_seed` and\n  `bcp_reference_h_per_bcp` are the two worth deciding deliberately, since one\n  seeds every cold-start estimate and the other is the frozen denominator the\n  leverage-vs-reference figure is measured against. Write the agreed values to\n  the same place.\n- **Keys read `modules.pulse`.** Already home. Nothing to do.\n\nWrite to `_bmad\u002Fcustom\u002Fconfig.toml`, not `_bmad\u002Fconfig.toml`: the installer\nregenerates the latter on every run and would drop the block. Merge into an\nexisting `[modules.pulse]` table rather than appending a second one.\n\n> **Why these are not install prompts.** They were, in the standalone module —\n> installing it was itself the opt-in, so asking ten questions was reasonable.\n> PULSE installs for everyone, most of whom estimate in hours, and BMAD's\n> `module.yaml` has no conditional prompts. Ten questions that do not apply is a\n> worse failure than a setup step that only runs when scoring is on.\n\n### Create the baseline\n\nStill only when `pulse_estimation_method` is `bcp`. Every scoring run reads\n`bcp-baseline.yaml`, and `apply_score.py` fails outright when it is absent — so\na project that enables scoring without this file has six skills that cannot run.\nCreate it with the values resolved in the previous step:\n\n```bash\npython3 .\u002Fscripts\u002Fseed_baseline.py \\\n    --baseline-path \"{project-root}\u002F\u003Cresolved bcp_baseline_path>\" \\\n    --seed \u003Cbcp_baseline_seed> \\\n    --min-samples \u003Cbcp_baseline_min_samples> \\\n    --rolling-window \u003Cbcp_baseline_rolling_window>\n```\n\nIdempotent: an existing baseline is left untouched and the script reports\n`action: skipped_exists`. That matters for a project migrating off the\nstandalone module — its baseline already holds real calibration history, and\noverwriting it would discard every sample the team accumulated. Do **not** pass\n`--force` on a migration; only when the user explicitly asks to start over.\n\nThe file records a `config_snapshot` of the three values above alongside an\nempty `categories` map. Categories fill in later, from real `actual_hours`, via\n`bmad-bcp-recalibrate` — until a category reaches `min_samples` it stays on the\nseed and is marked `is_seed: true`.\n\n> **Why the recalibrate step is not simply always present.** It could be written\n> to check for `bcp.total` and skip when absent — it does exactly that when\n> present. But an instruction the agent reads on every single run, in a project\n> that will never satisfy it, is not free: it is context spent, and it is one\n> more thing implying the project is missing something. With scoring off, PULSE\n> is the baseline product, not a degraded one. The opt-in lives in which file\n> gets written, not in a runtime check.\n\nIf either invocation exits 3, surface the message to the user verbatim\n(it includes the destination path and instructs how to re-run with\n`--force`). Do NOT auto-retry with `--force` — the choice is the user's.\n\n### .gitignore Allowlist Snippet\n\nPrint a copy-paste-ready snippet for the consumer's `.gitignore` so that\n`_bmad\u002Fcustom\u002F*.toml` is committed (team overrides) while `*.user.toml`\nstays private. The script is read-only — never modifies the file.\n\n```bash\npython3 .\u002Fscripts\u002Fprint_gitignore_snippet.py --project-root \"{project-root}\"\n```\n\nSurface the script's stdout to the user.\n\n### Post-Injection\n\nInform the user:\n\nName the files you actually wrote and the workflow the user actually runs —\na message naming `\u002Fbmad-dev-story` on a `bmad-build` project is how a broken\nintegration passes for a working one.\n\n- Unified architecture: \"PULSE auto-tracking integrated via\n  `_bmad\u002Fcustom\u002Fbmad-build.toml`. Every story will now automatically track\n  start and completion during `\u002Fbmad-build`.\"\n- Split architecture: \"PULSE auto-tracking integrated via\n  `_bmad\u002Fcustom\u002Fbmad-dev-story.toml` and `_bmad\u002Fcustom\u002Fbmad-code-review.toml`.\n  Every story will now automatically track start (during `\u002Fbmad-dev-story`)\n  and completion (after `\u002Fbmad-code-review`).\"\n- \"To disable: delete the emitted `.toml` file(s) from `_bmad\u002Fcustom\u002F`.\"\n- \"To customize: edit the files manually. Re-running `\u002Fbmad-pulse-setup` will\n  abort if you changed them — pass `--force` only if you want PULSE's\n  defaults restored.\"\n\nIf any step above failed, do NOT block the rest of the setup. Report the\nfailure clearly and continue — the user can rerun the failing piece later.\n\n## Confirm\n\nUse the script JSON output to display what was written — config values set (written to `config.yaml` at root for core, module section for module values), user settings written to `config.user.yaml` (`user_keys` in result), help entries added, fresh install vs update. If legacy files were deleted, mention the migration. If legacy directories were removed, report the count and list (e.g. \"Cleaned up 106 installer package files from pulse\u002F, core\u002F — skills are installed at .claude\u002Fskills\u002F\"). Then display the `module_greeting` from `.\u002Fassets\u002Fmodule.yaml` to the user.\n\n## Outcome\n\nOnce the user's `user_name` and `communication_language` are known (from collected input, arguments, or existing config), use them consistently for the remainder of the session: address the user by their configured name and communicate in their configured `communication_language`.\n",{"name":5,"description":7},"main","1cb4b04156c963e0afa27aaf0f933db253c53b6b","skills\u002Fbmad-pulse-setup",0,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse","https:\u002F\u002Fgithub.com\u002Fnidelson","Stop writing code. Start designing thinkers. AI-First Systems Architect, 25+ years. A2A orchestration, Agentic\r\n SDLC. Stack: Python, Node, TS, React, Next.js","2026-09-12 10:31:25",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add nidelson\u002Fbmad-module-pulse --skill bmad-pulse-setup",{"tool":50,"command":51},"bunx","bunx skills add nidelson\u002Fbmad-module-pulse --skill bmad-pulse-setup",{"tool":53,"command":54},"pnpm","pnpm dlx skills add nidelson\u002Fbmad-module-pulse --skill bmad-pulse-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002FSKILL.md",true,[58,64,68,72,76,80,84,88,92,96,100,106,110,114,120,124,128,132,136,140,144,148,152,156],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"assets\u002Fagent-manifest-fragment.csv","ASSET","资产文件",1375,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fagent-manifest-fragment.csv",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"assets\u002Fcustomize-templates\u002Fbmad-build-auto.bcp.toml",5575,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-build-auto.bcp.toml",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"assets\u002Fcustomize-templates\u002Fbmad-build-auto.toml",3359,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-build-auto.toml",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"assets\u002Fcustomize-templates\u002Fbmad-build.bcp.toml",3536,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-build.bcp.toml",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"assets\u002Fcustomize-templates\u002Fbmad-build.toml",2588,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-build.toml",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"assets\u002Fcustomize-templates\u002Fbmad-code-review.bcp.toml",2413,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-code-review.bcp.toml",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"assets\u002Fcustomize-templates\u002Fbmad-code-review.toml",1183,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-code-review.toml",{"path":89,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":90,"sourceHtmlUrl":91},"assets\u002Fcustomize-templates\u002Fbmad-create-story.bcp.toml",2606,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-create-story.bcp.toml",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"assets\u002Fcustomize-templates\u002Fbmad-dev-story.toml",1362,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fcustomize-templates\u002Fbmad-dev-story.toml",{"path":97,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":98,"sourceHtmlUrl":99},"assets\u002Floop-plugin\u002Fplugin.toml",4718,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Floop-plugin\u002Fplugin.toml",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"assets\u002Floop-plugin\u002Ftrack-done-from-journal.py","SCRIPT","脚本",16912,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Floop-plugin\u002Ftrack-done-from-journal.py",{"path":107,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":108,"sourceHtmlUrl":109},"assets\u002Fmodule-help.csv",2146,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fmodule-help.csv",{"path":111,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":112,"sourceHtmlUrl":113},"assets\u002Fmodule.yaml",8558,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fassets\u002Fmodule.yaml",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"customize.toml","OTHER","其他",1555,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fcustomize.toml",{"path":121,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fcleanup-legacy.py",16026,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fcleanup-legacy.py",{"path":125,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":126,"sourceHtmlUrl":127},"scripts\u002Fdetect_bmad_capability.py",3493,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fdetect_bmad_capability.py",{"path":129,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":130,"sourceHtmlUrl":131},"scripts\u002Finject_customize.py",4660,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Finject_customize.py",{"path":133,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":134,"sourceHtmlUrl":135},"scripts\u002Fmerge-config.py",17449,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fmerge-config.py",{"path":137,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":138,"sourceHtmlUrl":139},"scripts\u002Fmerge-help-csv.py",6618,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fmerge-help-csv.py",{"path":141,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":142,"sourceHtmlUrl":143},"scripts\u002Fprint_gitignore_snippet.py",1907,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fprint_gitignore_snippet.py",{"path":145,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":146,"sourceHtmlUrl":147},"scripts\u002Freconcile-skills.py",11271,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Freconcile-skills.py",{"path":149,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":150,"sourceHtmlUrl":151},"scripts\u002Fregister-party-agent.py",8464,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fregister-party-agent.py",{"path":153,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":154,"sourceHtmlUrl":155},"scripts\u002Fseed_baseline.py",3419,"https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Fseed_baseline.py",{"path":157,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":158},"scripts\u002Ftrack-done-from-journal.py","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-setup\u002Fscripts\u002Ftrack-done-from-journal.py",[160,182,198,213,229,240],{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":31},"01M6QZVKDMCCXVFF9FKQYMNYFM","bmad-pulse-track-start","Record the start of story implementation for PULSE efficiency metrics. Use when starting \u002Fbmad-dev-story or manually to register a start.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-track-start\u002FSKILL.md",[],[167,20,21,168,169,170,171,172,173,26,174,175,176,177,27,178,179,180,181,30],"start","track","bmad pulse track start","config","dev","metrics","yaml","implementation","Story","record","efficiency","register","root","true","for",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":31},"01M6QZV57DMTGZ78TYEZ6VYNEF","bmad-pulse-track-done","Record story completion, calculate efficiency metrics, and display the Efficiency Pulse. Use when a story is marked as done after code review.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-track-done\u002FSKILL.md",[],[20,189,21,190,168,191,192,193,170,194,173,195,26,176,177,27,196,180,197,30],"done","track done","bmad pulse track done","code review","review","code","calculate","as","display",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":31},"01M6QZTZ8KXC17YJT73WCDQXZN","bmad-pulse-track-backfill","Retroactively record HI\u002FHF (start\u002Fend) and PULSE metrics for a story whose track-start\u002Ftrack-done were never run. Use when adopting PULSE mid-project or after a workflow interruption left a story unmeasured.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-track-backfill\u002FSKILL.md",[],[20,21,205,168,206,207,170,208,173,26,209,210,176,189,27,211,212,180,181,30],"backfill","bmad pulse track backfill","workflow","run","never","hf","end","hi",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":31},"01M6QZT7WP7QFF7H1BFPT28BTP","bmad-pulse-dashboard","Generate a cumulative PULSE efficiency dashboard with longitudinal metrics, trends, and insights. Use to visualize performance over time.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-pulse-dashboard\u002FSKILL.md",[],[220,20,21,221,222,223,170,224,172,173,26,225,177,27,226,227,228,179,180],"dashboard","bmad pulse dashboard","visualize","performance","generate","time","trends","with","insights",{"skillNo":230,"name":231,"nameZh":6,"description":232,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":233,"categories":234,"keywords":235,"publishedAt":31},"01M6QZSV40KJ9HTHJFSAW4HV6A","bmad-bcp-score","Scores a story with BCP and derives estimated_hours from the score. Use when the user asks to 'score a story', 'BCP score', 'bcp score [story]', or at the end of story creation.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-bcp-score\u002FSKILL.md",[],[236,21,237,24,26,175,238,211,227,239,30],"bcp","bmad bcp score","creation","at",{"skillNo":241,"name":242,"nameZh":6,"description":243,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":244,"categories":245,"keywords":246,"publishedAt":31},"01M6QZSNT4N91Y2YNJV3YFZMRG","bmad-bcp-score-batch","Scores several existing stories in batch (retroactive scoring). Use when the user asks to 'score stories in batch', 'score-batch', 'retroactive BCP', or 'score the story history'.","https:\u002F\u002Fgithub.com\u002Fnidelson\u002Fbmad-module-pulse\u002Fblob\u002Fmain\u002Fskills\u002Fbmad-bcp-score-batch\u002FSKILL.md",[],[247,236,21,248,249,24,26,175,250,251,252,30],"batch","bmad bcp score batch","history","scoring","Existing","stories"]