docs: add .claude and .cursor AI assistant configurations#37
Merged
Conversation
Add comprehensive documentation for Claude Code and Cursor AI assistants to help developers scaffold bot.ts project files with correct patterns. - CLAUDE.md: full framework guide (architecture, aliases, style, patterns) - .claude/commands/: 7 slash commands (add-command, add-slash, add-listener, add-button, add-cron, add-table, add-namespace) - .cursor/rules/: 5 MDC rule files (bot-ts, typescript-style, commands, database, listeners-and-events) - .cursor/commands/: 7 thin wrappers referencing .claude/commands/ via @file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pnpm requires explicit approval for dependency build scripts via pnpm.onlyBuiltDependencies. Also adds sqlite3 to trustedDependencies. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pnpm v10+ stores build script approvals in pnpm-workspace.yaml (via `pnpm approve-builds`), not in package.json. This allows @biomejs/biome and sqlite3 to run their install scripts in CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
.claude/commands/(7 files): Claude Code slash commands (/add-command,/add-slash,/add-listener,/add-button,/add-cron,/add-table,/add-namespace) — each guides Claude to generate the correct file with proper imports, patterns, and Biome style.cursor/rules/(5 MDC files): Cursor AI rules scoped by glob —bot-ts,typescript-style,commands,database,listeners-and-events.cursor/commands/(7 files): thin wrappers that reference.claude/commands/via@filesyntax — no duplication, single source of truthAll documentation is derived from the official bot.ts docs at https://ghom.gitbook.io/bot-ts/.
Test plan
/add-commandin Claude Code generates a valid textual command file/add-slashin Claude Code generates a valid slash command file.cursor/rules/when editingsrc/**/*.ts@.claude/commands/...references correctly🤖 Generated with Claude Code