Skip to content

Commit ce92754

Browse files
dmealingclaude
andcommitted
docs(agent-context): point TS skills at meta docs template pages
The metaobjects-prompts TS reference now tells adopter agents to run `meta docs` and read the per-template `## Template source` linked-variable section; the metaobjects-codegen TS reference clarifies meta docs (neutral, the single door) vs apiDocsFile() (SDK reference generator). TS-stack agent-context goldens regenerated; non-TS stacks unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4d44ec9 commit ce92754

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

  • agent-context/skills
  • fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills

agent-context/skills/metaobjects-codegen/references/typescript.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ When `apiDocsFile()` is enabled (it is in the default scaffold), **read
6262
imports, function signatures, payload field shapes, and runnable examples for this
6363
project's generated API, so you don't have to guess them.
6464

65+
`apiDocsFile()` (a generator → `docs/api/`) is the SDK/API reference. The neutral
66+
model docs (one page per entity and per template, including the linked template
67+
source) are different: they come from the separate `meta docs` command (→ `docs/`),
68+
which is the single door for neutral docs — not a `meta gen` generator.
69+
6570
From `@metaobjectsdev/codegen-ts-react`: `formFile()``<Entity>.form.tsx`.
6671
From `@metaobjectsdev/codegen-ts-tanstack`: `tanstackQuery()``<Entity>.hooks.ts`
6772
(5 React Query hooks), `tanstackGrid()``<Entity>.columns.tsx`,

agent-context/skills/metaobjects-prompts/references/typescript.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,14 @@ build (exit 1, `(output)`-prefixed diagnostic) if a reference can't be resolved
9595
catching payload-VO ↔ parser drift at build time. The emitted parser imports `zod`;
9696
it's usually already a dependency (Drizzle / `runtime-ts` lean on it), else
9797
`npm i zod`.
98+
99+
## See which fields a template consumes
100+
101+
Run `meta docs` to emit neutral model docs to `./docs` — one page per
102+
`template.output` at `docs/<Template>.md`. Each template page has a
103+
`## Template source` section that shows the Mustache source with every `{{var}}`
104+
linked to that field's doc page (`docs/<Owner>.md#field-<name>`), plus a variables
105+
table — so you can see exactly which payload fields a template reads. Those links are
106+
build-time drift-gated against the render `verify()` engine, so a link can't claim a
107+
field that `verify()` would reject. (`meta docs` is the single door for these neutral
108+
docs — it's a command, not a `meta gen` generator.)

fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-codegen/references/typescript.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ When `apiDocsFile()` is enabled (it is in the default scaffold), **read
6262
imports, function signatures, payload field shapes, and runnable examples for this
6363
project's generated API, so you don't have to guess them.
6464

65+
`apiDocsFile()` (a generator → `docs/api/`) is the SDK/API reference. The neutral
66+
model docs (one page per entity and per template, including the linked template
67+
source) are different: they come from the separate `meta docs` command (→ `docs/`),
68+
which is the single door for neutral docs — not a `meta gen` generator.
69+
6570
From `@metaobjectsdev/codegen-ts-react`: `formFile()``<Entity>.form.tsx`.
6671
From `@metaobjectsdev/codegen-ts-tanstack`: `tanstackQuery()``<Entity>.hooks.ts`
6772
(5 React Query hooks), `tanstackGrid()``<Entity>.columns.tsx`,

fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-prompts/references/typescript.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,14 @@ build (exit 1, `(output)`-prefixed diagnostic) if a reference can't be resolved
9595
catching payload-VO ↔ parser drift at build time. The emitted parser imports `zod`;
9696
it's usually already a dependency (Drizzle / `runtime-ts` lean on it), else
9797
`npm i zod`.
98+
99+
## See which fields a template consumes
100+
101+
Run `meta docs` to emit neutral model docs to `./docs` — one page per
102+
`template.output` at `docs/<Template>.md`. Each template page has a
103+
`## Template source` section that shows the Mustache source with every `{{var}}`
104+
linked to that field's doc page (`docs/<Owner>.md#field-<name>`), plus a variables
105+
table — so you can see exactly which payload fields a template reads. Those links are
106+
build-time drift-gated against the render `verify()` engine, so a link can't claim a
107+
field that `verify()` would reject. (`meta docs` is the single door for these neutral
108+
docs — it's a command, not a `meta gen` generator.)

0 commit comments

Comments
 (0)