Thank you for contributing to Context Bridge.
This document explains how to participate in the project.
Context Bridge is infrastructure for managing, organizing, and transferring context between AI assistants.
Contributions should respect:
- portability
- privacy
- modularity
- software quality
Before changing code, read docs/, especially:
- Architecture
- API
- Security
- Roadmap / release plan
git clone <repository>
pnpm install
pnpm testMonorepo layout:
apps/
packages/
docs/
tests/
Place each feature in the appropriate module.
| Branch | Role |
|---|---|
main |
Stable code, build/tests green, ready to clone |
develop |
Optional continuous integration branch |
feature/* |
One feature / one phase |
fix/* |
Bug fix |
docs/* |
Documentation only |
Examples: feature/chatgpt-driver, fix/storage-cascade-delete, docs/english-universal.
Rule: never land work on main that fails pnpm test, pnpm lint, or pnpm build.
Required format:
type(scope): description
| Type | Usage |
|---|---|
feat |
New feature |
fix |
Bug fix |
test |
Tests |
docs |
Documentation |
chore |
Tooling, config, monorepo, deps |
refactor |
Refactor without behavior change |
build |
Build / packaging |
Recommended scopes: core, storage, drivers, search, summarizer, exporters, extension, docs, repo.
Rules:
- imperative, short technical English
- clear intent (why)
- one commit = one unit of meaning (phase, module, or fix)
Examples:
feat(core): add conversation and context pack services
feat(storage): persist conversations with Dexie
feat(drivers): add ChatGPT detect extract normalize flow
feat(extension): add ChatGPT import button
chore(repo): scaffold pnpm monorepo and tooling
docs: translate product documentation to English
| Work | Commit |
|---|---|
| Architecture / PRD / roadmap docs | docs: ... |
| Monorepo scaffold | chore(repo): ... |
| Core entities + services | feat(core): ... |
| Dexie / IndexedDB | feat(storage): ... |
| Manual JSON/text import | feat(core): add manual import pipeline |
| ChatGPT / Claude driver | feat(drivers): ... |
| Extension UI | feat(extension): ... |
| Tests only | test(scope): ... |
| Fix | fix(scope): ... |
Forbidden: node_modules, secrets, .env, kitchen-sink mega-commits, force-push to main, skipping hooks without explicit agreement.
pnpm lintpnpm testpnpm buildif the change affects the build- Review the diff
- Conventional Commit message
| Situation | Action |
|---|---|
| First publish | Push main after a clean series of commits |
| Work in progress | Push feature/* regularly |
| Integration | PR / merge into main |
| Hotfix | fix/* → review → main |
Only push code that builds and passes tests. No broken WIP on main.
A PR should include: description, rationale, affected modules, tests, architecture impact.
Idea → Documentation → Architecture → Interface → Code → Tests → Review
Unit tests, plus integration tests when needed.
Strict TypeScript, ESLint, Prettier, modular architecture.
No API keys in the repo, no user data in logs, minimal permissions.
Update docs/ for every important feature. Documentation is maintained in English.
Allowed; the contributor remains responsible (understanding, security, tests).
Quality, architecture, security, maintainability.
Every contribution helps build open, portable, reliable personal AI memory.