Tool Building Workflow
Tool Building Workflow
The tool building workflow is the pipeline for creating ToolBrain tool pages. It follows the repo-prompt pattern — analyzing a GitHub repository, constructing an evaluation prompt, running it through multiple models, and publishing the results as a structured tool review.
The Repo-Prompt Pattern
The core workflow for each tool page:
Phase 1: Repository Analysis
- Select a tool/package from the tool queue or discovery pipeline
- Clone or fetch the GitHub repository
- Analyze the repo structure: README, documentation, code samples, API surface
- Extract key claims, features, version info, and usage patterns
Phase 2: Prompt Construction
- Build a structured prompt incorporating repo analysis
- Include evaluation criteria (correctness, UI/UX, code quality, pattern adherence)
- Specify output format expectations
- Include the
HERO_IMAGE_PROMPTdirective for generated hero images
Phase 3: Model Evaluation (Arena Mode)
- Run the prompt through multiple builder models
- Judge models score the outputs using the Arena Workflow
- Determine winner based on aggregate scores
- Extract hero image prompt from winner
Phase 4: Publication
- Strip meta-instructions from output (HERO_IMAGE_PROMPT lines, etc.)
- Add frontmatter (title, slug, tags, publish date)
- Pass through quality ratchet (sourcing, claims audit, image verify, scoring)
- Publish to ToolBrain via Ghost CMS
ToolBench Specification
A formal benchmark for evaluating AI models building AI tools, defined with 4 dimensions:
| Dimension | Weight |
|---|---|
| Correctness | 0.35 |
| UI/UX | 0.25 |
| Code Quality | 0.20 |
| Pattern Adherence | 0.20 |
Five benchmark problems:
- Token Counter
- Prompt Analyzer
- Model Compare
- Version Diff
- Template Builder
Quality Considerations
- Claim audit: Every claim in a tool page must be sourced. The
claim-audit.pyscript fetches cited URLs and verifies claims match sources. - Citation rate target: >80% (ToolBrain is currently at 47%, flagged as failing)
- Hero images: Feature image rate target >90%
Related
- Arena Workflow — Model evaluation pipeline used in Phase 3
- ToolBrain — Primary blog hosting tool pages
- Content Pipeline — Broader content generation context
- Leaderboard — Model performance benchmarks