template

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package template provides structured task templates and validation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImproveDescription

func ImproveDescription(title, description string) string

ImproveDescription generates an improved version of a vague task description

Types

type TaskTemplate

type TaskTemplate struct {
	Title              string   `json:"title"`
	Description        string   `json:"description"`
	TargetFiles        []string `json:"target_files,omitempty"` // Specific files to modify
	Components         []string `json:"components,omitempty"`   // Specific components
	Action             string   `json:"action"`                 // create, fix, update, refactor, test
	AcceptanceCriteria []string `json:"acceptance_criteria,omitempty"`
	Context            string   `json:"context,omitempty"` // Additional context
}

TaskTemplate defines the structure for high-quality tasks

type ValidationError

type ValidationError struct {
	Field       string   `json:"field"`
	Message     string   `json:"message"`
	Suggestions []string `json:"suggestions,omitempty"`
}

ValidationError represents a validation error with suggestions

func Validate

func Validate(title, description string) []ValidationError

Validate checks if a task meets quality standards

Jump to

Keyboard shortcuts

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