Add per-site skills/instructions routes and connector plumbing - #4646
Draft
shaunandrews wants to merge 1 commit into
Draft
Add per-site skills/instructions routes and connector plumbing#4646shaunandrews wants to merge 1 commit into
shaunandrews wants to merge 1 commit into
Conversation
Wires the per-site install/remove/status operations through to both front ends, with no UI yet to surface them: - apps/local: new /sites/:id/agent-instructions and /sites/:id/skills routes (GET/POST/DELETE), delegating to packages/common. - apps/ui: new Connector methods (getSiteSkillsStatus, installSiteSkill, getSiteAgentInstructionsStatus, etc.) implemented for the ipc and local connectors; hosted throws UnsupportedError (no site filesystem). New siteAgentSkills capability flag and matching React Query hooks (use-site-ai.ts). The Electron IPC side of this already existed and shipped (getAgentInstructionsStatus, getWordPressSkillsStatus, etc. in apps/studio/src/ipc-handlers.ts) — apps/ui simply never called it. Second of a stack bringing per-site AI skills and instructions to the agentic UI; the next PR adds the actual "AI" tab that uses this. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
Proposed Changes
apps/localroutes:/sites/:id/agent-instructionsand/sites/:id/skills(GET/POST/DELETE), delegating to the shared logic from Move per-site agent instructions and skill catalog into packages/common #4645.apps/uiConnector methods (getSiteSkillsStatus,installSiteSkill,getSiteAgentInstructionsStatus, etc.), implemented for the desktop (ipc) and browser (local) connectors; hosted mode throwsUnsupportedErrorsince it has no local site filesystem.siteAgentSkillscapability flag, and React Query hooks (use-site-ai.ts) for both.getAgentInstructionsStatus,getWordPressSkillsStatus, etc. inapps/studio/src/ipc-handlers.ts) —apps/uijust never called it. The browser side (apps/local) had nothing at all.Testing Instructions
npm run typecheckandnpm testpass across all workspaces on this branch alone.studio ui, hitGET/POST/DELETE /api/sites/:id/skillsand/api/sites/:id/agent-instructionsagainst a real local site, confirmed install/remove round-trips against the site's actual.agents/skills/and root instruction files.Pre-merge Checklist