Skip to content

chore: derive tool count from TOOL_CONFIGS instead of hardcoding it #27

Description

@Railly

The tool count ("12 coding tools") is hardcoded in 4 places that drift independently:

  • README.md (intro, alt text, feature list, FAQ)
  • web/app/layout.tsx (title, OG, description)
  • web/app/page.tsx (hero, feature card)
  • GitHub repo description

When tool #13 lands in src/tool-configs.ts, all of these go stale silently. That drift is exactly what caused the "13+ tools" vs 12-tools mismatch fixed in 5f82f9a.

Proposal

  • Web: import TOOL_CONFIGS.length (or a shared constant) in layout.tsx and page.tsx so the count updates with the code
  • README + repo description: cannot import code, so either a CI check that greps for the count and fails on mismatch, or a small release-time script that rewrites them

Low priority, prevents the next round of doc drift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions