Install
openclaw skills install operational-frameworkA disciplined, reproducible workflow for AI agents to log decisions, create rollback snapshots, and generate briefings for any change or feature implementation.
openclaw skills install operational-frameworkA disciplined approach to implementing changes with full traceability.
<workspace>/
├── decisions/ # Decision logs (JSON per day)
│ └── <date>.json # Example: 2026‑05‑08.json
├── rollbacks/ # Snapshot directories
│ └── <timestamp>/ # Example: 2026‑05‑08_2005/
├── briefings/ # Case‑study markdown files
│ └── <date>.md # Example: 2026‑05‑08.md
└── TODO.md # Persistent task list
Replace <workspace> with the root of your OpenClaw workspace (usually ~/.openclaw/workspace).
Log each major decision before you start changing anything. Use a simple JSON schema:
{
"id": "dec_<date>_<seq>",
"timestamp": "<ISO‑8601>",
"title": "<short description>",
"context": "<why this decision matters>",
"options_considered": ["<opt1>", "<opt2>", "<opt3>"],
"chosen": "<selected option>",
"reasoning": "<rationale>",
"expected_outcome": "<what success looks like>",
"risk_mitigation": "<how to handle failure>",
"status": "pending|implemented|reverted"
}
How to log:
decisions/ (e.g., 2026-05-08.json)./decide "<title>" --context "<ctx>" --options "opt1|opt2|opt3" --chosen "opt2" --reasoning "<reason>"
Replace placeholders with your actual values.
Take a lightweight snapshot before you modify anything. The snapshot can be a simple copy of files or a git commit.
Typical workflow:
2026-05-08_2005).rollbacks/<name>/.Example (shell‑style, adapt to your environment):
# Create snapshot directory
mkdir -p rollbacks/2026-05-08_2005
# Copy files you care about (or the whole workspace)
cp -r decisions rollbacks/2026-05-08_2005/
cp -r briefings rollbacks/2026-05-08_2005/
# ... add other paths as needed
Listing snapshots:
ls -1 rollbacks/
Restoring:
cp -r rollbacks/2026-05-08_2005/* <workspace>/
The exact commands can be wrapped in a script for convenience.
# Implementation Briefing: [Title]
**Date:** YYYY-MM-DD
**Decision ID:** dec_YYYY-MM-DD_XXX
## Context
[What triggered this]
## Decision
[What was decided and why]
## Implementation
[How it was implemented]
## Outcome
[Success/failure with evidence]
## Lessons Learned
- What worked well
- What would do differently
- Patterns to propagate
## Rollback Point
[Reference to snapshot if needed]
Below are illustrative commands you can bind to your own CLI or script. They are not built‑in OpenClaw commands, but they show the typical flow.
| Action | Example Shell / Pseudo‑Command |
|---|---|
| Log decision | echo '{...}' >> decisions/$(date +%F).json |
| Create snapshot | ./snapshot.sh <name> (your wrapper script) |
| List snapshots | ls -1 rollbacks/ |
| Restore snapshot | ./restore.sh <name> |
| Generate briefing | ./brief.sh <decision‑id> |
| Open TODO | vim TODO.md |
Feel free to adapt these to your preferred tooling (bash, Python, etc.).
Maintain TODO.md in workspace root:
## 2026-05-08 Implementation Session
### Active
- [ ] Decision: Implement X
- [ ] Snapshot: AGENTS.md
### Completed
- [x] Decision: Add memory recall
- [x] Implemented: 2026-05-08
- [x] Briefing: briefings/2026-05-08.md
This framework integrates with: