clawchief-openclaw-chief-of-staff
```markdown
What this skill does
```markdown
---
name: clawchief-openclaw-chief-of-staff
description: Turn OpenClaw into a founder/chief-of-staff operating system with Todoist-backed tasks, Gmail/Calendar automation, and deterministic cron workflows
triggers:
- set up clawchief
- configure openclaw chief of staff
- automate my daily tasks with clawchief
- integrate todoist with openclaw
- set up executive assistant workflow
- clawchief cron jobs
- migrate clawchief v2 to v3
- clawchief helper scripts
---
# clawchief: OpenClaw Chief of Staff Operating System
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
`clawchief` is an opinionated starter kit that turns [OpenClaw](https://openclaw.dev) into a founder/chief-of-staff OS. It separates prioritization policy, resolution policy, live task state (Todoist), and recurring orchestration (cron) into discrete, composable layers.
---
## Architecture Overview
```
clawchief/
├── priority-map.md # What matters and why
├── auto-resolver.md # How to resolve ambiguous decisions
├── meeting-notes.md # Meeting-note ingestion policy
├── location-awareness.md # Place-based task curation
├── knowledge-compiler.md # System compilation / linting policy
├── task-system-acceptance.md
├── scripts/
│ ├── todoist_cli.py # Live task system interface
│ ├── ea_gmail.py # Gmail helper
│ ├── ea_calendar.py # Calendar helper
│ ├── sheet_helper.py # Google Sheets helper
│ └── bd_outreach.py # Business development outreach
└── tests/
skills/
├── task-system-contract/ # Shared task rules
├── executive-assistant/
├── business-development/
├── daily-task-manager/
└── daily-task-prep/
workspace/
├── HEARTBEAT.md # Thin recurring orchestration doc
├── TOOLS.md # Local environment details
└── memory/
└── meeting-notes-state.json
cron/
└── jobs.template.json
```
**Core design principle:** live task state lives in Todoist, not in markdown files. Google workflows go through `gws`-backed helper scripts, not raw API calls.
---
## Installation
### Prerequisites
- OpenClaw installed and configured
- `gws` (Google Workspace CLI) set up
- Todoist account with API token
- Python 3.10+
### Step-by-step
```bash
# 1. Clone the repo
git clone https://github.com/snarktank/clawchief
cd clawchief
# 2. Copy skills into OpenClaw
cp -r skills/* ~/.openclaw/skills/
# 3. Copy source-of-truth and workspace files
cp -r clawchief/ ~/.openclaw/workspace/clawchief/
cp -r workspace/ ~/.openclaw/workspace/
# 4. Set your Todoist API token
echo 'TODOIST_API_TOKEN=your_token_here' >> ~/.openclaw/.env
# or export it in your shell profile:
export TODOIST_API_TOKEN="your_token_here"
# 5. Customize your environment
$EDITOR ~/.openclaw/workspace/TOOLS.md
# 6. Set up gws for Google Workspace access
# Follow SETUP-GWS.md in the repo
# 7. Create cron jobs from the template
cat cron/jobs.template.json # review, then install with your cron manager
# 8. Run the install checklist
cat INSTALL-CHECKLIST.md
```
---
## Key Scripts
### `todoist_cli.py` — Live Task Interface
All live task operations go through this script. It is the only canonical interface to the task system.
```python
# clawchief/scripts/todoist_cli.py usage patterns
import subprocess
def run_todoist(args: list[str]) -> str:
result = subprocess.run(
["python", "clawchief/scripts/todoist_cli.py"] + args,
capture_output=True, text=True
)
return result.stdout
# List tasks in a project
print(run_todoist(["list", "--project", "Work"]))
# Add a task
print(run_todoist(["add", "--content", "Review Q2 OKRs", "--due", "today", "--priority", "p1"]))
# Complete a task by ID
print(run_todoist(["complete", "--id", "12345678"]))
# List tasks due today
print(run_todoist(["list", "--filter", "today"]))
```
Direct Python usage (import pattern):
```python
import os
from todoist_api_python.api import TodoistAPI
api = TodoistAPI(os.environ["TODOIST_API_TOKEN"])
# Get all tasks due today
tasks = api.get_tasks(filter="today")
for task in tasks:
print(f"[{task.priority}] {task.content} — due {task.due}")
# Add a task
new_task = api.add_task(
content="Prepare board update",
due_string="tomorrow",
priority=2, # p2
project_id="your_project_id"
)
print(f"Created: {new_task.id} — {new_task.content}")
# Complete a task
api.close_task(task_id="12345678")
```
### `ea_gmail.py` — Gmail Helper
```python
# clawchief/scripts/ea_gmail.py usage
# Uses gws under the hood — do not call Gmail APIs directly
import subprocess
def gmail_search(query: str) -> str:
"""Search at message level, not thread level."""
result = subprocess.run(
["python", "clawchief/scripts/ea_gmail.py", "search", "--query", query],
capture_output=True, text=True
)
return result.stdout
# Always search at message level
results = gmail_search("from:[email protected] subject:contract after:2026/04/01")
print(results)
# Draft a reply
subprocess.run([
"python", "clawchief/scripts/ea_gmail.py",
"draft-reply",
"--message-id", "msg_abc123",
"--body", "Thanks for reaching out. I'll review and follow up by EOD."
])
```
### `ea_calendar.py` — Calendar Helper
```python
# clawchief/scripts/ea_calendar.py usage
# Checks ALL relevant calendars before suggesting a booking
import subprocess
def check_availability(date: str, duration_minutes: int = 60) -> str:
result = subprocess.run(
[
"python", "clawchief/scripts/ea_calendar.py",
"check-availability",
"--date", date,
"--duration", str(duration_minutes)
],
capture_output=True, text=True
)
return result.stdout
# Always check all calendars before booking
slots = check_availability("2026-04-10", duration_minutes=45)
print(slots)
# Book a meeting
subprocess.run([
"python", "clawchief/scripts/ea_calendar.py",
"book",
"--title", "1:1 with Sarah",
"--date", "2026-04-10",
"--time", "14:00",
"--duration", "45",
"--attendees", "[email protected]"
])
```
### `sheet_helper.py` — Google Sheets
```python
# clawchief/scripts/sheet_helper.py usage
import subprocess
def append_row(spreadsheet_id: str, sheet_name: str, row: list) -> None:
subprocess.run([
"python", "clawchief/scripts/sheet_helper.py",
"append",
"--spreadsheet-id", spreadsheet_id,
"--sheet", sheet_name,
"--values", ",".join(str(v) for v in row)
])
# Log an outreach touchpoint
append_row(
spreadsheet_id=os.environ["BD_SHEET_ID"],
sheet_name="Outreach",
row=["2026-04-08", "Acme Corp", "intro email sent", "[email protected]"]
)
```
### `bd_outreach.py` — Business Development
```python
# clawchief/scripts/bd_outreach.py usage
import subprocess
# Log a new outreach contact
subprocess.run([
"python", "clawchief/scripts/bd_outreach.py",
"log",
"--company", "Acme Corp",
"--contact", "[email protected]",
"--stage", "intro",
"--notes", "Met at SaaStr, strong fit for enterprise tier"
])
# List follow-ups due this week
result = subprocess.run(
["python", "clawchief/scripts/bd_outreach.py", "followups", "--due", "this_week"],
capture_output=True, text=True
)
print(result.stdout)
```
---
## Source-of-Truth Files
These files are the policy layer. Edit them to match your operating model.
### `clawchief/priority-map.md`
```markdown
# Priority Map
## P1 — Revenue and retention
- Customer escalations
- Closing deals in final stage
- Renewal risks
## P2 — Team unblocking
- Decisions that are blocking >1 person
- Hiring decisions in final round
## P3 — Strategic
- OKR reviews
- Partner development
## P4 — Operational
- Recurring admin
- Reporting
```
### `clawchief/auto-resolver.md`
```markdown
# Auto-Resolver Policy
When ambiguity arises, resolve with:
1. Does the priority-map clearly rank one option higher? → take the higher-ranked action.
2. Does theRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.