Skills for coding agents
Give your agent the Spraxium docs and examples for the feature it’s working on. Start with the general skill, then add the instructions for a specific task.
Save skills in .agents/skills/<skill>/SKILL.md
Project basics
Work with Spraxium
Start, understand, or change a Spraxium Discord bot. Use this skill to select the right example, find specialized skills, and verify work against the installed version.
Organize a bot by feature
Structure Spraxium modules, providers, and lifecycle hooks. Use when adding a feature, moving a service, or fixing dependency injection.
Spraxium CLI
Scaffold a Spraxium project, generate feature files, and use dev, build and version-switch commands for the right release.
Discord and interactions
Slash commands
Define slash commands, options, subcommands, autocomplete and guarded handlers. Use for Discord chat-input commands and interaction replies.
Prefix commands
Configure message prefixes, arguments, aliases and subcommands, and verify Discord intents. Use for commands such as !help or !roll.
Discord modals
Open and handle Discord modals with typed fields, validation, cached values and dynamic context. Use for forms and modal submit handling.
Discord embeds
Build readable Discord embeds from typed schemas and service data. Use for conditional fields, dynamic formatting and pagination.
Components V2
Build Discord Components V2 containers, text and actions with Spraxium. Use when changing a V2 layout or a reply carrying the V2 flag.
Buttons, selects, and component context
Register button and select handlers, build rows, and carry component context between Discord interactions.
Guards and access checks
Apply built-in or custom guards to Spraxium handlers. Use for roles, permissions, guild-only checks, and guard options.
Exceptions and error replies
Define domain errors and user-visible Discord replies through Spraxium's exception pipeline, layouts, and logging.
Discord event listeners
Subscribe to Discord events with Spraxium listeners. Use for ready, guild/member events, or delegating event work to a provider.
Setup and operations
First-party plugins
Install and configure first-party Spraxium plugins. Use when wiring package factories and modules for components, translations, scheduling, signals, webhooks, or RPC.
Scheduled jobs
Run startup, delayed and recurring jobs with the Spraxium schedule package. Use for cron, intervals, persistence, or shard-safe scheduling.
Logging and transports
Use @spraxium/logger to record bot events and configure levels, masking, console output, and extra transports.
Presence and activities
Configure startup presence and rotate activities on a running Discord bot. Use for status, placeholders, and shard overrides.
Translations and locale preferences
Translate commands and messages with @spraxium/i18n. Use for locale files, interpolation, plural rules, component labels, and preference storage.
Connect a backend to the bot
Add a typed Spraxium RPC operation and call it from a backend. Use for new bot-to-backend integrations, gateway settings and handler troubleshooting.
Migrate from HTTP to RPC
Move a legacy @spraxium/http route to your web framework and call the bot through Spraxium RPC. The migration skill is maintained in the RPC repository.