Cfn epic parser

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

Cfn epic parser is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Convert markdown epic documents into structured JSON configs for MDAP or CFN Loop execution. Use when parsing epic documents, validating epic structure, or generating execution configs from planning docs.

How to use this skill

Skill file

CFN Epic Parser

Overview

The cfn-epic-parser skill converts natural language epic documents written in markdown format into structured JSON configurations suitable for execution in either MDAP or CFN Loop modes.

Pipeline context: The maxTaskSize: 50, consensusThreshold: 0.90, and gateThreshold: 0.95 values below are CLI-mode / MDAP defaults, not the only execution path. The current default execution path is cfn-loop-task (task mode, no Redis). Planning artifacts now come from cfn-megaplan, which emits planning/*.md (RESEARCH, SPEC, DECISIONS, DATA, ARCH, UX, DESIGN, TEST, OPS, MEGAPLAN); this parser consumes those markdown epics.

Usage

Basic Usage

# Parse with auto-detected mode
$HOME/.claude/skills/cfn-epic-parser/parse.sh planning/my-epic.md

# Force MDAP mode
$HOME/.claude/skills/cfn-epic-parser/parse.sh planning/my-epic.md --mode mdap

# Force CFN Loop mode with output file
$HOME/.claude/skills/cfn-epic-parser/parse.sh planning/my-epic.md --mode cfn-loop --output epic-config.json

# Validate epic structure without generating output
$HOME/.claude/skills/cfn-epic-parser/parse.sh planning/my-epic.md --validate

# Enable verbose logging
$HOME/.claude/skills/cfn-epic-parser/parse.sh planning/my-epic.md --verbose

Command Line Options

Mode Descriptions

Epic Document Format

The parser expects markdown files with the following structure:

Required Sections

# Epic Title

**Epic ID**: `unique-epic-identifier`
**Status**: [Not Started | In Progress | Completed]
**Estimated Duration**: [X weeks]
**Owner**: [Team or individual]
**Priority**: [Low | Medium | High]

## Epic Description

Detailed description of the epic goals and scope.

## Strategic Goals

1. Goal one description
2. Goal two description
3. ...

## Phases (for CFN Loop)

### Phase 1: Phase Name
**Status**: Not Started
**Duration**: X weeks
**Dependencies**: [None | Phase X, Phase Y]

Description of phase goals.

### Phase 2: Phase Name
...

Optional Fields

Output Format

MDAP Mode Output

{
  "executionMode": "mdap",
  "metadata": {
    "epicId": "unique-identifier",
    "name": "Epic Title",
    "description": "Epic description",
    "status": "not_started",
    "priority": "high",
    "estimatedDuration": "10 weeks",
    "owner": "Team Name"
  },
  "goals": ["Goal 1", "Goal 2", "Goal 3"],
  "tasks": [],
  "configuration": {
    "maxTaskSize": 50,
    "atomicExecution": true,
    "contextInjection": "pre-loaded"
  }
  // maxTaskSize 50 is the MDAP default; cfn-loop-task is the default execution path.
}

CFN Loop Mode Output

{
  "executionMode": "cfn-loop",
  "metadata": { ... },
  "phases": [
    {
      "phaseId": "phase-1",
      "name": "Phase Name",
      "description": "Phase description",
      "status": "not_started",
      "estimatedDuration": "5 weeks",
      "dependencies": []
    },
    ...
  ],
  "goals": ["Goal 1", "Goal 2", "Goal 3"],
  "configuration": {
    "loopMode": "standard",
    "consensusThreshold": 0.90,
    "gateThreshold": 0.95
  }
}

Testing

Run the test suite to verify parser functionality:

$HOME/.claude/skills/cfn-epic-parser/test-parser.sh

The test suite validates:

Dependencies

Examples

Parse Marketing Epic

$HOME/.claude/skills/cfn-epic-parser/parse.sh \
  planning/global/marketing/EPIC_OVERVIEW.md \
  --mode cfn-loop \
  --output marketing-epic-config.json

Validate Epic Structure

$HOME/.claude/skills/cfn-epic-parser/parse.sh \
  planning/my-new-epic.md \
  --validate --verbose

Generate MDAP Configuration

$HOME/.claude/skills/cfn-epic-parser/parse.sh \
  planning/simple-feature-epic.md \
  --mode mdap \
  --output simple-feature-config.json

Error Handling

The parser provides clear error messages for:

Integration with CFN Workflows

The generated JSON configurations can be used by:

Best Practices

  1. Consistent Epic IDs: Use lowercase with hyphens (e.g., user-authentication-v2)
  2. Clear Phase Dependencies: Explicitly list dependencies in each phase
  3. Specific Goals: Use numbered lists for strategic goals
  4. Descriptive Phases: Include duration and clear deliverables
  5. Status Tracking: Keep status updated for accurate reporting
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.