PLAN: Rename "Packages" to "Services" in Documentation
IMPLEMENTATION RULES: Before implementing this plan, read and follow:
- WORKFLOW.md - The implementation process
- PLANS.md - Plan structure and best practices
Created: 2026-03-17 Status: Completed (2026-03-17) Parent: INVESTIGATE: Old System Cleanup & Documentation Gaps
Goal
Rename all references from "packages" to "services" in the documentation, CLI metadata, and doc generator — so the docs match the CLI terminology (./uis deploy <service>, services.json, service-*.sh).
Why
The CLI and data model use "services" everywhere. The documentation uses "packages." A user clicking "Services" in the navbar lands on a page that links to "Packages" in the sidebar. This creates confusion about whether these are different concepts. They're the same thing.
Scope
What changes
| Area | Count | What |
|---|---|---|
| Folder rename | 1 | website/docs/packages/ → website/docs/services/ |
| Category JSON files | 11 | _category_.json in root + 10 subcategories |
| Service doc pages | ~40 | Move with the folder (no content changes needed) |
| Sidebar config | 1 | website/sidebars.ts — ~40 path references |
| Site config | 1 | website/docusaurus.config.ts — footer link |
| Homepage | 1 | website/src/pages/index.tsx — button link |
| Utilities | 1 | website/src/utils/paths.ts |
| Doc generator | 1 | provision-host/uis/manage/uis-docs-markdown.sh — 6 path references |
| Service scripts | 30 | SCRIPT_DOCS field in every service-*.sh |
| services.json | auto | Regenerated from service scripts — docs field updates automatically |
| Doc references | ~33 | Files across website/docs/ that link to /docs/packages/... |
What does NOT change
- Service definitions (
SCRIPT_ID,SCRIPT_NAME, etc.) — onlySCRIPT_DOCSchanges - Ansible playbooks — no references to docs paths
- The
/servicespage (website/src/pages/services.tsx) — already uses the right name services.jsonstructure — only thedocsfield values change
Phases
Phase 1: Rename folder and update config
- Rename
website/docs/packages/→website/docs/services/ - Update root
_category_.jsonlabel from "Packages" to "Services" - Update
website/sidebars.ts— replace allpackages/withservices/ - Update
website/docusaurus.config.ts— footer link/docs/packages/ai→/docs/services/ai - Update
website/src/pages/index.tsx— button link - Update
website/src/utils/paths.ts— if it contains package paths
Validation: npm run build — Docusaurus will catch every broken internal link.
Phase 2: Update doc generator and service scripts
- Update
provision-host/uis/manage/uis-docs-markdown.sh— change output path fromdocs/packages/todocs/services/(6 references) - Update
SCRIPT_DOCSin all 30service-*.shfiles —/docs/packages/<cat>/<svc>→/docs/services/<cat>/<svc> - Run the doc generator to verify it writes to the new path
- Run
npm run buildagain to verify generated output is consistent
Validation: Run ./uis docs generate (or bash provision-host/uis/manage/uis-docs-markdown.sh), then npm run build.
Phase 3: Update internal documentation links
- Update all ~33 files in
website/docs/that reference/docs/packages/...- Most are in
ai-developer/plans/(completed investigations and plans) - Some are in
contributors/guides/andcontributors/rules/
- Most are in
- Run
npm run build— should produce zero broken link warnings
Validation: Clean build with no warnings.
Phase 4: URL redirects (optional)
- Evaluate whether to add
@docusaurus/plugin-client-redirectsfor/docs/packages/*→/docs/services/*- Only needed if external sites link to the old URLs
- The site is relatively new — external links are unlikely
- Skip if not needed, add later if broken links appear in analytics
Validation Checklist
-
npm run buildpasses with zero broken links -
./uis docs generatewrites towebsite/docs/services/, notpackages/ - Sidebar shows "Services" category with all subcategories
- Footer link works
- Homepage button links to correct path
-
/servicespage service cards link to/docs/services/... - No file in the repo contains the string
/docs/packages/(except completed plan files describing the rename itself)
Risks
- CI/CD generator writes to old path: If
generate-uis-docsworkflow runs before the script is updated, it will recreatedocs/packages/. Mitigation: update the script and service scripts in the same commit/PR. - External links break: The old
/docs/packages/...URLs will 404. Mitigation: site is new, low risk. Add redirect plugin later if needed. - Merge conflicts: If other work is in progress that touches
sidebars.tsor service docs. Mitigation: do this rename early, before other doc work.