hz-unity-project-analyzer
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-unity-project-analyzer":https://skillpi.com/zh/skills/deepskill-37809e4d32c0964afa3cd39709361706b26c8e5a4d73f25df9fa465ad32fa94f。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
分析、记录并维护面向 Meta Quest 与 Horizon OS 的 Unity 项目的动态 .agent-docs/ 知识库。在用户请求扫描项目结构、解释 Unity 系统工作原理或在项目结构变更后更新文档时使用。
介绍来源: third_party · meta-quest · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hz-unity-project-analyzer
license: Apache-2.0
description: Analyzes, documents, and maintains a living `.agent-docs/` knowledge base for Unity projects targeting Meta VR and Horizon OS. Use when the user asks to scan project structure, explain how a Unity system works, or update project docs after structural changes.Unity Project Analyzer
Analyze, document, and maintain a living knowledge base of a Unity project's structure, optimized for AI agent comprehension. Output lives in .agent-docs/ as source-control-friendly markdown files.
Modes of Operation
This skill operates in four modes. Determine which mode to use based on context:
Mode 1: First-Time Full Scan
Trigger: .agent-docs/ directory does not exist or .agent-docs/index.md does not exist.
Mode 2: Incremental Update
Trigger: User asks to update docs, or AI agent has made structural changes (new scenes, scripts, prefabs, systems). Default update mode.
Important: Incremental updates are part of implementation, not a separate step. When creating or modifying scripts, prefabs, or assets, update the corresponding .agent-docs/ files in the same pass before moving on to the next task.
Mode 3: Full Rescan
Trigger: User explicitly requests a full rescan (e.g., "rescan project", "full project analysis").
Mode 4: Ingestion
Trigger: User asks about the project structure or how a system/feature works (e.g., "what does this project do", "how does the ball system work", "project structure", "load project analysis"). Only use this mode when .agent-docs/ exists. This mode is read-only — do not modify docs.
Instructions for Full Scan (Mode 1) and Full Rescan (Mode 3)
Step 1: Gather Project Overview
- Read
README.md,CHANGELOG.md, and any docs inDocumentation/folder - Read
Packages/manifest.jsonto understand all included packages - List all scenes:
Assets/**/*.unity - List all script folders and assembly definitions:
Assets/**/*.asmdef - List all prefab folders: find directories containing
.prefabfiles - Identify the project's Unity version from
ProjectSettings/ProjectVersion.txt - If an Editor is reachable (
unity status --format jsonshows stateready), inspect it live for richer data than the files alone give —unity command get_scene_hierarchy,find_assets,package_list --scope installed, and theget_*_settingscommands (get_player_settings,get_quality_settings,get_graphics_settings). See theunity-cliskill. - If a headset is attached, record the test-device baseline —
metavr device listandmetavr device info <id>(OS version, form factor) — so later findings can cite the hardware they were observed on.
Step 2: Ask Clarifying Questions
Before documenting, ask the user about anything that is not clear from the code or docs alone. Examples:
- "I see scenes named X, Y, Z — which is the main entry point?"
- "There's a folder called [name] with assets I can't determine the purpose of — what is it for?"
- "I see multiple networking approaches — which is the primary one?"
Only ask about genuinely ambiguous items. If something is clear from naming, folder structure, or code inspection, document it directly.
Step 3: Analyze and Document
For each category below, create or update the corresponding sub-document:
3a. Project Overview (.agent-docs/project-overview.md)
- Project name, description, Unity version
- Target platform(s)
- High-level architecture summary
- Key third-party packages and how they are used in this project (surface-level only — no internals)
3b. Scene Flow (.agent-docs/scenes/)
Create one file per scene (e.g., .agent-docs/scenes/startup.md).
For each scene document:
- Purpose and role in the project
- Key GameObjects and their purpose
- Which scripts/prefabs are used
- Scene transitions (what loads this scene, what does this scene load)
- Whether it's part of the main runtime flow, a test scene, or an example
Create a scene flow diagram in .agent-docs/scenes/_flow.md using mermaid:
graph LR
Startup --> MainMenu --> Gameplay
3c. Systems (.agent-docs/systems/)
Identify logical systems (networking, UI, audio, input, gameplay, etc.) and create one file per system.
For each system document:
- Purpose and responsibility
- Key scripts (with file paths) and their roles — focus on how to use them, not implementation
- Key prefabs the system uses
- Dependencies on other systems
- Cross-reference related scenes and other system docs with relative links
3d. Prefabs (.agent-docs/prefabs/)
Group or document individually based on clarity:
- If a folder of prefabs is self-explanatory by naming → group doc (e.g.,
.agent-docs/prefabs/ui-elements.md) - If individual prefabs have non-obvious purpose → document individually (e.g.,
.agent-docs/prefabs/player-rig.md)
For each prefab/group:
- Purpose and when to use it
- Nested prefab hierarchy (document nested prefabs and variants)
- Key components attached
- Which scenes use it
- Configuration notes (important inspector values, required references)
3e. Assets (.agent-docs/assets/)
Document non-script, non-prefab assets adaptively:
- Materials, shaders, textures, audio, animations, scriptable objects
- Group when folder naming is clear; document individually when purpose is non-obvious
- Focus on: what is it, what is it for, how/where is it used
3f. Scripts Reference (.agent-docs/scripts/)
Scripts are self-documenting through code. Here, document usage context only:
- Organize by system or feature area
- For each script: purpose, how to use it, which prefab/scene it belongs to
- Do NOT duplicate code or describe implementation details
Step 4: Build the Index
Create or update .agent-docs/index.md as the main entry point:
# [Project Name] — Agent Documentation
> Auto-generated project knowledge base for AI agent comprehension.
> Last updated: YYYY-MM-DD
## Quick Context
[2-3 sentence project summary]
## Document Map
- [Project Overview](project-overview.md)
- Scenes
- [Scene Flow](<scenes/_flow.md>)
- [SceneName](<scenes/scene-name.md>)
- ...
- Systems
- [SystemName](<systems/system-name.md>)
- ...
- Prefabs
- [PrefabGroup](<prefabs/group-name.md>)
- ...
- Assets
- [AssetGroup](<assets/group-name.md>)
- ...
- Scripts
- [ScriptArea](<scripts/area-name.md>)
- ...
## Runtime Flow
[Brief description of app lifecycle from launch to gameplay]
Step 5: Create Config
Create .agent-docs/_config.md:
---
last_full_scan: YYYY-MM-DD
last_update: YYYY-MM-DD
documented_systems:
- system-name-1
- system-name-2
documented_scenes:
- scene-name-1
- scene-name-2
documented_prefab_groups:
- group-name-1
- group-name-2
---
Instructions for Incremental Update (Mode 2)
- Read
.agent-docs/_config.mdand.agent-docs/index.md - Identify what changed:
- If the AI agent just made changes: update only the docs affected by those changes
- If the user asks to update: compare current project state against documented state
- Check for new/removed/renamed scenes, scripts, prefabs
- Check for new packages in
Packages/manifest.json - Check git status for recently modified files if helpful
- Update only the affected sub-documents
- Clean up stale references: If a script, prefab, or asset was deleted or renamed, remove or update references to it in the affected docs. Do not leave broken references.
- Update
.agent-docs/index.mdif new docs were added or removed - Update
last_updateand the documented lists in.agent-docs/_config.md
Do NOT rewrite docs that haven't changed.
Instructions for Ingestion (Mode 4)
- Check if
.agent-docs/index.mdexists — if not, skip (no docs to ingest) - Read
.agent-docs/index.mdto get the document map and quick context - Based on the user's question, read only the sub-docs relevant to what they are asking about. For example:
- "What does this project do?" → read
project-overview.md - "How does the ball system work?" → read
systems/balls.md - "What scenes are there?" → read
scenes/_flow.md - General project questions → read
project-overview.mdandscenes/_flow.md
- "What does this project do?" → read
- Do NOT eagerly read all sub-docs — read on-demand to keep context focused
Document Writing Guidelines
- Audience: AI agents first. Be explicit, structured, and unambiguous.
- Size: Keep each sub-doc concise. Prefer structured lists over paragraphs. Target under 200 lines per doc.
- Cross-references: Use relative markdown links between docs when there's an actual dependency or relationship.
- Diagrams: Use mermaid when it clarifies flow or architecture better than prose. Skip when prose is clearer.
- Third-party packages: Document how the project uses them. Do not document their internals.
- Scripts: Document purpose and usage, not implementation. The code is self-documenting.
- Prefabs: Document nested hierarchies. Note important inspector configuration.
- Source control: One concept per file. Use descriptive filenames. Avoid large monolithic docs.
- Staleness: Include
Last updated: YYYY-MM-DDat the top of each sub-doc. This helps identify docs that may need refresh. - Dates: Use only the date in
Last updatedfields — no parenthetical annotations.
File Naming Convention
- Use lowercase kebab-case for all filenames:
player-controller.md,main-menu.md - Prefix flow/index files with underscore:
_flow.md,_config.md - Match scene/system names but in kebab-case:
Startup.unity→startup.md
版本历史
-
v1.8.0
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0
-
v1.2.3
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3
-
v1.2.1
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Unity 项目结构分析、文档生成与维护能力,面向 Meta Quest 和 Horizon OS 开发场景,具有明确的技术实用价值
- 支持四种操作模式(首次扫描、增量更新、全量重扫、只读摄取),覆盖项目生命周期中的典型文档需求
亮点
- 触发描述清晰明确,涵盖扫描项目结构、解释系统工作原理、更新文档等核心场景
- 边界定义清晰,避免与其他 Skill 功能重叠
待提升项
-
缺少显式 When to Use 章节 原报告严重程度:轻微
文档中未设置独立的 When to Use 章节,但 frontmatter 中的 description 已充分覆盖使用场景
改进建议:建议在 skill_body 开头添加显式的 When to Use 章节以提升可读性
亮点
- 文档结构完整,包含四种操作模式的详细说明、分步骤指令、输出规范、文件命名约定等
- frontmatter 完整,有清晰的 Phase 划分和示例,符合最佳实践
亮点
- 工具来源基于 Unity 项目标准结构,参数正确,覆盖主要异常场景
- 增量更新时明确清理陈旧引用,避免产生无效文档链接
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。