context-discovery-agent

Detect Unity project environment and output structured context JSON.

71|11|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/nlelouche/Unity-SkillForge --skill context-discovery-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-discovery-agent
Source: https://github.com/nlelouche/Unity-SkillForge/tree/main/.agent/skills/07-tools-pipeline/context-discovery-agent
Command: npx skills add https://github.com/nlelouche/Unity-SkillForge --skill context-discovery-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically detects the Unity project environment, including version, render pipeline, and installed packages, ensuring that subsequent code generation is compatible and avoids common pitfalls.

Core Features & Use Cases

  • Environment Detection: Scans ProjectVersion.txt, render pipeline assets, and manifest.json to build a comprehensive project context.
  • Feature Flagging: Derives flags for available features like Burst, Jobs, ECS, Input System, and Addressables.
  • Use Case: Before generating any code, this Skill runs to confirm the project is Unity 6+ and uses URP, preventing the agent from suggesting incompatible APIs or features.

Quick Start

Use the context-discovery-agent skill to discover the current project's environment details.

Frequently Asked Questions about context-discovery-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect the Unity project version and render pipeline before generating code?

Detect the Unity project version and render pipeline by scanning ProjectVersion.txt and render pipeline assets. This process outputs a structured context JSON to ensure any generated code is compatible with the current environment.

Can I automatically check if my Unity project has ECS, Burst, or Addressables installed?

Yes, you can automatically check if ECS, Burst, or Addressables are installed by scanning the project's manifest.json. This derives feature flags to confirm available Unity packages and prevent incompatible API suggestions.

What is the best way to prevent Unity code generation errors from incompatible features?

The best way to prevent Unity code generation errors is to run a pre-generation environment discovery step. Scanning project files to identify the Unity version and installed packages ensures generated code avoids common pitfalls.

How does Unity project context discovery work for code generation automation?

Unity project context discovery works by scanning ProjectVersion.txt, render pipeline assets, and manifest.json to build a comprehensive JSON profile. This profile identifies available features like the Input System to guide compatible code generation.

Does this Unity environment detection tool work with URP and Unity 6?

Yes, this Unity environment detection tool works with URP and Unity 6. It scans render pipeline assets and ProjectVersion.txt to confirm the project meets Unity 6+ and URP requirements before generating any code.