0439702833
Replaces the v0.2 task-scoped template with the v0.3 workspace guidelines (file placement conventions + session handoff). ClaudeMD signature is preserved for API compatibility; the parameters are no longer interpolated.
62 lines
1.4 KiB
Go
62 lines
1.4 KiB
Go
package seed
|
|
|
|
import "fmt"
|
|
|
|
// ClaudeMD returns the built-in default CLAUDE.md content for a task workspace.
|
|
// Parameters are accepted for API compatibility but are not interpolated in v0.3.
|
|
func ClaudeMD(slug, category, workspacePath string) string {
|
|
_ = slug
|
|
_ = category
|
|
_ = workspacePath
|
|
return `# Workspace Guidelines
|
|
|
|
This is a ctask workspace. Prefer operating inside this directory unless explicitly instructed otherwise.
|
|
|
|
## File Placement
|
|
|
|
- Source code and scripts -> workspace root or ` + "`src/`" + `
|
|
- Documentation, summaries, reports -> ` + "`docs/`" + `
|
|
- Deliverables and exports -> ` + "`output/`" + `
|
|
- Reference material and imported files -> ` + "`context/`" + `
|
|
- Do not place non-code outputs (docs, summaries, exports) in the workspace root
|
|
|
|
## Conventions
|
|
|
|
- Do not install global packages or modify system files unless asked
|
|
- Record important assumptions and actions in notes.md
|
|
- Keep the workspace root clean -- use subdirectories for organization
|
|
|
|
## Session Handoff
|
|
|
|
Before ending a session, append a brief summary to notes.md with:
|
|
|
|
- What was accomplished
|
|
- Key decisions made
|
|
- Open follow-ups or unfinished work
|
|
- How to continue from here
|
|
|
|
Keep it concise -- a few bullet points is enough.
|
|
`
|
|
}
|
|
|
|
// NotesMD returns the skeleton notes.md content.
|
|
func NotesMD(title string) string {
|
|
return fmt.Sprintf(`# %s
|
|
|
|
## Purpose
|
|
|
|
|
|
|
|
## Constraints
|
|
|
|
|
|
|
|
## Actions
|
|
|
|
|
|
|
|
## Results
|
|
|
|
`, title)
|
|
}
|