Skip to content

Contributing Guide

Code changes should preserve the main loop: Project, task, proof, review, reward, share pool, memory, and agent readback.

Local Environment

bash
pnpm install
cp .env.example .env
pnpm dev

Run separately:

bash
pnpm api:dev
pnpm web:dev

Change Rules

ScopeCheck together
ProjectProject detail, Workbench, AgentTurn, API readback
Validationlaunch, task, proof, review, reward, settlement
OrderOrderActionPolicy returned actions
Memorysource, entry, contractHash, agent context
Skillroute, execute, verify, project smoke
Docsdocs/book, README.md, related docs/project-*.md

PR Gates

bash
pnpm check
pnpm build
pnpm api:test:unit
pnpm security:secrets
pnpm security:web
git diff --check

Database or jOOQ changes add:

bash
pnpm api:test:integration

Documentation Requirements

Behavior changes should document:

ContentRequirement
Real entryPage, API, service, or script
State flowold state -> new state
Verification commandCommand that was actually run
Code evidenceFile, class, method, or test
User impactWho sees the change

Agent Skill Changes

Changes under skills/monopolyfun-agent/ need three layers covered:

route-intentResolve intent and resource
execute-actionCall official API write action
verify-actionRead back persisted state

Project/OpenClaw flows also need the relevant project smoke, with durable findings written under docs/.

Released under the MIT License.