Claudebook
Project description
Claudebook
A runbook run by Claude (specifically by Claude Code)!
Example
## #! /usr/bin/env uvx claudebook
mcp:
slack:
command: npx
args: - -y - "@modelcontextprotocol/server-slack"
---
# Start my Slack Day
For the following channels, summarize all the activity yesterday, which @joshcannon didn't respond:
- #project-1
- #project-2
- #thing-five-support
Rank them from what seems like highest priority to lowest priority.
How does it work?
Under the hood, claudebook:
- Takes the runbook given by the positional argument
- Tries to parse YAML frontmatter for Claudebook settings
- Calls
claude
Ways of running a Claudebook
There are a few ways of running Claudebooks:
Running the code
There are two ways of running the code:
Using uvx and the Python Package
uvx -q claudebook <claudebook> leverages the claudebook Python package to run a Claudebook.
This allows for very fast execution and also allows for controlling the version of claudebook and its dependencies.
More information about uvx can be found here: https://docs.astral.sh/uv/guides/tools/.
Using uv run and the GitHub URL
uv run -q https://raw.githubusercontent.com/thejcannon/claudebook/refs/heads/main/claudebook.py allows you to run the latest version of claudebook, by having uv fetch the latest code from GitHub.
It requires a network request (less than a few KB) and uv will construct a temporary virtual environment to run the Claudebook, but it also means you get the latest and greatest features.
Running the markdown
There are also two ways of running the markdown:
Making the runbook executable
- Add a shebang at the top:
#! /usr/bin/env <invocation> - Make the file executable:
chmod +x <runbook> - Run the file:
<runbook>or./<runbook>
Use the CLI
Alternatively, you can just pass the path to the runbook to the CLI:
<invocation> <runbook>
# Such as:
uvx run <runbook>
uv run <GH URL> <runbook>
Configuration
Claudebooks support a few configuration options, which are specified as YAML frontmatter in the runbook.
Claude Code pass-through
Claudebooks support a few options which get passed through to claude:
-p/--print: Print the response and exit--json: Output JSON
MCP
Claudebooks support MCP (Model Context Protocol) by allowing you to specify a mapping of MCP servers to use.
These get forwarded to Claude Code to be loaded before the runbook is executed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claudebook-0.1.0.dev0.tar.gz.
File metadata
- Download URL: claudebook-0.1.0.dev0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
792cae92f7e21121d168df9780821d4ff7479fb4731db0dc96befd9af0fd4ac6
|
|
| MD5 |
e26b43d0460487157791ad02a8c18184
|
|
| BLAKE2b-256 |
1b89020740a7694a640e863015d2690a4c99416f53680fd1d727c9046c88aafa
|
File details
Details for the file claudebook-0.1.0.dev0-py3-none-any.whl.
File metadata
- Download URL: claudebook-0.1.0.dev0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae199b6b3186df430a25f40e8ac4faf069ed2fc77572b9825420cb072b491168
|
|
| MD5 |
b9d9e7ed651758e354697bce4a533184
|
|
| BLAKE2b-256 |
219f4708b03f28ed594a7868229b0140b0636940e9e54921e250ce8c051ce433
|