scarnecchia/polyskills/jira-epic-state
Claude Code and agent skill by scarnecchia/polyskills
- community
Checking that the SKILL.md file is still in the repository.
Define and reconcile the portable .current-epic runtime state for Jira Epic execution in Polytoken. Use before bootstrapping, resuming, spawning task workers, merging task branches, closing an Epic, or handing the Epic to another runtime.
Install
npx vskill@latest install scarnecchia/polyskills/jira-epic-stateSKILL.md
The same SKILL.md was published earlier as scarnecchia/polyskills/jira-epic-state.
Jira Epic State
Use this skill whenever you inspect, create, reconcile, or update .current-epic/ for Jira Epic execution.
The state rule is:
A Polytoken session must be able to reconstruct the Epic run from.current-epic/plus git history.
Chat memory, todos, running job ids, and subagent claims are not durable truth. They are convenience state only.
Naming
Jira project keys such as ABC-73 identify Jira issues. Do not name Epic branches or worktrees abc-73; that shape reads like a task branch. Name Epic branches and worktrees with the Epic role:
When the Jira Epic key is not numeric, choose a short branch-safe slug that starts with epic- and records the Jira key in manifest.txt.
Directory Layout
The parent orchestrator works from the Epic worktree. The portable state lives in that Epic worktree:
Portable files:
manifest.txtdependencies.dotworkflow.dottask-state.jsonmerge-gate.jsonevents.logtask-<prefix>.mdplan-<prefix>.mdfindings-<scope>.jsonl, where<scope>is a task prefix such asA, a docs lane such asdocs-A, orepicfor final branch reviewdeferrals.jsonl, the durable register of every accepted deferral, accepted risk, out-of-scope decision, skipped test tier, or follow-up that is not fixed in the Epic branch before closeout. Every entry must have survived the plan deferral skeptic gate. Entries that were not skeptic-approved are invalid and must be removed (and the work done instead).
Runtime-local files:
- everything under
.current-epic/runtime/polytoken/
Do not delete runtime-local files during reconciliation. They are advisory evidence for the next Polytoken session.
Per-Task Context Bundles
Before spawning an implementor or task reviewer, copy the task's local contract into the task worktree:
The parent creates and updates .current-task/. Worker subagents may read it, but they must not treat it as the source of global coordination state. The parent remains the only writer of .current-epic/task-state.json, .current-epic/merge-gate.json, and .current-epic/events.log.
Manifest Contract
Write .current-epic/manifest.txt as plain text:
The task line schema is:
Do not encode task classes or concrete model names in manifest.txt. Epic task execution uses one standard review intensity for every task. Concrete Polytoken model choices belong in the orchestrator's subagent calls, .current-epic/runtime/polytoken/jobs.json, or the parent transcript.
Dependency Graph
dependencies.dot is Graphviz DOT. An edge A -> B means Task A must complete before Task B starts.
Build this graph from Jira issue links such as Blocks / is blocked by. If Jira contains contradictory dependency links, stop and surface the conflicting issue keys.
Use the graph, task-state.json, and git trailers to compute task eligibility. Do not rely on in-context memory.
Task State
task-state.json is the portable status checkpoint. It is advisory when it disagrees with git history. Git trailers win for completion.
Schema:
Allowed phase values:
pendingplanner-spawnedplan-authoredimplementor-spawnedin-progressawaiting-reviewreview-blockedawaiting-mergemergingcompletedblocked-failureplan-authored-halted
Skeptic gates and the orchestrator test gate do not have separate phase values; they run between existing phases (after review-clean, before the next phase) and hold the task in its current phase until they pass. Dynamic tasks appended by the orchestrator use phase: "pending" and are processed identically to original tasks.
When reconstructing missing state, derive task records from manifest.txt, dependencies.dot, existing plan-*.md files, merge-gate.json, and git log trailers.
Merge Gate
Use .current-epic/merge-gate.json to serialize task branch merges into the Epic branch:
The holder should be implementor-<prefix> or task-<prefix>. The merge gate is separate from the repository-level .merge-lock, which only protects final merges to main.
Grant order:
- Verify the holder is null.
- Write
merge-gate.jsonwith the new holder. - Update
task-state.jsonphase tomerging. - Append
merge-grantedtoevents.log.
Release order:
- Verify the task commit exists on the Epic branch with matching trailers.
- Update
task-state.jsontocompletedand record the commit. - Release the holder.
- Append
task-mergedtoevents.log.
Deferral Register
deferrals.jsonl is portable JSONL and is the durable source of truth for work that is consciously not fixed before Epic closeout. Chat messages, todos, Jira comments, and reviewer summaries are not enough. If the parent accepts a follow-up, skips a relevant test tier, narrows a task scope, carries an accepted risk, or decides not to fix a review finding in the Epic branch, it must append a record immediately. However, deferrals are only permitted when something is computationally impossible. Every deferral must survive the plan deferral skeptic gate (a general-purpose subagent with @mg:arch using hostile/skeptical prompting). The skeptic's verdict is binding. A deferral record that has not been skeptic-approved is invalid.
Required fields: schema_version, deferral_id, created_at, scope, kind, severity, summary, reason, operator_decision, skeptic_approved, and status. When skeptic_approved is true, include skeptic_verdict with the skeptic's reasoning. Use stable deferral_id values and append updates rather than rewriting history. Allowed status values are open, closed, and superseded. Allowed kind values include accepted-risk, scope-deferral, test-tier-skipped, docs-deferral, follow-up, and operator-decision. Critical/high deferrals require an explicit operator decision note; do not invent approval. A deferral with skeptic_approved: false or missing skeptic_approved is invalid and the work must be done instead.
At closeout, every open deferral must be surfaced in the Jira summary and final operator message. If an open deferral is discovered during reconciliation but is not in deferrals.jsonl, append it before continuing.
Events Log
events.log is JSONL. Append one line per state transition:
Use this event vocabulary when possible:
bootstrap-startedbootstrap-completedplan-spawnedplan-authoredimplementor-spawnedimplementation-startedreview-spawnedreview-completedmerge-requestedmerge-grantedtask-mergedtask-blockedruntime-handoffclosing-startedclosing-completed
The log is audit evidence, not the current-state source of truth.
Commit Trailers
Every task merge commit on the Epic branch must include Jira keys:
Task completion is true only when the Epic branch contains a commit between Base-branch..HEAD with the matching Task: trailer. If task-state.json says completed but no matching trailer exists, mark the task blocked and surface the corruption.
Epic-level fix commits made during closeout include only the Epic trailer:
Reconciliation Procedure
When bootstrapping, resuming, or handing off:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.polytoken/skills/jira-epic-state/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scarnecchia/polyskills/jira-epic-state)