Files
ctask/internal/seed/templates.go
T
typebasedio aba4a645b1 feat: add session handoff guidance to seeded CLAUDE.md template
Advisory instructions to append a brief summary to notes.md before ending a session. Also update logs/ description from "reserved" to "automatic session snapshots".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 09:56:55 -04:00

59 lines
1.2 KiB
Go

package seed
import "fmt"
// ClaudeMD returns the advisory CLAUDE.md content for a workspace.
func ClaudeMD(slug, category, workspacePath string) string {
return fmt.Sprintf(`# Task Workspace: %s
This is a ctask-managed workspace.
- **Category:** %s
- **Workspace:** %s
## Scope
This workspace is scoped to a single task. Keep work focused on the task described in notes.md.
## Files
- task.yaml — Task metadata (machine-managed, do not edit)
- notes.md — Task log (human/agent-managed)
- context/ — Reference documents (user-managed)
- output/ — Task deliverables and artifacts
- logs/ — Session logs (automatic session snapshots)
## 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. This helps the developer (or a future session) resume without losing context.
`, slug, category, workspacePath)
}
// NotesMD returns the skeleton notes.md content.
func NotesMD(title string) string {
return fmt.Sprintf(`# %s
## Purpose
## Constraints
## Actions
## Results
`, title)
}