Concave

From udecode/kitcn · View interactive version

Concave is an AI agent skill from the GitHub repository udecode/kitcn. Skill: concave

How to use this skill

Skill file

Concave

Scope

Use this skill for Concave-specific behavior and Concave-vs-Convex differences in this repo.

Use concave-parity when the task is specifically about parity gaps, local

workarounds, or removing Concave-specific bandaids after upstream catches up.

Keep the boundary hard:

Do not restate generic Convex docs here. The convex skill already owns that.

Upstream Concave Facts That Actually Matter

These are the Concave-only facts worth keeping in your head.

Runtime model

Deployment shape

Local dev shape

Configuration / API differences

Compatibility gaps

Testing stance upstream

Current Repo Usage

We use Concave in two concrete ways.

Public backend selector

kitcn now resolves backend in this order:

  1. --backend <convex|concave>
  2. meta["kitcn"].backend in concave.json
  3. default convex

Public meaning:

Internal meaning:

Files:

Command shape:

Concave smoke lane

Use:

bun run test:concave

Files:

Runtime shape:

Goal:

Keep it small. This is a smoke lane, not a migration plan.

Repo-Specific Concave Differences

Template sync/check uses the public backend selector

tooling/fixtures.ts runs local committed starter sync with

kitcn init -t <next|vite> --backend concave.

That means:

flow running kitcn codegen against Concave-backed bootstrap

`_generated/*` drift is expected

Concave-generated _generated/* output is not guaranteed to match Convex-generated output byte-for-byte.

Read the diff before calling it a bug.

`staticDataModel` mismatch is still real

Current repo finding:

So today, in this repo path, Concave is not honoring that flag.

`api.d.ts` override is gone

Current repo truth:

to force

Meaning:

Use plain `bun`, not `bun test`, for the smoke lane

Root bun test preloads Happy DOM here.

That poisoned ConvexHttpClient behavior for the Concave smoke lane.

Keep the smoke entry as:

bun ./test/concave/run-smoke.ts

Keep the adapter tiny

Do not invent a second fake runtime layer on top of backend.

The right model is:

Read Before Editing

Start with repo wiring:

Then read Concave docs starting from:

Do Not

Verification

When touching Concave repo-runtime wiring, run:

bun test packages/kitcn/src/cli/commands/init.test.ts ./tooling/fixtures.test.ts ./tooling/scenarios.test.ts
bun test packages/kitcn/src/cli/cli.test.ts
bun run test:concave
bun run fixtures:check
bun run scenario:check

If package code changed too, also run:

bun --cwd packages/kitcn build
bun lint:fix
bun typecheck

Skill Sync

When Concave docs or repo usage changes, update this skill with this exact loop.

1. Re-read current repo wiring

rg -n "backend|concave-bun|test:concave|createConcave|@concavejs|Concave|--backend" \
  package.json \
  packages/kitcn/src/cli/backend-core.ts \
  packages/kitcn/src/cli/config.ts \
  packages/kitcn/src/cli/cli.ts \
  packages/kitcn/src/cli/commands/init.ts \
  packages/kitcn/src/cli/commands/init.test.ts \
  tooling/fixtures.ts \
  tooling/fixtures.test.ts \
  tooling/scenarios.ts \
  tooling/scenarios.test.ts \
  test/concave \
  .github/workflows/ci.yml \
  -g '!**/_generated/**'

2. Re-fetch the upstream Concave doc index

mkdir -p /tmp/concave-docs-fetch
curl -fsSL -A 'Mozilla/5.0' https://docs.concave.dev/llms.txt \
  | tee /tmp/concave-docs-fetch/llms.txt

3. Re-fetch every linked page from `llms.txt`

awk '
  match($0, /(https:\\/\\/docs\\.concave\\.dev[^) ]+)/, m) { print m[1] }
' /tmp/concave-docs-fetch/llms.txt \
  | nl -ba \
  | while read -r n url; do
      curl -fsSL -A 'Mozilla/5.0' "$url" >"/tmp/concave-docs-fetch/${n}.md"
    done

4. Rewrite this file with Concave-only facts

Rules:

5. Regenerate agent docs

bunx skiller@latest apply

6. Validate the skill wiring

bun run intent:validate
bun run intent:stale

If .claude/AGENTS.md changes, that is expected. It is generated from .claude/**.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.