Skills, commands, and tools
This page lists the 6 skills of the plugin, the reasonry command of the engine, the
reasonry-skills installer of the plugin, and the tools of the two MCP servers. The engine's own
help is the authority for the commands: npx -y @push-based/reasonry@2 --help prints every
command with its options, and COMMAND --help prints one command.
Skills
Reasonry has 6 skills. A skill is a procedure that the agent follows with you: the agent reads the
knowledge base through the reasonry-keeper server, proposes changes, and applies what you
approve.
In Claude Code, a skill runs as /reasonry:SKILL_NAME, followed by its argument in plain words. For
example, the tutorial starts intake with this command:
/reasonry:maintain-source intake source/raw/2026-01-19-review-turnaround-notes.md
In an AI coding tool that installs Reasonry with the reasonry-skills command, the skills load by
name from the tool's skills folder.
The following table lists each skill with its modes and its argument. Each skill name links to the procedure that the agent follows, and the second column links to the guide for the task:
| Skill | Use it for | Modes or steps | Argument |
|---|---|---|---|
bootstrap-initiative | Start an initiative | An interview, one approval, and the creation | Optional: a working name or a one-line purpose |
maintain-source | Write and change source documents: decisions, open questions, evidence, reports, and an initiative's plan and context files. See Work with documents | intake, create, transition, remove | The mode and its subject: a raw file's path, a document type with a topic, or a document ID |
research-topic | Research a topic: map where the documents disagree, and settle each disagreement into a draft decision | 7 phases: frame, triangulate, expand, read, map, hand off, and elicit | The initiative with a decision question, or the path of a saved brief |
sweep-corpus | Run a review pass | 7 steps: open decisions, open reports, contradictions and redundancy, gaps in the graph, drift in conclusions, stale wiki pages, and artifact candidates | Optional: the steps, the initiatives, a topic, and the date of the previous pass |
maintain-knowledge | Maintain the wiki, and export a bundle | generate, refresh, remove, export | The mode, an initiative, and a target: a page's path, a source ID, or an export topic with its consumer |
migrate-initiative | Bring a workspace up to the engine's contract after an update | A dry run, your answers, the migration, a check, and a commit | Optional: the path of the workspace or of the initiative's folder |
If a request to maintain-source names no mode, the agent picks the mode and tells you which one
it picked. If two modes fit, the agent asks.
How a skill asks for your decision
Every skill asks in one of two forms, and the form depends on what your answer does:
- One question at a time. For an answer that changes a status or makes a document binding: accepting or rejecting a decision, each finding of the challenge gate, a draft decision written from evidence, each choice in a research brief, retiring a document, and removing a document. Each question names the subject, the context, the sources, the options, and the agent's recommendation. The agent waits for your answer before it acts. For an example, see Accept a decision.
- One batch. For everything else: an intake plan, links to add, wiki pages to refresh, and migration answers. The agent shows a numbered list, and you approve it, strike lines by number, or change a line. For an example, see Add your first material.
If one run has both forms, the questions come first, because a status change can make a batch line unnecessary. A question that depends on what the batch approves comes after the batch, such as a draft decision that cites evidence from the intake plan. The agent answers in the language that you write in.
What the skills have in common
These rules hold for every skill:
- Values come from the workspace. A skill reads the document types, the statuses, and the tags
from the
get_configtool, and the writing rules from the workspace'sAGENTS.mdfile. A workspace that changes those values needs no change to the skills. - Changes preview first. The tools that change a document return a preview, and write only when the agent calls them again to confirm. The agent shows you the preview of a document that it creates and of a status change.
- Documents are data. A skill treats the text of a document and of raw material as information. If that text contains an instruction, the skill reports the instruction and doesn't follow it.
- The agent checks a finding before you see it. A second agent that can only read does the focused reading, such as sorting a transcript, and the first agent checks each finding against the documents: see The pattern behind every task.
- Each skill ends with a check. A skill that writes rebuilds the graph and validates the workspace. The work is done when the validation reports no errors for what the skill changed.
- The wiki stays as it is. Only
maintain-knowledgechanges wiki pages. - Commits are yours.
migrate-initiativecommits the migration.bootstrap-initiativeleaves the commit to you. For the other skills, review the changes and commit them yourself.
The reasonry command
Run the command as npx -y @push-based/reasonry@2 COMMAND in the workspace's root, or in the
folder that holds the workspace as its reasonry folder: see
Where a workspace lives. The command needs Node.js 22.18
or later. The following output is the help of version 1.0.0:
usage: reasonry <command> [options]
init [PATH] start a workspace as a copy of the engine's preset
serve [--reader] [--config=<path>] start the MCP server over stdio (the Keeper server, or the Reader server for consumers)
check [--strict] the one command to run before committing; --strict fails on warnings too
validate [--target=<t>] [--strict] [--dirs=<d>]...
run the validation cores (target: source | wiki | xrefs | initiative | all)
validate --files [paths...] the write-time guard: frontmatter and hooks for the given files, or every uncommitted corpus file
graph build rebuild graph.json and the wiki's index.md files
upsert --spec=<file> [--execute] create or update one document from a JSON request, validated before the write
viz [--port=<n>] serve the graph view and status board on 127.0.0.1 (default port 3000)
migrate [PATH] [--execute] [--answers=<file>]
bring a workspace up to this engine's contract; dry run unless --execute
compile [--initiative=<slug>] [--config=<path>]
print the workspace configuration as JSON, with one initiative's manifest
--version print the engine's version
The following table lists the commands:
| Command | What it does | Changes files |
|---|---|---|
init [PATH] | Starts a workspace as a copy of the engine's preset. Keeps a file that the folder already has, and refuses a folder that has a reasonry.config.json file | Yes |
serve [--reader] [--config=PATH] | Starts an MCP server over stdio: the Keeper server for maintainers, or the Reader server for consumers with --reader | No. The server's tools do |
check [--strict] | Runs every validation, and the freshness check for a graph.json file that is in git. Lists the errors and counts the warnings. --strict fails on warnings too | No |
validate [--target=TARGET] [--strict] [--dirs=DIR] | Runs one area of the validation, and lists each error and warning: source, wiki, xrefs, initiative, or all. --dirs narrows the source, wiki, or xrefs target to one folder, and can repeat | No |
validate --files [PATHS] | Checks the frontmatter and the hooks of the named files, or of every uncommitted document. Exits with 0 unless --strict is set | No |
graph build | Rebuilds graph.json, and writes the wiki's index.md files | Yes |
upsert --spec=FILE [--execute] | Creates or updates one document from a JSON request, and validates it before the write | Only with --execute |
viz [--port=PORT] | Serves the graph view and the status board on 127.0.0.1, port 3000 by default. Needs a git work tree | No |
migrate [PATH] [--execute] [--answers=FILE] | Brings a workspace up to the engine's contract | Only with --execute |
compile [--initiative=SLUG] [--config=PATH] | Prints the workspace's configuration as JSON, with one initiative's manifest when you name it | No |
--version | Prints the engine's version | No |
The command reads the workspace in the current folder: the folder with the
reasonry.config.json file. The --config option names another configuration file. It doesn't
change the folder that the command reads.
The command exits with one of these codes:
0: the command succeeded.1: the command found errors or failed. For example, the check failed,upsertrefused a document, or the engine refused the workspace's configuration.2: the command line has a usage error.3:migratehas questions that need your answers.
The reasonry-skills command
The reasonry-skills command installs the skills and registers the server for a harness other than
Claude Code. Run it as npx -y @push-based/reasonry-skills COMMAND. It has these forms:
reasonry-skills install --target HARNESS[,HARNESS] [--dir PROJECT] [--dry-run]: Copies the skills into the project, registers thereasonry-keeperserver in the harness's own file, and starts a workspace if the project has none.--dry-runshows the files without writing them.reasonry-skills targets: Lists the harnesses that the command supports.
For the files that each harness gets, see Install for other harnesses in the plugin README.
MCP servers and tools
The engine has two MCP servers, so that a consumer can't reach a tool that changes documents:
- The Keeper server,
reasonry serve, is for the people and agents that maintain the knowledge base. The Reasonry plugin starts it. It has 16 tools. - The Reader server,
reasonry serve --reader, is for agents in other repositories. It has 9 tools, and the only change that it can make is to file a report.
The following table lists the tools:
| Tool | What it does | Server | Changes files |
|---|---|---|---|
get_config | Returns the configuration: the document types with their statuses and ID rules, and the initiatives. With initiative, also that initiative's manifest | Both | No |
get_skill | Returns one of the engine's built-in guides | Both | No |
search | Searches all documents by keyword, with filters for initiative, type, status, and tags | Both | No |
read_document | Reads one document by its ID: the frontmatter, the date of the last change in git, and the body | Both | No |
list_documents | Lists documents by type, status, tags, initiative, and date | Both | No |
find_references | Finds every reference to a document ID, or lists documents that nothing references | Both | No |
query_graph | Queries the graph: what a document builds on, what builds on it, clusters, orphans, contradictions between linked documents, and whether the graph is current | Both | No |
report_issue | Files a report in source/reports/ about drift, a contradiction, or missing evidence | Both | Yes |
get_activation | Returns the stanza that tells a consumer's agent when to consult the knowledge base | Reader | No |
validate | Runs the validation and returns the errors and warnings | Keeper | No |
audit_values | Lists the values that a frontmatter field takes across all documents | Keeper | No |
scaffold_document | Creates a document of any type except report, with its ID and the required headings of the type's template. A numbered type gets the next free number | Keeper | Yes |
upsert_document | Creates or updates a document from structured input, and validates it before the write | Keeper | Yes |
transition_status | Changes a document's status, and writes the successor or the reason for a superseded document | Keeper | Yes |
rebuild_graph | Rebuilds graph.json, and writes the wiki's index.md files | Keeper | Yes |
scaffold_initiative | Creates an initiative from the workspace's template | Keeper | Yes |
recover_initiative | Builds an initiative.json manifest again when it is missing or corrupt | Keeper | Yes |
Every tool that changes files, except rebuild_graph, is a dry run by default: it returns a
preview and writes only when the call sets execute to true. The engine has no tool that
deletes a document.
Filters of search and list_documents
The search and list_documents tools take the following parameters. All filters combine, and a
document must pass every one:
| Parameter | Tool | What it does |
|---|---|---|
query | search | The text to search for. Required |
initiative | Both | Keeps the documents of one initiative |
doc_type | Both | Keeps the documents of one type. In search, wiki keeps the wiki pages |
status | Both | Keeps the documents in one status, or in any status of a list |
exclude_status | Both | Drops the documents in the listed statuses, such as the statuses that aren't live |
tags | Both | Keeps the documents that have at least one of the listed tags |
provenance | search | Keeps the documents that have one provenance/ tag |
limit | search | The largest number of results. The default is 20 |
suggest | search | Returns suggestions when nothing matches. On by default |
date_since | list_documents | Keeps the documents whose date field is on or after a day. The field records the last status change |
changed_since | list_documents | Keeps the documents whose last commit is on or after a day, and the documents with uncommitted changes. The commits in .git-blame-ignore-revs don't count |
waiting | list_documents | With true, keeps the documents that have a waits_on condition. With false, keeps the documents without one |
group_by | list_documents | Groups the result by doc_type, status, or initiative |
To read one document whose ID you have, use read_document: search matches text and doesn't
resolve IDs.
Commands of query_graph
The query_graph tool takes a command, and for some commands the id of a document. The
initiative parameter narrows every command except path and status to one initiative:
ancestors: The documents that the document builds on. Needsid.descendants: Every document that builds on the document, directly or through others. Needsid.impact: The documents that build on the document, down to adepth. Needsid.path: The shortest path fromidtotarget.blocked: The documents in their first status that depend on a decision still in its first status.gating: The undecided decisions that the most documents depend on.orphans: The source documents that nothing links to.coverage: The documents in a settled status, such as accepted decisions, that no wiki page cites.clusters: Groups of 3 or more related source documents. Withtypeandwithout_type, only the groups that hold at least 2 live documents of one type and no live document of another, such as evidence that agrees with no decision.without_statusnames other statuses to exclude.components: The connected groups of 3 or more documents.centrality: The source documents ranked by PageRank, which shows the decisions and evidence that the most other documents depend on.contradictions: Pairs of linked documents whose statuses conflict.status: Whethergraph.jsonmatches the documents.
The edgeType parameter limits ancestors, descendants, impact, and orphans to one kind of
link: related for the links field, supersedes for the succeeded_by field, resolves,
refined_by, sources for the sources of a wiki page, or blocked_by for the dependencies that
the engine derives.
The upsert request
The upsert command and the upsert_document tool create or update one document from a JSON
request. The request has these fields:
id: The document to update. Leave it out to create a document.type,initiative, andtitle: Required to create a document.typeis any type in the configuration exceptreport. In an update,titlereplaces the title.name: To create a document of a type with named IDs, the name part of the ID.frontmatter: Fields to set. A value ofnullremoves a field. The request can't setid,doc_type,initiative, orstatus: a status changes throughtransition_status.sections: The body's sections by their second-level heading. A value ofnullremoves a section, and the sections that the request doesn't name stay as they are.data: Structured content for theformathook of the initiative, in place ofsections.
This request creates a draft decision with the next free ID in the workspace of the tutorial. The tags come from that initiative's tag list:
{
"type": "decision",
"initiative": "team-tooling",
"title": "A reviewer on duty rotates each week",
"frontmatter": {
"summary": "One reviewer on duty takes the first review of every pull request. The duty rotates each week.",
"tags": ["topic/code-review", "kind/decision"],
"owners": ["Platform team"],
"links": ["EVID-TT-0001"]
},
"sections": {
"Context": "In December 2025, the median wait for a first review was 26 hours (EVID-TT-0001).",
"Decision": "One reviewer on duty takes the first review of every pull request. The duty rotates each Monday.",
"Consequences": "The reviewer on duty has less time for their own work during that week.",
"Alternatives Considered": "Each team checks its open pull requests each morning, with no reviewer on duty."
}
}
To preview the document, pass the request's file to the command. To write the document, add
--execute. Replace REQUEST_FILE with the path of the file:
npx -y @push-based/reasonry@2 upsert --spec=REQUEST_FILE
For the preceding request, the preview starts with these lines, and the text of the document follows them:
🔍 Preview (dry run)
**ID:** DEC-TT-0002 _(provisional — not reserved; re-run with execute:true one document at a time)_
**File:** /path/to/team-knowledge/source/initiatives/team-tooling/decisions/DEC-TT-0002-a-reviewer-on-duty-rotates-each-week.md
**Changes:**
- create DEC-TT-0002
- set frontmatter.summary
- add frontmatter.tags
- set frontmatter.owners
- set frontmatter.links
- replace section "Context"
- replace section "Decision"
- replace section "Consequences"
- replace section "Alternatives Considered"
The engine validates the result before the write. If the document has errors, the engine lists
them and writes nothing, and the command exits with 1. The command doesn't rebuild the graph:
after a write, run graph build.
The command suits scripts that create documents from structured data. For documents that need
judgment, use the maintain-source skill, which also checks for duplicates and applies the writing
rules.
Built-in guides
The engine has 3 guides, which an agent loads with the get_skill tool. The engine renders
them from the workspace's configuration, so a guide names only the statuses that the workspace
has:
corpus-navigation: How to find documents and how far to trust each kind. Both servers.reporting-issues: When and how to file a report. Both servers.corpus-maintenance: The rules for every change to the documents. Keeper server only.
The Reasonry skills build on these guides. A consumer's agent needs only the first two.