Platform Abstraction
Use when the user asks about a platform abstraction layer, cross-platform engine code, windowing, engine filesystem, dynamic library loading, high-resolution timers or platform ifdefs. Produces a PAL for Windows, Linux, macOS and consoles. Not for mobile app platform APIs (use mobile-patterns).
Install
npx skills add j4flmao/agent-skills --skill platform-abstractiongit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/game/game-engine/platform-abstraction ~/.claude/skills/platform-abstractionPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Platform Abstraction Layer — Deep Engineering Guide
## Purpose
The PAL (Platform Abstraction Layer) is the layer that lets one engine codebase run on Windows, Linux, macOS, and every console generation. If it's leaky, every feature becomes a platform #ifdef. If it's designed well, 95% of engine code is pure, portable C++.
## Agent Protocol
### Trigger
"platform abstraction layer", "PAL", "cross-platform engine", "windowing", "engine filesystem", "dynamic library loading", "platform ifdef".
### Input Context
- Target platforms
- Language and build system
- Existing libraries (SDL3, GLFW, custom)
### Output Artifact
Interface design and per-platform implementation sketch. No file unless requested.
### Response Format
```
Interface: {header}
Backends: {platform -> implementation}
Code: {snippet}
Pitfalls: {paths, unicode, threading}
```
## 1. The Contract — What the PAL Must Cover
| Concern | Platform-specific | Engine API |
|---------|-------------------|------------|
| Memory | VirtualAlloc / mmap / heap | `Memory::Reserve`, `Memory::Commit` |
| Threads | CreateThread / pthread / fiber | `Thread`, `JobSystem` handles |
| Filesystem | CreateFile / open | `FileSystem::Open`, paths `{Platform.VirtualPath}` |
| Time | QueryPerformanceCounter / clock_gettime | `Time::Now()`, `Time::Delta()` |
| Windowing | Win32 / SDL / GLFW | `Window`, `InputEvent` |
| Input | RawInput / XInput / hid | `InputDevice`, `ActionMap` |Details
- Skill name
platform-abstraction- Repository
- j4flmao/agent-skills
- Path
skills/game/game-engine/platform-abstraction/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Platform Abstraction skill do?
Use when the user asks about a platform abstraction layer, cross-platform engine code, windowing, engine filesystem, dynamic library loading, high-resolution timers or platform ifdefs. Produces a PAL for Windows, Linux, macOS and consoles. Not for mobile app platform APIs (use mobile-patterns).
How do I install the Platform Abstraction skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill platform-abstraction. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Platform Abstraction popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Ptx Assembly
45j4flmao/agent-skills
Use when the user asks about PTX, inline asm volatile in CUDA, nvcc -ptx, ptxas -v register spills, state spaces, cp.async, mma.sync or bar.sync. Produces explained PTX listings or inline-asm snippets with constraints and SASS verification steps. Not for native machine code and stall analysis (use sass-machine-code) or kernel design (use cuda-programming).
Php Zend
45j4flmao/agent-skills
Use when the user asks about Laminas, Zend Framework migration, Laminas MVC, Mezzio, laminas-servicemanager factories, laminas-db TableGateway or laminas-inputfilter. Produces Laminas/Mezzio modules and migration steps. Not for Symfony (use symfony-backend) or Laravel (use php-laravel).
Python Django Architecture
45j4flmao/agent-skills
Use when the user asks about Django, Django ORM queries that are slow, select_related and prefetch_related, Django REST framework (DRF), Django apps structure or migrations. Produces Django code with a service layer and N+1-free queries. Not for FastAPI (use python-fastapi-architecture).
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.