一键导入
documentation-standards
This skill should be used when writing or updating documentation, coding standards, and best practices for the Bamboozle codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill should be used when writing or updating documentation, coding standards, and best practices for the Bamboozle codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill should be used when managing, building, and troubleshooting the Capacitor-based Android application for Bamboozle.
This skill should be used when generating, managing, and exporting branding assets for Bamboozle.
This skill should be used when adding a new game action or event to the Bamboozle codebase.
This skill should be used when adding or modifying a game phase (e.g., adding a 'Wager' phase) in Bamboozle.
This skill should be used when managing the Bamboozle narrator system, including premium voices and Safari compatibility.
| name | documentation-standards |
| description | This skill should be used when writing or updating documentation, coding standards, and best practices for the Bamboozle codebase. |
| version | 1.0.0 |
| author | Gabriel Athanasiou |
| created | "2024-05-01T00:00:00.000Z" |
| updated | "2026-03-07T00:00:00.000Z" |
| platforms | ["copilot","claude","codex"] |
| category | documentation |
| tags | ["standards","documentation","best-practices"] |
| risk | safe |
This skill provides guidelines for documenting the Bamboozle codebase. Use these standards when adding new features or refactoring existing code to ensure consistency and maintainability.
/components: Reusable UI components (buttons, avatars, cards)./views: Major application screens (Host, Player, Lobby)./services: Core business logic and external integrations (GameService, AudioService)./types.ts: Centralized TypeScript definitions./i18n: Localization files./server: Node.js backend for socket.io handling and TTS generation./android: Capacitor Android project (Gradle, AndroidManifest, Java)./docs: Comprehensive documentation for all subsystems.capacitor.config.ts: Central configuration for the native app.
IS_DEV flag to switch between Local IP (dev) and Bundled Code (production)./android: Treat this as a build artifact. Custom logic should be in MainActivity.java but most state belongs in React.All major components should have a TSDoc comment explaining their purpose, props, and any side effects.
/**
* Displays the current game question with blank placeholders.
*
* @param fact - The question text with <BLANK> markers.
* @param phase - Current game phase (affects visibility).
* @returns JSX.Element
*/
export const QuestionDisplay = ({ fact, phase }: Props) => { ... }
Services managing state or side effects must document:
Each major subsystem (Audio, Network, Game Logic) should have a dedicated markdown file in /docs.
useGameService for global game state.style={{ ... }} unless dynamic (e.g., coordinates).clsx or template literals for conditional classes.md: prefix).h-[100svh] for root containers to guarantee visibility above mobile browser toolbars.flex-1 min-h-0 on central content areas to ensure they scroll internally without expanding the total height.env(safe-area-inset-bottom) to footers and fixed bottom elements.overscroll-behavior: none to disable elastic bouncing on mobile.socket.emit.gameStateUpdate to sync changes.useGameService (persist playerId and roomCode).types.ts: Add new GamePhase enum value.gameService.ts: Handle phase transition in processHostEvent or server-side logic.HostView.tsx & PlayerView.tsx: Render appropriate components for the new phase.GameEvent type in types.ts.gameService.ts (processHostEvent or socket listener).