Create Unity Learning AGENTS
Generate a project-specific AGENTS.md that turns a Unity tutorial repository into a durable learning workflow.
Workflow
- Inspect the current project before writing:
- Read an existing
AGENTS.md or similarly named rule file when present.
- Inspect
README.md, learning-progress files, top-level directories, Unity version, Git status, and representative scripts.
- Use the user's stated course topic and directory/course list as the primary scope.
- Determine the output:
- Default to
<project-root>/AGENTS.md.
- If the user explicitly requests another filename, use it.
- Do not overwrite an existing
AGENTS.md blindly; preserve useful project-specific rules and adapt them.
- Build the document from core-template.md.
- Add a concise topic-specific section using topic-guides.md.
- Tailor concrete names:
- Replace generic topic names with the actual tutorial topic.
- Mention real expected artifacts and validation methods.
- Keep unknown details generic or mark them as future decisions.
- Write the file directly unless the user asks for a draft only.
- Validate the result:
- Ensure it says not to modify code without explicit permission.
- Ensure each completed lesson updates learning records.
- Ensure Git commit/push is opt-in and commit messages default to Chinese.
- Ensure checks distinguish code, Unity scene, runtime, and topic-specific artifacts.
- Ensure unfinished validation cannot be recorded as completed.
- Do not commit or push unless explicitly requested.
Generation Principles
- Write in Chinese unless the user requests otherwise.
- Preserve the user's mentor-style workflow: inspect real files, explain causes, identify good and bad habits, and give one smallest next step.
- Prefer a practical document of roughly 180-320 lines. Remove sections that are irrelevant to the project.
- Keep course-specific checks concrete, but avoid prematurely requiring advanced architecture.
- Treat documentation files as editable by default; treat code, scenes, Prefabs, ProjectSettings, and Packages as protected unless explicitly allowed.
- Include final-course GitHub practices: Chinese commit messages, optional Release, artifact verification, and UTF-8 Release body handling.
Topic Selection
Use the closest guide in topic-guides.md. Combine guides when the course spans multiple topics.
If the topic is new or absent, derive checks around:
- the core API or engine subsystem;
- real artifacts produced by the feature;
- Unity scene/Inspector configuration;
- same-run versus cross-run or cross-scene validation;
- common lifecycle, reference, serialization, platform, and performance boundaries;
- expected final reusable artifact.
Output Summary
After writing, briefly report:
- created/updated path;
- selected topic-specific checks;
- whether existing rules were preserved;
- that the user should invoke this skill again for the next tutorial project.
1---2name: create-unity-learning-agents3description: Create or update a tailored AGENTS.md for a long-running Unity tutorial or learning repository. Use when the user starts a new Unity course/project, wants the same mentoring/documentation/Git workflow reused across tutorial series, asks to generate project collaboration rules, or wants an existing AGENTS.md adapted to a new topic such as JSON persistence, UI, animation, input, physics, networking, asset management, or gameplay systems.4---56# Create Unity Learning AGENTS78Generate a project-specific `AGENTS.md` that turns a Unity tutorial repository into a durable learning workflow.910## Workflow11121. Inspect the current project before writing:13 - Read an existing `AGENTS.md` or similarly named rule file when present.14 - Inspect `README.md`, learning-progress files, top-level directories, Unity version, Git status, and representative scripts.15 - Use the user's stated course topic and directory/course list as the primary scope.162. Determine the output:17 - Default to `<project-root>/AGENTS.md`.18 - If the user explicitly requests another filename, use it.19 - Do not overwrite an existing `AGENTS.md` blindly; preserve useful project-specific rules and adapt them.203. Build the document from [core-template.md](references/core-template.md).214. Add a concise topic-specific section using [topic-guides.md](references/topic-guides.md).225. Tailor concrete names:23 - Replace generic topic names with the actual tutorial topic.24 - Mention real expected artifacts and validation methods.25 - Keep unknown details generic or mark them as future decisions.266. Write the file directly unless the user asks for a draft only.277. Validate the result:28 - Ensure it says not to modify code without explicit permission.29 - Ensure each completed lesson updates learning records.30 - Ensure Git commit/push is opt-in and commit messages default to Chinese.31 - Ensure checks distinguish code, Unity scene, runtime, and topic-specific artifacts.32 - Ensure unfinished validation cannot be recorded as completed.338. Do not commit or push unless explicitly requested.3435## Generation Principles3637- Write in Chinese unless the user requests otherwise.38- Preserve the user's mentor-style workflow: inspect real files, explain causes, identify good and bad habits, and give one smallest next step.39- Prefer a practical document of roughly 180-320 lines. Remove sections that are irrelevant to the project.40- Keep course-specific checks concrete, but avoid prematurely requiring advanced architecture.41- Treat documentation files as editable by default; treat code, scenes, Prefabs, ProjectSettings, and Packages as protected unless explicitly allowed.42- Include final-course GitHub practices: Chinese commit messages, optional Release, artifact verification, and UTF-8 Release body handling.4344## Topic Selection4546Use the closest guide in [topic-guides.md](references/topic-guides.md). Combine guides when the course spans multiple topics.4748If the topic is new or absent, derive checks around:4950- the core API or engine subsystem;51- real artifacts produced by the feature;52- Unity scene/Inspector configuration;53- same-run versus cross-run or cross-scene validation;54- common lifecycle, reference, serialization, platform, and performance boundaries;55- expected final reusable artifact.5657## Output Summary5859After writing, briefly report:6061- created/updated path;62- selected topic-specific checks;63- whether existing rules were preserved;64- that the user should invoke this skill again for the next tutorial project.65