Guidelines for contributing to this repository. Status: stub — full guidelines will be added as the project moves from planning to implementation.
The project is in Phase 1 MVP. A minimal Worker (apps/api/) and SimHub plugin scaffold (apps/plugin/) exist; current focus is implementing Phase 1 (real Discord OAuth, D1 migrations, plugin auth and verification). See README and docs/architecture/next-steps.md.
- Propose or refine documentation (PRDs, HLD, tech plans) via pull requests.
- Review and comment on architecture decisions in
docs/architecture/decisions/. - Follow AGENTS.md and the skills in
.cursor/skills/when working with AI agents.
Run local tests before pushing to a remote branch. At least 80% of tests must pass before pushing. See Run tests before push in the development guide for the exact commands (typecheck, lint, plugin build, worker smoke, OpenAPI validation).
Enforce with a git hook (blocks push until 80% pass): Run once per clone: git config core.hooksPath .githooks. Then every push (including from Cursor) runs the pre-push check and blocks if <80% pass. To skip once: git push --no-verify.
- All PRs: Require approval and passing CI (see Run tests before push). Fill out the PR template (summary, traceability (Implements: TP-XXX, PRD: PRD-XXX), Doc links from .github/traceability-mapping.yaml, Labels from .github/labels.yaml, risk, test plan, rollback).
- Product review: PRs that change scope, requirements, or user-facing copy should get product review before merge. That means:
- Paths:
docs/product/**,docs/brand/**, or any change that adds/edits user-facing text (UI strings, API contract descriptions, landing copy). - Who: A human product manager, or an agent using the product manager personality (e.g. @-mention the personality doc when asking for review).
- What: Reviewer checks phase alignment, user value, brand voice, and PRD/HLD traceability using the PM review checklist in the personality doc.
- Paths:
- Optional: When you have a designated PM GitHub user or team, add a CODEOWNERS file so
docs/product/anddocs/brand/automatically request that reviewer.
PRs must declare Traceability (Tech Plan ID(s) and PRD ID), Doc links (markdown links to PRD/TP docs using .github/traceability-mapping.yaml), and Labels (traceability labels from .github/labels.yaml) in the PR template so the ContextStream knowledge graph can show PR ↔ Tech Plan ↔ PRD. To make that link visible in the ContextStream UI, capture an implementation event when opening or merging the PR: include the PR URL and the tech plan + PRD doc paths (from the traceability mapping). See ContextStream mapping – Linking pull requests.
Recommended: The workflow .github/workflows/pr-traceability-check.yml runs on pull requests and checks that the PR body includes Traceability (Implements, PRD), at least one Doc link, and at least one traceability label. You can add this check to branch protection if you want it to be required for merge.
- Branching and PR workflow (branch naming, base branch)
- Code style and testing expectations (lint, coverage)
Check back or open an issue to request contributing guidelines for a specific area.