Pinterest engineers build a test harness to optimize AI agent skill invocation rates
Pinterest engineers found that AI agents inconsistently invoked a custom iOS architecture skill (rx-mvvm), with baseline overall accuracy of only 73% for Codex and 62% for Claude Code—deemed unacceptable for critical engineering workflows.
Initial 'vanilla' testing showed neither agent could guarantee 100% skill invocation, especially with terse or ambiguous prompts.
By applying optimized frontmatter descriptions, aggressive directive language, and AGENTS.md skill tables, the team dramatically improved skill invocation rates on both agents, with gains much greater for Codex than for Claude Code.
Frequently asked questions
What did this team achieve with this AI workflow?
By applying optimized frontmatter descriptions, aggressive directive language, and AGENTS.md skill tables, the team dramatically improved skill invocation rates on both agents, with gains much greater for Codex than f…
What tools did this team use?
Claude Code, Pin-agent, GPT 5.2-codex, Bash.
What results were reported?
baseline overall accuracy — Codex: 73%; baseline overall accuracy — Claude: 62%; Skill invocation rate improvement: dramatically improved (source-reported, not independently verified).
What failed first in this deployment?
Initial 'vanilla' testing showed neither agent could guarantee 100% skill invocation, especially with terse or ambiguous prompts.
How is this quality assurance AI workflow structured?
Engineer submits prompt → Agent attempts skill invocation → Bash harness captures logs → Metrics computed → Optimization techniques applied.