agentleFS
batihandevbatihandev/unity-mcp-skills/skills/perception/SKILL.md

unity-perception

Skill7 starsChanged 7 months agoMITView on GitHub

Use when users want to get a summary, overview, dependency report, or export of the current scene state.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this module for read-only scene and project analysis.

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity Perception Skills

Overview

Use this module for read-only scene and project analysis. It is available in Semi-Auto by default.

Common Mistakes

DO NOT (common hallucinations):

  • perception_analyze, perception_scan, and perception_describe do not exist
  • scene_context is not editor_get_context: it exports hierarchy/components/references, while editor context focuses on current editor state
  • scene_analyze, scene_health_check, scene_contract_validate, scene_component_stats, scene_find_hotspots, and project_stack_detect belong to this module even if the prefix looks like scene_* or project_*

Routing:

  • Current selection/play-mode/editor state -> editor_get_context
  • Object search by name/path -> scene_find_objects or gameobject_find
  • Script dependency closure -> script_dependency_graph

Skills

Scene Health and Summary

SkillUseKey parameters
scene_analyzeCombined scene + project analysistopComponentsLimit?, issueLimit?, deepHierarchyThreshold?, largeChildCountThreshold?
scene_health_checkRead-only health reportissueLimit?, deepHierarchyThreshold?, largeChildCountThreshold?
scene_summarizeStructured scene summaryincludeComponentStats?, topComponentsLimit?
scene_component_statsComponent and facility statstopComponentsLimit?
scene_find_hotspotsDeep hierarchy / large group / empty node hotspotsthresholds + maxResults?
scene_tag_layer_statsTag/layer usagenone
scene_performance_hintsPrioritized optimization hintsnone

Scene Snapshots and Exports

SkillUseKey parameters
scene_diffCapture or compare lightweight snapshotssnapshotJson?
hierarchy_describeReturn text hierarchy treemaxDepth?, includeInactive?, maxItemsPerLevel?
scene_contextExport hierarchy, components, referencesmaxDepth?, maxObjects?, rootPath?, includeValues?, includeReferences?, includeCodeDeps?
scene_export_reportSave markdown scene reportsavePath?, maxDepth?, maxObjects?
scene_dependency_analyzeAnalyze impact / dependency graph in-scenetargetPath?, savePath?

Project and Script Analysis

SkillUseKey parameters
project_stack_detectDetect pipeline, input, UI, packages, tests, foldersnone
script_analyzeAnalyze one MonoBehaviour / ScriptableObject / user class by class namescriptName, includePrivate?
script_dependency_graphN-hop dependency closure for one script class namescriptName, maxHops?, includeDetails?

Spatial and Material Queries

SkillUseKey parameters
scene_spatial_queryFind objects near a point or objectx/y/z?, radius?, nearObject?, componentFilter?, maxResults?
scene_materialsSummarize scene materials and shadersincludeProperties?
scene_contract_validateValidate default roots/tags/layers/UI EventSystem conventionsrequiredRootsJson?, requiredTagsJson?, requiredLayersJson?, requireEventSystemForUi?

High-Frequency Skill Differences

scene_summarize vs scene_analyze vs scene_health_check

SkillBest forTypical output focus
scene_summarizeFast overviewobject counts, hierarchy depth, top components
scene_analyzeBroad diagnosissummary + findings + warnings + recommendations + next-skill hints
scene_health_checkHygiene / red flagsmissing scripts, duplicate names, deep hierarchy, empty nodes, hotspot-style findings

scene_context vs hierarchy_describe

SkillBest forOutput style
hierarchy_describeHuman-readable treetext tree, lightweight
scene_contextAI coding contextstructured hierarchy + components + references + optional code dependencies

scene_dependency_analyze vs script_dependency_graph

SkillScopeUse when
scene_dependency_analyzeScene object referencesask "删掉/禁用这个对象会影响谁"
script_dependency_graphScript class dependency closureask "要改这个功能先看哪些脚本"

Key Return Shapes

scene_summarize

Returns sceneName, stats, and optional topComponents.

scene_analyze

Returns summary, stats, findings, warnings, recommendations, and suggestedNextSkills.

scene_health_check

Returns summary, findings, hotspots, and suggestedNextSkills.

scene_context

Returns a structured export with objects, references, and optional codeDependencies. Use it when another AI step needs full scene context, not just a human summary.

High-frequency options:

  • rootPath to export only one subtree
  • includeValues=true when serialized field values matter
  • includeCodeDeps=true when AI needs a rough scene-to-code dependency picture

scene_export_report

Writes a markdown artifact to disk and returns savedTo, object/script/reference counts, and success state. Prefer this when the user wants a durable report file.

Defaults:

  • savePath = "Assets/Docs/SceneReport.md"
  • maxDepth = 10
  • maxObjects = 500

When to Use Which Skill

NeedBest first skill
Quick scene overviewscene_summarize
Full diagnosisscene_analyze
Suspicious hierarchy or clutterscene_find_hotspots
Safe-to-delete / impact questionscene_dependency_analyze
AI coding context exportscene_context
Script reading orderscript_dependency_graph
Render/input/UI stack detectionproject_stack_detect

RunCommand Examples

Recipe path rule: ../../recipes/perception/<command>.md

See ../../recipes/perception/README.md for the full command index and per-command C# templates.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.