stack
Stack
Use this skill as the thin launcher and operator guide for the standalone prompt-stack
runtime owned by the Leviathan plugin at
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack.
Do not reimplement runtime behavior here. Do not edit plugin files unless the task explicitly targets the plugin. This wrapper exists to teach agents how to call the runtime correctly.
When To Use
Use this skill when the request is about:
- running a named prompt stack
- listing or inspecting available stacks
- creating or advancing a prompt-stack session
- recording step output back into the runtime
- checking prompt-stack session status or validation
If the task is Leviathan-specific and tied to an active $work handoff, use that handoff
as the planning source of truth and use this skill only for the execution-plane prompt-stack loop.
Runtime Surface
Preferred execution path:
cd /Users/jean-patricksmith/digital/leviathan
bun plugins/prompt-stack/src/cli.ts list
Core commands:
bun plugins/prompt-stack/src/cli.ts list [--project-dir PATH] [--catalog PATH]
bun plugins/prompt-stack/src/cli.ts show <stack-id> [--project-dir PATH] [--catalog PATH]
bun plugins/prompt-stack/src/cli.ts init --stack <stack-id> [--project-dir PATH] [--catalog PATH] [--flow PATH]
bun plugins/prompt-stack/src/cli.ts next --session <session-id> [--project-dir PATH]
bun plugins/prompt-stack/src/cli.ts record --session <session-id> --step <step-id> --report <path> [--project-dir PATH]
bun plugins/prompt-stack/src/cli.ts status --session <session-id> [--project-dir PATH]
bun plugins/prompt-stack/src/cli.ts validate --session <session-id> [--project-dir PATH]
Important runtime behavior:
- Session state is written under
<project>/.lev/steering/sessions/. showreturns stack metadata only. It does not reveal future prompt bodies.nextreveals only the active step prompt.recordadvances the session using the report file you provide.validatechecks the session lifecycle after execution.
Minimal Workflow
- Discover the available stacks.
cd /Users/jean-patricksmith/digital/leviathan
bun plugins/prompt-stack/src/cli.ts list
- Inspect one stack without exposing hidden prompts.
bun plugins/prompt-stack/src/cli.ts show work-deepen
- Create a session against the target project.
bun plugins/prompt-stack/src/cli.ts init \
--stack work-deepen \
--project-dir /absolute/project/path
- Reveal the active step.
bun plugins/prompt-stack/src/cli.ts next \
--session <session-id> \
--project-dir /absolute/project/path
- Save the step output to a report file, then record it.
bun plugins/prompt-stack/src/cli.ts record \
--session <session-id> \
--step <step-id> \
--report /absolute/project/path/.lev/pm/reports/<report>.md \
--project-dir /absolute/project/path
- Check progress and validate the finished session.
bun plugins/prompt-stack/src/cli.ts status \
--session <session-id> \
--project-dir /absolute/project/path
bun plugins/prompt-stack/src/cli.ts validate \
--session <session-id> \
--project-dir /absolute/project/path
Validation Gates
Step output validation may reference .lev/validation-gates.yaml gates when
the stack operates on entities with spec invariants.
Operator Notes
- Prefer absolute
--project-dirand--reportpaths when calling the CLI from outside the repo root. - Discover stack ids with
listinstead of assuming names. - If the stack session is part of an active
$workstream, keep planning and decisions in the active handoff and usestackonly for the execution-plane prompt loop. - Record stack step output into
.lev/pm/reports/when the session feeds a workstream. - After
recordorvalidate, return to the active handoff and update continuity there if the session changed the plan, decisions, or evidence. - If the task needs subagents, follow the contract in
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack/references/subagent-contract.md. - Keep the wrapper thin. Runtime ownership stays with
plugins/prompt-stack.
Optional FlowMind Path
The standalone plugin CLI is the primary runtime.
If you are explicitly validating or dogfooding the optional FlowMind path, the plugin-owned scaffold is:
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack/flows/prompt-stack.flow.yaml
Do not treat the FlowMind path as the default execution surface unless the task explicitly calls for it.
References
- Runtime CLI:
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack/src/cli.ts - Stack catalog:
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack/prompts/prompt-stack.prompts.yaml - Runtime contract:
/Users/jean-patricksmith/digital/leviathan/plugins/prompt-stack/references/subagent-contract.md - Active work handoffs:
/Users/jean-patricksmith/digital/leviathan/.lev/pm/handoffs/
More from lev-os/agents
agent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
14research
Use when any research, search, or information gathering is needed.
13lev-design
|
12work
|
11lev-intake
|
11lev
|
10