Skip to content

docs(skills): sales-guaranteed route-first + brand-rights trim - #676

Merged
bokelley merged 4 commits into
mainfrom
bokelley/riyadh-v18
Apr 21, 2026
Merged

bokelley merged 4 commits into
mainfrom
bokelley/riyadh-v18

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Follow-ups on skill DX surfaced by running the agent-skill-storyboard harness against today's merged #624 skills. Two issues:

  1. Fresh Claude defaults to submitted task envelope for every sales-guaranteed scenario. The §sales-guaranteed section led with "IO approval = task envelope" and the submitted vs pending_creatives routing caveat was buried in a table 30 lines down. Claude implemented only the IO-approval path.

  2. brand-rights skill (472 lines) times out the harness. Claude spends 10 minutes reasoning through the dense skill and never writes server.ts. The old content duplicated idempotency + auth guidance the seller skill already covers canonically.

Changes

  • Restructure §sales-guaranteed to lead with a 3-row decision table (IO signing → task envelope; creative_assignments missing → pending_creatives; otherwise → active). The routing logic is now the first code block in the section. Removes the "pending_creatives caveat under the IO-signing lead" anti-pattern that caused the fresh-Claude default.
  • Shrink build-brand-rights-agent/SKILL.md from 472 → 415 lines (~12%). Collapsed duplicated idempotency and Protecting your agent content into pointers at the canonical seller-skill sections. Consolidated creative-approval + revocation-webhook prose without dropping content substance.
  • Remove stale ai_generated_image warning — upstream brand-rights storyboard sends uses: [ai_generated_image] but enum doesn't contain it — every seller fails rights_search adcp#2418 merged, enum now has ai_generated_image + image_generation. Skill listed the value as absent-from-enum; corrected.

Discovered via

5 parallel runs of scripts/manual-testing/agent-skill-storyboard.ts:

Test plan

  • Re-run tsx scripts/manual-testing/agent-skill-storyboard.ts --skill skills/build-brand-rights-agent/SKILL.md --storyboard brand-rights and confirm Claude completes within the 10-min default timeout.
  • Re-run the same for sales-guaranteed after PR fix(harness): wire --auth so skill-compliant agents don't hit auth_required #674 (auth harness fix) merges; pass rate should rise from 30/42 toward 40+/42 as Claude picks up the new routing table.

🤖 Generated with Claude Code

Harness E2E exposed two salience/size issues:

1. sales-guaranteed: fresh Claude always defaulted to 'submitted' task envelope
   because my pending_creatives-vs-submitted caveat was buried under the
   'IO approval = task envelope' lead paragraph. Restructured the section to
   lead with a 3-row decision table (IO signing / pending_creatives / active)
   and show the routing logic as the first code block. Removed the now-
   redundant prose at the end.

2. brand-rights: 472-line skill caused a 10-min harness timeout (Claude never
   wrote server.ts). Collapsed the duplicated idempotency and protecting-your-
   agent content into pointers at the seller skill equivalents (same pattern
   as the other minor skills). Also consolidated the creative-approval +
   revocation-webhook prose. 472 -> 415 lines, about 12 percent shrink.

Also: dropped the stale 'ai_generated_image not in enum' warning now that
upstream merged adcp#2418; enum listed in full.
@bokelley
bokelley merged commit 0b4115f into main Apr 21, 2026
12 checks passed
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