ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Handle cross-platform compatibility including file paths, environment detection, platform-specific dependencies, and testing across Windows, macOS, and Linux. Use when dealing with platform-specific code or OS compatibility.
Claude Code
$ npx -y skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility --agent claude-code
Codex
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a codex -y
Cursor
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a cursor -y
Gemini CLI
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a gemini-cli -y
GitHub Copilot
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a github-copilot -y
OpenCode
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a opencode -y
Windsurf
$ npx skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility -a windsurf -y
name: cross-platform-compatibility description: > Handle cross-platform compatibility including file paths, environment detection, platform-specific dependencies, and testing across Windows, macOS, and Linux. Use when dealing with platform-specific code or OS compatibility.
Comprehensive guide to writing code that works seamlessly across Windows, macOS, and Linux. Covers file path handling, environment detection, platform-specific features, and testing strategies.
Minimal working example:
// ❌ BAD: Hardcoded paths with platform-specific separators
const configPath = "C:\\Users\\user\\config.json"; // Windows only
const dataPath = "/home/user/data.txt"; // Unix only
// ✅ GOOD: Use path module
import path from "path";
import os from "os";
// Platform-independent path construction
const configPath = path.join(os.homedir(), "config", "app.json");
const dataPath = path.join(process.cwd(), "data", "users.txt");
// Resolve relative paths
const absolutePath = path.resolve("./config/settings.json");
// Get path components
const dirname = path.dirname("/path/to/file.txt"); // '/path/to'
const basename = path.basename("/path/to/file.txt"); // 'file.txt'
const extname = path.extname("/path/to/file.txt"); // '.txt'
// Normalize paths (handle .. and .)
const normalized = path.normalize("/path/to/../file.txt"); // '/path/file.txt'Detailed implementations in the `references/` directory:
| Guide | Contents | |---|---| | [File Path Handling](references/file-path-handling.md) | File Path Handling | | [Platform Detection](references/platform-detection.md) | Platform Detection | | [Line Endings](references/line-endings.md) | Line Endings | | [Environment Variables](references/environment-variables.md) | Environment Variables | | [Shell Commands](references/shell-commands.md) | Shell Commands | | [File Permissions](references/file-permissions.md) | File Permissions | | [Process Management](references/process-management.md) | Process Management | | [Platform-Specific Dependencies](references/platform-specific-dependencies.md) | Platform-Specific Dependencies | | [Testing Across Platforms](references/testing-across-platforms.md) | Testing Across Platforms | | [Character Encoding](references/character-encoding.md) | Character Encoding | | [Build Configuration](references/build-configuration.md) | Build Configuration |
488 production-ready AI prompts, all following a standardized template with validated quality gates. Transform ChatGPT, Claude, and other AI assistants into expert consultants.
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Implement Role-Based Access Control (RBAC), permissions management, and authorization policies. Use when building secure access…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard navigation, and a11y testing. Use when…
Test web applications for WCAG compliance and ensure usability for users with disabilities. Use for accessibility test, a11y,…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate user stories, manage sprint backlog,…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident coordination. Use when setting up…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…