Skip to content

Move per-site agent instructions and skill catalog into packages/common - #4645

Draft
shaunandrews wants to merge 1 commit into
trunkfrom
move-agent-instructions-into-common-lib
Draft

Move per-site agent instructions and skill catalog into packages/common#4645
shaunandrews wants to merge 1 commit into
trunkfrom
move-agent-instructions-into-common-lib

Conversation

@shaunandrews

Copy link
Copy Markdown
Contributor

Related issues

  • Related to the site-skills-instructions-migration work

How AI was used in this PR

  • Fully AI-authored (Claude Code): research, refactor, and test verification.

Proposed Changes

  • First of a 3-PR stack bringing per-site AI skills/instructions to the agentic UI (see PR Update/readme for launch #2 and Release 1.0.0-beta.3 #3, stacked on top of this one).
  • Pure refactor, no behavior change: moves the per-site instruction-file (AGENTS.md/CLAUDE.md/STUDIO.md) install/remove logic out of apps/studio and into packages/common, alongside the skill-install logic that was already shared there.
  • apps/studio's own modules become thin wrappers with unchanged signatures — every existing call site keeps working exactly as before.
  • Sets up the next PR in the stack: apps/local (the browser UI's backend) can now reuse this logic instead of duplicating it.

Testing Instructions

  • npm run typecheck and npm test pass across all workspaces, on this branch alone (not just the full stack).
  • No user-visible change — this PR only moves code.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

The per-site AGENTS.md/CLAUDE.md/STUDIO.md install logic lived only in
apps/studio, with no shared home the way per-site skill installs
already had (packages/common/lib/agent-skills.ts). Moves it into
packages/common/lib/agent-instructions.ts, and moves the bundled skill
catalog into packages/common/lib/agent-skills-catalog.ts, so apps/local
can reuse both instead of duplicating the logic. apps/studio's own
modules become thin wrappers with unchanged behavior and signatures.

First of a stack bringing per-site AI skills and instructions to the
agentic UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant