From bac235cb3342401ac3b604008b7143dcac13dd44 Mon Sep 17 00:00:00 2001 From: bastien Date: Mon, 28 Sep 2026 19:21:15 +0200 Subject: [PATCH] feat(effort): xhigh on the vendored brainstorming and writing-plans, re-applied at resync --- install-plugins.sh | 11 +++++++++++ lib/tests/effort-routing.test.sh | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/install-plugins.sh b/install-plugins.sh index 5e2a0a0..c669cde 100644 --- a/install-plugins.sh +++ b/install-plugins.sh @@ -934,6 +934,17 @@ for _ext_skill in "${EXT_SKILL_NAMES[@]}"; do done echo "" +# Effort tiering (BDR-NEXT): the vendored brainstorming/writing-plans carry an +# effort pin upstream lacks; re-apply after every resync (census lock in +# lib/tests/effort-routing.test.sh alarms if this ever stops working). +for _s in brainstorming writing-plans; do + _f="$(cd "$(dirname "$0")" && pwd)/skills-external/$_s/SKILL.md" + if [ -f "$_f" ] && ! grep -q '^effort:' "$_f"; then + sed -i "0,/^name: $_s\$/s//&\neffort: xhigh/" "$_f" + fi +done +unset _s _f + # ============================================================ # STEP 8.5 — EXTERNAL SKILLS (npx skills add …) # ============================================================ diff --git a/lib/tests/effort-routing.test.sh b/lib/tests/effort-routing.test.sh index 4944d82..4e17b3e 100755 --- a/lib/tests/effort-routing.test.sh +++ b/lib/tests/effort-routing.test.sh @@ -47,6 +47,15 @@ for s in gitflow prune-memory find-docs; do fm_has_effort "skills/$s/SKILL.md" m for s in feat hotfix bugfix refactor web-validate harden seo geo; do fm_has_effort "skills/$s/SKILL.md" high; done for s in ship-feature init-project onboard tour audit-delta analyze code-clean client-handover; do fm_has_effort "skills/$s/SKILL.md" xhigh; done +# ── 9) vendored superpowers carry xhigh (spec D3). The files live in skills-external/ (gitignored, +# machine-owned), so the durable artifact is the install-plugins.sh re-apply; the frontmatter +# check skips VISIBLY when the skill is not vendored yet (fresh clone before make plugin). +for s in brainstorming writing-plans; do + if [ -f "$R/skills-external/$s/SKILL.md" ]; then fm_has_effort "skills-external/$s/SKILL.md" xhigh + else printf 'SKIP skills-external/%s/SKILL.md not vendored yet (run make plugin)\n' "$s"; fi +done +has "install-plugins.sh" 'effort: xhigh' + # ── summary (later tasks insert their locks ABOVE this line) printf 'effort-routing census: %d pass, %d fail\n' "$pass" "$fail" [ "$fail" -eq 0 ]