lifecycle

lifecycle is a skill for Claude Code, Codex from UnBergant/bergant-workflow. It costs 38 tokens per session (2,285 once invoked), scanned A, original, MIT.

A task workflow that records each stage of a coding job, checks required gates, and sends larger tasks to helper agents. It stores progress in a local state file.

In plain words
What is it for?
Use it to start tasks, view lifecycle status, move to the next stage, finish a stage, or recover interrupted work.
Why use it?
It prevents steps from being skipped and keeps task progress visible. It also gives each stage a defined point for user approval.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the bergant-workflow plugin — 2 skills, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/unbergant/bergant-workflow/lifecycle
Any agent
npx skills add UnBergant/bergant-workflow --skill lifecycle
Clone the repo
git clone --depth 1 https://github.com/UnBergant/bergant-workflow

Made for: Claude Code, Codex.

Or install bergant-workflow, the plugin that ships this one along with the rest of its 2 skills, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/unbergant/bergant-workflow/lifecycle.svg)](https://agentmods.dev/skills/unbergant/bergant-workflow/lifecycle)
Your own site
<a href="https://agentmods.dev/skills/unbergant/bergant-workflow/lifecycle"><img src="https://agentmods.dev/badge/skills/unbergant/bergant-workflow/lifecycle.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.02285
Opus 5 $0.00019 $0.01143
Sonnet 5 $0.00008 $0.00457
Haiku 4.5 $0.00004 $0.00229

Measured today against content hash 09e75da9c6f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lifecycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lifecycle/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lifecycle Orchestrator

Runs one slice to a merged PR. It does not need project-init to have run: on a project with no plan documents the scope comes from what the user described at start, and SCOPE is the gate that pins it down. Use project-init only when what to build has not been decided.

Routing

status (or no arguments): execute INLINE — read .lifecycle-state.json and display the status table directly. Do NOT launch an agent. See "Status display" section below.

This skill's directory (its reference files live here) — resolved at runtime: !echo ${CLAUDE_SKILL_DIR}

The plugin's scripts directory — resolved at runtime: !echo ${CLAUDE_PLUGIN_ROOT}/scripts

Both paths must be substituted into the agent prompt as literal absolute paths. Reference files are read as raw bytes: a ${CLAUDE_PLUGIN_ROOT} written inside steps.md arrives at the model unexpanded and runs as bash "/scripts/detect-project.sh", which does not exist.

skip-compact: execute INLINE. Do NOT launch an agent — the compact gate blocks agent launches, and this command exists to lift that block, so routing it through an agent means the only way out of the gate is itself gated.

Write the state with jq through Bash, which is the one tool the compact gate does not match:

jq '.awaitingCompact = false
    | .compactSkippedAt = (now | todate)
    | .compactSkippedBefore = (.currentStep // "unknown")' .lifecycle-state.json > .lifecycle-state.json.tmp \
  && mv .lifecycle-state.json.tmp .lifecycle-state.json

This is the single exception to the "always write state with the Write tool" rule below, and it exists only because Write is gated too. Run it only when the user asked for it in so many words. Then tell them the gate is lifted and which step it was lifted before.

Read the full file on GitHub · 143 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +55 lines 09e75da9c6f1
  2. 5d ago First seen · 88 lines · 38 tokens per session scan A c6e3faa8c6d6

Subscribe to this mod's changes

lifecycle is a skill published in the GitHub repository UnBergant/bergant-workflow (5 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 2,285 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

planflow

Draft a plan and get it approved as an editable flowchart in the user's browser before executing. Use when the user asks to plan a task with PlanFlow, or wants to review, edit, or approve a plan before any code changes are made.

davejj1530/planflow-greenlight · 53 tokens

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

youtube-producer

Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…

cbrock84/headcount · 86 tokens

interface-craft

Raises the visual and interaction quality of an interface — layout, hierarchy, type, spacing, density, and the details that separate a considered product from a generic one. Use this when a screen works but looks unfinished or default, when a layout feels crowded or arbitrary, when a page has no clear focal point, or…

cbrock84/headcount · 79 tokens