Skill routing sends prompts that only mention "green", or contain "run" and "check" anywhere, to /build-check
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bun, typescript
- Área
- developer-experience
Línea de trabajo
Start by reading lib/skill-route.ts, especially the trigger scoring, EVERYDAY_SPAN, and prompt-window logic described in the issue. Run the Bun repro from the issue to confirm which ordinary prompts route to /build-check. Adjust scoring so single-word collapses require the full phrase and proximity checks cover other matches; verify the repro routes only the real check request.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: v1.105.4.0. lib/skill-route.ts is byte-identical to main (last change 76dd597ff, #4831).
The UserPromptSubmit router sends ordinary prompts to /build-check in two situations:
- the prompt only mentions the word "green";
- the prompt has the words "run" and "check" anywhere in it, however far apart.
The hint says "Run /build-check with the Skill tool before you start", so a session that follows it starts the project's test suite when nobody asked for one.
Repro
Run with bun from any directory:
import { routePrompt, scanInstalledSkills, installedSkillsDir } from '<gstack>/lib/skill-route';
const { skills } = scanInstalledSkills(installedSkillsDir());
const filler = 'Background notes for the next session about the onboarding flow and its copy. '.repeat(30);
for (const p of [
"Please don't treat a green CI run as acceptance; the user's own retest is what counts.",
"Run the onboarding redesign end to end, then check the copy with the designer before you merge.",
"Run the onboarding redesign end to end. " + filler + " Then check the copy with the designer before you merge.",
"run the checks",
"Draft the onboarding email for new users.",
]) { const d = routePrompt(p, skills); console.log(p.length, d.route ? `${d.route.skill} via "${d.route.trigger}" ${d.route.score}` : 'no route'); }
Output:
86 build-check via "make it green" 1 <- a sentence that says NOT to rely on green CI
95 build-check via "run the checks" 1 <- "run ... check" in two clauses
2436 build-check via "run the checks" 1 <- "run" and "check" ~2,400 chars apart
14 build-check via "run the checks" 1 <- the real request (correct)
41 no route <- correct
Cause (lib/skill-route.ts)
- Single-word collapse.
makeanditare in STOPWORDS, so "make it green" and "is it green" each have one content word:green.greenhas 5 letters, so SPECIFIC_WORD accepts it and it is not treated asweakSingle.- The result is that
matched / content= 1/1 = 1.0 for any prompt that contains "green".
- Proximity check skipped.
- "run the checks" has the content words
runandcheck. checkhas 5 letters, so it counts as specific. That makeseverydayfalse, so the EVERYDAY_SPAN rule (scattered) never runs.- The trigger contains "the", so it is not a noun phrase, and
asksForWorkdoes not apply either. - Any prompt with both words anywhere in the 4000-char head plus 1000-char tail window scores 1.0.
- "run the checks" has the content words
- No length guard. A 40,000-char brief or handoff is scored like a one-line request, and long prompts are where both words show up by chance.
Field data
Single machine, Claude Code, ~/.gstack/hooks/skill-route.log, 2026-11-25 to 2026-12-01:
- 272 of 643 typed prompts were routed: 240 to /build-check and 32 to /review.
- 262 of those 272 were 4,000+ chars (pasted directives and session briefs).
- 0 of 158 prompts under 300 chars were routed.
- The prompts that were routed were not requests to run checks.
- Sessions followed the hint 4 times without being asked. Two of those started a pytest run.
Suggested fix
- Score a trigger whose content words collapse to one word ("make it green", "is it green") only when the whole phrase, stopwords included, appears in the prompt.
- Apply the EVERYDAY_SPAN proximity rule (or
asksForWork) to every match that is not the whole phrase, not only to triggers made of everyday words. - Optionally, for typed prompts longer than the head window, route only when the sentence that holds the match asks for the work (ASK_CUE or imperative-first, as in #4802).
Workaround: gstack-config set skill_routing off.
- Lenguaje dominante
- TypeScript
- Estrellas
- 143k
- Forks
- 21k
- Merge medio
- 5 h 25 min
- PR fusionados (30 d)
- 791
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de garrytan/gstack
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
garrytan/gstack#4768 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 3/5 1-2 días Aptitud para principiantes 60/100
garrytan/gstack#4766 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
S3
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
garrytan/gstack#4765 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
garrytan/gstack#4764 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
Todos los issues de garrytan/gstack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nicobailon/pi-subagents#3420 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
openwatersio/slackwater.xyz#309 ·
Los mantenedores suelen responder en 1 día
-
Mer utskriftsvennlig stylingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
navikt/nav-enonicxp-frontend#3122 ·
Los mantenedores suelen responder en 1 día
-
complexity → simple frontend performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opencollective/opencollective#9200 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día