# Lifecycle audit

> Lifecycle audit is an open-source agent skill for developer tools. Runs a black-box lifecycle smoke test of Mycelium hooks in Claude Code, Codex. It is available on Claude Code and Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex
- **Website:** https://github.com/arjunrajlaboratory/mycelium/tree/main/skills/lifecycle-audit
- **Repository:** https://github.com/arjunrajlaboratory/mycelium
- **GitHub stars:** 73
- **License:** MIT
- **Skill name:** lifecycle-audit
- **Collection:** https://github.com/arjunrajlaboratory/mycelium
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill drives a fresh host task through the Mycelium lifecycle to check whether its session hooks fire and behave as intended. It covers session start context injection, subagent start and stop handling, known-positive and near-miss negative command probes, a disposable file edit with cleanup, and a natural Stop that should be blocked until the living layer is updated and then produce a five-section handoff.

The workflow is staged to keep evidence clean: the agent records the installed plugin identity and a pre-run baseline, launches one task from the target root, and only inspects state after the natural Stop. Failures are sorted into categories such as artifact identity, host dispatch, hook logic, environment, agent compliance and inconclusive, so environment or compliance problems are not mislabeled as hook passes. Reference files supply the probe prompt, the audit protocol and host-specific notes for Antigravity IDE, App and CLI.

It expects a Mycelium plugin install, a host CLI such as Claude Code or Codex that can be inspected for flags, and python3 for any scripted steps. Scientific code and data in an analytical project are protected by a baseline and a prohibition on edits.

## When your agent uses it

> Run a black-box Mycelium lifecycle smoke test through a real Claude Code or Codex CLI task, or an Antigravity IDE, App, or CLI (agy) conversation. Use after plugin installation, hook, SessionStart, PostToolUse, Stop, activity tracking, handoff, or data-lineage changes; when automatic hooks appear not to fire; or before merging cross-host lifecycle work. Verify installed-build identity, natural dispatch, state transitions, positive and negative probes, and scientific-tree isolation. Do not use as a substitute for unit tests or for ordinary scientific analysis.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/arjunrajlaboratory/mycelium/tree/HEAD/skills/lifecycle-audit)
- [License: MIT](https://github.com/arjunrajlaboratory/mycelium/tree/HEAD/skills/lifecycle-audit)

## Features

- **Installed build verification:** Checks that the plugin files loaded by the host match the source candidate before the run.
- **Natural dispatch probes:** Triggers SessionStart, subagent and Stop hooks through a real host task rather than manual invocation.
- **Positive and negative probes:** Confirms a known command is caught while a near-neighbor command stays silent.
- **Stop enforcement check:** Verifies the first Stop is blocked until the living layer is updated and a compliant retry finalizes once.
- **Handoff structure check:** Validates the five-section handoff headings and nonblank bodies in order.
- **Scientific-tree isolation:** Diffs post-run state against a baseline to separate lifecycle changes from agent edits.

## Good for

- Test whether Mycelium hooks fire after installing or changing the plugin
- Diagnose why automatic hooks seem not to run in a Claude Code session
- Check lifecycle behavior in a Codex CLI task before merging hook changes
- Verify handoff and data-lineage state after a natural agent Stop
- Run the audit against an Antigravity IDE, App or agy conversation

## Install

### Claude Code

This skill ships in the `mycelium` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add arjunrajlaboratory/mycelium
/plugin install mycelium@mycelium
```

Or copy only this skill to `~/.claude/skills/lifecycle-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/arjunrajlaboratory/mycelium.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/lifecycle-audit &&
cp -R "$tmp/skills/lifecycle-audit" ~/.claude/skills/lifecycle-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/lifecycle-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/lifecycle-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/arjunrajlaboratory/mycelium.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/lifecycle-audit &&
cp -R "$tmp/skills/lifecycle-audit" ~/.agents/skills/lifecycle-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/lifecycle-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/lifecycle-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/arjunrajlaboratory/mycelium.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/lifecycle-audit &&
cp -R "$tmp/skills/lifecycle-audit" ~/.cursor/skills/lifecycle-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/lifecycle-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/arjunrajlaboratory/mycelium.git --path skills/lifecycle-audit
```

Or copy the folder to `~/.gemini/skills/lifecycle-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/lifecycle-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/arjunrajlaboratory/mycelium.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/lifecycle-audit &&
cp -R "$tmp/skills/lifecycle-audit" ~/.copilot/skills/lifecycle-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/lifecycle-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/arjunrajlaboratory/mycelium.git
```

Then copy `mycelium/skills/lifecycle-audit` into your agent's skills folder as `lifecycle-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Lifecycle audit be used?

After plugin installation, changes to hooks, SessionStart, PostToolUse, Stop, activity tracking, handoff or data-lineage, when automatic hooks appear not to fire, or before merging cross-host lifecycle work.

### Can Lifecycle audit replace unit tests or ordinary analysis?

No. The skill is a black-box integration audit and is explicitly not a substitute for unit tests or for ordinary scientific analysis.

### Does Lifecycle audit repair failures it finds?

No. The audit diagnoses first without repairing, so the observed state is not contaminated. A fix is handled afterward through a separate development skill with a regression test.

### Which hosts does Lifecycle audit cover?

Claude Code, Codex CLI, and Antigravity IDE, App and CLI (agy), each with its own reference notes for native events and evidence.

### How do I install Lifecycle audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/lifecycle-audit to use it in all your projects, or to .claude/skills/lifecycle-audit in one project. Or install the mycelium plugin, which includes it: /plugin marketplace add arjunrajlaboratory/mycelium, then /plugin install mycelium@mycelium.

### Does Lifecycle audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Lifecycle audit?

Claude Code and Codex. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Lifecycle audit?

The closest alternatives to Lifecycle audit are Develop, Maintain verification skill, Core, Automation audit ops and Agent runtime gateway smoke test.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Develop](https://ai-powered.com/skills/develop-arjunrajlaboratory): Develop is an open-source agent skill for developer tools.
- [Maintain verification skill](https://ai-powered.com/skills/maintain-verification-skill): Maintain verification skill is an open-source agent skill for developer tools.
- [Core](https://ai-powered.com/skills/core-arjunrajlaboratory): Core is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.
- [Agent runtime gateway smoke test](https://ai-powered.com/skills/agent-runtime-gateway-smoke-test): Agent runtime gateway smoke test is an open-source agent skill for developer tools.
- [Figure it out](https://ai-powered.com/skills/figure-it-out): Figure it out is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-arjunrajlaboratory): Review is an open-source agent skill for developer tools.
- [Config health](https://ai-powered.com/skills/config-health): Config health is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/lifecycle-audit
