* fix: replace /gsd: command format with /gsd- skill format in all suggestions All next-step suggestions shown to users were still using the old colon format (/gsd:xxx) which cannot be copy-pasted as skills. Migrated all occurrences across agents/, commands/, get-shit-done/, docs/, README files, bin/install.js (hardcoded defaults for claude runtime), and get-shit-done/bin/lib/*.cjs (generate-claude-md templates and error messages). Updated tests to assert new hyphen format instead of old colon format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: migrate remaining /gsd: format to /gsd- in hooks, workflows, and sdk Addresses remaining user-facing occurrences missed in the initial migration: - hooks/: fix 4 user-facing messages (pause-work, update, fast, quick) and 2 comments in gsd-workflow-guard.js - get-shit-done/workflows/: fix 21 Skill() literal calls that Claude executes directly (installer does not transform workflow content) - sdk/prompt-sanitizer.ts: update regex to strip /gsd- format in addition to legacy /gsd: format; update JSDoc comment - tests/: update autonomous-ui-steps, prompt-sanitizer to assert new format Note: commands/gsd/*.md frontmatter (name: gsd:xxx) intentionally unchanged — installer derives skillName from directory path, not the name field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(plan-phase): preserve --chain flag in auto-advance sync and handle ui-phase gate in chain mode Bug 1: step 15 sync-flag check only guarded against --auto, causing _auto_chain_active to be cleared when plan-phase is invoked without --auto in ARGUMENTS even though a --chain pipeline was active. Added --chain to the guard condition, matching discuss-phase behaviour. Bug 2: UI Design Contract gate (step 5.6) always exited the workflow when UI-SPEC was missing, breaking the discuss --chain pipeline silently. When _auto_chain_active is true, the gate now auto-invokes gsd-ui-phase --auto via Skill() and continues to step 6 without prompting. Manual invocations retain the existing AskUserQuestion flow. * fix: remove <sub>/clear</sub> pattern and duplicate old-format command in discuss-phase.md --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
4.3 KiB
4.3 KiB
CLAUDE.md Template
Template for project-root CLAUDE.md — auto-generated by gsd-tools generate-claude-md.
Contains 7 marker-bounded sections. Each section is independently updatable.
The generate-claude-md subcommand manages 6 sections (project, stack, conventions, architecture, skills, workflow enforcement).
The profile section is managed exclusively by generate-claude-profile.
Section Templates
Project Section
<!-- GSD:project-start source:PROJECT.md -->
## Project
{{project_content}}
<!-- GSD:project-end -->
Fallback text:
Project not yet initialized. Run /gsd-new-project to set up.
Stack Section
<!-- GSD:stack-start source:STACK.md -->
## Technology Stack
{{stack_content}}
<!-- GSD:stack-end -->
Fallback text:
Technology stack not yet documented. Will populate after codebase mapping or first phase.
Conventions Section
<!-- GSD:conventions-start source:CONVENTIONS.md -->
## Conventions
{{conventions_content}}
<!-- GSD:conventions-end -->
Fallback text:
Conventions not yet established. Will populate as patterns emerge during development.
Architecture Section
<!-- GSD:architecture-start source:ARCHITECTURE.md -->
## Architecture
{{architecture_content}}
<!-- GSD:architecture-end -->
Fallback text:
Architecture not yet mapped. Follow existing patterns found in the codebase.
Skills Section
<!-- GSD:skills-start source:skills/ -->
## Project Skills
| Skill | Description | Path |
| -------------- | --------------------- | ------------------------- |
| {{skill_name}} | {{skill_description}} | `{{skill_path}}/SKILL.md` |
<!-- GSD:skills-end -->
Fallback text:
No project skills found. Add skills to any of: `.claude/skills/`, `.agents/skills/`, `.cursor/skills/`, or `.github/skills/` with a `SKILL.md` index file.
Discovery behavior:
- Scans
.claude/skills/,.agents/skills/,.cursor/skills/,.github/skills/for subdirectories containingSKILL.md - Extracts
nameanddescriptionfrom YAML frontmatter (supports multi-line descriptions) - Skips GSD's own installed skills (directories starting with
gsd-) - Deduplicates by skill name across directories
Workflow Enforcement Section
<!-- GSD:workflow-start source:GSD defaults -->
## GSD Workflow Enforcement
Before using Edit, Write, or other file-changing tools, start work through a GSD command so planning artifacts and execution context stay in sync.
Use these entry points:
- `/gsd-quick` for small fixes, doc updates, and ad-hoc tasks
- `/gsd-debug` for investigation and bug fixing
- `/gsd-execute-phase` for planned phase work
Do not make direct repo edits outside a GSD workflow unless the user explicitly asks to bypass it.
<!-- GSD:workflow-end -->
Profile Section (Placeholder Only)
<!-- GSD:profile-start -->
## Developer Profile
> Profile not yet configured. Run `/gsd-profile-user` to generate your developer profile.
> This section is managed by `generate-claude-profile` — do not edit manually.
<!-- GSD:profile-end -->
Note: This section is NOT managed by generate-claude-md. It is managed exclusively
by generate-claude-profile. The placeholder above is only used when creating a new
CLAUDE.md file and no profile section exists yet.
Section Ordering
- Project — Identity and purpose (what this project is)
- Stack — Technology choices (what tools are used)
- Conventions — Code patterns and rules (how code is written)
- Architecture — System structure (how components fit together)
- Skills — Discovered project skills with name and description (what domain knowledge is available)
- Workflow Enforcement — Default GSD entry points for file-changing work
- Profile — Developer behavioral preferences (how to interact)
Marker Format
- Start:
<!-- GSD:{name}-start source:{file} --> - End:
<!-- GSD:{name}-end --> - Source attribute enables targeted updates when source files change
- Partial match on start marker (without closing
-->) for detection
Fallback Behavior
When a source file is missing, fallback text provides Claude-actionable guidance:
- Guides Claude's behavior in the absence of data
- Not placeholder ads or "missing" notices
- Each fallback tells Claude what to do, not just what's absent