Repository navigation
Commit 9862d63
docs(skills): an agent's model name and provider are optional (#37765)
<!-- claude-projects-attribution: {"github_login":"hotlong"} -->
_Requested by **Jack** · [project
thread](https://claude.ai/code/project/chan_01EF41AQooqveF2DGD8nqPzS?thread=cmsg_01EF41AQooqveF2DGD8nqPzSVqcTHLLFPjviMwGsR87vDC)_
epic:#5055#1 · hotlong · session_01Q4EjjPtiBXJZAqMqBPe3UD
Fixes #37711
Clause-②: no
Metadata-protocol: none
## What
The `objectstack-ai` skill still taught that an agent names its model
and that `provider` defaults to `openai`. Since #37697 (merge
`3e87d7b6`) both are optional and `provider` has no default. This PR
brings the published text and its eval in line.
- `skills/objectstack-ai/SKILL.md`, Model Configuration:
- `model` is an optional free-string name; absent means the host's
default model for the environment.
- `provider` is optional with no default (the deployment's choice, see
#37712). The inline enum list is unchanged and still accurate: `openai |
azure_openai | anthropic | local`.
- The schema citation moves from the stale `agent.zod.ts:36-40` to
`:37-45`, the `AIModelConfigSchema` key list on main.
- `skills/objectstack-ai/evals/skills-tools-knowledge.json`, case 2:
accepts an omitted `model` and states the provider has no default.
Assertions unchanged.
- One `@objectstack/skills` patch changeset.
No tier or sentinel wording (phase 2, not in the framework).
## Premise (on `origin/main` `cbc353ed`)
`packages/spec/src/ai/agent.zod.ts`:
```ts
37 provider: z.enum(['openai', 'azure_openai', 'anthropic', 'local']).optional(),
38 model: z.string().optional().describe(
39 'Model name (e.g. gpt-4, claude-3-opus). Optional: when absent, the agent runs on the '
40 + 'host\'s default model for this environment, so an agent that only tunes sampling '
41 + '(e.g. `temperature`) need not name a model.',
42 ),
43 temperature: z.number().min(0).max(2).default(0.7),
44 maxTokens: z.number().optional(),
45 topP: z.number().optional(),
```
## Token budget
`skills/objectstack-ai/SKILL.md` sat at zero headroom (ceiling 6801).
The new words are paid for by tightening the same section (shorter intro
sentence, shorter registry and `maxTokens` rows); no fact is removed.
The file now measures 6801 / 6801.
## Local gates
- `node scripts/check-skills-token-ratchet.mjs` exit 0 (61 authored
files within ceilings)
- `pnpm check:skill-identifier-liveness` exit 0
- `pnpm check:skill-frame-sync` exit 0
- `pnpm check:skill-compatibility` exit 0
- `pnpm check:skill-top-level-keys` exit 0 (14 self-test cases)
- `pnpm check:skill-links` exit 0 (272 links, 22 self-test cases)
- `pnpm --filter @objectstack/spec check:skill-docs` exit 0
- `pnpm --filter @objectstack/spec check:skill-refs` exit 0 (10
generated files in sync)
- `pnpm --filter @objectstack/spec check:skill-served-sections` exit 0
(33 self-test cases)
- `pnpm --filter @objectstack/spec check:skill-examples` NOT MEASURED,
exit 3: `@objectstack/client-react` dist not built in this container
(spec was built). The diff touches no marked example block.
- eval JSON parses.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q4EjjPtiBXJZAqMqBPe3UD
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7f19190 commit 9862d63
3 files changed
Lines changed: 16 additions & 7 deletions
File tree
- .changeset
- skills/objectstack-ai
- evals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
366 | | - | |
| 364 | + | |
| 365 | + | |
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
370 | | - | |
371 | | - | |
| 369 | + | |
| 370 | + | |
372 | 371 | | |
373 | | - | |
| 372 | + | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments