tencent/puerts/puerts-agent-development
Claude Code and agent skill by tencent/puerts
- community
Checking that the SKILL.md file is still in the repository.
Guide for developing LLM agents based on PuerTsAgent framework — covers resource directory structure, system-prompt, skills, builtin modules, and best practices.
Install
npx vskill@latest install tencent/puerts/puerts-agent-developmentSKILL.md
The same SKILL.md was published earlier as tencent/puerts/puerts-agent-development.
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'sPackages/manifest.jsonto verify that the following packages are installed:-com.tencent.puerts.core-com.tencent.puerts.v8-com.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 UnityResources/(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 (withpackage.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: Bothsystem-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:
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
All resource files are placed in Unity's Resources/ directory.
File extension convention: UnityResourcesdoes 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
Format
Plain text / Markdown format, write role definition directly, no front-matter needed.
Example — Editor Assistant
Example — Maze AI (excerpt)
The System Prompt describes the AI's identity, available modules, goals, exploration loops, navigation rules, etc. It can be lengthy — it defines the AI's behavior pattern throughout the task.
2. Skills — Domain Skills
Purpose
A Skill is an on-demand loaded Markdown document providing domain-specific operation guides and rules for the LLM. The LLM actively loads skills into context via the loadSkill tool when needed.
Skills are prompts too — just likesystem-prompt.md.txt, they are natural language instructions. The key difference is that skills are not always in context. If a piece of knowledge is not needed for most tasks the agent handles, it belongs in a skill file rather than in the system prompt. This keeps the base context lean while still making specialized knowledge available when the LLM needs it.
File Location
File Format
Skill files use YAML front-matter for metadata, body is Markdown content:
| Front-matter Field | Required | Description | |
|---|---|---|---|
name | ✅ | Unique identifier, LLM calls loadSkill with this name | |
description | ❌ | Short description shown in loadSkill available skills list |
Example
skills/puerts-interop.md.txt:
Design Tips
- description should be accurate: LLM decides whether to load based on description
- content should be thorough: skill docs are the LLM's only reference for specific tasks
- one domain per skill: keep responsibilities single for precise loading
- system-prompt vs skill decision rule: If the agent needs this knowledge in >80% of tasks → put it in
system-prompt.md.txt. Otherwise → put it inskills/for on-demand loading
3. Builtin — Built-in Helper Modules
Purpose
Builtin modules are JavaScript modules providing pre-built helper functions for the LLM's evalJsCode tool. Unlike Skills, Builtins are actually executable code, not documentation.
File Location
Source code can use TypeScript, JavaScript, or any language compilable to.mjs. The framework only cares about the final.mjsfiles in the resource directory.
Module Contract
Every Builtin module must export the following two string constants:
| Export | Type | Description | |
|---|---|---|---|
summary | string | Short summary (~one line), always shown in evalJsCode tool description | |
description | string | Detailed function signatures and usage, LLM reads via import() |
Additionally, the module's exported functions are the actual capabilities the LLM can call in evalJsCode.
Example — builtins/unity-log.mjs (shown as TypeScript source)
Example — builtins/maze-control.mjs (TypeScript source, excerpt)
Design Tips
- summary should be brief: it always consumes tokens, just convey the module's purpose
- description must list complete signatures: LLM must read description before calling functions
- functions should validate parameters: LLM may pass incorrect params, validate and throw meaningful errors
- top-level await is supported: modules can use
awaitat top level (e.g., async initialization) - C# bridge classes must be pre-implemented on the Unity side
4. Complete Development Workflow
Step 1: Create Resource Directory
Step 2: Write Role Definition
Edit system-prompt.md.txt to define the AI's identity and behavioral rules. For example, a maze AI should describe:
- Role identity (maze explorer)
- Available modules (maze-control, screenshot)
- Goal (reach the red exit marker)
- Exploration loop (observe → plan → act)
- Navigation strategy (right-hand rule, dead-end detection, etc.)
Step 3: Write Domain Skills (Optional)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingunity/skills/puerts-agent-development/SKILL.md
Popularity
- Repository stars
- 6,207
- Repository forks
- 862
- 7-day trend score
- 44
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tencent/puerts/puerts-agent-development)