agent-state-machine SKILL.md skillA

agent-state-machine from aka-kika/akakika-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add aka-kika/akakika-skills/agent-state-machine@git:20260620.bb2e91d

Pins git:20260620.bb2e91d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
aka-kika/akakika-skills
Path
skills/ai-agents/agent-state-machine/SKILL.md
Versions recorded
2
Latest version
git:20260620.bb2e91d, committed Jun 20, 2026
First version recorded
Jun 20, 2026
Size
7,197 bytes
Repository stars
11
License
MIT

Use when designing or implementing states for AI agent tasks, background jobs, local model runs, queues, and notifications — one shared set of states, only legal transitions, and a recovery path out of every failure.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Agent State Machine

Model every agent / task / run with **one shared state machine**: a fixed set of states, only the transitions that are legal between them, and a recovery path out of every failure or wait. This kills the most common agent-UX bug — random status strings invented per screen.

## When to use

- Active runs, task queues, AI generation, local model jobs
- Agent progress, notifications, error recovery
- Retry / stop / cancel behavior and "needs review" states

## Core rule

Agent UX needs clear **states**, legal **transitions**, and **recovery** paths. Do not invent random labels per screen.

## State vocabulary

```
Draft
Queued
Starting
Thinking
Running
Waiting
Blocked
Paused
Cancelling
Cancelled
Failed
Completed
Needs Review
Archived
```

## State meanings

```
Draft        Created but not ready to run
Queued       Ready and waiting
Starting     Preparing environment/model/files
Thinking     Planning/reasoning before action
Running      Executing work
Waiting      Waiting for external service/user/system
Blocked      Cannot continue without user action
Paused       Temporarily stopped, can resume
Cancelling   Stop requested, cleanup in progress
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add aka-kika/akakika-skills/agent-state-machine@sha256:a32053706dc9dad2

The line at the top of this page pins the label git:20260620.bb2e91d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kqw4xbemytsirwmv.svg)](https://markdownregistry.com/a/art_kqw4xbemytsirwmv)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Jun 20, 2026.

versioncommittedcommitsizeaudit
git:20260620.bb2e91d latest2026-06-20 bb2e91d 7,197 BA view · diff
git:20260620.d4b30792026-06-20 d4b3079 7,229 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7197 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

aka-kika/akakika-skills · 11 stars · license MIT · pushed 2026-09-12 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kqw4xbemytsirwmv
GET https://markdownregistry.com/api/v1/resolve?ref=aka-kika/akakika-skills/agent-state-machine
GET https://markdownregistry.com/api/v1/blob/a32053706dc9dad294caa4edfabd399f8d0bd44a9b34768a474ee2baaf5eee46

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from aka-kika/akakika-skills

agent-starter-pack SKILL.md skill
aka-kika/akakika-skills · skills/ai-agents/agent-starter-pack/SKILL.md · Use when creating a new project folder, starter pack, app scaffold, or agent-ready workspace — AGENTS.md, README…
git:20260620.bb2e91d · audit A · 11 stars
local-ai-ollama SKILL.md skill
aka-kika/akakika-skills · skills/ai-agents/local-ai-ollama/SKILL.md · Use when integrating an app with local AI models through Ollama — connection checks, model listing/selection…
git:20260620.bb2e91d · audit B · 11 stars
apple-hig-command-palette SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-command-palette/SKILL.md · Use when designing, reviewing, or implementing a command-palette / ⌘K layer for an Apple-platform app — keyboard-first…
git:20260909.fbab501 · audit A · 11 stars
apple-hig-empty-states SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-empty-states/SKILL.md · Use when designing or implementing empty, first-run, no-result, offline, error, or waiting states in Apple-platform…
git:20260620.ea86eb3 · audit A · 11 stars
apple-hig-feedback-status SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-feedback-status/SKILL.md · Use when designing or implementing feedback, status, progress, alerts, errors, success states, and live activity…
git:20260620.bb2e91d · audit B · 11 stars
apple-hig-inspectors SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-inspectors/SKILL.md · Use when designing, reviewing, or implementing an Inspector panel for an Apple-platform app — contextual selected-item…
git:20260909.fbab501 · audit A · 11 stars
apple-hig-macos-window-layout SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-macos-window-layout/SKILL.md · Use when designing or implementing the overall macOS app window shell — titlebar, toolbar, sidebar, content, inspector…
git:20260620.ea86eb3 · audit A · 11 stars
apple-hig-search-filtering SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-search-filtering/SKILL.md · Use when designing or implementing search, filtering, sorting, query bars, and result states in Apple-platform apps —…
git:20260620.ea86eb3 · audit A · 11 stars
apple-hig-settings SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-settings/SKILL.md · Use when designing, reviewing, or implementing Settings/Preferences for Apple-platform apps — what belongs in Settings…
git:20260620.bb2e91d · audit B · 11 stars
apple-hig-sf-symbols SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-sf-symbols/SKILL.md · Use when choosing, reviewing, or implementing SF Symbols in an Apple-platform app — picking meaningful symbols, keeping…
git:20260620.d4b3079 · audit A · 11 stars
apple-hig-sidebars SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-sidebars/SKILL.md · Use when designing, reviewing, or implementing a sidebar for an Apple-platform app — top-level navigation only, grouped…
git:20260620.d4b3079 · audit A · 11 stars
apple-hig-toolbars SKILL.md skill
aka-kika/akakika-skills · skills/apple-hig/apple-hig-toolbars/SKILL.md · Use when designing, reviewing, or implementing Apple-platform toolbars — current-screen actions vs sidebar navigation…
git:20260620.d4b3079 · audit A · 11 stars

Every file in aka-kika/akakika-skills

Browse by kind, by grade A, or by owner.