Skip to content

Open source CapCut alternative.

TypeScript

docs: switch commit workflow to direct-to-main with type(scope) messages

David Leed26a5e929f9
diff --git a/CLAUDE.md b/CLAUDE.md
index 2f577d69..2876965e 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -39,7 +39,7 @@ Before changing `site/` UI, routes, API handlers, or data access patterns:
- Keep guides explanatory. They should teach what the system is, how it works, and which boundaries matter; do not turn guides into feature inventories, implementation logs, duplicated code, or long file lists.
- Optimize guides for readability: use plain language, short sections, and only the detail a maintainer needs to understand the supported boundary. Prefer trimming outdated or repetitive detail over adding more paragraphs.
- Keep guide source entrypoints short and readable. Do not write exhaustive file inventories. Prefer a small maintainer map by subsystem or one to seven high-signal paths, and link to a source path only when it gives someone a clear place to start.
-- When asked to commit, group the working changes into logical commits by concern rather than one catch-all commit. Branch off `main` first (never commit directly to `main`), make the commits there, then merge the branch back into `main` with `--no-ff` and delete the branch. Do not push unless asked.
+- When asked to commit, group the working changes into logical commits by concern rather than one catch-all commit. Commit directly on `main` (no feature branch, no merge commit). Write messages as `type(scope): summary`, where `type` is a Conventional Commits kind (`feat`, `fix`, `docs`, `refactor`, `chore`, etc.) and `scope` is the area touched (e.g. `feat(site)`, `fix(app)`, `refactor(site)`); `scope` may be omitted when an area does not apply, as in `docs:`. Do not push unless asked.
- Build forward by default. Prefer updating callers and contracts to the new supported shape instead of preserving old compatibility paths; ask before adding or keeping backwards-compatibility shims.
- This is an open source project. Stay alert for security concerns, and never commit PII, API keys, tokens, credentials, private config, or other secrets.
- Keep this file stable and lightweight.