Skip to content

run, runbooks, and memory

asksh run <name> [key=val...] [--yolo]

Executes a discovered Markdown runbook deterministically without calling an LLM.

Argument / Flag Description
<name> Runbook name (from frontmatter name, filename stem, or RUNBOOK.md parent directory)
key=val Parameter assignments substituted into {{key}} placeholders
--yolo Auto-approve Ask and high-risk steps without prompting [y/N]

Deny steps and non-interactive Ask or high-risk steps (without --yolo) fail immediately.

asksh runbooks

Lists all discovered runbooks from ~/.config/asksh/runbooks/ and <project-root>/.asksh/runbooks/ with step counts, source paths, and descriptions.

asksh memory [list|set <key> <value>|rm <key>] [--global]

Reads or updates procedural memory in <project-root>/.asksh/memory.toml (or ~/.config/asksh/memory.toml when --global / -g is passed, or when running from $HOME).

Subcommand Description
list (default) Prints merged [project] and [global] entries
set <key> <value> Sets <key> to <value>
rm <key> Removes <key> from the target scope

File schemas

RUNBOOK.md

Discovered as top-level *.md or nested RUNBOOK.md under <config>/runbooks/ and <project-root>/.asksh/runbooks/:

---
name: greendale-check
description: Verify service health
params:
  - name: env
    description: Target environment
    default: staging
    required: false
steps:
  - title: Check health
    command: curl -fsS https://{{env}}.greendale.edu/health
    verify: test $? -eq 0
    rollback: echo "health check failed"
---

SKILL.md

Discovered recursively as SKILL.md under <config>/skills/ and <project-root>/.asksh/skills/:

---
name: study-notes
description: Short summary shown to the model
disable-model-invocation: false
---

memory.toml

[entries.deploy_branch]
value = "main"
updated_at = 2026-12-06T10:00:00Z