From ea808d230c1b8e5aa083c3d24eb424548d0ebfeb Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Fri, 25 Sep 2026 17:21:49 +0800 Subject: [PATCH] Resolve {project-root} by walking up to the nearest _bmad/ Skills started inside a worktree or subfolder now find the _bmad/ install above them instead of assuming the working directory. --- samples/bmad-agent-code-coach/SKILL.md | 2 +- samples/bmad-agent-dream-weaver/SKILL.md | 2 +- samples/bmad-agent-sentinel/SKILL.md | 2 +- skills/bmad-agent-builder/assets/SKILL-template-bootloader.md | 2 +- skills/bmad-agent-builder/assets/SKILL-template.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/bmad-agent-code-coach/SKILL.md b/samples/bmad-agent-code-coach/SKILL.md index d495ff8..bdc53db 100644 --- a/samples/bmad-agent-code-coach/SKILL.md +++ b/samples/bmad-agent-code-coach/SKILL.md @@ -36,7 +36,7 @@ The full discipline (what goes where, the two-tier flow from session log to MEMO ## Conventions - Bare paths (e.g. `references/guide.md`) resolve from the skill root. -- `{project-root}`-prefixed paths resolve from the project working directory. +- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents. - Your sanctum lives at `{project-root}/_bmad/memory/bmad-agent-code-coach/`. ## On Activation diff --git a/samples/bmad-agent-dream-weaver/SKILL.md b/samples/bmad-agent-dream-weaver/SKILL.md index 291551f..af61929 100644 --- a/samples/bmad-agent-dream-weaver/SKILL.md +++ b/samples/bmad-agent-dream-weaver/SKILL.md @@ -44,7 +44,7 @@ Oneira adapts her energy to context: ## Conventions - Bare paths (e.g. `references/dream-log.md`) resolve from this skill's root. -- `{project-root}`-prefixed paths resolve from the project working directory. +- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents. - Your memory (sanctum) lives at `{project-root}/_bmad/memory/bmad-agent-dream-weaver/`. ## On Activation diff --git a/samples/bmad-agent-sentinel/SKILL.md b/samples/bmad-agent-sentinel/SKILL.md index ac8a415..da9c34d 100644 --- a/samples/bmad-agent-sentinel/SKILL.md +++ b/samples/bmad-agent-sentinel/SKILL.md @@ -36,7 +36,7 @@ The full discipline (what goes where, the two-tier flow from session log to MEMO ## Conventions - Bare paths (e.g. `references/guide.md`) resolve from the skill root. -- `{project-root}`-prefixed paths resolve from the project working directory. +- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents. - Your sanctum lives at `{project-root}/_bmad/memory/bmad-agent-sentinel/`. ## On Activation diff --git a/skills/bmad-agent-builder/assets/SKILL-template-bootloader.md b/skills/bmad-agent-builder/assets/SKILL-template-bootloader.md index e961fd0..20a276a 100644 --- a/skills/bmad-agent-builder/assets/SKILL-template-bootloader.md +++ b/skills/bmad-agent-builder/assets/SKILL-template-bootloader.md @@ -46,7 +46,7 @@ The full discipline (what goes where, the two-tier flow from session log to MEMO - Bare paths (e.g. `references/guide.md`) resolve from the skill root. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives). -- `{project-root}`-prefixed paths resolve from the project working directory. +- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents. - `{skill-name}` resolves to the skill directory's basename. - Your sanctum lives at `{project-root}/_bmad/memory/{skillName}/`. diff --git a/skills/bmad-agent-builder/assets/SKILL-template.md b/skills/bmad-agent-builder/assets/SKILL-template.md index 3f086f1..e15512a 100644 --- a/skills/bmad-agent-builder/assets/SKILL-template.md +++ b/skills/bmad-agent-builder/assets/SKILL-template.md @@ -34,7 +34,7 @@ description: { skill-description } # [4-6 word summary]. [trigger phrases] - Bare paths (e.g. `references/guide.md`) resolve from the skill root. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives). -- `{project-root}`-prefixed paths resolve from the project working directory. +- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents. - `{skill-name}` resolves to the skill directory's basename. ## On Activation