Add routes for AI catalog skills

What does this MR do and why?

Add Rails routes for AI catalog skills at the Explore and project levels:

  • /explore/ai-catalog/skills and /explore/ai-catalog/skills/:id
  • /:project/-/automate/skills and /:project/-/automate/skills/:id

The project controller accepts the skills route only when the ai_catalog_skills flag is on for the project. When the flag is off, /automate/skills returns 404. /automate/skills/:id uses the generic Duo Agent Platform check, the same as agents/:id and flows/:id. The Explore paths already matched the /(*vueroute) catch-all, so the new named routes do not change what users see.

This MR also pushes the ai_catalog_skills flag to the frontend and adds explore_ai_catalog_skills_path to the project Duo agents page data. No frontend code reads them yet. gitlab_routes.json and the JS path helpers are generated files.

Group-level skills are out of scope. Iteration 1 enables skills for projects only (#630405 (closed)). Group enablement is an open question in gitlab-org#23978.

This is MR 1 of the split of !260396 (closed). All parts are behind the ai_catalog_skills flag (default off).

# MR Status
1 Add routes for AI catalog skills 👈 You are here
2 Add Skills project sidebar menu item !267449 (merged) ✅ Merged
3 Register skill as an AI catalog item type !267460 (merged) ✅ Merged
4 Fall back to the git author name in item attribution !267461 (merged) ✅ Merged
5 Support skills in the version alert and enable disclaimer !268927 (merged)
6 Add skills routes to the Explore and project Vue routers !267907 (merged) ✅ Merged
7 Add Skills tab to the Explore AI catalog !268368 (merged)
8 Add the skill details page !268788 (merged)

References

Screenshots or screen recordings

No UI changes.

How to set up and validate locally

  1. Visit /<project>/-/automate/skills. The page returns 404.
  2. In the Rails console, run Feature.enable(:ai_catalog_skills).
  3. Visit /<project>/-/automate/skills again. The page returns 200. The Vue route comes in MR 6, so the page content is not final.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Justin Ho Tuan Duong

Merge request reports

Loading
Loading