The library's skills and rules (with their type), and each agent's rules state.
pitwall rules list [OPTIONS]
rules new
Write a new rule into the library: from scratch, a file, or a library entry. A rule is in every session's context.
pitwall rules new [OPTIONS] <NAME>
Argument
NAME
The rule's name (its file name in the library, without .md).
Option
--from <ID|PATH>
Start from a library entry (id), or a file.
--description <DESCRIPTION>
What it's about (shown in lists).
--targets <TARGETS>
rulesync targets it's for, comma-separated (default: every tool).
--as-rule
--from is a skill: make a rule of it (its other files are left out, and it will be in every session's context).
--overwrite
Replace a rule of that name (asks you in Pitwall).
pitwall rules new tabs --description "Tabs, not spaces" --from ~/notes/tabs.md
pitwall rules new deploy-rule --from library:skills/deploy --as-rule # a skill made a rule: always in context
rules skill new
Write a new skill into the library (a folder with SKILL.md): from scratch, a skill's folder (its other files come along), a file, or a library entry.
pitwall rules skill new [OPTIONS] <NAME>
Argument
NAME
The skill's name (its folder in the library).
Option
--from <ID|PATH>
Start from a library entry (id), a skill's folder, or a file.
--description <DESCRIPTION>
When to use it: agents read this to decide (required unless --from has one).
--targets <TARGETS>
rulesync targets it's for, comma-separated (default: every tool).
--as-skill
--from is a rule: make a skill of it.
--overwrite
Replace a skill of that name (asks you in Pitwall).
pitwall rules skill new review --description "Review a diff for bugs and tests"
pitwall rules skill new deploy --from ./tools/deploy-skill # a folder with SKILL.md and its files
pitwall rules skill new deploy --from ./deploy.md --overwrite # replaces: asks first
rules sets
Rule sets, and each project's default set.
pitwall rules sets [OPTIONS]
rules show
What a project's agents get: its default set, each agent's own set, and the rules those add up to for the agent's kind (or one agent's, with --agent).
pitwall rules show [OPTIONS] [PROJECT]
Argument
PROJECT (optional)
The project folder (default: the current folder).
Option
--agent <AGENT>
One agent (id or name) instead of a whole project.
pitwall rules show ~/code/api --human
pitwall rules show --agent api
rules apply
Generate an agent's rule files now (used from its next session), or every agent's whose rules changed (--stale).
pitwall rules apply [OPTIONS] [AGENT]
Argument
AGENT (optional)
The agent (id or name).
Option
--set <SET>
Give the agent this set of its own first (id or name; none clears). With --stale: only agents that use this set.
--main-checkout
The agent works in the main checkout: write there anyway (asks you in Pitwall).
--stale
Every agent whose rules changed or failed since its session started (in its own worktree, or a main checkout you confirmed).
--project <PATH>
With --stale: only this project's agents.
--restart
Then restart each re-applied agent that is running, so the rules take effect now (each restart asks you in Pitwall).
Rules (names or library ids); none: every rule with an update.
Option
--take <TAKE>
For rules changed in both places: library (replace the project's copy) or project (keep it).
pitwall rules project updates ~/code/api --human # what changed, with diffs
pitwall rules project update ~/code/api # every rule with an update
pitwall rules project update ~/code/api style.md --take library
rules project import-existing
Import the project's hand-written CLAUDE.md / AGENTS.md / GEMINI.md into .rulesync/rules/ with rulesync (asks), so generating keeps their text. Do this before the first generate.
Generate the project's instruction files (CLAUDE.md, AGENTS.md, …) from its .rulesync/ with rulesync (asks). Only files Pitwall generated before are replaced, unless named with --overwrite.
Add rules and skills to the library: a project's own .rulesync/ (read in place) and its .claude/skills (copied), a CLAUDE.md / AGENTS.md / GEMINI.md (needs rulesync), or a git repository (cloned). A file or a repository asks you in Pitwall.
pitwall rules import [OPTIONS] <KIND> <SOURCE>
Argument
KIND
Where from: project, file or git.
SOURCE
The project folder, the file, or the repository's URL.
pitwall rules import project ~/code/api # its own .rulesync/
pitwall rules import file ~/code/api/CLAUDE.md # asks first
pitwall rules import git https://github.com/acme/ai-rules.git # asks first