Agent skill
moai-lang-c
C programming language patterns, memory management, and systems programming best practices. Use when writing C applications, managing memory manually, or implementing low-level optimizations.
Install this agent skill to your Project
npx add-skill https://github.com/AJBcoding/claude-skill-eval/tree/main/skills/moai-lang-c
SKILL.md
C Programming Language Skill
Skill Metadata
| Field | Value |
|---|---|
| Skill Name | moai-lang-c |
| Version | 2.0.0 (2025-11-11) |
| Allowed tools | Read, Bash, Glob |
| Auto-load | On demand when C patterns detected |
| Tier | Language (Foundation) |
What It Does
C programming language patterns, memory management, and systems programming best practices.
Key capabilities:
- ✅ Memory management patterns
- ✅ Systems programming techniques
- ✅ Performance optimization
- ✅ Low-level data structures
- ✅ Cross-platform compatibility
When to Use
- ✅ Writing C applications
- ✅ Managing memory manually
- ✅ Implementing low-level optimizations
- ✅ Creating system software
Core C Patterns
Memory Management
- Dynamic Allocation: malloc, calloc, realloc patterns
- Memory Safety: Buffer overflow prevention
- Resource Management: RAII-like patterns in C
- Memory Profiling: Leak detection and optimization
- Stack vs Heap: Appropriate usage scenarios
Systems Programming
- File I/O: Robust file handling patterns
- Process Management: Process creation and communication
- Network Programming: Socket programming patterns
- System Calls: Proper system call usage
- Error Handling: Robust error management
Dependencies
- C compiler (GCC, Clang)
- Build systems (Make, CMake)
- Debugging tools (GDB, Valgrind)
- Standard C library
Works Well With
moai-lang-cpp(C++ integration)moai-essentials-debug(Debugging patterns)moai-essentials-perf(Performance optimization)
Changelog
- v2.0.0 (2025-11-11): Added complete metadata, C programming patterns
- v1.0.0 (2025-10-22): Initial C language support
End of Skill | Updated 2025-11-11
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
performing-systematic-debugging-for-stubborn-problems
Applies a modified Fagan Inspection methodology to systematically resolve persistent bugs and complex issues. Use when multiple previous fix attempts have failed repeatedly, when dealing with intricate system interactions, or when a methodical root cause analysis is needed. Do not use for simple troubleshooting. Triggers after multiple failed debugging attempts on the same complex issue.
creating-development-plans
Creates structured development plans with phased task breakdowns, requirements, and QA checklists. Use when the user explicitly asks to create a dev plan, development plan, or document development requirements.
writing-documentation-with-diataxis
Applies the Diataxis framework to create or improve technical documentation. Use when being asked to write high quality tutorials, how-to guides, reference docs, or explanations, when reviewing documentation quality, or when deciding what type of documentation to create. Helps identify documentation types using the action/cognition and acquisition/application dimensions.
shell-scripting
Practical bash scripting guidance emphasising defensive programming, ShellCheck compliance, and simplicity. Use when writing shell scripts that need to be reliable and maintainable.
ia-presenter-themes
This skill should be used when creating, modifying, or troubleshooting custom themes for iA Presenter.
Didn't find tool you were looking for?