Skip to main content
prompt CX Codex GP ChatGPT

agent-run.lifecycle — Claude Code prompt: what it does, how to install

agent-run.lifecycle instructs an agent to build a structured lifecycle diagram for an agent run using the Archify workflow.

Apache-2.0 ★ 98,599 updated 2026-10-25

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/agent-run.lifecycle.md
Open on GitHub

What agent-run.lifecycle does

This prompt tasks the model with authoring a typed JSON diagram spec under the showcase quality profile. The state machine must reflect ordered stages: queued, planning, execution, review, and terminal completion. It requires modeling interruptions, recoverable execution failures, user approval cancellation, and blocked reviews that expire.

The resulting candidate must be written directly to benchmark-candidate.json in the project root without modifying neighboring files. If shell access is available, the agent is directed to validate and repair the JSON using Archify CLI. Without the local Archify CLI installed, candidate self-repair cannot run before export.

What it helps with

  • structure state transitions for an autonomous agent run
  • map human approvals, review timeouts, and retry flows into JSON
  • produce a benchmark diagram payload for Archify
  • isolate terminal outcomes from paused execution states

Example prompts for the agent

  • Run agent-run.lifecycle to generate the run lifecycle diagram into benchmark-candidate.json.
  • Build a typed JSON lifecycle spec targeting the showcase profile with Archify.
  • Create the agent run diagram and validate it with Archify CLI.

How to install agent-run.lifecycle

Manually: put the files in place

.claude/commands/agent-run.lifecycle.md

Questions about agent-run.lifecycle

How to install agent-run.lifecycle in Claude Code?

Save the prompt definition to .claude/commands/agent-run.lifecycle.md inside your workspace.

What does agent-run.lifecycle do?

It guides an LLM to generate a lifecycle state diagram JSON file for Archify, covering execution stages and failure states.

Which output file does the prompt target?

The model writes its final diagram spec directly to benchmark-candidate.json at the repository root.

Source text

agent-run.lifecycle.md · Apache-2.0
# Agent-run lifecycle

Use the Archify skill in this repository to create a lifecycle diagram for an agent run. Show the main ordered phases from queued through planning, execution, review, and completion. Execution may pause for human approval or fail recoverably. Review may block while waiting for input. A blocked run may expire, and a waiting approval may be cancelled by the user. Terminal exits must remain distinct from active and waiting states.

Author a fresh typed JSON diagram specification targeting the `showcase` quality profile. Choose your own stable internal IDs and layout. Keep active work, interruptions, recovery, and terminal outcomes legible. Use the bundled Archify CLI to validate and repair the candidate when shell access is available. The external harness will independently validate the frozen candidate.

Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.

© tt-a1i · Apache-2.0 · tt-a1i/archify

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set10

The whole set →
cache-miss.sequence cache-miss.sequence drives the Archify skill to build a sequence diagram for a dashboard request that misses cache in Redis and falls through to PostgreSQL. CX Codex GP ChatGPT ★ 98,599repo stars web-runtime.architecture web-runtime.architecture — a prompt for generating a production web architecture JSON diagram using Archify and saving it directly to benchmark-candidate.json. CX Codex GP ChatGPT ★ 98,599repo stars product-analytics.dataflow This prompt guides Archify through a product analytics data-flow diagram, from web and mobile events to dashboards and a model, with a distinct path for consent-gated identity data. CX Codex GP ChatGPT ★ 98,599repo stars agent-tool-call.workflow agent-tool-call.workflow — a prompt for building a workflow diagram where an AI agent calls tools with human approval gates. CX Codex GP ChatGPT ★ 98,599repo stars archify-review The archify-review skill weighs issues, pull requests, and code by value, cost, and impact. Use it for triage, change reviews, and maintenance decisions. CX Codex +1 ★ 98,599repo stars simplify-codebase simplify-codebase — a skill that audits a codebase for accidental complexity, then removes dead code, duplicated state or redundant layers once each cut is backed by evidence. CX Codex +1 ★ 98,599repo stars archify-tuning archify-tuning guides tuning and evaluation workflows for Archify diagram generation to improve visual layout and cut down repair cycles. CX Codex +1 ★ 98,599repo stars test-value The test-value skill helps select tests by risk, spot duplicate coverage, and investigate flaky checks. Use it during implementation, audits, or review before a commit. CX Codex +1 ★ 98,599repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open