Skills watch

opensilk-init

Build or extend a business application (ERP, POS, retail, CRM, inventory, procurement, HRM, manufacturing, accounting integration, internal tools) on the OpenSilk core (open-silk). Use when the user describes a business need and wants an app, a module or an integration; maps the need to verified core capabilities, vendors the pinned core read-only, and builds only the business-specific part.

Score 49research hoanganh8389/opensilk-skills source file first seen 2026-12-01

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-init
description: Build or extend a business application (ERP, POS, retail, CRM, inventory, procurement, HRM, manufacturing, accounting integration, internal tools) on the OpenSilk core (open-silk). Use when the user describes a business need and wants an app, a module or an integration; maps the need to verified core capabilities, vendors the pinned core read-only, and builds only the business-specific part.
---

# Build on OpenSilk

The kit trusts exactly what `<kit>/opensilk.json` pins: each source's repo, commit, license and release packages with sha256. Anything not in that file is unverified.

## 1. Understand the business need (no writes)

Ask, or infer from the request, which needs apply. Known needs are the keys of `needs` in `<kit>/opensilk.json`. Inspect the user's project read-only: stack, package manager, existing data model. Not every app needs OpenSilk; if the project is not Node/TypeScript, say so and stop. For CRM, accounting or a full ERP, suggest the dedicated kits (opensilk-crm-kit, opensilk-accounting-kit, opensilk-erp-kit). For a retail POS, open-kiot (https://github.com/hoanganh8389/open-kiot) is the planned app for store chains, at P0 with no code yet: mention it as planned, do not install it.

## 2. Plan deterministically

```bash
node <kit>/tools/opensilk.mjs plan --project <app> --need <need1,need2>
```

The JSON output separates:
- `reuse`: capabilities to use, with `status` (`available` / `partial`), `limits` and the files to read.
- `notYetAvailable`: planned capabilities. Do not fake them; tell the user.
- `customWork`: business logic the sources deliberately do not contain. This is what you build.
- `blockers`: fix or report before going on.

Show the user a short plan: what is reused, what is built, files affected, dependencies, risks, rollback. **Wait for approval.**

## 3. Vendor the pinned sources (after approval)

```bash
node <kit>/tools/opensilk.mjs fetch --project <app> --dry-run
node <kit>/tools/opensilk.mjs fetch --project <app>
```

Each source lands in `<app>/.opensilk/<source-id>` at its pinned commit. Add `.opensilk/` to the app's `.gitignore`. Vendored copies are **read-only reference**: never edit, build or run scripts inside them.

## 4. Read only what the plan lists

Read each source's `AGENTS.md` first (source rules override this skill), then `readFirst` and the `read` files of reused capabilities. Do not load whole repos. Some source docs are written in Vietnamese; read them as they are and answer the user in the user's language. Where docs and the registry `status` disagree, trust the code at the pinned commit and report the difference.

## 5. Add dependencies (after approval)

```bash
node <kit>/tools/opensilk.mjs deps --need <need1,need2>
```

Put the printed URLs in `package.json` exactly as printed (release tarballs; the packages are not on npm). Install with the app's package manager.

## 6. Build the business part

- Write business logic as a module with `@bizcity/module-sdk`; a module imports only that package.
- Reuse core identities, documents, actions, permissions and list screens instead of creating your own tables or UI for them.
- Build `customWork` domains in the user's code. Never patch a vendored source.
- If the app needs something generic that the core lacks, build it in the app, mark it as a core candidate and tell the user.
- Preserve identity, document history and authority boundaries. Never silently replace existing data or bypass accounting validation.

## 7. Verify and report

```bash
node <kit>/tools/opensilk.mjs verify --project <app>
```

`verify` checks the Node version, vendored commit = pinned commit, no local edits, registry paths present, and every `@bizcity/*` dependency pinned. Then run the app's own 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, commands or versions not in `opensilk.json` or the vendored sources.
- Move to another commit than the pinned one without the user's approval and a registry update.
- Install, migrate or overwrite existing data without approval.