Skip to content

Open source CapCut alternative.

TypeScript

docs: document logical-grouping + branch-merge commit workflow

David Le60aebb7e615e
diff --git a/AGENTS.md b/AGENTS.md
index 65e28cca..2f577d69 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -39,6 +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.
- 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.
diff --git a/CLAUDE.md b/CLAUDE.md
index 65e28cca..2f577d69 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -39,6 +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.
- 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.