Skill Tracer
Skills › gstack › gstack › generate-upgrade-check.ts

generate-upgrade-check.ts

14 lines · scripts/resolvers/preamble/generate-upgrade-check.ts at 3f79d81

1import type { TemplateContext } from '../types';
2
3/**
4 * Steady-state STATUS-line rules only (token-reduction Phase 2). The upgrade
5 * flow, feature discovery, and every one-time onboarding prompt moved into
6 * bin/gstack-skill-start's instruction-emission layer — their text is emitted
7 * at runtime only when the gate fires, wrapped in GSTACK_INSTRUCTION blocks
8 * the fence prose scopes and the model follows.
9 */
10export function generateUpgradeCheck(ctx: TemplateContext): string {
11 return `If \`PROACTIVE\` is \`off\`: suggest no skills unasked, nor ask. \`core\`: only /office-hours, /review, /qa, /ship. \`all\`: any. Skills the user names or this one invokes run.
13If \`SKILL_PREFIX\` is \`true\` use \`/gstack-*\` names; paths stay \`${ctx.paths.skillRoot}/[skill-name]/SKILL.md\`.`;