PuerTS Agent Development Guide
Qué hace
Esta skill es una guía para construir agentes de IA con el framework PuerTsAgent en Unity. Está pensada para desarrolladores de juegos y aplicaciones que quieren un agente de LLM ejecutándose dentro de su proyecto de Unity.
Cuándo usarla
- ✓Cuando quieres crear un agente de LLM dentro de un proyecto de Unity con PuerTS.
- ✓Cuando necesitas configurar el prompt del sistema, las skills o los módulos integrados de un agente.
- ✓Cuando quieres comprobar que los paquetes de PuerTS necesarios están instalados antes de construir un agente.
Link de la skill
https://github.com/Tencent/puerts/blob/master/unity/skills/puerts-agent-development/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a crear un agente de LLM en mi proyecto de Unity que ayude a los jugadores, con su propio prompt del sistema y sus skills.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill comprueba que los paquetes de PuerTS necesarios están instalados y pregunta dónde deben ir los archivos del agente dentro de la carpeta Resources de Unity. Después te guía por el prompt, las skills y los módulos integrados, y por la elección del lenguaje de esos módulos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
PuerTS Agent Development Guide
This skill provides the complete guide for developing LLM agents based on the PuerTsAgent framework.
⚠️ Important — Required Packages: This framework depends on PuerTS core, v8, and agent packages. Before proceeding, you must check the Unity project's
Packages/manifest.jsonto verify that the following packages are installed:
com.tencent.puerts.corecom.tencent.puerts.v8com.tencent.puerts.agentIf any of these packages are missing, they must be installed first before using this skill. you MUST first invoke the "Install PuerTS for Unity" skill to AUTO complete the setup.
⚠️ Prerequisite: Before using this skill to create or modify an agent, you must know the agent's resource directory path under Unity
Resources/(e.g.,maze-runner,editor-assistant). If the user has not provided this path, ask the user whichResources/subdirectory to use before proceeding. All agent files (system-prompt, skills, builtins) are organized under this path.
⚠️ Builtin Language Choice: When creating builtin modules, you must ask the user whether they want to write builtins in TypeScript or JavaScript:
- TypeScript → Create a dedicated TS project (with
package.json,tsconfig.json,esbuild.mjs) whose build output (outdir) points toAssets/Resources/<agent-name>/builtins/. See TypeScript Project Setup for Builtins section below.- JavaScript → Write
.mjsfiles directly inAssets/Resources/<agent-name>/builtins/.
Overview
In this framework, an agent's behavior and capabilities are entirely defined by files in a resource directory (Resource Root). Different resource directories represent different agents — Unity editor assistants, in-game AI characters, or any role you need.
Key Concept: Both
system-prompt.md.txtand files underskills/are essentially prompts (natural language instructions for the LLM). The only difference is their loading strategy:
system-prompt.md.txt— Always present in context (persistent). Put prompts here that are needed for most tasks.skills/*.md.txt— Loaded on demand by the LLM vialoadSkill. Put prompts here that are not needed for every task — they are loaded only when the LLM determines they are relevant.
Creating an Agent
Initialize an agent in C# via its resource path:
var agent = new AgentScriptManager();
agent.Initialize("maze-runner", () =>
{
Debug.Log("Maze runner agent is ready!");
});
The first parameter of Initialize is the resource directory path under Unity Resources/. The framework loads the full agent definition from this directory:
system-prompt.md.txt— Role definition (System Prompt)skills/— Domain skill documents (loaded on demand, optional)builtins/— Built-in helper modules (executable JS modules)
Example Directory Structure
Resources/maze-runner/
├── system-prompt.md.txt # Role definition (System Prompt)
├── skills/ # Domain skills (loaded on demand, optional)
└── builtins/ # Built-in modules (loaded on demand)
├── maze-control.mjs # Maze movement and status query
└── screenshot.mjs # Screenshot to observe the maze
All resource files are placed in Unity's Resources/ directory.
File extension convention: Unity
Resourcesdoes not support.mdand.mjsas TextAsset, so:
- Markdown files use
.md.txtsuffix- JS module files use
.mjssuffix
1. System Prompt — Role Definition
Purpose
system-prompt.md.txt defines the agent's identity, personality, capabilities, and behavioral rules. It is injected at the beginning of the LLM's system prompt and is the core of the agent's "persona."
This is a persistent prompt — it is always present in the LLM's context for every conversation turn. Therefore, put only the most frequently used instructions here — things the agent needs for the majority of its tasks. Avoid stuffing rarely-used domain knowledge here, as it permanently consumes context tokens.
File Location
<resource-root>/system-prompt.md.txt
Format
Plain text / Markdown format, write role definition directly, no front-matter needed.
Example — Editor A
Preguntas frecuentes
¿Qué paquetes necesita?
Necesita los paquetes núcleo, v8 y agent de PuerTS en el proyecto de Unity.
¿Puedo escribir los módulos integrados en TypeScript?
Sí, la skill pregunta si quieres TypeScript o JavaScript para los módulos integrados.
¿Dónde van los archivos del agente?
Van en una carpeta dentro del directorio Resources de Unity que elijas.
Detalles
Descripción original del autor
Guide for developing LLM agents based on PuerTsAgent framework — covers resource directory structure, system-prompt, skills, builtin modules, and best practices.
repo: Tencent/puerts
Popularidad
- Estrellas en GitHub
- 6,3 mil
- Posición en el ranking
- #14378
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.