diff --git a/agents/plugin-advisor.md b/agents/plugin-advisor.md index 7d9141e..a7cd0df 100644 --- a/agents/plugin-advisor.md +++ b/agents/plugin-advisor.md @@ -25,6 +25,18 @@ field. PROBE REPORT missing or a field absent → emit `PLUGIN CHECK — VERDICT: ERROR(probe report missing/invalid: )` and STOP. Fail closed: no recommendations over invented detection. +`FRAMEWORK-DEPS` carries exact `"dep": "version"` pairs (or +`framework-deps-none`). Derive signal classes from those names + versions: +`frontend` = react/react-dom/vue/nuxt/svelte/astro/next present; +`fast-libs` = next, react ≥18 (version prefix), prisma/@prisma/client, +supabase/@supabase/supabase-js, drizzle-orm, expo. Never re-scan the +manifest to make this split. + +`REQUEST` MAY carry `PLAN: Max|Pro|Free` from the dispatcher. Echo it in +the output. Absent → output `PLAN: unknown (not provided)` and SKIP the +plan-budget WARN (absolute COST ESTIMATE still reported). Never assume a +plan. + --- ## PHASE 2 — ANALYZE @@ -86,7 +98,7 @@ ACTIVE: [plugin — status, one line each] PROFILE: [active skill profile — name + match%, or "custom"] SIGNALS: [detected signals] COMPLEXITY: % — -PLAN: (budget: ~t passive tokens) +PLAN: (budget: ~t | n/a) COST ESTIMATE: ~Xt passive tokens (all active plugins combined) RECOMMENDATIONS: @@ -315,7 +327,7 @@ or by applying a profile that lists it (e.g. `apply web` to restore - Active toggle plugins not needed for this task (dead passive cost) - Multi-session feature + `gsd` CLI not installed → `npm install -g gsd-pi` -- Total passive cost > 50% of plan budget (Pro: ~5500t, Max: ~10000t, Free: ~2500t) +- Total passive cost > 50% of plan budget (Pro: ~5500t, Max: ~10000t, Free: ~2500t) — only when PLAN was provided; PLAN unknown → skip this WARN - **Next.js/React 18+/Prisma/Supabase detected + context7 not configured** → Risk: Claude may generate code using outdated APIs (App Router changes frequently) → Fix: `npm install -g ctx7 && ctx7 setup --claude` diff --git a/agents/plugin-probe.md b/agents/plugin-probe.md index 16f646d..31c4eac 100644 --- a/agents/plugin-probe.md +++ b/agents/plugin-probe.md @@ -34,7 +34,8 @@ command -v rtk &>/dev/null && rtk --version 2>/dev/null | head -1 || echo "rtk-n # Project signals (run from project root) ls package.json pyproject.toml Cargo.toml go.mod 2>/dev/null | head -5 -grep -rl "next\|react\|vue\|prisma\|supabase" package.json 2>/dev/null | head -3 || true +# Exact-key dep match with versions ("react": won't match "preact":) +grep -ohE '"(next|react|react-dom|vue|nuxt|svelte|astro|prisma|@prisma/client|@supabase/supabase-js|supabase|drizzle-orm|expo)"[[:space:]]*:[[:space:]]*"[^"]*"' package.json 2>/dev/null || echo "framework-deps-none" find . -name "*.tsx" -o -name "*.jsx" 2>/dev/null | head -3 | wc -l find . -name "docker-compose*" -o -name "Dockerfile" 2>/dev/null | head -3 | wc -l @@ -72,7 +73,7 @@ EXTERNAL : PROFILE : CLIS : ctx7= gsd= rtk= MANIFESTS : -FRAMEWORK-DEPS: +FRAMEWORK-DEPS: TSX-JSX-COUNT : DOCKER-COUNT : ANIM : eligibility= installed=