💡 摘要
一组技能,旨在增强AI编码代理在SpacetimeDB应用开发中的能力。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发)。以最小权限运行,并在生产环境启用前审计代码与依赖。
SpacetimeDB Agent Skills
A collection of skills for AI coding agents. Skills are packaged instructions and scripts that extend agent capabilities for building real-time, multiplayer applications with SpacetimeDB.
Skills follow the Agent Skills format.
Available Skills
spacetimedb-best-practices
SpacetimeDB development best practices for TypeScript server modules and client SDK. Contains rules across multiple categories, prioritized by impact.
Use when:
- Writing SpacetimeDB server modules in TypeScript
- Implementing client-side subscriptions and state management
- Setting up React hooks for SpacetimeDB integration
- Reviewing code for performance and real-time sync issues
- Optimizing query patterns and reducer design
Categories covered:
- Module Design (Critical)
- Table Schema & Indexing (Critical)
- Reducer Patterns (High)
- Subscription Optimization (High)
- Client State Management (Medium-High)
- React Integration (Medium)
- TypeScript Patterns (Medium)
- Real-time Sync (Low-Medium)
web-design-guidelines
Review UI code for compliance with web interface best practices. Audits your code for 100+ rules covering accessibility, performance, and UX.
Use when:
- "Review my UI"
- "Check accessibility"
- "Audit design"
- "Review UX"
- "Check my site against best practices"
Categories covered:
- Accessibility (aria-labels, semantic HTML, keyboard handlers)
- Focus States (visible focus, focus-visible patterns)
- Forms (autocomplete, validation, error handling)
- Animation (prefers-reduced-motion, compositor-friendly transforms)
- Typography (curly quotes, ellipsis, tabular-nums)
- Images (dimensions, lazy loading, alt text)
- Performance (virtualization, layout thrashing, preconnect)
- Navigation & State (URL reflects state, deep-linking)
- Dark Mode & Theming (color-scheme, theme-color meta)
- Touch & Interaction (touch-action, tap-highlight)
- Locale & i18n (Intl.DateTimeFormat, Intl.NumberFormat)
Installation
npx add-skill spacetimedb/agent-skills
Usage
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Create a SpacetimeDB module for a chat app
Review this reducer for performance issues
Help me optimize my subscription queries
Set up React hooks for my SpacetimeDB client
Skill Structure
Each skill contains:
SKILL.md- Instructions for the agentscripts/- Helper scripts for automation (optional)references/- Supporting documentation (optional)
License
MIT
优点
- 提供SpacetimeDB的全面最佳实践。
- 针对相关任务自动使用技能。
- 支持多个开发方面。
缺点
- 仅限于SpacetimeDB上下文。
- 可能需要对TypeScript的熟悉。
- 并非所有技能对每个用户都是必要的。
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 iSyn.
