ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
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.
$ npx -y skills add aj-geddes/useful-ai-prompts --skill cross-platform-compatibility --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cross-platform-compatibilityContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
Repo: aj-geddes/useful-ai-prompts
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
Implement Role-Based Access Control (RBAC), permissions management, and authorization…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard…
Test web applications for WCAG compliance and ensure usability for users with disabilities.…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident…