Skip to content
Back to skills

Workflow

ASecurity

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.

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
databasesbashsqldatabasedocumentation

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add masharratt/claude-flow-novice --skill workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/masharratt-workflow/badge)](https://www.skillsdirectory.com/skills/masharratt-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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:**
- `record` - Record new edge case
- `query` - Query recurring edge cases
- `details` - Get edge case details
- `update-status` - Update edge case status

**Usage:**
```bash
./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:**
- `log` - Log skill execution
- `snapshot` - Generate daily ROI snapshot
- `ranking` - Query per-skill ROI ranking
- `projections` - Calculate monthly/annual projections
- `dashboard` - Export dashboard metrics

**Usage:**
```bash
./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:**
```bash
./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
- `bash` ≥4.0
- `sqlite3` ≥3.0 (command-line tool)
- `coreutils` (date, sha256sum, bc)

### Installation

**Ubuntu/Debian:**
```bash
apt-get install sqlite3 bc coreutils
```

**macOS:**
```bash
brew install sqlite3 bc coreutils
```

**Alpine:**
```bash
apk add sqlite bash bc coreutils
```

## Environment Variables

- `DB_PATH` - Database location (default: `../../../../data/workflow-codification.db`)
- `PROPOSALS_DIR` - Proposal output directory (default: `./proposals`)
- `RECURRENCE_THRESHOLD` - Edge case threshold (default: 3)
- `AI_COST_PER_MILLION` - AI cost per 1M tokens (default: 0.50)
- `SCRIPT_COST` - Script execution cost (default: 0.0001)

## Documentation

- **Edge Case Tracking:** `EDGE_CASE_TRACKING.md`
- **Cost Tracking:** `COST_TRACKING.md`

## Version

- **Current Version:** 1.0.0
- **Release Date:** 2025-11-15
- **Status:** Production Ready

Files in this skill

  • APPROVAL_WORKFLOW.md20.5 KB
  • COST_TRACKING.md15.9 KB
  • DEPLOY_QUICK_REFERENCE.md2.4 KB
  • EDGE_CASE_TRACKING.md11.1 KB
  • PROPAGATE_UPDATE_QUICK_REFERENCE.md9.9 KB
  • README_PHASE4.md11.9 KB
  • SKILL.md2.7 KB
  • approval-workflow.sh14.1 KB
  • deploy-approved-skill.sh15.3 KB
  • deploy-approved-skill.sh.backup-176339282015.6 KB
  • generate-skill-update.sh13.8 KB
  • lib/security-utils.sh5.6 KB
  • package.json914 B
  • propagate-skill-update.sh20.2 KB
  • propagate-skill-update.sh.backup-176339282020.4 KB
  • review-skill.sh17.6 KB
  • src/index.ts483 B
  • src/pattern-analyzer.ts15.9 KB
  • src/types.ts4.2 KB
  • templates/email-notification.txt4.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…