You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bundle WordPress agent skills into Studio binary (#2741)
* Bundle WordPress agent skills into Studio binary
Add support for bundling 5 curated WordPress skills from the WordPress/agent-skills
repository into Studio's binary distribution. Skills are downloaded on-demand via
`npm run download-agent-skills`, bundled as extra resources, and copied to appdata
server-files at app startup following the existing pattern.
- Add download script for fetching skills from GitHub
- Add skills installation logic with symlink creation for .agents/ and .claude/ dirs
- Add IPC handlers and UI row in AI settings modal for manual install/reinstall
- Auto-install skills on site creation (desktop + CLI), behind ENABLE_AGENT_SUITE flag
- Add 9 unit tests for skills module
* Address PR review: shared skill constants, translations, deduplicate install logic
- Move BUNDLED_SKILL_IDS and installSkillsToSite to @studio/common/lib/agent-skills
so both Studio and CLI share a single source of truth
- Add __() translations to skill display names and descriptions
- Remove duplicated installAgentSkills from CLI create.ts, use shared function
- Simplify skills.ts by delegating to shared installSkillsToSite
- Add 7 tests for the shared agent-skills module
* Address code review: shared skill IDs, symlink fix, Windows compat
1. Use BUNDLED_SKILL_IDS from shared module in download script (single source of truth)
3. Fix symlink early-return bug: create .claude symlink even when .agents copy exists
4. Add Windows symlink fallback: fall back to junction on EPERM
* Revert formatting change in forge.config.ts to match trunk
* Trigger E2E tests
* Fix blank screen caused by Node.js imports leaking into renderer bundle
skills-constants.ts re-exported from @studio/common/lib/agent-skills,
which imports fs/promises and path. Since ai-settings-modal.tsx imports
skills-constants.ts, this pulled Node.js modules into the renderer
bundle, crashing it silently. Removed the unused re-export.
* Download WordPress skills as a postinstall step
---------
Co-authored-by: Antonio Sejas <antonio.sejas@automattic.com>
0 commit comments