Create epic

From CERTCC/Vultron · View interactive version

Create epic is an AI agent skill from the GitHub repository CERTCC/Vultron. Create a GitHub Epic issue for a priority group and wire existing leaf issues as its sub-issues. Uses the GitHub Epic issue type (via GraphQL) and the GraphQL addSubIssue mutation. Invoke this skill whenever a thematic group needs an Epic created or updated.

How to use this skill

Skill file

Skill: Create Epic

Create a GitHub Epic issue for a thematic group and link leaf issues as

sub-issues. This skill is the canonical way to create Epics to ensure

consistent use of the Epic issue type and sub-issue wiring.

Inputs

that is false when the Epic opens and true when it closes (PAD-02-030), e.g.

Core, wire and adapters depend on each other only in the allowed directions.

Name the audience as its subject when one is natural (PAD-02-031). Never a

feature name, an activity, a name: outcome form or an Epic: label, and no

ADR number or spec ID (PAD-02-032). See notes/epic-themes.md § "Epic Titles

and Bodies".

job, and no other line or section restates either one or the title

(PAD-02-034):

outcome is the consequence of the title's claim that a reader of the

theme notices, not the claim again (PAD-02-033);

together, with any mechanism, ADR numbers and spec IDs (PAD-02-038), e.g.

Design idea: each trigger records an outcome the caller can poll.

An Epic that create-issue calves with no user present also carries the

line <!-- auto-calved -->.

e.g. 428 439 429

Next, Later, Someday

notes/epic-themes.md. Pass a second only when EPIC_BODY has one line

naming both (PAD-02-015).

Workflow

Step 1 — Verify no existing open Epic for this theme

Search for open Epics with similar titles to avoid duplicates:

# `--limit 1000` is required: with no limit `gh` returns only 30 issues, and a
# truncated list is indistinguishable from a genuine no-match — which this step
# reads as "no Epic exists" and acts on by creating a duplicate (#3319).
gh issue list --repo CERTCC/Vultron \
  --state open \
  --limit 1000 \
  --json number,title,issueType \
  | python3 -c "
import json, sys
issues = json.load(sys.stdin)
epics = [i for i in issues if (i.get('issueType') or {}).get('name') == 'Epic']
for e in epics:
    print(f'  #{e[\"number\"]}: {e[\"title\"]}')
"

If a matching Epic already exists, skip Step 2 and proceed to Step 3.

Step 2 — Create the Epic issue via GraphQL

Use the bash helper script in this skill's directory. It runs the theme gate

first and creates nothing if the theme or the Theme: line is wrong, if the

title holds an ADR number or spec ID or starts with Epic:, or if the body has

no Design idea: line or one that restates the title or the Theme: outcome.

The gate checks form only; whether the title states the right claim is the

reviewer's call (calve-epics proposes it to the user). It then

creates the Epic with the correct Epic issue type and its theme label in one

call, and adds it to Project #24 with its Schedule via the shared

add-to-project.sh helper — so board IDs live in exactly one place:

EPIC_NUMBER=$(.agents/skills/create-epic/create_epic.sh \
  "${EPIC_TITLE}" "${EPIC_BODY}" "${SCHEDULE}" "${THEME}")
echo "Created Epic #${EPIC_NUMBER}"

Each leaf wired in Step 3 must carry a theme the Epic carries (PAD-02-017).

Step 3 — Link leaf issues as sub-issues

Use the manage-github-issue skill to wire each leaf issue as a sub-issue

of the Epic. All wiring is idempotent — already-linked issues are skipped.

.agents/skills/manage-github-issue/manage_github_issue.sh \
  --issue-number "${EPIC_NUMBER}" \
  --sub-issue <LEAF_1> \
  --sub-issue <LEAF_2> \
  --sub-issue <LEAF_3>

Step 4 — Leave the planning label to the workflow

Do not label the Epic. The epic-needs-planning workflow adds needs-planning

to an Epic with no sub-issues, or with an open, unblocked Concern or Idea child,

and removes it otherwise (hourly and on issue events). A label set by hand is

overwritten.

Step 5 — Return Epic number

echo "${EPIC_NUMBER}"

Constraints

a title free of IDs; the script refuses one without them. Epics take no

parent: they are never nested.

at runtime via .agents/skills/shared/board-id.sh (see

.agents/skills/shared/README.md). create_epic.sh resolves the repo node ID

and the Epic issue-type ID through it, and delegates scheduling to

.agents/skills/shared/add-to-project.sh.

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.