[routes] skills_routes.py at 1530 lines exceeds AGENTS.md ~400 line limit #777

Closed
opened 2026-06-03 00:29:18 +02:00 by sleepy · 0 comments
Owner

Problem

routes/skills_routes.py is 1530 lines with 51 function definitions mixing:

  • REST API route handlers (CRUD for skills)
  • Skill evaluation/testing engine
  • Skill audit system with LLM-based quality checks
  • Skill improvement/suggestion generation
  • Auto-publish policy management
  • Duplicate detection
  • Scheduled audit job runner

Many of the 51 functions are nested inside setup_skills_routes() making them hard to test independently.

AGENTS.md violation

Split files that exceed ~400 lines or contain multiple concerns.

Suggested split

  • routes/skills/crud.py — basic skill CRUD routes
  • routes/skills/audit.py — audit and quality evaluation
  • routes/skills/testing.py — skill test execution
  • routes/skills/improvement.py — skill improvement suggestions
  • Or move business logic into services/skills/ and keep routes thin
## Problem `routes/skills_routes.py` is 1530 lines with 51 function definitions mixing: - REST API route handlers (CRUD for skills) - Skill evaluation/testing engine - Skill audit system with LLM-based quality checks - Skill improvement/suggestion generation - Auto-publish policy management - Duplicate detection - Scheduled audit job runner Many of the 51 functions are nested inside `setup_skills_routes()` making them hard to test independently. ## AGENTS.md violation > Split files that exceed ~400 lines or contain multiple concerns. ## Suggested split - `routes/skills/crud.py` — basic skill CRUD routes - `routes/skills/audit.py` — audit and quality evaluation - `routes/skills/testing.py` — skill test execution - `routes/skills/improvement.py` — skill improvement suggestions - Or move business logic into `services/skills/` and keep routes thin
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/odysseus#777
No description provided.