You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Auto-detect project name in /setup skill #187
The /sequant:setup skill copies a constitution template with {{PROJECT_NAME}} placeholder that users must manually replace. We should auto-detect the project name and fill it in automatically.
Detection Sources (priority order)
package.json → name field
Cargo.toml → [package] name
pyproject.toml → [project] name or [tool.poetry] name
go.mod → module name
Git remote URL → extract repo name
Current directory name (fallback)
Acceptance Criteria
Setup skill detects project name from available sources
Replaces {{PROJECT_NAME}} in copied constitution.md
Falls back gracefully if no name detected (keeps placeholder)
Works across Node.js, Rust, Python, Go projects
Technical Notes
Detection should happen in the setup skill before copying
Use sed or similar to replace placeholder after copy
Consider caching detected project info for other skills
Setup skill detects project name from available sources
Unit + Integration Test
AC-2
Replaces {{PROJECT_NAME}} in copied constitution.md
Integration Test
AC-3
Falls back gracefully if no name detected
Unit Test
AC-4
Works across Node.js, Rust, Python, Go projects
Parameterized Unit Tests
Detection Priority
1. package.json → name field
2. Cargo.toml → [package] name
3. pyproject.toml → [project] name OR [tool.poetry] name
4. go.mod → module path (last segment)
5. git remote → extract repo name from origin URL
6. Directory name → basename(cwd) (fallback)
Implementation Plan
Phase 1: Create Detection Utility
Create src/lib/project-name.ts with detectProjectName() function
Implement priority-based detection with proper parsing
Phase 2: Integrate with CLI
Update src/lib/templates.ts to use new detection
Replace basename(process.cwd()) with detectProjectName()
Phase 3: Update Setup Skill
Enhance skills/setup/SKILL.md with bash-based detection
Add sed replacement step after constitution copy
Phase 4: Testing
Add unit tests for each detection source
Add fallback behavior tests
Add integration test with file fixtures
Files to Modify
File
Change
src/lib/project-name.ts
NEW - Detection utility
src/lib/templates.ts
Use detectProjectName()
skills/setup/SKILL.md
Add detection + replacement steps
src/lib/__tests__/project-name.test.ts
NEW - Unit tests
Assumptions
TOML files can be parsed with regex for simple key extraction
Git remote URL follows standard GitHub/GitLab format
Activity
admarble commentedon Jan 27, 2026
📋 Plan: Auto-detect Project Name in /setup Skill
Acceptance Criteria
{{PROJECT_NAME}}in copied constitution.mdDetection Priority
Implementation Plan
Phase 1: Create Detection Utility
src/lib/project-name.tswithdetectProjectName()functionPhase 2: Integrate with CLI
src/lib/templates.tsto use new detectionbasename(process.cwd())withdetectProjectName()Phase 3: Update Setup Skill
skills/setup/SKILL.mdwith bash-based detectionPhase 4: Testing
Files to Modify
src/lib/project-name.tssrc/lib/templates.tsdetectProjectName()skills/setup/SKILL.mdsrc/lib/__tests__/project-name.test.tsAssumptions
Ready for implementation via
/exec 187feat(#187): auto-detect project name in /setup skill
admarble commentedon Jan 27, 2026
✅ /fullsolve Complete
AC Coverage
{{PROJECT_NAME}}in copied constitution.mdQuality Metrics
Implementation Summary
Created
src/lib/project-name.tswith priority-based detection:Verdict: READY_FOR_MERGE
PR: #192
🤖 Generated with Claude Code
test(#187): add integration tests for project name detection
docs: update CHANGELOG with plugin support and project-name detection