Workflow

From masharratt/claude-flow-novice · View interactive version

Workflow is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. The Workflow Codification skill provides edge case tracking and cost tracking capabilities for CFN skills. It captures execution failures, detects patterns, generates update proposals, and calculates

How to use this skill

Skill file

Workflow Codification Skill

Overview

The Workflow Codification skill provides edge case tracking and cost tracking capabilities for CFN skills. It captures execution failures, detects patterns, generates update proposals, and calculates ROI metrics.

Components

1. Edge Case Tracker (`track-edge-case.sh`)

Captures skill execution failures and generates update proposals for recurring issues.

Actions:

Usage:

./track-edge-case.sh --action record \
  --skill-name "cfn-coordination" \
  --skill-version "1.0.0" \
  --exit-code 1 \
  --input-params "task-id=123 timeout=30" \
  --error-message "Connection timeout"

2. Cost Tracking Engine (`track-cost-savings.sh`)

Logs skill executions and calculates ROI metrics.

Actions:

Usage:

./track-cost-savings.sh --action log \
  --skill-name "cfn-coordination" \
  --skill-version "1.0.0" \
  --execution-time-ms 150 \
  --exit-code 0 \
  --tokens-avoided 3000

3. Skill Update Generator (`generate-skill-update.sh`)

Generates comprehensive skill update proposals from edge cases.

Usage:

./generate-skill-update.sh \
  --skill-name "cfn-coordination" \
  --edge-case-hash "abc123..." \
  --occurrence-count 5

Database Schema

Database Location: ../../../../data/workflow-codification.db

Tables

  1. edge_cases - Stores edge case records
  2. skill_executions - Logs skill execution metrics
  3. roi_snapshots - Daily ROI summaries

Dependencies

Required

Installation

Ubuntu/Debian:

apt-get install sqlite3 bc coreutils

macOS:

brew install sqlite3 bc coreutils

Alpine:

apk add sqlite bash bc coreutils

Environment Variables

Documentation

Version

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.