Getting Started
Agent-first anti-slop project management for TypeScript monorepos
pm4ai manages every repo with lintmax in deps — syncs configs, generates CLAUDE.md, enforces conventions, runs maintenance.
MUST
- Read root
README.mdfirst WHEN it exists. Why: project-specific entry. - Determine role via
gh auth status: owner (1qh) may edit pm4ai rules/checks directly; never hand-edit a managed file. Why: managed files are regenerated on the next fix. - Keep project-specific docs — decisions, gotchas, plans — in the project's doc repo (the
X-docsibling), never in code-repo companion files. Why: the code repo carries only code and machine-readable config; docs have one home in the doc repo. - Capture a gotcha into its topic-owner doc in the project doc repo the moment it surfaces, committed with the work that taught it. Why: an uncaptured surprise re-costs the same hour; one home per fact, never duplicated.
- Owner adds a universal rule →
.mdxin pm4aiapps/docs/content/rules/withinferfrontmatter; a new check →packages/pm4ai/src/{audit,checks}.ts. Why: rules generate CLAUDE.md, checks run in status. - Note any cross-project discovery for pm4ai. Why: a lesson hit on many projects becomes a universal rule/check.
- Act only on a current check: proceed on
check: passed(current); wait oncheck: running...(don’t edit); fix violations oncheck: failed; re-run + wait when stale (passed before N commits); runbunx pm4ai@latest fixfirst oncheck: never run. Why: stale/absent checks aren’t evidence.
NEVER
- Edit a managed file directly —
CLAUDE.md,.github/workflows/ci.yml,clean.sh,up.sh,bunfig.toml,.gitignore,readonly/ui/. Cost: nextpm4ai fixoverwrites it.
Key repos
- pm4ai — manager; rules
apps/docs/content/rules/*.mdx, checkspackages/pm4ai/src/. - lintmax — max-strict lint/format orchestrator; every project depends on it.
- cnsync — canonical
readonly/ui(shadcn + ai-elements).
Commands
bunx pm4ai@latest status— check current project (--allfor every project).bunx pm4ai@latest fix— sync + maintain, requires clean git (--allfor every project).curl https://pm4ai.vercel.app/llms-full.txt— full docs.