CodFlow Governance — change workflow
CodFlow is an Apache-2.0, self-hosted, cash-on-delivery (COD) e-commerce
platform for Algeria, open-sourced for the first time. This skill is the
workflow for landing a change. The repo contract (layout, commands,
verification, boundaries, traps, security rules) lives in the root
AGENTS.md — read it first; it is the source of truth. Package-specific
commands and boundaries live in each package's AGENTS.md
(cod-astro/theme01/AGENTS.md).
When to use
- You are about to change code, docs, schema, or CI in this repo.
- You are writing README feature claims.
- You are reviewing a contribution.
The change workflow
1. Locate the change
- Identify the package(s) affected (cod-server / cod-client-astro / cod-shared /
cod-astro/theme01). Read the root
AGENTS.md, then the package's AGENTS.md.
- Respect the
cod-shared boundary: schema, queries, RBAC scopes, and error
codes are defined there and only there. Do not duplicate them in a package.
- Migrations: add a new migration; never rewrite an already-applied one.
- Ask before adding a production dependency or changing the D1 schema.
- Keep engine logic out of
cod-astro/theme01 (swappable theme layer).
2. Install dependencies
One install at the repo root covers every workspace (single root lockfile —
never create per-package lockfiles):
npm ci
3. Make the change
- One logical change per commit. Conventional Commits
(
feat:, fix:, docs:, chore:, refactor:, test:, ci:).
- No explanatory code comments unless asked.
- Never commit secrets (API keys, carrier tokens, credentials). Real secrets go
in
wrangler secrets / .dev.vars (gitignored).
- Add or update a focused test for behavior changes.
4. Verify — never skip
- After any TypeScript change: run
npm run typecheck in the affected
package (theme01: npx astro check).
- After any behavior change: run
npm test in the affected package.
- README claims must be code-verified: never write a feature claim the code
does not implement. If a feature is partially built, say exactly that.
- Do not mark work complete until typecheck + tests actually pass.
5. Commit, branch, PR
- Work on a branch named
feat/…, fix/…, chore/…, docs/….
- PRs must be small enough to review in one sitting (< ~500 lines).
- The PR template checklist must pass: no secrets, tests cover the change,
README claims match code, conventional commit message.
- CI (typecheck + tests for cod-server, cod-client-astro, cod-client (legacy),
and astro check + tests for theme01) must be green.
- When reviewing: README claims only what code does? Secrets absent? Tests
included? Migrations additive?
6. Changelog
- User-visible changes go under
[Unreleased] in CHANGELOG.md (Keep a
Changelog), grouped by Added / Changed / Deprecated / Removed / Fixed /
Security.
- Releases follow SemVer, are git-tagged, and announced via GitHub Releases.
Review checklist (use when reviewing a contribution)
Security reports
- Never accept vulnerability reports as public issues — point reporters to
GitHub private vulnerability reporting (see
SECURITY.md).
- Acknowledgment target: 3 business days; coordinated disclosure.
- Supported versions: only
main and the latest tag.
1---2name: codflow-governance3description: CodFlow repository workflow — the process for making and shipping a change that meets this repo's standards. Use when making ANY change to CodFlow (cod-server, cod-client-astro, cod-shared, cod-astro/theme01, README, docs, CI), before committing or opening a PR, writing README feature claims, touching migrations or the D1 schema, adding dependencies, or reviewing contributions. Loads and defers to AGENTS.md for the repo contract; this skill is the step-by-step workflow, not a duplicate of it.4metadata:5 source: https://skillmd.com/skills/bighadj22/codflow-governance6---78# CodFlow Governance — change workflow910CodFlow is an Apache-2.0, self-hosted, cash-on-delivery (COD) e-commerce11platform for Algeria, open-sourced for the first time. This skill is the12**workflow** for landing a change. The repo contract (layout, commands,13verification, boundaries, traps, security rules) lives in the root14`AGENTS.md` — read it first; it is the source of truth. Package-specific15commands and boundaries live in each package's `AGENTS.md`16(`cod-astro/theme01/AGENTS.md`).1718## When to use1920- You are about to change code, docs, schema, or CI in this repo.21- You are writing README feature claims.22- You are reviewing a contribution.2324## The change workflow2526### 1. Locate the change2728- Identify the package(s) affected (cod-server / cod-client-astro / cod-shared /29 cod-astro/theme01). Read the root `AGENTS.md`, then the package's `AGENTS.md`.30- Respect the `cod-shared` boundary: schema, queries, RBAC scopes, and error31 codes are defined there and only there. Do not duplicate them in a package.32- Migrations: add a new migration; never rewrite an already-applied one.33- Ask before adding a production dependency or changing the D1 schema.34- Keep engine logic out of `cod-astro/theme01` (swappable theme layer).3536### 2. Install dependencies3738One install at the repo root covers every workspace (single root lockfile —39never create per-package lockfiles):4041```sh42npm ci43```4445### 3. Make the change4647- One logical change per commit. Conventional Commits48 (`feat:`, `fix:`, `docs:`, `chore:`, `refactor:`, `test:`, `ci:`).49- No explanatory code comments unless asked.50- Never commit secrets (API keys, carrier tokens, credentials). Real secrets go51 in `wrangler secrets` / `.dev.vars` (gitignored).52- Add or update a **focused test** for behavior changes.5354### 4. Verify — never skip5556- After **any TypeScript change**: run `npm run typecheck` in the affected57 package (theme01: `npx astro check`).58- After **any behavior change**: run `npm test` in the affected package.59- README claims must be code-verified: never write a feature claim the code60 does not implement. If a feature is partially built, say exactly that.61- Do not mark work complete until typecheck + tests actually pass.6263### 5. Commit, branch, PR6465- Work on a branch named `feat/…`, `fix/…`, `chore/…`, `docs/…`.66- PRs must be small enough to review in one sitting (< ~500 lines).67- The PR template checklist must pass: no secrets, tests cover the change,68 README claims match code, conventional commit message.69- CI (typecheck + tests for cod-server, cod-client-astro, cod-client (legacy),70 and astro check + tests for theme01) must be green.71- When reviewing: README claims only what code does? Secrets absent? Tests72 included? Migrations additive?7374### 6. Changelog7576- User-visible changes go under `[Unreleased]` in `CHANGELOG.md` (Keep a77 Changelog), grouped by Added / Changed / Deprecated / Removed / Fixed /78 Security.79- Releases follow SemVer, are git-tagged, and announced via GitHub Releases.8081## Review checklist (use when reviewing a contribution)8283- [ ] README claims only what the code actually does84- [ ] No secrets / credentials in the diff85- [ ] Tests cover the change (or an existing test covers it)86- [ ] Migrations are additive (new file, not a rewrite)87- [ ] `cod-shared` boundaries respected (no duplicated schema/scopes)88- [ ] Conventional commit message89- [ ] Typecheck + tests pass for affected packages9091## Security reports9293- Never accept vulnerability reports as public issues — point reporters to94 GitHub private vulnerability reporting (see `SECURITY.md`).95- Acknowledgment target: 3 business days; coordinated disclosure.96- Supported versions: only `main` and the latest tag.