Module workflows

Module workflows 

Source
Expand description

Workflow management system for prompt templates and automation

This module provides a workflow management system that discovers, loads, and executes workflow files (markdown-based prompt templates) from the .gestura/workflows/ directory.

§Architecture

.gestura/workflows/
├── code-review.md         # Workflow for code review
├── bug-fix.md             # Workflow for bug fixing
└── feature-planning.md    # Workflow for feature planning

§Workflow File Format

Workflows are markdown files with optional YAML frontmatter:

---
description: Review code for best practices and potential issues
tags: [code, review, quality]
---

Please review the following code for:
- Code quality and best practices
- Potential bugs or edge cases
- Performance optimizations

§Usage

use gestura_core::workflows::WorkflowManager;

let manager = WorkflowManager::new();
let workflows = manager.list_workflows()?;
let content = manager.load_workflow("code-review")?;

Structs§

Workflow
A workflow represents a reusable prompt template
WorkflowInfo
Workflow metadata for listing (without loading full content)
WorkflowManager
Workflow manager for discovering and loading workflow files

Enums§

WorkflowError
Error type for workflow operations