opensilk-crm
Build or extend a CRM (contacts, Contact 360, omnichannel inbox, customer care, sales pipeline, catalog) on open-silk + open-cake instead of generating CRM infrastructure from scratch. Use when the user wants a CRM, a customer database, a shared inbox across chat channels, customer-care workflows, or wants to link customers to POS / accounting.
Why it scored this
named +4 · described +6 · substantial +6 · right length +4 · evals +5 · code-fences +3 · active +5 · unseen-before +8 · specific-vocabulary +8
The file
--- name: opensilk-crm description: Build or extend a CRM (contacts, Contact 360, omnichannel inbox, customer care, sales pipeline, catalog) on open-silk + open-cake instead of generating CRM infrastructure from scratch. Use when the user wants a CRM, a customer database, a shared inbox across chat channels, customer-care workflows, or wants to link customers to POS / accounting. --- # Build a CRM on OpenSilk `<kit>/opensilk.json` pins two sources: **open-silk** (core: modules, actions, permissions, identities, documents, web shell) and **open-cake** (web CRM: `contact_id` spine, append-only touch log, inbox, Contact 360). Anything not in that file is unverified. ## 1. Understand the need (no writes) Map the request to needs in `<kit>/opensilk.json`: `contacts`, `omnichannel-inbox`, `customer-care`, `sales-pipeline`, `catalog`, `link-other-apps`, `custom-crm-module`. Inspect the user's project read-only. Decide which of two paths fits: - **A. Start from open-cake**: the user's CRM *is* an open-cake clone, extended with modules. Best for a new CRM. - **B. Existing app**: keep the user's app and reuse core packages plus open-cake contracts (contact, touch). Best when a CRM already exists. Orders taken in the CRM that a store must fulfil go to the POS as an `order_request` (idempotency key, signed); the POS receives `partner.code`, never `contact_id`. open-kiot (https://github.com/hoanganh8389/open-kiot), the planned retail POS, is designed around this contract; it is at P0 (no code yet), so say it is planned. ## 2. Plan ```bash node <kit>/tools/opensilk.mjs plan --project <app> --need <needs> ``` Present `reuse`, `notYetAvailable`, `customWork` and `blockers` in plain words. Say clearly that open-cake is early stage (see the `crm-app` limits) and which screens still use mock data. **Wait for approval.** ## 3. Get the sources (after approval) - Always: `node <kit>/tools/opensilk.mjs fetch --project <app>` vendors both sources read-only into `<app>/.opensilk/`; add `.opensilk/` to `.gitignore`. - Path A: clone open-cake as the project at the pinned commit: `git clone https://github.com/hoanganh8389/open-cake.git <app> && git -C <app> switch -c my-app <commit from opensilk.json>`, then follow its README to run (`pnpm install`, `pnpm test`, Docker). Its `AGENTS.md` now governs the project. ## 4. Read only what the plan lists Each source's `AGENTS.md` first, then `readFirst`, then the `read` files of reused capabilities. Source docs are partly in Vietnamese; read them as they are and answer in the user's language. ## 5. Build the business part - One person = one `contact_id`. Every channel identity, message, tag, task, order and document hangs off it. Never create a second customer table. - Touches are append-only: corrections are new touches, not edits. - Sales pipeline, quotes, campaigns and channel connectors are `customWork`. Build them as modules on `@bizcity/module-sdk`, using core documents for quotes and orders. - Receivables and invoices belong to an accounting ledger. Do not compute balances in the CRM; point the user to opensilk-accounting-kit. - Do not fake `contact-lookup-api` (planned); tell the user and offer a local stub behind an interface. ## 6. Verify and report ```bash node <kit>/tools/opensilk.mjs verify --project <app> ``` Then run the project's tests and typecheck. Report passed, failed and unverified items. Do not claim token or time savings without a measured, comparable benchmark. ## Never Invent packages, endpoints or commands; move to another commit without approval and a registry update; import or overwrite customer data without approval; edit a vendored source.