smartroute-ai

Guides spec-driven development of a multi-solver TSP routing optimization SaaS platform.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill smartroute-ai-msaid1976
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: smartroute-ai
Source: https://github.com/msaid1976/TSP-SmartAIRoute/tree/main/.claude/skills/smartroute-ai
Command: npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill smartroute-ai-msaid1976

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building a generic routing optimization SaaS with eight different solver algorithms, async job queues, and a comparison engine is complex and error-prone. This Skill keeps every implementation aligned with the SmartRoute AI Spec Kit phases, frozen data contracts, and solver registry rules so the platform stays consistent across phases. ## Core Features & Use Cases - Phase-Gated Development: Enforces the Spec-Driven Development phase map (001 foundation through 007 post-launch) with hard acceptance gates before advancing. - Solver Implementation Guidance: Provides the BaseSolver contract, SOLVER_REGISTRY, seeded execution rules, and algorithm patterns extracted from GA, PSO, NSGA-II, and ACO notebooks. - Canonical Schema Enforcement: Maintains the frozen problem and solver result JSON schemas, including matrix_tsp support for asymmetric TSP via distanceMatrix. - Use Case: When asked to add a Tabu Search solver, the Skill directs you to extend BaseSolver in apps/api/solvers/, register it, implement get_distance_matrix() for ATSP support, and validate against both the 10-city and matrix fixtures before any database write. ## Quick Start Ask the assistant to implement the next SmartRoute AI phase or add a new solver following the BaseSolver contract and spec phase gates.

Frequently Asked Questions about smartroute-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new solver to a TSP optimization platform?▼

Extend the BaseSolver class in apps/api/solvers/, register it in SOLVER_REGISTRY, and implement get_distance_matrix() so asymmetric matrix problems work. Validate the route with validate_route() and test against both the 10-city and matrix_tsp fixtures before any database write.

What is the best algorithm for solving TSP problems?▼

For under 20 nodes use OR-Tools for exact solutions; for 20-100 nodes use GA, ACO, or Tabu Search; for 100-500 nodes use ACO, SA, or Tabu. For multi-objective needs use NSGA-II, and always run Benchmark Mode to let the comparison engine decide.

How does the recommendation engine score routing solvers?▼

The rule-based engine computes a weighted score: 40% solution quality, 20% runtime, 15% stability across three seeds, 15% scalability by solver class, and 10% constraint fit. No LLM is used inside the recommendation engine.

Does the platform support asymmetric TSP problems?▼

Yes, asymmetric TSP is supported through the matrix_tsp problem type. When distanceMatrix is provided in the canonical schema, solvers use it directly and ignore x/y coordinates, requiring no schema changes.

Why does my stochastic solver produce different routes each run?▼

All stochastic solvers must accept a seed parameter. Run twice with seed=42 to verify reproducibility, and check that convergence is monotonically non-increasing and validate_route() passes before returning results.

When should I advance to the next spec phase?▼

Never advance a phase without human confirmation that all acceptance criteria pass. Each phase has a hard gate, such as valid Hamiltonian cycles for Phase 003 or 80% pytest coverage for Phase 006.