[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79GP1J3CFH586FQWWK4JP3R":3,"skill-same:01M79GP1J3CFH586FQWWK4JP3R":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M79GP1J3CFH586FQWWK4JP3R","saasaloy-env",null,"Runbook for the env capability in packages\u002Fenv — the one tracked key list, the pnpm env:setup distribution command, the pnpm deploy:production deploy with env-deploy, and the typed createEnv gate each service reads its values through. Use when deploying to Cloudflare, when a deploy stops naming a blank production key, adding an environment key, when a build or a request fails naming an unset key, when choosing which services read a key, when a value must stay blank, when a key is checkout-owned, when picking a value source, or when a leftover .dev.vars is hiding .env from wrangler.","mimukit\u002Fsaasaloy","mimukit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11677026?v=4","01M79GFSERAQQ77QPQMC1N0Y6M","Mukitul Islam Mukit","01M79GFSFA4WMGEEBHA68N59WV",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-env\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: saasaloy-env\ndescription: Runbook for the env capability in packages\u002Fenv — the one tracked key list, the pnpm env:setup distribution command, the pnpm deploy:production deploy with env-deploy, and the typed createEnv gate each service reads its values through. Use when deploying to Cloudflare, when a deploy stops naming a blank production key, adding an environment key, when a build or a request fails naming an unset key, when choosing which services read a key, when a value must stay blank, when a key is checkout-owned, when picking a value source, or when a leftover .dev.vars is hiding .env from wrangler.\n---\n\n# env — one key list, one command, one typed gate\n\n`packages\u002Fenv` (`@repo\u002Fenv`) owns both halves of this project's environment story.\n\nThe **node half** is a tracked key list (`packages\u002Fenv\u002F.env.example`), a gitignored value file (`packages\u002Fenv\u002F.env`), and `pnpm env:setup`, which writes every service's own `.env` from the two. The **runtime half** is `createEnv`, which validates the values a service actually got and hands back typed ones.\n\nA *service* is a workspace that reads a `.env`: `api`, `web`, `admin`. The name is the workspace directory. `packages\u002Fenv\u002Fsrc\u002Fservices.ts` holds the table, and `saasaloy add api` appends a row to it. One row has no workspace and no file: `deploy` holds `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`, which a deploy loads in memory.\n\n## Adding a key, in two steps\n\n**1. Add its line to `packages\u002Fenv\u002F.env.example`**, under the `# @services` section naming every service that reads it. Write a comment above it saying where the value comes from and what unset looks like. Put the local development default on the line.\n\n```\n# @services api\n\n# Sender address every outbound message uses. The domain must be one the selected\n# provider may send from. Unset, the first send throws naming this key.\nEMAIL_FROM=dev@localhost\n```\n\nA key with no `# @services` line above it fails `pnpm env:setup`. That is deliberate: a key that reaches no service is a key the Worker throws on, and failing here is the cheaper place to find out.\n\n**2. Declare it in the preset** of the package that reads it, so `createEnv` validates it and the type reaches the calling code.\n\n```ts\n\u002F\u002F packages\u002Femail\u002Fsrc\u002Fenv-preset.ts\nexport const emailPreset = definePreset({\n  module: \"@repo\u002Femail\",\n  extends: [],\n  server: {\n    EMAIL_FROM: z.string().min(1).describe(\"Sender address every message uses.\"),\n  },\n});\n```\n\nThe `.describe()` text is what the aggregate error prints, so write it for the person reading a failed deploy.\n\n## Reading a key\n\nOn the server, pass the Worker's `env`:\n\n```ts\nimport { apiEnv } from \"@api\u002Fenv\";\n\napp.get(\"\u002Fx\", (c) => {\n  const { EMAIL_FROM } = apiEnv(c.env);\n});\n```\n\nIn a frontend, call it with nothing — the values are inlined at build time:\n\n```ts\nimport { webEnv } from \"@web\u002Fenv\";\n\nconst base = webEnv().PUBLIC_API_URL;\n```\n\n`createEnv` validates on the **first call per `env` object** and memoizes the result in a `WeakMap`. A Worker cannot see its `env` at module scope, so the first request is the earliest honest point to check. One throw then names every failing key at once, with the module that declared it and that module's own wording, so a deploy with three unset keys takes one round trip to fix.\n\n## Server, client, shared\n\n- `server` — read only where `isServer` is true. A Worker, a build script.\n- `client` — inlined into a public bundle. **Must** start with `PUBLIC_`, and the type system says so: a mis-prefixed key does not compile.\n- `shared` — read on both sides.\n\n`apps\u002Fweb\u002Fsrc\u002Fenv.ts` and `apps\u002Fadmin\u002Fsrc\u002Fenv.ts` set `isServer: false`, which arms a Proxy: reading a server key from client code throws by name. `typeof window === \"undefined\"` is not used, because it is true in a Worker *and* in a browser bundle before hydration.\n\nThe `runtimeEnvStrict` map in those files is hand-written, one literal `import.meta.env.PUBLIC_X` per key. Vite inlines a literal member expression and nothing else, so a spread, a loop or a computed key compiles to `undefined` in the built bundle and fails only in production. **Add the line by hand when you add a client key.**\n\n## Blank on purpose\n\n`pnpm env:setup` fails on a key the list carries with no value. When a key is meant to stay empty, say so in its comment block:\n\n```\n# Blank on purpose: unset means no proxy origin, and a link is root-relative.\nSTORAGE_PROXY_URL=\n```\n\n## Checkout-owned keys\n\n`CHECKOUT_OWNED_KEYS` in `packages\u002Fenv\u002Fsrc\u002Fservices.ts` lists keys this checkout sets for itself. A key named there keeps whatever value is already on disk, whoever wrote it, so a per-branch `DATABASE_URL` survives every `pnpm env:setup`. `packages\u002Fenv` never learns what a database is — only that some key is the checkout's to set.\n\n## Value sources\n\n`pnpm env:setup` reads its values from a source, selected by `ENV_SOURCE`:\n\n- **`local`** (the default, always installed) reads the gitignored `packages\u002Fenv\u002F.env`. `saasaloy env` prompts for each unset key and writes that file, so a project develops with no vendor account and no network. An agent with no terminal runs `saasaloy env --from-file \u003Cpath>` instead, which writes the `KEY=VALUE` lines of a dotenv file with no prompt and refuses a key no installed module declares. Prefer it to `--set KEY=VALUE`, which leaves the value in shell history.\n- **`infisical`** arrives with `saasaloy add env-infisical`.\n\nA source that does not answer at all — no CLI, no network — is treated as offline: `env:setup` keeps every service file that is already complete and warns, and fails writing nothing when one is incomplete. A refusal the source *answered* with, such as no access, always fails.\n\n## Production and `--env prod`\n\nEach service row declares `dev` or `prod`. `pnpm env:setup --env prod` refuses to act without `--only \u003Cservice>`, and refuses outright to write production values into a workspace under `apps\u002F`. Two independent guards on the one command that can put a live credential on disk.\n\n`saasaloy env` prints the `wrangler secret put` lines for a deploy. It never runs them, and `pnpm deploy:production` makes them unnecessary.\n\n## Deploying: `pnpm deploy:production` and `env-deploy`\n\n`pnpm deploy:production` (`packages\u002Ftooling\u002Fsrc\u002Fdeploy-production.ts`) deploys every Worker in the project with wrangler. The `saasaloy-deploy` skill covers its gates, its flags, the go-ahead an agent needs, the hotfix branch and the rollback. This section covers the environment half:\n\n1. Before any build, it runs `node packages\u002Fenv\u002Fsrc\u002Fdeploy.ts --check`. That loads every service's `prod` values from the selected source and exits non-zero, naming each blank key, when one is missing. It also stops when `CLOUDFLARE_API_TOKEN` is blank and wrangler holds no `wrangler login` session. `pnpm deploy:production --dry-run` runs the same check and reports its result.\n2. It then runs each deploy target's `deploy` script, one at a time, in the order `packages\u002Ftooling\u002Fsrc\u002Ftargets.ts` gives. That script is `env-deploy \u003Cservice>`. No Worker deploy runs a migration. A production migration runs only through `pnpm deploy:production --migrate`.\n\n`env-deploy \u003Cservice>` loads that service's `prod` values and the `deploy` credentials, runs `pnpm run build` with them in the environment, and runs `wrangler deploy --secrets-file \u003Cfile>`. Code and secrets land in one Worker version, so a Worker that throws at module scope on a missing secret deploys cleanly the first time. The secrets file is JSON, mode `0600`, under the OS temp directory, and deleted when the deploy ends, passed or failed. It holds the service's values minus every `CLOUDFLARE_*` key, minus each key the Worker's `wrangler.jsonc` already sets in `vars`, minus empty values. An assets-only Worker, one with no `main`, gets no secrets file.\n\n**Where the production values come from.** The `local` source reads the gitignored `packages\u002Fenv\u002F.env.prod`, never `packages\u002Fenv\u002F.env`, so a deploy cannot ship a `localhost` URL by accident. Copy the keys from `packages\u002Fenv\u002F.env.example` into it and set each one. `env-infisical` reads its `prod` environment. A variable the shell already exports wins over both, which is how CI passes values. The base `turbo.json` keeps a `deploy` task with `passThroughEnv` for a project that runs `turbo run deploy` by hand, because turbo's strict env mode would drop the exported variables otherwise. `pnpm deploy:production` does not use turbo for the deploy.\n\n**Why the dev `.env` stays out of the build.** Vite gives the environment priority over a `.env` file, but the Cloudflare adapters prerender inside workerd, and wrangler hands workerd the `.env` beside the workspace as its vars. So `env-deploy` builds with `CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV=false`, and it sets a key the source leaves out to an empty string rather than leaving it unset. `apps\u002Fweb\u002F.env` keeps its dev values, and nothing writes a production value under `apps\u002F`.\n\nThree more forms:\n\n- `pnpm deploy:production --only \u003Cservice>` deploys one Worker after the same gates, and runs its smoke checks. It writes no deploy tag.\n- `pnpm --filter @repo\u002Fweb run deploy -- --dry-run` builds one Worker with the production values and uploads nothing. Pass wrangler flags after `--`. Do not deploy with `pnpm --filter \u003Cpackage> run deploy` alone: it skips the gates, the order and the tag.\n- `env-deploy --run \u003Cservice> -- \u003Ccommand> [args...]` runs one command with that service's `prod` values and the credentials. The `db:prod:migrate` and `db:prod:dump` scripts use it: `--run api` under `database-postgres`, because `DATABASE_URL` is an `api` key, and `--run deploy` under `database-d1`, which needs only the Cloudflare credentials.\n- `env-deploy --check` is step 1 on its own.\n\nTwo things the flow does not do. `--secrets-file` only adds: a secret you removed from the value source stays on the Worker until you run `wrangler secret delete \u003CKEY>` in its workspace. And a key marked `# Blank on purpose` passes the check even where production needs it, such as `BETTER_AUTH_SECRET`; the Worker's own `createEnv` gate is what refuses it.\n\n## `.dev.vars` is gone\n\nThis project writes `.env` and nothing else. A leftover `.dev.vars` **hides** `.env` from wrangler — wrangler loads `.env` only while no `.dev.vars` sits beside it, and it does not warn — so `saasaloy doctor` reports one and `pnpm env:setup` carries its values across and deletes it.\n\n## `process.env`\n\nNo file a Worker imports reads it. The Worker's `env` is the only source, and it arrives through `createEnv`. Node tooling — `scripts\u002F`, `env-deploy`, a value source — reads it freely.\n","# env — one key list, one command, one typed gate\n\n`packages\u002Fenv` (`@repo\u002Fenv`) owns both halves of this project's environment story.\n\nThe **node half** is a tracked key list (`packages\u002Fenv\u002F.env.example`), a gitignored value file (`packages\u002Fenv\u002F.env`), and `pnpm env:setup`, which writes every service's own `.env` from the two. The **runtime half** is `createEnv`, which validates the values a service actually got and hands back typed ones.\n\nA *service* is a workspace that reads a `.env`: `api`, `web`, `admin`. The name is the workspace directory. `packages\u002Fenv\u002Fsrc\u002Fservices.ts` holds the table, and `saasaloy add api` appends a row to it. One row has no workspace and no file: `deploy` holds `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`, which a deploy loads in memory.\n\n## Adding a key, in two steps\n\n**1. Add its line to `packages\u002Fenv\u002F.env.example`**, under the `# @services` section naming every service that reads it. Write a comment above it saying where the value comes from and what unset looks like. Put the local development default on the line.\n\n```\n# @services api\n\n# Sender address every outbound message uses. The domain must be one the selected\n# provider may send from. Unset, the first send throws naming this key.\nEMAIL_FROM=dev@localhost\n```\n\nA key with no `# @services` line above it fails `pnpm env:setup`. That is deliberate: a key that reaches no service is a key the Worker throws on, and failing here is the cheaper place to find out.\n\n**2. Declare it in the preset** of the package that reads it, so `createEnv` validates it and the type reaches the calling code.\n\n```ts\n\u002F\u002F packages\u002Femail\u002Fsrc\u002Fenv-preset.ts\nexport const emailPreset = definePreset({\n  module: \"@repo\u002Femail\",\n  extends: [],\n  server: {\n    EMAIL_FROM: z.string().min(1).describe(\"Sender address every message uses.\"),\n  },\n});\n```\n\nThe `.describe()` text is what the aggregate error prints, so write it for the person reading a failed deploy.\n\n## Reading a key\n\nOn the server, pass the Worker's `env`:\n\n```ts\nimport { apiEnv } from \"@api\u002Fenv\";\n\napp.get(\"\u002Fx\", (c) => {\n  const { EMAIL_FROM } = apiEnv(c.env);\n});\n```\n\nIn a frontend, call it with nothing — the values are inlined at build time:\n\n```ts\nimport { webEnv } from \"@web\u002Fenv\";\n\nconst base = webEnv().PUBLIC_API_URL;\n```\n\n`createEnv` validates on the **first call per `env` object** and memoizes the result in a `WeakMap`. A Worker cannot see its `env` at module scope, so the first request is the earliest honest point to check. One throw then names every failing key at once, with the module that declared it and that module's own wording, so a deploy with three unset keys takes one round trip to fix.\n\n## Server, client, shared\n\n- `server` — read only where `isServer` is true. A Worker, a build script.\n- `client` — inlined into a public bundle. **Must** start with `PUBLIC_`, and the type system says so: a mis-prefixed key does not compile.\n- `shared` — read on both sides.\n\n`apps\u002Fweb\u002Fsrc\u002Fenv.ts` and `apps\u002Fadmin\u002Fsrc\u002Fenv.ts` set `isServer: false`, which arms a Proxy: reading a server key from client code throws by name. `typeof window === \"undefined\"` is not used, because it is true in a Worker *and* in a browser bundle before hydration.\n\nThe `runtimeEnvStrict` map in those files is hand-written, one literal `import.meta.env.PUBLIC_X` per key. Vite inlines a literal member expression and nothing else, so a spread, a loop or a computed key compiles to `undefined` in the built bundle and fails only in production. **Add the line by hand when you add a client key.**\n\n## Blank on purpose\n\n`pnpm env:setup` fails on a key the list carries with no value. When a key is meant to stay empty, say so in its comment block:\n\n```\n# Blank on purpose: unset means no proxy origin, and a link is root-relative.\nSTORAGE_PROXY_URL=\n```\n\n## Checkout-owned keys\n\n`CHECKOUT_OWNED_KEYS` in `packages\u002Fenv\u002Fsrc\u002Fservices.ts` lists keys this checkout sets for itself. A key named there keeps whatever value is already on disk, whoever wrote it, so a per-branch `DATABASE_URL` survives every `pnpm env:setup`. `packages\u002Fenv` never learns what a database is — only that some key is the checkout's to set.\n\n## Value sources\n\n`pnpm env:setup` reads its values from a source, selected by `ENV_SOURCE`:\n\n- **`local`** (the default, always installed) reads the gitignored `packages\u002Fenv\u002F.env`. `saasaloy env` prompts for each unset key and writes that file, so a project develops with no vendor account and no network. An agent with no terminal runs `saasaloy env --from-file \u003Cpath>` instead, which writes the `KEY=VALUE` lines of a dotenv file with no prompt and refuses a key no installed module declares. Prefer it to `--set KEY=VALUE`, which leaves the value in shell history.\n- **`infisical`** arrives with `saasaloy add env-infisical`.\n\nA source that does not answer at all — no CLI, no network — is treated as offline: `env:setup` keeps every service file that is already complete and warns, and fails writing nothing when one is incomplete. A refusal the source *answered* with, such as no access, always fails.\n\n## Production and `--env prod`\n\nEach service row declares `dev` or `prod`. `pnpm env:setup --env prod` refuses to act without `--only \u003Cservice>`, and refuses outright to write production values into a workspace under `apps\u002F`. Two independent guards on the one command that can put a live credential on disk.\n\n`saasaloy env` prints the `wrangler secret put` lines for a deploy. It never runs them, and `pnpm deploy:production` makes them unnecessary.\n\n## Deploying: `pnpm deploy:production` and `env-deploy`\n\n`pnpm deploy:production` (`packages\u002Ftooling\u002Fsrc\u002Fdeploy-production.ts`) deploys every Worker in the project with wrangler. The `saasaloy-deploy` skill covers its gates, its flags, the go-ahead an agent needs, the hotfix branch and the rollback. This section covers the environment half:\n\n1. Before any build, it runs `node packages\u002Fenv\u002Fsrc\u002Fdeploy.ts --check`. That loads every service's `prod` values from the selected source and exits non-zero, naming each blank key, when one is missing. It also stops when `CLOUDFLARE_API_TOKEN` is blank and wrangler holds no `wrangler login` session. `pnpm deploy:production --dry-run` runs the same check and reports its result.\n2. It then runs each deploy target's `deploy` script, one at a time, in the order `packages\u002Ftooling\u002Fsrc\u002Ftargets.ts` gives. That script is `env-deploy \u003Cservice>`. No Worker deploy runs a migration. A production migration runs only through `pnpm deploy:production --migrate`.\n\n`env-deploy \u003Cservice>` loads that service's `prod` values and the `deploy` credentials, runs `pnpm run build` with them in the environment, and runs `wrangler deploy --secrets-file \u003Cfile>`. Code and secrets land in one Worker version, so a Worker that throws at module scope on a missing secret deploys cleanly the first time. The secrets file is JSON, mode `0600`, under the OS temp directory, and deleted when the deploy ends, passed or failed. It holds the service's values minus every `CLOUDFLARE_*` key, minus each key the Worker's `wrangler.jsonc` already sets in `vars`, minus empty values. An assets-only Worker, one with no `main`, gets no secrets file.\n\n**Where the production values come from.** The `local` source reads the gitignored `packages\u002Fenv\u002F.env.prod`, never `packages\u002Fenv\u002F.env`, so a deploy cannot ship a `localhost` URL by accident. Copy the keys from `packages\u002Fenv\u002F.env.example` into it and set each one. `env-infisical` reads its `prod` environment. A variable the shell already exports wins over both, which is how CI passes values. The base `turbo.json` keeps a `deploy` task with `passThroughEnv` for a project that runs `turbo run deploy` by hand, because turbo's strict env mode would drop the exported variables otherwise. `pnpm deploy:production` does not use turbo for the deploy.\n\n**Why the dev `.env` stays out of the build.** Vite gives the environment priority over a `.env` file, but the Cloudflare adapters prerender inside workerd, and wrangler hands workerd the `.env` beside the workspace as its vars. So `env-deploy` builds with `CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV=false`, and it sets a key the source leaves out to an empty string rather than leaving it unset. `apps\u002Fweb\u002F.env` keeps its dev values, and nothing writes a production value under `apps\u002F`.\n\nThree more forms:\n\n- `pnpm deploy:production --only \u003Cservice>` deploys one Worker after the same gates, and runs its smoke checks. It writes no deploy tag.\n- `pnpm --filter @repo\u002Fweb run deploy -- --dry-run` builds one Worker with the production values and uploads nothing. Pass wrangler flags after `--`. Do not deploy with `pnpm --filter \u003Cpackage> run deploy` alone: it skips the gates, the order and the tag.\n- `env-deploy --run \u003Cservice> -- \u003Ccommand> [args...]` runs one command with that service's `prod` values and the credentials. The `db:prod:migrate` and `db:prod:dump` scripts use it: `--run api` under `database-postgres`, because `DATABASE_URL` is an `api` key, and `--run deploy` under `database-d1`, which needs only the Cloudflare credentials.\n- `env-deploy --check` is step 1 on its own.\n\nTwo things the flow does not do. `--secrets-file` only adds: a secret you removed from the value source stays on the Worker until you run `wrangler secret delete \u003CKEY>` in its workspace. And a key marked `# Blank on purpose` passes the check even where production needs it, such as `BETTER_AUTH_SECRET`; the Worker's own `createEnv` gate is what refuses it.\n\n## `.dev.vars` is gone\n\nThis project writes `.env` and nothing else. A leftover `.dev.vars` **hides** `.env` from wrangler — wrangler loads `.env` only while no `.dev.vars` sits beside it, and it does not warn — so `saasaloy doctor` reports one and `pnpm env:setup` carries its values across and deletes it.\n\n## `process.env`\n\nNo file a Worker imports reads it. The Worker's `env` is the only source, and it arrives through `createEnv`. Node tooling — `scripts\u002F`, `env-deploy`, a value source — reads it freely.\n",{"name":5,"description":7},"main","a46a4dd388795519840da0ed1f695634b6dcd99b","packages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-env",0,"https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy","https:\u002F\u002Fsaasaloy.com","https:\u002F\u002Fgithub.com\u002Fmimukit","https:\u002F\u002Fmimukit.com","Senior Software Engineer · 9+ yrs Fullstack (TS\u002FNode\u002FReact) · AI integrations, distributed systems · Building @saasaloy & @codealoy · Bangladesh 🇧🇩 \u002F Remote","2026-11-13 20:39:28",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mimukit\u002Fsaasaloy --skill saasaloy-env",{"tool":40,"command":41},"bunx","bunx skills add mimukit\u002Fsaasaloy --skill saasaloy-env",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mimukit\u002Fsaasaloy --skill saasaloy-env","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-env\u002FSKILL.md",true,[],[49,56,63,70,77,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7BE75C34XHSPVJNQC8FY4Q0","saasaloy-subscription","Runbook for the subscription capability — provider-agnostic subscriptions in packages\u002Fsubscription, with a plan file, a projection table, a billable-subject file, plan entitlements and per-provider modules. Use when adding a plan, adding a plan feature or a numeric limit, gating an API route with requireFeature or requireWithinLimit, reading the 402 it returns, working out why a subject resolves to the free plan, wiring a checkout or portal route, reading a SubscriptionError, choosing or switching SUBSCRIPTION_PROVIDER, registering a webhook in the vendor's dashboard, writing a third subscription provider, or upgrading a project that still has `billing` installed.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fsubscription\u002Fskills\u002Fsaasaloy-subscription\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7BE68MJ8H47JZKTBDFYR6JD","saasaloy-notification","Runbook for the notification module, in-app notifications for apps\u002Fapp. It owns the notifications and notification_opt_outs tables, notify() in apps\u002Fapi\u002Fsrc\u002Flib\u002Fnotify.ts, the \u002Fnotifications api routes, the bell in the app header, the sidebar badge, the \u002Fnotifications page with Inbox and Preferences tabs, the notification config section, and the daily prune. Use when sending a notification from an api route, adding or changing a category, changing retention, debugging a badge or bell count that does not move, or removing the module.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fnotification\u002Fskills\u002Fsaasaloy-notification\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7BE53PDQV0YDPG8RNVGTPEQ","saasaloy-cms","Runbook for the cms module, the in-house CMS behind apps\u002Fadmin. Covers code-defined collections, the Tiptap editor, drafts, revisions and redirects, the publish-time renderer, the public blog on apps\u002Fweb and its 60-second cache. Use when adding a collection or a field, rendering a stored body, reusing the editor, renderer or media field from another module, moving the blog to another path, re-rendering live posts after a renderer upgrade or a STORAGE_PUBLIC_URL change, or working out why a published post is not live yet.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fcms\u002Fskills\u002Fsaasaloy-cms\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M79GQ03M63V5EKSST92B3S5X","saasaloy-beta","The beta module's own procedure.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftest\u002Ffixtures\u002Fregistry-clean\u002Fbeta\u002Fsaasaloy-beta\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79GPXV3K8YF3M4VA0KGVE0B","helper","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftest\u002Ffixtures\u002Fregistry-broken\u002Fbad-skill\u002Fhelper\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79GPR8EVS1YX0W8X33Q9YD8","saasaloy-update","Runbook for an AI agent that updates this project to a newer Saasaloy CLI and newer module versions with saasaloy update. Use when the owner says \"update saasaloy\", \"upgrade the CLI\", \"pull the latest modules\", \"update the base template\", \"work the merge plan\", \"clear the update notes\", when saasaloy update or saasaloy outdated --check exits 3 or 2, when a merge plan or .saasaloy\u002Fmerge-plan.md is handed to you, or when an adopted project takes its first update. Covers the CLI upgrade, the preview, --out, the file merges, the update notes and \"Notes that may apply\", --resolved and --done, a file deleted locally and --restore, a three-way or two-way base, an update that skips releases, --from, the verify commands, and the exit codes.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-update\u002FSKILL.md",[],[]]