Back to Skills

raylib

EvanLavender13
Updated Today
97 views
0
View on GitHub
Developmentapi

About

This skill helps developers leverage raylib's existing API to avoid reinventing solutions for graphics, input, or audio. It directs you to consult the official cheatsheet to find built-in functions before writing custom code. Use it to quickly check for available utilities in modules like shapes, textures, and audio.

Documentation

raylib Development

Check raylib's built-in functions before writing custom implementations.

Cheatsheet First

Reference: https://www.raylib.com/cheatsheet/cheatsheet.html

Before implementing any rendering, input, or audio feature:

  1. Identify the module (shapes, textures, text, models, shaders, audio)
  2. Scan that module's functions in the cheatsheet
  3. Only write custom code if no raylib function exists

Use WebFetch to retrieve and search the cheatsheet when uncertain.

Module Categories

ModuleCoversCommon Functions
rcoreWindow, input, timingGetFrameTime, IsKeyPressed, GetMousePosition
rshapes2D primitivesDrawLineEx, DrawRectangleRounded, DrawCircleSector
rtexturesImages, texturesDrawTexturePro, LoadRenderTexture, BeginTextureMode
rtextFont renderingDrawTextEx, MeasureTextEx
rmodels3D geometryDrawMesh, LoadModel
raudioSound, musicLoadSound, PlaySound, SetSoundVolume
rlglLow-level OpenGLUse only when raylib lacks the feature

Before You Implement

Check these functions first for common tasks:

TaskCheck First
Thick linesDrawLineEx(start, end, thickness, color)
Rounded rectanglesDrawRectangleRounded, DrawRectangleRoundedLines
Rotated/scaled spritesDrawTexturePro(texture, source, dest, origin, rotation, tint)
Bezier curvesDrawLineBezier, DrawLineBezierQuad, DrawLineBezierCubic
Render to textureLoadRenderTexture, BeginTextureMode, EndTextureMode
Screen captureTakeScreenshot, LoadImageFromScreen
Shader uniformsGetShaderLocation, SetShaderValue
Delta timeGetFrameTime() returns seconds since last frame

Naming Conventions

raylib uses consistent verb prefixes:

  • Load* / Unload* — Resource lifecycle
  • Begin* / End* — Scoped state (drawing, shader, texture mode)
  • Draw* — Immediate rendering
  • Get* / Set* — Property access
  • Is* — Boolean queries (IsKeyPressed, IsWindowResized)
  • Check* — Collision detection

rlgl: Last Resort

rlgl exposes raw OpenGL. Use only when:

  • raylib provides no built-in function
  • Performance requires batched custom geometry
  • Custom vertex attributes needed

For simple shapes, rshapes functions outperform hand-rolled rlgl.

Verification

When implementing graphics features, verify:

  • Searched cheatsheet for existing function
  • Checked rshapes before rlgl
  • Used DrawTexturePro for any sprite transforms
  • Paired all Begin*/End* calls

Quick Install

/plugin add https://github.com/EvanLavender13/audio-jones/tree/main/raylib

Copy and paste this command in Claude Code to install this skill

GitHub 仓库

EvanLavender13/audio-jones
Path: .claude/skills/raylib

Related Skills

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

huggingface-accelerate

Development

HuggingFace Accelerate provides the simplest API for adding distributed training to PyTorch scripts with just 4 lines of code. It offers a unified interface for multiple distributed training frameworks like DeepSpeed, FSDP, and DDP while handling automatic device placement and mixed precision. This makes it ideal for developers who want to quickly scale their PyTorch training across multiple GPUs or nodes without complex configuration.

View skill

nestjs

Meta

This skill provides NestJS development standards and architectural patterns for building domain-centric applications. It covers modular design, dependency injection, decorator patterns, and key framework features like controllers, services, middleware, and interceptors. Use it when developing NestJS applications, implementing APIs, configuring microservices, or integrating with databases.

View skill