بنقرة واحدة
verify-mega
Verify MEGA ticket close gates — ensures all sub-tickets Done, PRs merged, live verification passed.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Verify MEGA ticket close gates — ensures all sub-tickets Done, PRs merged, live verification passed.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | verify-mega |
| description | Verify MEGA ticket close gates — ensures all sub-tickets Done, PRs merged, live verification passed. |
| argument-hint | CAB-XXXX | --all-done-7d |
Run all 5 MEGA Close Gates on a ticket (or audit all recently-closed MEGAs). Prevents false Dones on multi-phase tickets.
$ARGUMENTS is --all-done-7d: Audit mode — scan all MEGAs marked Done in last 7 days$ARGUMENTS is CAB-XXXX: Single mode — verify one MEGA ticketlinear.get_issue("CAB-XXXX", includeRelations=true)
Extract:
title — verify contains [MEGA] or has childrenchildren.nodes[] — list of sub-tickets with id, identifier, state.name, estimateestimate — total pointsIf no children → report: "CAB-XXXX is not a MEGA (no children). Use standard close flow."
linear.list_issues(
teamId: "<LINEAR_TEAM_ID>",
filter: { state: { name: { eq: "Done" } }, updatedAt: { gte: "<7 days ago>" } }
)
Filter results to only MEGAs (title contains [MEGA] or has children).
Run gates on each.
children.nodes.length > 0/decompose CAB-XXXX first."For each child ticket in Done state:
linear.list_comments(issueId: "<child_id>")
Check that at least one comment contains PR # or PR [#.
Check each child's state.name:
state.name == "Done" or state.name == "Canceled"CAB-1351: In Progress
CAB-1352: Todo
Based on the MEGA's component scope:
curl -s https://api.gostoa.dev/health → expect 200curl -s https://console.gostoa.dev or curl -s https://portal.gostoa.dev → expect 200curl -s https://mcp.gostoa.dev/health → expect 200curl -s https://docs.gostoa.dev → expect 200If automated verification is not possible, prompt the user: "Gate 3 requires manual verification. Please confirm the target is working: [endpoint/site]"
Check no child is stuck in non-terminal state:
## MEGA Verification: CAB-XXXX — [Title]
| # | Gate | Status | Detail |
|---|------|--------|--------|
| 0 | Decomposition | ✅/❌ | N sub-tickets |
| 1 | PR Evidence | ✅/❌ | N/M children have PRs |
| 2 | All Done | ✅/❌ | N/M children Done |
| 3 | Live Verification | ✅/❌ | endpoint status |
| 4 | No Stale Children | ✅/❌ | N stale |
**Verdict**: Go / Fix
linear.update_issue(id, state="Done")
linear.create_comment(issueId, body="MEGA completed — all 5 gates passed.\n\nSub-tickets:\n- CAB-1350: Done (PR #578)\n- CAB-1351: Done (PR #582)\n- CAB-1352: Done (PR #590)\n\nLive verification: ✅ [endpoint] responding")
MEGA-GATE-PASS | task=CAB-XXXX gates=5/5linear.create_comment(issueId, body="MEGA verification failed — X/5 gates passed.\n\nFailing gates:\n- Gate 1: CAB-1352 missing PR evidence\n- Gate 2: CAB-1352 still In Progress\n\nAction required: complete remaining work before closing.")
MEGA-GATE-FAIL | task=CAB-XXXX missing=<gate_numbers>## Weekly MEGA Audit — [date]
| MEGA | Points | Gates | Verdict | Action |
|------|--------|-------|---------|--------|
| CAB-1470 | 21 pts | 3/5 | Fix | Gate 1,2 failing |
| CAB-1490 | 13 pts | 5/5 | Go | Already correct |
Reopened: CAB-1470 (moved back to In Progress)
Force a full-file rewrite (Write) instead of patch (Edit) when Edit keeps failing or diff is large. Context rot mitigation — use when Edit has failed ≥2× on same file, or when estimated diff >30% of file size.
STOA PR Guardian — advisory three-axis review (ADR compliance, security, AI code smell) with binary GO/NO-GO verdict + confidence. Never approves, never blocks merge.
Analyze cycle capacity gap and propose backlog items to fill the sprint to ~80% of proven velocity.
Visual roadmap snapshot — theme progress, milestones, velocity. Zero new infra (Linear MCP + velocity.json).
Cycle-aware bidirectional sync between plan.md and Linear. Discovers all cycle tickets, detects drift, updates markers.
Debug GitHub Actions CI pipeline failures. Analyse les logs de workflow, identifie la cause racine et propose un fix.