Claude Code skills for training Unity engineers at TheOne Studio. Enforces VContainer, SignalBus, concise C# patterns, and code quality standards. Benefits operations teams by ensuring consistent, high-quality code across projects. Integrates with Unity development workflows and connects to code review and quality assurance tools.
git clone https://github.com/The1Studio/theone-training-skills.gittheone-training-skills is a Claude Code skill designed to train Unity engineers at TheOne Studio in consistent coding practices and architectural patterns. It enforces the use of VContainer for dependency injection, SignalBus for event handling, and promotes concise C# coding patterns aligned with studio standards. The skill integrates directly into Unity development workflows and connects with code review and quality assurance tools to maintain high code quality across projects.
1. **Prepare Your Codebase:** - Ensure your Unity project is using TheOne Studio's coding standards (VContainer, SignalBus, etc.). - Copy the latest code changes for the branch you want to review (e.g., `feature/new-level` or `fix/bug-123`). - *Tip:* Use `git diff [BRANCH_NAME]` to get the changes in a readable format. 2. **Run the AI Skill:** - Paste the `prompt_template` into your AI assistant (e.g., Claude, ChatGPT, or Sortd for Gmail if integrating with email-based workflows). - Replace all `[PLACEHOLDERS]` with your specific values (e.g., `[PROJECT_NAME]`, `[BRANCH_NAME]`, `[CODE_SNIPPET]`). - *Tip:* For large codebases, break the review into smaller chunks (e.g., per folder or file) to avoid overwhelming the AI. 3. **Review the Output:** - The AI will return a structured report with violations categorized by severity (critical, major, minor). - Focus on critical issues first (e.g., VContainer/SignalBus problems) as these can break your build or cause runtime errors. - *Tip:* Use the summary table to prioritize fixes and estimate time required. 4. **Implement Fixes:** - For each violation, apply the corrected implementation provided by the AI. - Test the changes locally to ensure they resolve the issue without introducing new problems. - *Tip:* Use Unity's `Debug.Log` or `Assert` statements to verify SignalBus subscriptions and DI injections. 5. **Automate for Future Reviews:** - Integrate this AI skill into your CI/CD pipeline (e.g., GitHub Actions, GitLab CI) to run automatic code reviews on pull requests. - *Tip:* Use tools like `SonarQube` or `Unity’s built-in static analyzer` alongside this skill for comprehensive coverage. - For email-based workflows (e.g., Sortd), set up automated notifications for critical violations to your team’s shared inbox (e.g., `[email protected]`).
Train new Unity engineers on TheOne Studio's VContainer and SignalBus patterns during onboarding
Enforce code quality standards and architectural consistency during peer code reviews
Provide real-time feedback on C# code structure and design patterns in development workflows
Ensure project-wide adherence to studio coding guidelines across multiple development teams
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/The1Studio/theone-training-skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Review the latest Unity C# code submission for [PROJECT_NAME] in [BRANCH_NAME] branch. Identify violations of TheOne Studio's coding standards, including: 1) Improper use of VContainer for dependency injection, 2) SignalBus misuse or missing event subscriptions, 3) Non-concise C# patterns (e.g., long methods, nested conditionals), 4) Code quality issues (e.g., magic numbers, hardcoded values, lack of XML documentation). For each violation, provide: a) The exact line number(s) and code snippet, b) The specific standard violated, c) A corrected implementation that adheres to TheOne Studio's guidelines. Prioritize fixes based on severity (critical > major > minor). Finally, generate a summary table with: - Total violations found, - Breakdown by category, - Estimated time to fix each category. Use the provided [CODE_SNIPPET] as the input.
### Code Review Report for Project: **UnityGamePrototype** | Branch: **feature/ui-redesign**
**Review Date:** 2023-11-15
**Reviewer:** AI Assistant (TheOne Training Skills)
**Codebase:** Unity C# (Unity 2022.3 LTS)
---
#### **Critical Violations**
1. **VContainer Misuse in `PlayerInputSystem.cs` (Line 42-47)**
```csharp
// Original Code
public class PlayerInputSystem : ISystem {
private PlayerInputActions _inputActions;
public void OnCreate(ref SystemState state) {
_inputActions = new PlayerInputActions();
_inputActions.Enable();
}
}
```
**Issue:** Dependency (`PlayerInputActions`) is instantiated directly instead of being injected via VContainer. This violates TheOne Studio's DI pattern.
**Corrected Implementation:**
```csharp
[Inject]
public PlayerInputActions InputActions { get; set; }
public void OnCreate(ref SystemState state) {
InputActions.Enable();
}
```
2. **SignalBus Event Leak in `GameManager.cs` (Line 112-115)**
```csharp
// Original Code
public class GameManager : MonoBehaviour {
private void Start() {
SignalBus.Instance.Subscribe<GameOverSignal>(OnGameOver);
}
private void OnDestroy() {
// Missing unsubscribe!
}
}
```
**Issue:** Event subscription is not unsubscribed in `OnDestroy`, risking memory leaks.
**Corrected Implementation:**
```csharp
private SignalSubscription<GameOverSignal> _gameOverSubscription;
private void Start() {
_gameOverSubscription = SignalBus.Instance.Subscribe<GameOverSignal>(OnGameOver);
}
private void OnDestroy() {
_gameOverSubscription?.Unsubscribe();
}
```
---
#### **Major Violations**
3. **Non-Concise Pattern in `EnemyAI.cs` (Line 88-95)**
**Issue:** Method `CalculatePath()` contains nested conditionals and a magic number (`5.0f`).
**Corrected Implementation:**
```csharp
[Inject]
public IPathfindingService PathfindingService { get; set; }
private const float PATHFINDING_THRESHOLD = 5.0f;
private bool ShouldRecalculatePath(Vector3 targetPosition, Vector3 currentPosition) {
return Vector3.Distance(targetPosition, currentPosition) > PATHFINDING_THRESHOLD;
}
```
4. **Missing XML Documentation in `InventoryItem.cs`**
**Issue:** Class lacks XML comments for public members.
**Corrected Implementation:**
```csharp
/// <summary>
/// Represents an item in the player's inventory.
/// </summary>
public class InventoryItem {
/// <summary>
/// Gets the unique identifier for the item.
/// </summary>
public int Id { get; }
/// <summary>
/// Gets the display name of the item.
/// </summary>
public string Name { get; }
}
```
---
#### **Minor Violations**
5. **Hardcoded Value in `AudioManager.cs` (Line 22)**
```csharp
// Original Code
AudioSource.PlayClipAtPoint(clip, transform.position, 0.5f);
```
**Issue:** Volume level (`0.5f`) is hardcoded.
**Corrected Implementation:**
```csharp
[Inject]
public AudioSettings Settings { get; set; }
AudioSource.PlayClipAtPoint(clip, transform.position, Settings.DefaultVolume);
```
---
#### **Summary Table**
| **Category** | **Total Violations** | **Estimated Fix Time** | **Priority** |
|----------------------------|----------------------|------------------------|--------------|
| VContainer Misuse | 3 | 2 hours | Critical |
| SignalBus Issues | 2 | 1 hour | Critical |
| Non-Concise Patterns | 4 | 3 hours | Major |
| Missing Documentation | 5 | 1.5 hours | Major |
| Hardcoded Values | 1 | 0.5 hours | Minor |
| **Total** | **15** | **8 hours** | |
---
#### **Recommendations**
1. **Immediate Action:** Fix critical violations (VContainer/SignalBus) before merging to `main`.
2. **Code Review:** Schedule a follow-up review after implementing corrections.
3. **Automation:** Integrate this AI skill into your CI/CD pipeline (e.g., GitHub Actions) to run automatic checks on PRs.
4. **Training:** Schedule a workshop for the team on TheOne Studio's coding standards, focusing on DI patterns and event handling.
**Next Steps:**
- [ ] Address critical violations (Priority 1)
- [ ] Fix major violations (Priority 2)
- [ ] Update documentation for public APIs
- [ ] Re-run review post-fixesAI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan