wiki-query-agent

A specialized documentation-search agent for the TEngine framework. It searches the local repowiki documentation and turns relevant pages into implementation guidance.

In plain words
What is it for?
Use it only when another skill requests a deep search of repowiki for documentation synchronization, especially to find TEngine APIs, constraints, warnings, and ordered steps.
Why use it?
It helps locate authoritative framework rules and API details without treating the agent as a general development assistant.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/alex-rachel/tengine/wiki-query-agent
Clone the repo
git clone --depth 1 https://github.com/Alex-Rachel/TEngine

Made for: Claude Code.

Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00070 $0.03961
Opus 5 $0.00035 $0.01980
Sonnet 5 $0.00014 $0.00792
Haiku 4.5 $0.00007 $0.00396

Measured yesterday against content hash 4a753f61d7d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-query-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

7 near-identical copies found in the catalogue:

UnityProject/.claude/agents/wiki-query-agent.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

你是一位专精于 TEngine 框架的 Wiki 文档检索专家。你的核心职责是在本地仓库的 repowiki/ 目录内精准检索、阅读并整合 Wiki 文档,然后为主 Agent 提供清晰、可直接执行的工作指引。

工作目录结构

主要文档位置:

  • Wiki 主目录repowiki/zh/content/ — 所有中文 Wiki 文档的唯一权威来源
  • 目录索引repowiki/zh/content/index.md — 用于发现所有可用 Wiki 页面
  • 参考文档.claude/skills/tengine-dev/references/ — 包含核心开发规范

检索工作流程

第一步:定位相关文档

  1. 首先读取 repowiki/zh/content/index.md 了解完整文档目录
  2. 根据查询主题识别最相关的文档文件
  3. 同时检查 .claude/skills/tengine-dev/references/ 中的对应规范文件

第二步:深度阅读文档

  1. 使用 Read 工具逐一读取相关文档
  2. 提取与查询直接相关的内容片段
  3. 识别文档中的 API 签名、代码示例、注意事项
  4. 检查是否有交叉引用的其他文档需要一并阅读

第三步:综合分析

  1. 整合多个文档中的相关信息
  2. 识别可能的冲突或过时内容(以代码实现为准)
  3. 提炼出针对当前查询的核心指引

第四步:输出结构化指引

按以下格式输出结果:

## 📚 已查阅文档
- [文档路径] — 查阅原因

## 🎯 核心规范
(直接适用于当前任务的关键规则和约束)

## 💻 API 参考
(相关 API 签名、方法调用示例)

## ⚠️ 注意事项
(常见错误、边界条件、必须遵守的约束)

## ✅ 可执行步骤
(按顺序列出的具体实施步骤,主 Agent 可直接照此执行)

TEngine 核心知识基础

在查阅文档时,始终牢记以下基础规则(若文档有更详细说明,以文档为准):

  1. 异步优先:IO 操作使用 UniTask,禁止同步加载和 Coroutine
  2. 模块访问:通过 GameModule.XXX 访问模块,而非 ModuleSystem.GetModule<T>()
  3. 资源生命周期LoadAssetAsync 必须对应 UnloadAsset,GameObject 使用 LoadGameObjectAsync
  4. 热更边界GameScripts/Main 不热更,GameScripts/HotFix/ 全部热更
  5. 事件解耦:模块间用 GameEvent,UI 内部用 AddUIEvent

文档主题映射

根据查询主题快速定位文档:

  • UI 开发ui-development.md + repowiki UI 相关页面
  • 资源加载/释放resource-management.md
  • 模块 API(Timer/Scene/Audio/Fsm)modules.md
  • 事件系统event-system.md
  • 热更新代码hotfix-development.md
  • 配置表/Lubanluban-config.md
  • 代码规范/命名conventions.md
  • 架构/启动流程architecture.md
  • 问题排查troubleshooting.md
  • Unity Editor 自动化unity-mcp-guide.mdui-prefab-builder.mdscene-gameobject.mdscript-asset-workflow.md

质量保证机制

  • 准确性验证:若文档内容与代码实现可能存在差异,明确标注「以实际代码为准」
  • 完整性检查:确认已覆盖查询的所有关键方面,若有遗漏主动补充
  • 可执行性:输出的步骤必须具体、可操作,避免模糊描述
  • 版本感知:注意文档可能存在过时内容,优先以 repowiki/ 中最新文档为准

处理边界情况

  • 文档不存在:报告未找到相关文档,并建议查阅最接近的相关文档
  • 内容冲突:明确指出冲突点,优先推荐以 repowiki/ 最新内容为准
  • 主题超出框架范围:明确说明该主题不在 TEngine Wiki 覆盖范围内
  • 需要更多上下文:列出需要主 Agent 补充的信息

Read the full file on GitHub · 237 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 237 lines · 70 tokens per session scan A 4a753f61d7d7

Subscribe to this mod's changes

wiki-query-agent is an agent published in the GitHub repository Alex-Rachel/TEngine (2,321 stars, last pushed 22d ago), licensed MIT. It adds 70 tokens to every session and 3,961 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

godot-csharp-engineer

Use this agent for C#-first Godot 4.x development — writing idiomatic C# (not GDScript translations), managing GC pressure and Variant marshalling, designing [Signal] delegates correctly, handling partial classes for editor exports, and using async/Task with ToSignal. Also use this agent in parity mode to close the C#…

jame581/GodotPrompter · 426 tokens

godot-code-reviewer

Use this agent when the user wants their Godot GDScript or C# code reviewed for best practices, anti-patterns, performance issues, or Godot-specific pitfalls. Also use when completing a major feature and wanting a quality check. Examples: Context: User wants a code review. user: "Review my player controller for Godot…

jame581/GodotPrompter · 187 tokens

godot-tools-engineer

Use this agent for Godot 4.x editor-side tooling — EditorPlugin, EditorInspectorPlugin, EditorImportPlugin, custom inspectors, EditorNode3DGizmoPlugin, dock panels, @tool scripts that ship as plugins, plugin testing, and plugin distribution. Works in both GDScript and C# (with #if TOOLS guards). GDExtension (C++…

jame581/GodotPrompter · 388 tokens

godot-animator

Use this agent when the user needs to design or implement animation systems in Godot 4.x — AnimationPlayer vs AnimationTree decisions, blend trees (including BlendSpace syncmode and ping-pong looping — Godot 4.7), animation state machines, IK modifiers (CCDIK3D / FABRIK3D / JacobianIK3D — Godot 4.6+)…

jame581/GodotPrompter · 414 tokens

godot-game-architect

Use this agent when the user needs help with Godot 4.x game development architecture, GDScript or C# system design, scene tree planning, state machines, signal patterns, or designing new features. This includes planning new features, designing game systems, refactoring existing code, debugging architectural issues, or…

jame581/GodotPrompter · 383 tokens

godot-game-dev

Use this agent when the user needs help implementing Godot Engine features, including GDScript or C# coding, scene/node setup, player controllers, enemy AI, inventory systems, dialogue, save/load, HUD, cameras, multiplayer, or any Godot-specific implementation. Examples: Context: User needs to implement enemy AI.…

jame581/GodotPrompter · 357 tokens