Pothos
A portable development workflow for Claude Code. It carries how you work from repository to repository: specify, implement, verify, review and ship. Each repository describes itself in a small contract, so the same skills work in any codebase.
Status: early. Version 0.2.0 runs the whole cycle: Matt Pocock's skills for specifying, planning, building and reviewing, plus Pothos's own contract, verification, evidence and explanations.
Install
/plugin marketplace add devictoribero/pothos
/plugin install pothos@devictoribero
Then, in each repository:
/pothos:plant
How it fits together
plugin (how you work) ──reads──▶ private contract ──points to──▶ repository (the project)
- The plugin holds skills, standards and six hooks, none of which mention a specific project. Most cycle skills are Matt Pocock's, vendored unchanged at a pinned commit.
- The hooks: the first runs at session start, reads the contract and hands it to every skill as context. Pocock's skills expect their configuration (issue tracker, labels, domain docs) "to have been provided"; his setup skill writes it into the repository, Pothos provides it from the contract instead. The second, also at session start, names the folder where the repository's retro findings go (changes to the agent's environment worth making later, one file per finding in
~/.config/pothos/retros/<host>/<owner>/<repo>/, format in shared/retro-findings.md) and how many are open. The third, also at session start, asks that every comment the agent posts on a pull request or issue start with a callout naming the model and the account it posts for (> [!NOTE] / > 🤖 **<model> responding on behalf of @<login>**), so a reader tells it from one the person typed. The fourth runs before every shell command and blocks the direct commands that merge a pull request into the base branch, push to it or add the auto-merge label: merging into the base branch is a person's decision, carried out only by tend's merge gate. A merge into any other branch, such as one pull request of a stack into the next, passes. The fifth runs after every gh pr create and assigns the new pull request to the GitHub user who opened it (@me). The sixth keeps a plugin you load in place from a git checkout (a marketplace added from a local directory) current: at session start it fetches in the background and fast-forwards the checkout when it is on the remote's default branch, so a merged pull request reaches every repository from the next session without a manual pull. It never touches another branch, a local commit or an uncommitted change the update would overwrite.
- Verification has two tiers. The session context tells every skill that edits code to run the repository's fast check after each coherent edit and before each commit (a root
check:fast script, else the contract's verify.fast, else each package's lint, unit tests and type-check), and to run the full gate through verify once before a push. The command lives in the repository; the plugin only finds and calls it.
- The contract is a short JSON file per repository, kept privately in
~/.config/pothos/contracts/<host>/<owner>/<repo>.json, never inside the repository. Every clone and worktree of a repository shares it. It says how to verify a change, how to run the app, where the domain docs live, where tickets go and how pull requests are made.
- The repository keeps everything project-specific: its scripts, its docs, its conventions and its own skills.
The contract
{
"$schema": "https://raw.githubusercontent.com/devictoribero/pothos/main/plugins/pothos/shared/contract.schema.json",
"version": 1,
"verify": {
"fast": "pnpm run type-check && pnpm run lint",
"full": "pnpm run validate",
"e2e": "pnpm run e2e"
},
"run": { "dev": "pnpm run dev:mock", "url": "http://localhost:3000", "mocked": true },
"docs": { "glossary": "GLOSSARY.md", "decisions": "docs/decisions", "prd": "docs/prd" },
"tracker": { "kind": "local", "path": ".scratch" },
"review": { "skills": ["i18n-review"] },
"pr": { "base": "main", "template": ".github/pull_request_template.md" }
}
Only version and verify.full are required. The schema documents every field, and editors that read $schema autocomplete it.
Skills