Orchestration 2 Plan 2
Scope: Consolidate skills (delete Create_Page, rename Update_Sidebar → Manage_Pages), rewrite all agent prompt files with include directives, rename prompt files to Title_Case_Prompt.md convention, and update all references across the codebase.
Prerequisite: Plan 1 is completed (include directive system exists in agent-sync.ts, shared snippet files exist).
Task 1 — Delete Create Page skill
Spec §7.1:
Forge/Skills/Create_Page/is deleted. Its logic has been merged into the renamed Manage Pages skill.
- Trash the directory: move
Forge/Skills/Create_Page/to trash - Remove the
Create_Pageentry fromForge/Skills/index.md - Update files that reference
Create_Page:
| File | Change |
|---|---|
Forge/Configs/Agents/FORGE_CHAT.md | Remove Create_Page from the Skills List line |
Forge/Skills/Project_Extract/SKILL.md | Change Create_Page and Update_Sidebar → Manage_Pages |
Forge/Skills/index.md | Remove the - [Create_Page](./Create_Page/SKILL.md) line |
Task 2 — Rename Update_Sidebar → Manage_Pages
Spec §7.2:
Forge/Skills/Update_Sidebar/is renamed toForge/Skills/Manage_Pages/. The combined skill manages both filesystem and sidebar hierarchies.
- Create the new directory
Forge/Skills/Manage_Pages/ - Copy all files from
Forge/Skills/Update_Sidebar/intoForge/Skills/Manage_Pages/:SKILL.md→ update frontmatter:name: manage-pages,title: "Manage Pages"SKILL.raw.md→ update frontmatter:name: manage-pages,title: "Manage Pages"(if it exists)generate_view_pages.ts→ update the internal path reference from'Update_Sidebar'to'Manage_Pages'in the line that resolvesview_folder_config.jsonview_folder_config.json→ no changes needed
- Update heading 1 in
Forge/Skills/Manage_Pages/SKILL.mdfrom# Update Sidebar→# Manage Pages - Update the “When to Use” description in SKILL.md to reflect the broader scope (creating, renaming, moving, deleting pages and folders — not just sidebar)
- Trash
Forge/Skills/Update_Sidebar/ - Update the
namefield inSKILL.raw.mdfrontmatter fromupdate-sidebartomanage-pages(if SKILL.raw.md exists) - Update ALL files that reference
Update_Sidebarorupdate-sidebar:
| File | Change |
|---|---|
.internal/package.json | "tsx ../Forge/Skills/Update_Sidebar/generate_view_pages.ts" → "tsx ../Forge/Skills/Manage_Pages/generate_view_pages.ts" |
Forge/Configs/Agents/FORGE_CHAT.md | Skills List: Update_Sidebar → Manage_Pages; SIDEBAR RULE: Update_Sidebar → Manage_Pages |
Forge/Configs/Agents/PAGE_WORKER.md (will be renamed in Task 4) | Update_Sidebar skill → Manage_Pages skill |
Forge/Configs/Agents/TASK_RUNNER.md | Page Worker → Page Handler in dispatch table (line 48) |
Forge/Forge_Agents_User_Guide.md | Page Worker → Page Handler (lines 53, 86) |
Forge/Output/Admin_Panel_Plan.md | Update_Sidebar skill → Manage_Pages skill (line 113) |
Forge/Skills/Forge_Optimizer/references/example_report.md | Update_Sidebar path reference → Manage_Pages (line 23) |
Forge/Configs/Agents/PROJECT_EVALUATOR.md | update-sidebar skill → manage-pages skill |
Forge/Configs/Agents/PROJECT_THINKER.md | update-sidebar skill → manage-pages skill |
Forge/Configs/Agents/PROJECT_WORKER.md | update-sidebar skill → manage-pages skill |
Forge/Forge_Content_System.md | All Update_Sidebar path references → Manage_Pages |
Forge/Forge_Document_Structure.md | Update_Sidebar/view_folder_config.json → Manage_Pages/view_folder_config.json |
Forge/Forge_Agent_Architecture.md | Update_Sidebar references → Manage_Pages |
Forge/Skills/index.md | - [Update_Sidebar](./Update_Sidebar/SKILL.md) → - [Manage_Pages](./Manage_Pages/SKILL.md) |
Forge/Skills/Project_Complete/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Archive/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Rename/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Spec/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Create/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Research/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Requirements/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Plan/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Implement/SKILL.md | Update_Sidebar → Manage_Pages |
Forge/Skills/Project_Extract/SKILL.md | Create_Page and Update_Sidebar → Manage_Pages |
- Update sidebar: remove old Update_Sidebar entries, add Manage_Pages entries (follow the Manage_Pages skill itself for the procedure)
Tip: Use a shell script or grep+sed to find and replace all occurrences across the codebase. Verify with:
Task 3 — Rewrite agent prompt files with include directives
Spec §3: Shared snippets are included by relevant agents. Spec §5: Page_Handler_Prompt.md includes Manage_Pages skill. Spec §6: Only Manage_Pages is inlined in Page Handler.
For each agent prompt file, add the appropriate <!-- include: --> directives and rewrite to eliminate duplicated content. Each new file replaces the corresponding old file (old files are trashed in Task 4).
Include assignment
| Agent | Env_Snippet | Project_Snippet | Manage_Pages skill |
|---|---|---|---|
| Forge Chat | No | No | No |
| Task Runner | Yes | No | No |
| Project Runner | Yes | No | No |
| Page Handler | Yes | No | Yes |
| Project Thinker | Yes | Yes | No |
| Project Evaluator | Yes | Yes | No |
| Project Worker | Yes | Yes | No |
Rewrite heuristic
- Place
<!-- include: -->directives immediately after the H1 heading, one per line, in the order listed above - Remove any content from the existing prompt that is now provided by an included snippet or skill
- For sidebar/page rules that referenced
update-sidebar skill, replace withmanage-pages skill - Keep all other content unchanged
- Update frontmatter
titleto{Agent Name} Prompt(e.g.,"Forge Page Handler Prompt") - The role name “Page Worker” becomes “Page Handler” throughout
Rewrite rubric (evaluator checks)
- Each prompt has the correct includes per the table above
- No content duplicated between a prompt and its included snippets/skills
- All
update-sidebar/Update_Sidebarreferences replaced withmanage-pages/Manage_Pages - All
Page Workerreferences replaced withPage Handler - No content removed that isn’t covered by an include
- Frontmatter title updated to
{Agent Name} Prompt - Each prompt’s own word count is within its category budget (Chat ≤ 1,500; Runner ≤ 700; Worker/Thinker/Evaluator/Handler ≤ 300)
3.1 Forge_Chat_Prompt.md (replaces FORGE_CHAT.md)
No includes (TBD: may include Env_Snippet — see include assignment table). Key changes: remove Create_Page from Skills List, change Update_Sidebar → Manage_Pages, remove Project State.md and Project History.md from CONTEXT BUDGETS table.
3.2 Task_Runner_Prompt.md (replaces TASK_RUNNER.md)
Include: Env_Snippet only. Also update Page Worker → Page Handler in dispatch table (line 48 of current file).
3.3 Project_Runner_Prompt.md (replaces PROJECT_RUNNER.md)
Include: Env_Snippet only. Also update Page Worker → Page Handler in any dispatch references.
3.4 Page_Handler_Prompt.md (replaces PAGE_WORKER.md)
Include: Env_Snippet + Manage_Pages skill. This is the most significantly refactored prompt — the inlined skill replaces the runtime skill read, so the prompt’s own content reduces to ~100 words (responsibility + tools + error handling). The role name is “Page Handler” (not “Page Worker”).
3.5 Project_Thinker_Prompt.md (replaces PROJECT_THINKER.md)
Include: Env_Snippet + Project_Snippet.
3.6 Project_Evaluator_Prompt.md (replaces PROJECT_EVALUATOR.md)
Include: Env_Snippet + Project_Snippet.
3.7 Project_Worker_Prompt.md (replaces PROJECT_WORKER.md)
Include: Env_Snippet + Project_Snippet.
Task 4 — Rename prompt files and update agent-sync.ts
Spec §2: All agent prompt files follow
Title_Case_With_Underscores_Prompt.mdnaming.
- For each prompt file, the new file was already created in Task 3 with the new name. Now trash the old files:
| Old File | New File (created in Task 3) |
|---|---|
Forge/Configs/Agents/FORGE_CHAT.md | Forge/Configs/Agents/Forge_Chat_Prompt.md |
Forge/Configs/Agents/TASK_RUNNER.md | Forge/Configs/Agents/Task_Runner_Prompt.md |
Forge/Configs/Agents/PROJECT_RUNNER.md | Forge/Configs/Agents/Project_Runner_Prompt.md |
Forge/Configs/Agents/PAGE_WORKER.md | Forge/Configs/Agents/Page_Handler_Prompt.md |
Forge/Configs/Agents/PROJECT_THINKER.md | Forge/Configs/Agents/Project_Thinker_Prompt.md |
Forge/Configs/Agents/PROJECT_EVALUATOR.md | Forge/Configs/Agents/Project_Evaluator_Prompt.md |
Forge/Configs/Agents/PROJECT_WORKER.md | Forge/Configs/Agents/Project_Worker_Prompt.md |
-
Trash each old file using uvilo-trash.
-
Update
AGENT_FAMILIESinorchestrator/src/agent-sync.ts— change allpromptFilevalues:
| Family | Old promptFile | New promptFile |
|---|---|---|
| Forge Chat | Forge/Configs/Agents/FORGE_CHAT.md | Forge/Configs/Agents/Forge_Chat_Prompt.md |
| Forge Page Worker → Forge Page Handler | Forge/Configs/Agents/PAGE_WORKER.md | Forge/Configs/Agents/Page_Handler_Prompt.md |
| Forge Project Worker | Forge/Configs/Agents/PROJECT_WORKER.md | Forge/Configs/Agents/Project_Worker_Prompt.md |
| Forge Project Evaluator | Forge/Configs/Agents/PROJECT_EVALUATOR.md | Forge/Configs/Agents/Project_Evaluator_Prompt.md |
| Forge Project Thinker | Forge/Configs/Agents/PROJECT_THINKER.md | Forge/Configs/Agents/Project_Thinker_Prompt.md |
| Forge Project Runner | Forge/Configs/Agents/PROJECT_RUNNER.md | Forge/Configs/Agents/Project_Runner_Prompt.md |
| Forge Task Runner | Forge/Configs/Agents/TASK_RUNNER.md | Forge/Configs/Agents/Task_Runner_Prompt.md |
-
Also in
agent-sync.ts, rename the “Forge Page Worker” family to “Forge Page Handler” and update the member name from “Forge Page Worker” to “Forge Page Handler” and description from “Create, rename, move, delete pages; update front matter; update sidebar” to “Create, rename, move, delete pages and folders; manage sidebar and front matter”. -
Update ALL other files that reference the old prompt file names:
| File | Changes |
|---|---|
Forge/Forge_Agent_Orchestration.md | Update agent type names: Page Worker → Page Handler |
Forge/Forge_Agents_User_Guide.md | Page Worker → Page Handler (lines 53, 86) |
Forge/Forge_Agent_Architecture.md | FORGE_CHAT.md references → Forge_Chat_Prompt.md |
Forge/Assets/LibreChat_Agent_Instructions.md | FORGE_CHAT.md references → Forge_Chat_Prompt.md |
Forge/Skills/Orchestration/SKILL.md | Page Worker → Page Handler |
Forge/Skills/Update_Agents/SKILL.md | FORGE_CHAT.md → Forge_Chat_Prompt.md, Page Worker → Page Handler, prompt file references |
Forge/Skills/Forge_Optimizer/scripts/optimize.ts | FORGE_CHAT.md path reference → Forge_Chat_Prompt.md |
Task 5 — Update sidebar
Update the sidebar in .internal/astro.config.mjs:
-
Remove sidebar entries for:
Forge/Skills/Create_Page/SKILL.md(deleted)Forge/Skills/Update_Sidebar/SKILL.md(renamed)- Old prompt file entries (7 files)
-
Add sidebar entries for:
Forge/Skills/Manage_Pages/SKILL.md- New prompt file entries (7 files)
Forge/Configs/Agents/Env_Snippet.mdForge/Configs/Agents/Project_Snippet.md
Task 6 — Verify and commit
- Build to verify:
cd /workspace/erik/uvilo-os/.internal && pnpm run build - Run agent-sync dry-run to confirm no errors:
- Run agent-sync live to verify assembled prompts in production:
- Verify no stale references remain:
- Stage all changes, commit with message
Orchestration_2: Plan 2 — skills consolidation + prompt overhaul + renaming, push todev