@tekyzinc/gsd-t 2.15.4 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to GSD-T are documented here. Updated with each release.
4
4
 
5
+ ## [2.16.1] - 2026-02-16
6
+
7
+ ### Fixed
8
+ - `gsd-t-init-scan-setup` now pulls existing code from remote before scanning — prevents treating repos with existing code as greenfield
9
+
10
+ ## [2.16.0] - 2026-02-13
11
+
12
+ ### Changed
13
+ - Smart router (`/gsd-t`) replaced signal-word lookup table with **semantic evaluation** — evaluates user intent against each command's purpose and "Use when" criteria from help summaries
14
+ - Router shows runner-up command when confidence is close: `(also considered: gsd-t-{x} — Esc to switch)`
15
+ - New commands automatically participate in routing without updating a routing table
16
+
17
+ ### Added
18
+ - Backlog item B1: Agentic Workflow Architecture (future exploration when Claude Code agents mature)
19
+
5
20
  ## [2.15.4] - 2026-02-13
6
21
 
7
22
  ### Changed
@@ -128,9 +128,10 @@ RELATED COMMANDS
128
128
  Use these when user asks for help on a specific command:
129
129
 
130
130
  ### gsd-t (smart router)
131
- - **Summary**: Describe what you need in plain language — auto-routes to the right GSD-T command
131
+ - **Summary**: Describe what you need in plain language — auto-routes to the right GSD-T command using semantic evaluation
132
132
  - **Auto-invoked**: No
133
- - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`
133
+ - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`, command summaries from `gsd-t-help`
134
+ - **How it works**: Evaluates your request against every command's purpose and "Use when" criteria. Commands that match get shortlisted, best fit is selected. Shows runner-up when close.
134
135
  - **Use when**: You don't want to remember which command to use — just describe what you want
135
136
  - **Examples**: `/user:gsd-t Fix the login bug`, `/user:gsd-t Add dark mode`, `/user:gsd-t Scan for tech debt`
136
137
 
@@ -28,6 +28,12 @@ All subsequent steps run from inside the project directory.
28
28
  git remote add origin {url}
29
29
  ```
30
30
  - **Remote exists** → Log it and continue
31
+ 3. **Pull existing code from remote** (if any):
32
+ - Run `git fetch origin` to get remote refs
33
+ - If the remote has commits and local is empty (or behind), run `git pull origin main` (or the default branch)
34
+ - This ensures the scan sees the actual codebase, not an empty directory
35
+ - If pull fails due to branch mismatch, try `git pull origin master`
36
+ - Skip if local already has commits matching the remote
31
37
 
32
38
  ## Step 3: Initialize Project (gsd-t-init)
33
39
 
package/commands/gsd-t.md CHANGED
@@ -4,38 +4,42 @@ You are the GSD-T smart router. The user describes what they want in plain langu
4
4
 
5
5
  ## Step 1: Load Context
6
6
 
7
- Read (if they exist):
7
+ Read:
8
8
  1. `CLAUDE.md` — project context
9
9
  2. `.gsd-t/progress.md` — current state, active milestone/phase
10
10
 
11
- ## Step 2: Analyze Intent
12
-
13
- From `$ARGUMENTS`, classify the request into one of these categories:
14
-
15
- | Intent | Route To | Signal Words |
16
- |--------|----------|--------------|
17
- | Small fix, tweak, config change, minor addition | `gsd-t-quick` | "fix", "change", "update", "tweak", "add {small thing}", "rename", "move" |
18
- | Major new feature or capability | `gsd-t-feature` | "add {large feature}", "implement", "build {system}", "create {module}" |
19
- | Full new project from scratch | `gsd-t-project` | "new project", "start building", "create {app/product}" |
20
- | Full project onboarding | `gsd-t-init-scan-setup` | "onboard", "set up GSD-T", "initialize" |
21
- | Define a deliverable chunk | `gsd-t-milestone` | "milestone", "next deliverable", "define {goal}" |
22
- | Run full cycle on current milestone | `gsd-t-wave` | "run it", "execute", "let it rip", "full cycle", "wave" |
23
- | Debug or investigate a problem | `gsd-t-debug` | "bug", "broken", "not working", "error", "investigate", "why does" |
24
- | Understand or audit codebase | `gsd-t-scan` | "audit", "analyze", "scan", "tech debt", "what's wrong with" |
25
- | Compare spec to existing code | `gsd-t-gap-analysis` | "compare", "gap analysis", "spec", "requirements check", "what's implemented", "what's missing" |
26
- | Explore ideas or rethink approach | `gsd-t-brainstorm` | "brainstorm", "what if", "explore", "rethink", "ideas for" |
27
- | Help articulate a vague idea | `gsd-t-prompt` | "I want to", "how should I", "help me think about" |
28
- | Generate or fix project CLAUDE.md | `gsd-t-setup` | "setup CLAUDE.md", "restructure CLAUDE.md" |
29
- | Check current progress | `gsd-t-status` | "status", "where are we", "progress", "what's done" |
30
- | Resume interrupted work | `gsd-t-resume` | "resume", "continue", "pick up where" |
31
- | Capture something for later | `gsd-t-backlog-add` | "add to backlog", "save for later", "remember to", "todo" |
32
- | Promote tech debt to milestone | `gsd-t-promote-debt` | "promote debt", "fix tech debt" |
33
- | Auto-populate docs | `gsd-t-populate` | "populate docs", "fill in docs", "document the codebase" |
34
-
35
- ### Ambiguous cases:
36
- - If the request could be `quick` or `feature`, check scope: does it touch 1-2 files (quick) or require multiple domains/files (feature)?
37
- - If a milestone is active mid-phase, consider whether the request fits within the current work or is a new task
38
- - If truly ambiguous, ask one clarifying question — don't guess
11
+ ## Step 2: Semantic Evaluation
12
+
13
+ Read the **Command Summaries** section of `commands/gsd-t-help.md` (or the in-memory skill list). For each command, evaluate whether the user's request matches that command's **Summary** and **Use when** criteria.
14
+
15
+ ### Evaluation process:
16
+
17
+ 1. **Read the request**: Understand what the user is actually asking for not just keywords, but intent, scope, and context
18
+ 2. **Evaluate each command**: For every GSD-T command, ask: "Would this command raise its hand for this request?" Consider:
19
+ - Does the request match the command's stated purpose?
20
+ - Does the scope align? (small task vs. large feature vs. full project)
21
+ - Does the current project state matter? (e.g., if mid-milestone, does this fit the active phase?)
22
+ 3. **Collect candidates**: Commands that match get shortlisted
23
+ 4. **Select the best fit**: From the candidates, pick the one whose purpose most closely matches the request
24
+
25
+ ### Resolution rules:
26
+
27
+ - **0 matches** Ask one clarifying question to narrow down
28
+ - **1 match** Route immediately
29
+ - **2+ matches** Pick the best fit based on scope and context. Show the runner-up:
30
+ ```
31
+ Routing to /user:gsd-t-{command}: {reason}
32
+ (also considered: gsd-t-{runner-up} Esc to switch)
33
+ ```
34
+
35
+ ### Scope disambiguation:
36
+
37
+ When the same request could fit multiple commands at different scales:
38
+ - **Touches 1-3 files, straightforward** `quick`
39
+ - **New capability spanning multiple files/components** → `feature`
40
+ - **Requires its own milestone with domains** → `milestone` or `project`
41
+ - **Needs investigation before fixing** → `debug` (not `quick`)
42
+ - **Spec/requirements to verify against code** → `gap-analysis` (not `scan`)
39
43
 
40
44
  ## Step 3: Confirm and Execute
41
45
 
@@ -61,6 +65,7 @@ Examples:
61
65
  /user:gsd-t Add dark mode support
62
66
  /user:gsd-t Scan the codebase for tech debt
63
67
  /user:gsd-t What's the current progress?
68
+ /user:gsd-t Compare this spec against our code
64
69
 
65
70
  I'll route to the right GSD-T command automatically.
66
71
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.15.4",
3
+ "version": "2.16.1",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 40 slash commands with backlog management, impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",