feat: add @electric-sql/agent package with AI coding assistant skills #3775
+3,585
−29
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.
Summary
Adds
@electric-sql/agent- a new package providing AI coding assistant skills for building local-first apps with Electric and TanStack DB. Also adds skills to@electric-sql/client.User impact: AI coding assistants (Claude Code, Cursor, Copilot, etc.) can now get contextual guidance when building Electric apps via
npx @electric-sql/agent install.Approach
Architecture
The skills system has three components:
electric) - Lightweight overview that agents load first, explains what Electric is and what help is available.claude/skills/,.cursor/skills/, etc.) that reference the full skills in the npm packageCLI Commands
Skills Included
@electric-sql/agent:
electric- Router/overview skillelectric-quickstart- New project setupelectric-tanstack-integration- Collections, live queries, mutationselectric-security-check- Security audit checklistelectric-go-live- Production readinessdeploying-electric- Cloud/Docker/self-hosted deployment@electric-sql/client:
electric-shapes- Shapes API referenceelectric-auth- Auth patternselectric-http-api- HTTP API referenceCI Automation
Added GitHub workflow that detects when source files change and comments on PRs if skills may need updating (staleness detection).
Key Invariants
Non-goals
Verification
Files Changed
packages/agent/- New package with CLI and skillspackages/typescript-client/skills/- Skills for the client packagepackages/typescript-client/package.json- Added "skills" to files array.github/workflows/skill-staleness.yml- CI for detecting stale skillsscripts/check-skill-staleness.mjs- Script to check which skills reference changed files.changeset/add-agent-skills.md- Changeset for versioning🤖 Generated with Claude Code