Skip to content

docs(builder-tools): add add_preset_approval, list_presets, flag_review_item#48

Open
trevormil wants to merge 2 commits intomasterfrom
docs/builder-tools-preset-approval-and-flag-review
Open

docs(builder-tools): add add_preset_approval, list_presets, flag_review_item#48
trevormil wants to merge 2 commits intomasterfrom
docs/builder-tools-preset-approval-and-flag-review

Conversation

@trevormil
Copy link
Copy Markdown
Owner

Summary

Three builder tools shipped in recent SDK releases but were missing from the Builder Tools Reference page. This drift meant agents reading the reference would not know they exist:

  • add_preset_approval + list_presets (bitbadgesjs PR #179) — preset approvals render canonical skill shapes from a small params object and cut ~50% of output tokens on approval-heavy skills (prediction-market, credit-token). Output is byte-identical to raw add_approval, so presets are simply a cheaper path when the shape fits.
  • flag_review_item (surfaced in bitbadges-indexer PR #123 / BitBadgesBuilderAgent) — agent self-surfaces assumptions, substitutions, design choices, and ambiguity resolutions. Entries drain into BuildResult.reviewFlags. Always available; no feature flag.

The SDK skill instructions (skillInstructions.ts) already reference add_preset_approval / list_presets inside every skill that ships a preset, and the Programmatic Agent page already documents reviewFlags on BuildResult — this page was the only surface that had drifted.

Test plan

  • Confirmed the three tools are registered in packages/bitbadgesjs-sdk/src/builder/tools/registry.ts (lines 166, 235, 237)
  • Confirmed skillInstructions.ts references add_preset_approval in 13+ skill sections
  • GitBook preview renders the new rows cleanly
  • No behavior change — docs only

Auto-generated by the BitBadges DX audit agent (2026-04-24 run).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

trevormil and others added 2 commits April 24, 2026 06:38
…ew_item

Three builder tools shipped in recent SDK releases but were missing from the Builder Tools Reference:

- add_preset_approval + list_presets (bitbadgesjs PR #179): preset approvals cut ~50% of output tokens by rendering canonical skill shapes from a params object. Output is structurally identical to raw add_approval, so presets are simply a cheaper path when the shape fits.
- flag_review_item (bitbadgesjs PR #123 / BitBadgesBuilderAgent): agent self-surfaces assumptions, substitutions, and design choices during a build. Entries drain into BuildResult.reviewFlags and are always available.

Agents reading this reference would previously not know these tools exist. The SDK skill instructions (skillInstructions.ts) already reference them in every skill that has a preset, so the doc page was the only surface that had drifted.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fields shipped in SDK PRs #121, #122, #174, #176 but not in the BuildResult interface snippet on the Programmatic Agent page:

- hardErrors (backwards-compat raw strings)
- designDecisions (SDK PR #176 — ✓/✗/n-a informational checks about what the collection IS)
- reviewFlags (agent-surfaced via flag_review_item — always populated)
- durationMs (wall-clock duration)
- inferredTokenType, inferredTokenTypeSource, inferredTokenTypeReasoning (SDK PR #174 smart token-type inference)

Also cross-links to the Smart Token-Type Detection page for the three inference fields so readers don't have to dig through the class docs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant