workflow

package
v1.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package workflow provides prompt templates for onboarding and session handoff.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL