Generate epics

From Fr-e-d/GAAI-framework · View interactive version

Generate epics is an AI agent skill from the GitHub repository Fr-e-d/GAAI-framework. Translate product intent or a PRD into a small set of outcome-driven Epics (3–7 max). Activate when starting a new product, adding a significant feature domain, or breaking down a PRD into actionable user outcomes.

How to use this skill

Skill file

Generate Epics

Purpose / When to Activate

Activate when:

Works with or without a PRD.


Process

  1. Read the Epic template at contexts/artefacts/epics/_template.epic.md before writing any Epic file.

CRITICAL — ID Collision Guard (MUST execute before assigning any Epic ID):

(path relative to the repository root). This script serialises allocation under an

exclusive flock, cross-references every backlog file (active.backlog.yaml,

blocked.backlog.yaml, archived done/*.yaml), existing epic and story artefact files and

the host-stable reservation ledger (shared across all local worktrees before any branch

merges), and

writes a reservation before returning. Never compute max+1 manually — the allocator

is the single authority for ID assignment. If the script is absent (bootstrapping a fresh

install before this allocator was delivered), fall back to the original scan-max pattern

as a degraded mode with a stderr warning.

Check the exit status and keep stderr visible (never 2>/dev/null): exit 3 means the

id could not be recorded on the shared reservation record and nothing was allocated. That

is not the "script absent" case, so do not fall back to scan-max. Follow

base.rules.md § Forbidden Patterns (allocator) instead.

contexts/artefacts/epics/{id}.epic.md. If it exists with different content,

STOP immediately — surface the conflict to the human.

to different epics because each did an independent scan-max on its own branch-isolated

backlog. The allocator fixes this by serialising under flock and recording reservations

in a host-stable ledger visible to all local sessions before any branch merges.

  1. Think in user outcomes, not features
  2. Keep Epics high-level and value-focused
  3. Avoid implementation detail
  4. Limit to 3–7 Epics maximum
  5. For each Epic, answer: "What meaningful user result will this create?"
  6. Set domain based on the Epic's primary intent (e.g., engineering, marketing, legal). Leave empty if not applicable.
  7. Output using the canonical Epic template

Outputs

Template: contexts/artefacts/epics/_template.epic.md

Produces files at contexts/artefacts/epics/{id}.epic.md.

Key sections per Epic:


Quality Checks


Non-Goals

This skill must NOT:

Epics are the bridge between vision and execution.

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.