Repository navigation
Closed
Description
Summary
During the cleanup of project-specific content, placeholder tokens were introduced that need to be configured during sequant init:
{{DEV_URL}}- Development server URL (e.g.,http://localhost:3000,http://localhost:4321)
Current State
The /test skill uses {{DEV_URL}} as a placeholder in browser test examples:
mcp__chrome-devtools__navigate_page({url: "{{DEV_URL}}/admin/..."})This token is not replaced during initialization, so users see the raw placeholder.
Acceptance Criteria
- AC-1:
sequant initprompts for dev server URL (with smart default based on stack) - AC-2: Tokens are replaced in skill templates during initialization
- AC-3: Token values stored in
.claude/.sequant/config.jsonfor reference - AC-4:
sequant updatepreserves user-configured token values
Implementation Notes
Smart Defaults by Stack
| Stack | Default DEV_URL |
|---|---|
| Next.js | http://localhost:3000 |
| Astro | http://localhost:4321 |
| Vite | http://localhost:5173 |
| Python/Flask | http://localhost:5000 |
| Python/Django | http://localhost:8000 |
| Go | http://localhost:8080 |
| Rust/Actix | http://localhost:8080 |
| Generic | http://localhost:3000 |
Config File Structure
{
"tokens": {
"DEV_URL": "http://localhost:3000"
},
"stack": "nextjs",
"initialized": "2025-01-07T..."
}Related
- Remove matcha-maps-specific content from skills #14 (closed) - Cleanup that introduced tokens
- Add Astro stack detection and configuration #5 - Astro stack detection
Metadata
Metadata
Assignees
Labels
No labels
Activity
admarble commentedon Jan 8, 2026
📋 Phase 1 Plan: Configure Placeholder Tokens During Onboarding
Acceptance Criteria with Verification
AC-1:
sequant initprompts for dev server URL (with smart default based on stack)Verification Method: Integration Test + Manual Test
Test Scenario:
sequant inithttp://localhost:3000Smart Defaults by Stack:
http://localhost:3000http://localhost:4321http://localhost:5173http://localhost:5000http://localhost:8080http://localhost:8080http://localhost:3000AC-2: Tokens are replaced in skill templates during initialization
Verification Method: Integration Test
Test Scenario:
{{DEV_URL}}placeholdersequant initcompletes.claude/skills/test/SKILL.mdcontains the actual URL{{DEV_URL}}placeholder remains in copied filesAC-3: Token values stored in
.claude/.sequant/config.jsonfor referenceVerification Method: Integration Test
Test Scenario:
sequant initwith dev URLhttp://localhost:4321.claude/.sequant/config.jsonexists{ "tokens": { "DEV_URL": "http://localhost:4321" }, "stack": "astro", "initialized": "..." }AC-4:
sequant updatepreserves user-configured token valuesVerification Method: Integration Test
Test Scenario:
DEV_URL: http://localhost:4000sequant update{{DEV_URL}}replaced with preservedhttp://localhost:4000Implementation Plan
Phase 1: Add Config Module (Foundation)
Create
src/lib/config.tswith:SequantConfigwithtokens,stack,initializedfieldsgetConfig()/saveConfig()functions.claude/.sequant/config.jsonAdd
DEV_URLdefaults tosrc/lib/stacks.ts:StackConfiginterface withdevUrlfieldPhase 2: Update Init Command
Modify
src/commands/init.ts:.claude/.sequant/directoryUpdate
src/lib/templates.tscopyTemplates():Phase 3: Update Command Enhancement
Modify
src/commands/update.ts:Apply tokens during file updates:
getConfig()to retrieve savedDEV_URLPhase 4: Testing
Assumptions to Validate
processTemplate()function handles new token correctly{{DEV_URL}}token exists in templates currently.claude/.sequant/path doesn't conflict with existing structure--yesflag should auto-accept stack default for non-interactive installsOpen Questions
Should
--yesflag auto-accept default dev URL?Legacy installs without config - what happens on update?
Should Vite be added as a detected stack?
Files to Modify
src/lib/config.tssrc/lib/stacks.tsdevUrlto StackConfig interface and defaultssrc/commands/init.tssrc/lib/templates.tscopyTemplates()src/commands/update.tsEffort: ~2-3 hours implementation + testing
🤖 Generated with Claude Code
admarble commentedon Jan 8, 2026
📋 Refined Implementation Plan (Spec v2)
Acceptance Criteria with Verification
AC-1:
sequant initprompts for dev server URL (with smart default based on stack)Verification Method: Integration Test + Manual Test
Test Scenario:
sequant init--yesflag auto-accepts stack defaultSmart Defaults by Stack:
http://localhost:3000http://localhost:4321http://localhost:5000http://localhost:8080http://localhost:8080http://localhost:3000AC-2: Tokens are replaced in skill templates during initialization
Verification Method: Integration Test
Test Scenario:
templates/skills/test/SKILL.mdcontains{{DEV_URL}}placeholder (line 187)sequant initcompletes withDEV_URL=http://localhost:4321.claude/skills/test/SKILL.mdcontains the actual URL{{DEV_URL}}placeholder remains in copied filesNote: Existing
processTemplate()function atsrc/lib/templates.ts:24already handles{{KEY}}substitution - just need to pass the token.AC-3: Token values stored in
.claude/.sequant/config.jsonfor referenceVerification Method: Integration Test
Test Scenario:
sequant initwith Astro stack and custom URL.claude/.sequant/config.jsonexists with:{ "tokens": { "DEV_URL": "http://localhost:4321" }, "stack": "astro", "initialized": "2026-01-08T..." }AC-4:
sequant updatepreserves user-configured token valuesVerification Method: Integration Test
Test Scenario:
DEV_URL: http://localhost:4000sequant update{{DEV_URL}}replaced with preservedhttp://localhost:4000Migration Path: Legacy installs without config prompt for DEV_URL on first update.
Implementation Plan
Phase 1: Config Module (Foundation)
Create
src/lib/config.tsSequantConfig { tokens, stack, initialized }getConfig(),saveConfig(config).claude/.sequant/config.jsonAdd
devUrltosrc/lib/stacks.tsStackConfiginterface withdevUrl: stringPhase 2: Init Command Enhancement
Modify
src/commands/init.ts.claude/.sequant/directorycopyTemplates()Update
src/lib/templates.tscopyTemplates(stack, tokens?)Phase 3: Update Command Enhancement
Modify
src/commands/update.tsprocessTemplate()for use in updateApply tokens during file updates
Phase 4: Exports and Testing
src/index.tsexportsFiles to Modify
src/lib/config.tssrc/lib/stacks.tsdevUrlto StackConfig and defaultssrc/commands/init.tssrc/lib/templates.tscopyTemplates(), exportprocessTemplate()src/commands/update.tssrc/index.tsAssumptions Validated
processTemplate()handles{{KEY}}pattern (line 30){{DEV_URL}}exists as unreplaced token (grep confirmed: only in test/SKILL.md).claude/.sequant/path is unused (no conflicts)Open Questions (with Recommendations)
--yesflag behavior? → Auto-accept stack default ✅🤖 Generated with Claude Code
feat(init): Configure placeholder tokens during onboarding
admarble commentedon Jan 8, 2026
🚀 Implementation Complete
AC Coverage Summary
sequant initprompts for dev server URL with smart stack defaults.claude/.sequant/config.jsonsequant updatepreserves user-configured token valuesFiles Changed
src/lib/config.tsgetConfig,saveConfig)src/lib/stacks.tsdevUrlfield toStackConfiginterface and all stack defaultssrc/commands/init.tssrc/lib/templates.tscopyTemplates()now accepts optional tokens, exportedprocessTemplate()src/commands/update.tssrc/index.tssrc/commands/init.test.tsSmart Defaults by Stack
http://localhost:3000http://localhost:4321http://localhost:5000http://localhost:8080http://localhost:8080http://localhost:3000Test/Build Results
npm run build- Passednpm test- 144 tests passed (6 test files)Branch Ready for PR
feature/18-configure-placeholder-tokens-during-onboarding🤖 Generated with Claude Code
feat(#26): Add PR verification to /exec skill
feat(#26): Add PR verification to /exec skill (#36)
feat(#26): Add PR verification to /exec skill