# pawn-forge

> Turns Claude into a SA-MP / open.mp engineer: real Pawn compiler in the loop, static analysis for buffer overflows, SQL injection and resource leaks, CrashDetect log triage, verified vehicle/skin/weapon/animation IDs, exact API signatures, SA-MP to open.mp migration, TextDraw scaffolding and headles

pawn-forge is a paid AI agent skill pack (several skills in one listing) on Agensi by Jal Devecais, in Game Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Jal Devecais](https://www.agensi.io/creators/jal-devecais)
- Category: [Game Development](https://www.agensi.io/skills/game-development)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pawn-forge
- Tags: gaming, pawn, sa-mp, open-mp, security-audit, static-analysis

## About this skill

Pawn scripting for SA-MP and open.mp often suffers from legacy habits like `strtok`, `dini`, and unsafe buffer handling that lead to crashes and exploits. Pawn Forge provides a professional engineering suite to audit, build, and modernize Pawn codebases with a real compiler and static analysis in the loop.

### What it does
- **Security Auditing** scans for buffer overflows, SQL injection, and RCON exploits.
- **Automated Migration** ports SA-MP 0.3.7 scripts to open.mp by updating natives, tags, and callback headers.
- **Crash Triage** parses `server_log.txt` and `CrashDetect` output to trace runtime errors back to specific source lines.
- **Storage Modernization** replaces legacy `.ini` file systems with threaded MySQL R41 or SQLite schemas.
- **TextDraw Scaffolding** converts raw editor exports into leak-free, array-based Pawn modules.
- **Headless Testing** runs unit tests using `y_testing` on a local open.mp server to verify gameplay logic.

### How it works
1. Use `pawnforge project_info` to map the includes, plugins, and entry points of your gamemode.
2. Run `pawnforge compile` to trigger `pawncc 3.10.x` with strict warning flags and fix reported issues.
3. Invoke `pawnforge audit` to identify vulnerabilities like weak password hashing or missing bounds checks.
4. Apply `pawnforge migrate_openmp` to upgrade legacy includes and deprecated component signatures.

### Frameworks & tools
This skill integrates with the `pawncc` 3.10.x compiler, YSI 5, Pawn.RakNet, Incognito Streamer, and MySQL R41. It supports both SA-MP 0.3.7 and open.mp server environments.

### Why this beats prompting it yourself
Generic AI often suggests outdated `strtok` patterns or unsafe `format()` SQL queries that are vulnerable to injection. Pawn Forge enforces modern standards, verifies actual API signatures, and uses a real compiler to ensure code isn't just syntactically correct but actually builds.

### Use cases
- Auditing a 10-year-old roleplay gamemode for security vulnerabilities and memory leaks.
- Migrating a production SA-MP server to open.mp without breaking existing player data.
- Debugging a recurring server crash using CrashDetect backtraces and log analysis.
- Scaffolding a complex inventory UI from raw TextDraw coordinates.

### Known limitations
Requires a local installation of the Pawn compiler and optionally an open.mp server binary for testing. It cannot fix logical errors in custom plugins written in C++.

## Requires

- Node.js
- Python
- Non MCP
- Git
- uv (Python tool runner)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the pawn-forge skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Pawn-forge differ from standard AI code generation?

Pawn-forge is specifically designed for San Andreas Multiplayer (SA-MP) and open.mp environments. It automates security audits, handles complex migrations from legacy versions, and refactors outdated code into modern, performance-oriented YSI-compliant patterns.

### What versions of Pawn and which server frameworks are supported?

The suite supports any Pawn codebase targeting SA-MP 0.3.7 or open.mp. It is optimized to work alongside the Pawn 3.10.x compiler and common community libraries like YSI 5, Incognito Streamer, and MySQL R41.

### What exactly is included in the Pawn-forge purchase?

You will receive the full command-line engineering suite, including modules for auditing, migration, and crash triage, along with documentation on integrating it into your existing development workflow.

### Are there any external dependencies required to use this skill?

Yes, you will need a local installation of the Pawn compiler (pawncc) and the relevant server binaries (SA-MP or open.mp) to use the compilation and headless testing features effectively.

### Can this skill help me move my old SA-MP server to open.mp?

The tool includes a dedicated 'migrate_openmp' command that automatically updates natives, tags, and callback headers to ensure your legacy scripts are compatible with the modern open.mp architecture.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
