action-queue

Sims-inspired task scheduling — queue actions, execute in order

181 stars

Best use case

action-queue is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sims-inspired task scheduling — queue actions, execute in order

Teams using action-queue should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/action-queue/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/action-queue/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/action-queue/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How action-queue Compares

Feature / Agentaction-queueStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sims-inspired task scheduling — queue actions, execute in order

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Action Queue

> *"Queue up what to do next. The Sims showed us the way."*

---

## What Is It?

**Action Queue** is The Sims-inspired task scheduling: instead of doing one thing at a time, you **queue up a sequence of actions** that execute in order.

While [return-stack](../return-stack/) tracks *where you've been*, action-queue tracks *what you're going to do*.

---

## The Sims Connection

In **The Sims**, you click multiple actions and they queue up:

```
Sim's Queue:
  1. Go to fridge     [executing]
  2. Get snack
  3. Eat snack
  4. Watch TV
  5. Go to bed
```

The Sim works through them in order. You can:
- **Add** more actions
- **Cancel** any action
- **Reorder** the queue
- **Insert** urgent actions at the front

**Objects push actions too!** When you try to eat, the fridge pushes "get food" onto the queue. The food pushes "prepare" and "cook". The stove pushes "serve". Each object dangles the next carrot.

MOOLLM does the same for agents and characters.

---

## The Food Chain Pattern

Objects guide you through multi-step processes by pushing actions:

```
> DO eat

Fridge intercepts:
  "You need food first."
  → pushes GET-FOOD to front

Queue: [GET-FOOD, EAT]

Food intercepts:
  "This needs preparation."
  → pushes PREPARE to front
  
Queue: [PREPARE, GET-FOOD, EAT]

Stove intercepts:
  "Needs cooking."
  → pushes COOK to front

Queue: [COOK, PREPARE, GET-FOOD, EAT]

Agent executes in order:
  1. COOK (at stove)
  2. PREPARE (at counter)
  3. GET-FOOD (from fridge)
  4. EAT (finally!)
```

**Dangling a carrot in front of a donkey.** Each object advertises what it needs, pushing prerequisites onto the queue. The agent surfs the possibility space of advertisements, guided step by step.

### Why This Works

- **No hardcoded recipes** — objects know their own prerequisites
- **Emergent behavior** — complex sequences from simple rules
- **Interruptible** — cancel anytime, queue adapts
- **Discoverable** — agent learns by trying
- **Adapts to context** — different appliances, different paths
- **Handles routing** — crowded kitchen? Find another way

### Routing Around Problems

```
> DO cook

Stove advertises COOK... but:
  "Blocked! Alice is using the stove."
  → Checks alternatives
  → Microwave advertises COOK (score: 70)
  → pushes USE-MICROWAVE instead

Queue: [USE-MICROWAVE, PREPARE, GET-FOOD, EAT]
```

If the kitchen is crowded:
```
Kitchen has 4 Sims blocking workspaces.
Counter: "Blocked by Bob"
Stove: "Blocked by Carol"  
Fridge: "Accessible!"

Agent routes around obstacles:
  → Wait for counter? (cost: time)
  → Use outdoor grill? (cost: distance)
  → Order takeout? (cost: money)
  
Highest-scored alternative wins.
```

**Emergent traffic flow.** No pathfinding algorithm needed — objects simply advertise availability, agents pick the best option. Crowded rooms naturally disperse as scores drop.

This is how The Sims creates rich behavior from simple object definitions.

---

## Commands

| Command | Effect |
|---------|--------|
| `DO action` | Add action to end of queue |
| `NEXT` | Execute next queued action |
| `QUEUE` | Show current queue |
| `URGENT action` | Insert at front of queue |
| `CANCEL n` | Remove action #n from queue |
| `CLEAR` | Empty the queue |
| `REORDER n m` | Move action #n to position #m |
| `PAUSE` | Stop executing, keep queue |
| `RESUME` | Continue executing queue |

---

## Example Session

```
> DO examine-workbench
Added: examine-workbench

> DO craft-tool
Added: craft-tool

> DO go-north
Added: go-north

> QUEUE
Action Queue:
  1. examine-workbench
  2. craft-tool
  3. go-north

> NEXT
Executing: examine-workbench
You examine the workbench. It has blueprints and tools.

> URGENT check-inventory
Inserted at front: check-inventory

> QUEUE
Action Queue:
  1. check-inventory    ← urgent
  2. craft-tool
  3. go-north
```

---

## Autonomous Execution

For autonomous agents, the queue runs automatically:

```yaml
# agent.yml
mode: autonomous
action_queue:
  - examine: hypothesis.yml
  - analyze: data/
  - write: findings.md
  - notify: user
  
execution:
  auto_advance: true
  pause_on_error: true
  pause_on_user_input: true
```

Agent works through queue until done, paused, or interrupted.

---

## Queue + Stack Together

**Return stack** and **action queue** complement each other:

| Return Stack | Action Queue |
|--------------|--------------|
| Where you've been | What you'll do |
| Past | Future |
| BACK to revisit | NEXT to advance |
| Navigation history | Task schedule |
| Saved contexts | Pending actions |

Together they form a complete **temporal model**:
- Stack = memory of the past
- Queue = intentions for the future
- Current = the present moment

---

## Compound Actions

Queue items can be compound:

```
> DO [go-to-library, find-book, read-chapter-1]
Added compound action (3 steps)

> QUEUE
Action Queue:
  1. [go-to-library, find-book, read-chapter-1]  (compound)
  2. write-summary
```

Compound actions expand when executed:

```
> NEXT
Expanding compound action...
Action Queue:
  1. go-to-library     [executing]
  2. find-book
  3. read-chapter-1
  4. write-summary
```

---

## Conditional Actions

Actions can have conditions:

```yaml
action_queue:
  - action: craft-tool
    if: has_materials
    
  - action: gather-materials
    if: not has_materials
    
  - action: test-tool
    after: craft-tool
```

The queue adapts based on state.

---

## Integration with Advertisements

Objects [advertise](../advertisement/) actions. The agent queues the best ones:

```
Agent enters workshop.

Objects advertise:
  workbench: CRAFT (90), EXAMINE (50)
  bookshelf: READ (70)
  door: EXIT (40)

Agent queues:
  1. CRAFT at workbench (highest score)
  2. READ at bookshelf (if time permits)
```

Advertisements suggest. Queue commits.

---

## Implementation

```yaml
# character.yml
name: researcher
location: ./lab

action_queue:
  - action: analyze-sample
    target: sample-A
    added: "2024-01-15T10:00:00"
    
  - action: write-notes
    target: notebook
    added: "2024-01-15T10:01:00"
    
  - action: report-findings
    target: user
    added: "2024-01-15T10:02:00"
    
queue_state:
  paused: false
  current_index: 0
  mode: manual  # or autonomous
```

---

## Dovetails With

- [Return Stack](../return-stack/) — Past complements future
- [Advertisement](../advertisement/) — Objects suggest, queue commits
- [Room](../room/) — Where actions happen
- [Speed of Light](../speed-of-light/) — Execute multiple actions per epoch
- [Coherence Engine](../coherence-engine/) — Orchestrates queue execution

---

## Protocol Symbol

```
ACTION-QUEUE
```

Invoke when: Scheduling sequences of actions, autonomous agent behavior.

See: [PROTOCOLS.yml](../../PROTOCOLS.yml#ACTION-QUEUE)

Related Skills

adr-decision-extraction

181
from majiayu000/claude-skill-registry

Extract architectural decisions from conversations. Identifies problem-solution pairs, trade-off discussions, and explicit choices. Use when analyzing session transcripts for ADR generation.

add-ws-action

181
from majiayu000/claude-skill-registry

Add a new outgoing WebSocket action with typed payload and API exposure

add-reaction

181
from majiayu000/claude-skill-registry

Slack メッセージにリアクションを追加する。「リアクション追加」「リアクションつけて」「👍つけて」「絵文字で反応」「リアクションで返信」「いいねして」「リアクション送って」などで起動。User Token があればユーザーとしてリアクション、なければ Bot としてリアクション。

github-actions

181
from majiayu000/claude-skill-registry

Create and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace.

actions-pattern

181
from majiayu000/claude-skill-registry

Garante que novas Actions sigam o padrão de classes actions reutilizáveis do Easy Budget.

actions-debugger

181
from majiayu000/claude-skill-registry

GitHub Actions のワークフロー実行エラーを調査し、原因を特定して解決策を提案する。「Actions エラー」「ワークフロー失敗」「CI が落ちた」「ビルド失敗」「テスト失敗」「Actions を調べて」「CI のエラーを見て」などで起動。失敗したジョブのログを分析し、具体的な修正方法を提示。

actions-cicd-practices

181
from majiayu000/claude-skill-registry

GitHub Actions and CI/CD best practices for automated testing, building, and deployment.

actionbook

181
from majiayu000/claude-skill-registry

This skill should be used when the user needs to automate multi-step website tasks. Activates for browser automation, web scraping, UI testing, or building AI agents. Provides complete action manuals with step-by-step instructions and verified selectors.

actionable-review-format-standards

181
from majiayu000/claude-skill-registry

Standardized output format for code reviews with severity labels, file:line references, and fix code snippets. Use when generating review reports that need consistent, actionable feedback structure.

actionable-alerting-runbook-design

181
from majiayu000/claude-skill-registry

Designing effective alerts and runbooks for incident response. PROACTIVELY activate for: (1) Creating alerting rules, (2) Writing runbooks, (3) Reducing alert fatigue, (4) On-call escalation setup, (5) Incident response procedures. Triggers: "alerting", "runbook", "on-call", "pagerduty", "incident", "alert fatigue", "escalation", "playbook"

action

181
from majiayu000/claude-skill-registry

Execute a small batch of conditional actions only after verifying they are safe and unused.

action-policy-coder

181
from majiayu000/claude-skill-registry

Use proactively for authorization with ActionPolicy. Creates policies, scopes, and integrates with GraphQL/ActionCable. Preferred over Pundit for composable, cacheable authorization.