Documentation
¶
Overview ¶
Package workflow provides prompt templates for onboarding and session handoff.
Index ¶
- type HandoffData
- type OnboardingData
- type WorkflowSkill
- func (s *WorkflowSkill) Description() string
- func (s *WorkflowSkill) ExecuteTool(name string, args map[string]interface{}) (string, error)
- func (s *WorkflowSkill) Init(deps skill.SkillDeps) error
- func (s *WorkflowSkill) Name() string
- func (s *WorkflowSkill) Prompts() map[string]string
- func (s *WorkflowSkill) Tools() []*mcp.ToolDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandoffData ¶
type HandoffData struct {
SessionID string
ToolsUsed []string
FilesModified []string
MemoriesCreated []string
OpenContext string
}
HandoffData holds the variables for the session handoff prompt template.
type OnboardingData ¶
type OnboardingData struct {
ProjectRoot string
DetectedLanguages []string
FileCount int
DirectoryStructure []string // top-level directories
}
OnboardingData holds the variables for the onboarding prompt template.
type WorkflowSkill ¶
type WorkflowSkill struct {
// contains filtered or unexported fields
}
WorkflowSkill implements both skill.ToolProvider and skill.WorkflowProvider, providing onboarding and session handoff as MCP tools and prompt templates.
func (*WorkflowSkill) Description ¶
func (s *WorkflowSkill) Description() string
Description returns a human-readable description.
func (*WorkflowSkill) ExecuteTool ¶
func (s *WorkflowSkill) ExecuteTool(name string, args map[string]interface{}) (string, error)
ExecuteTool runs a workflow tool by name with the given arguments.
func (*WorkflowSkill) Init ¶
func (s *WorkflowSkill) Init(deps skill.SkillDeps) error
Init stores the project directory for later use.
func (*WorkflowSkill) Name ¶
func (s *WorkflowSkill) Name() string
Name returns the skill identifier.
func (*WorkflowSkill) Prompts ¶
func (s *WorkflowSkill) Prompts() map[string]string
Prompts returns pre-rendered prompt templates for onboarding and handoff.
func (*WorkflowSkill) Tools ¶
func (s *WorkflowSkill) Tools() []*mcp.ToolDef
Tools returns the MCP tool definitions for workflow operations.