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

unity-console

Skill7 starsChanged 7 months agoMITView on GitHub

Use when users want to capture, filter, or clear console logs.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read console entries / stack traces / errors → Unity_GetConsoleLogs or Unity_ReadConsole (native MCP)

    line 22
  2. Distinctive:

    Start capturing Unity console logs.

    line 61
  3. Distinctive:

    Write a custom log message.

    line 71
  4. Distinctive:

    Start capture before play mode for runtime logs

    line 129
  5. Distinctive:

    Use custom logs to mark AI agent actions

    line 131
  6. Distinctive:

    Stop capture when done to free resources

    line 133

≈ “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 Console Skills

IMPORTANT: Do NOT use Unity_RunCommand for this module natively. Use the dedicated MCP tool for console. See mcp-tools.md.

Work with the Unity console - capture logs, write messages, and debug your project.

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

Common Mistakes

DO NOT (common hallucinations):

  • console_write does not exist → use console_log
  • For reading, filtering, or clearing console logs, use the native Unity_GetConsoleLogs or Unity_ReadConsole — not a custom recipe.

Routing:

  • Read console entries / stack traces / errors → Unity_GetConsoleLogs or Unity_ReadConsole (native MCP)
  • Clear the console → Unity_ReadConsole (clear action)
  • Compilation-status check → editor_get_state (isCompiling field)
  • Console settings (collapse, clear-on-play) → console_set_collapse / console_set_clear_on_play (this module)
  • Scripting defines or forced recompile → debug_get_defines, debug_set_defines, debug_force_recompile (this module)

Retained Debug Commands

The standalone debug module is gone. Three debug commands relevant to compilation and build configuration are retained here:

CommandDescription
debug_force_recompileForce script recompilation via AssetDatabase.Refresh + CompilationPipeline.RequestScriptCompilation
debug_get_definesGet scripting define symbols for the current build target group
debug_set_definesSet scripting define symbols for the current build target group

Recipes: see ../../recipes/console/debug_force_recompile.md, debug_get_defines.md, debug_set_defines.md.

Skills Overview

SkillDescription
console_start_captureStart capturing logs
console_stop_captureStop capturing logs
console_logWrite log message
console_set_pause_on_errorEnable or disable Error Pause in Play mode
console_exportExport console logs to a file
console_get_statsGet log statistics (count by type)
console_set_collapseSet console log collapse mode
console_set_clear_on_playSet clear on play mode
debug_force_recompileForce script recompilation
debug_get_definesGet scripting define symbols for current platform
debug_set_definesSet scripting define symbols for current platform

Skills

console_start_capture

Start capturing Unity console logs.

No parameters.

console_stop_capture

Stop capturing logs.

No parameters.

console_log

Write a custom log message.

ParameterTypeRequiredDefaultDescription
messagestringYes-Log message
typestringNo"Log"Log/Warning/Error

console_set_pause_on_error

Enable or disable Error Pause in Play mode.

ParameterTypeRequiredDefaultDescription
enabledboolNotrueEnable or disable error pause

Returns: { success, enabled }

console_export

Export console logs to a file. Uses captured buffer when console_start_capture is active; otherwise reads directly from Unity Console history (no setup needed).

ParameterTypeRequiredDefaultDescription
savePathstringNo"Assets/console_log.txt"File path to save logs

Returns: { success, path, count, source }

console_get_stats

Get log statistics (count by type). Uses captured buffer when console_start_capture is active; otherwise reads directly from Unity Console history.

No parameters.

Returns: { success, total, source, logs, warnings, errors, exceptions, asserts }

console_set_collapse

Set console log collapse mode.

ParameterTypeRequiredDefaultDescription
enabledboolYes-Enable or disable collapse mode

Returns: { success, setting, enabled }

console_set_clear_on_play

Set clear on play mode.

ParameterTypeRequiredDefaultDescription
enabledboolYes-Enable or disable clear on play

Returns: { success, setting, enabled }


Example Usage

See ../../recipes/console/<command>.md for per-command C# templates.

Best Practices

  1. Start capture before play mode for runtime logs
  2. Filter by Error to quickly find problems
  3. Use custom logs to mark AI agent actions
  4. Clear console before starting new capture session
  5. Stop capture when done to free resources

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.