Skip to main content

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:

SkillUse it forModes or stepsArgument
bootstrap-initiativeStart an initiativeAn interview, one approval, and the creationOptional: a working name or a one-line purpose
maintain-sourceWrite and change source documents: decisions, open questions, evidence, reports, and an initiative's plan and context files. See Work with documentsintake, create, transition, removeThe mode and its subject: a raw file's path, a document type with a topic, or a document ID
research-topicResearch a topic: map where the documents disagree, and settle each disagreement into a draft decision7 phases: frame, triangulate, expand, read, map, hand off, and elicitThe initiative with a decision question, or the path of a saved brief
sweep-corpusRun a review pass7 steps: open decisions, open reports, contradictions and redundancy, gaps in the graph, drift in conclusions, stale wiki pages, and artifact candidatesOptional: the steps, the initiatives, a topic, and the date of the previous pass
maintain-knowledgeMaintain the wiki, and export a bundlegenerate, refresh, remove, exportThe mode, an initiative, and a target: a page's path, a source ID, or an export topic with its consumer
migrate-initiativeBring a workspace up to the engine's contract after an updateA dry run, your answers, the migration, a check, and a commitOptional: 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_config tool, and the writing rules from the workspace's AGENTS.md file. 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-knowledge changes wiki pages.
  • Commits are yours. migrate-initiative commits the migration. bootstrap-initiative leaves 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:

CommandWhat it doesChanges 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 fileYes
serve [--reader] [--config=PATH]Starts an MCP server over stdio: the Keeper server for maintainers, or the Reader server for consumers with --readerNo. 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 tooNo
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 repeatNo
validate --files [PATHS]Checks the frontmatter and the hooks of the named files, or of every uncommitted document. Exits with 0 unless --strict is setNo
graph buildRebuilds graph.json, and writes the wiki's index.md filesYes
upsert --spec=FILE [--execute]Creates or updates one document from a JSON request, and validates it before the writeOnly 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 treeNo
migrate [PATH] [--execute] [--answers=FILE]Brings a workspace up to the engine's contractOnly with --execute
compile [--initiative=SLUG] [--config=PATH]Prints the workspace's configuration as JSON, with one initiative's manifest when you name itNo
--versionPrints the engine's versionNo

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, upsert refused a document, or the engine refused the workspace's configuration.
  • 2: the command line has a usage error.
  • 3: migrate has 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 the reasonry-keeper server in the harness's own file, and starts a workspace if the project has none. --dry-run shows 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:

ToolWhat it doesServerChanges files
get_configReturns the configuration: the document types with their statuses and ID rules, and the initiatives. With initiative, also that initiative's manifestBothNo
get_skillReturns one of the engine's built-in guidesBothNo
searchSearches all documents by keyword, with filters for initiative, type, status, and tagsBothNo
read_documentReads one document by its ID: the frontmatter, the date of the last change in git, and the bodyBothNo
list_documentsLists documents by type, status, tags, initiative, and dateBothNo
find_referencesFinds every reference to a document ID, or lists documents that nothing referencesBothNo
query_graphQueries the graph: what a document builds on, what builds on it, clusters, orphans, contradictions between linked documents, and whether the graph is currentBothNo
report_issueFiles a report in source/reports/ about drift, a contradiction, or missing evidenceBothYes
get_activationReturns the stanza that tells a consumer's agent when to consult the knowledge baseReaderNo
validateRuns the validation and returns the errors and warningsKeeperNo
audit_valuesLists the values that a frontmatter field takes across all documentsKeeperNo
scaffold_documentCreates 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 numberKeeperYes
upsert_documentCreates or updates a document from structured input, and validates it before the writeKeeperYes
transition_statusChanges a document's status, and writes the successor or the reason for a superseded documentKeeperYes
rebuild_graphRebuilds graph.json, and writes the wiki's index.md filesKeeperYes
scaffold_initiativeCreates an initiative from the workspace's templateKeeperYes
recover_initiativeBuilds an initiative.json manifest again when it is missing or corruptKeeperYes

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:

ParameterToolWhat it does
querysearchThe text to search for. Required
initiativeBothKeeps the documents of one initiative
doc_typeBothKeeps the documents of one type. In search, wiki keeps the wiki pages
statusBothKeeps the documents in one status, or in any status of a list
exclude_statusBothDrops the documents in the listed statuses, such as the statuses that aren't live
tagsBothKeeps the documents that have at least one of the listed tags
provenancesearchKeeps the documents that have one provenance/ tag
limitsearchThe largest number of results. The default is 20
suggestsearchReturns suggestions when nothing matches. On by default
date_sincelist_documentsKeeps the documents whose date field is on or after a day. The field records the last status change
changed_sincelist_documentsKeeps 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
waitinglist_documentsWith true, keeps the documents that have a waits_on condition. With false, keeps the documents without one
group_bylist_documentsGroups 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. Needs id.
  • descendants: Every document that builds on the document, directly or through others. Needs id.
  • impact: The documents that build on the document, down to a depth. Needs id.
  • path: The shortest path from id to target.
  • 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. With type and without_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_status names 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: Whether graph.json matches 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, and title: Required to create a document. type is any type in the configuration except report. In an update, title replaces 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 of null removes a field. The request can't set id, doc_type, initiative, or status: a status changes through transition_status.
  • sections: The body's sections by their second-level heading. A value of null removes a section, and the sections that the request doesn't name stay as they are.
  • data: Structured content for the format hook of the initiative, in place of sections.

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.