Unity Template Generator by dev-gom/claude-code-marketplace
npx skills add https://github.com/dev-gom/claude-code-marketplace --skill 'Unity Template Generator'协助生成遵循最佳实践和 Unity 惯例、可用于生产环境的 Unity C# 脚本模板。
MonoBehaviour - 包含生命周期方法、序列化字段、组件缓存和 Gizmo 辅助工具的 GameObject 组件。
ScriptableObject - 包含 [CreateAssetMenu]、验证、封装和克隆方法的数据资产。
编辑器脚本 - 自定义检视器或窗口。会询问偏好使用 UGUI 还是 UI Toolkit(参见 unity-ui-selector)。
测试脚本 - 包含 Setup/TearDown、[UnityTest]、性能测试以及 Arrange-Act-Assert 模式的 NUnit/PlayMode 测试。
所有模板都包含:
[SerializeField]、PascalCase、XML 文档)占位符:{{CLASS_NAME}}、{{NAMESPACE}}、、、
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
{{DESCRIPTION}}{{MENU_PATH}}{{FILE_NAME}}详细的自定义选项请参见 template-reference.md。
在以下情况使用此技能:讨论模板选项、了解模板特性或获取脚本结构指导时
在以下情况使用 @unity-scripter 代理:编写具有特定要求的自定义脚本或实现复杂的 Unity 功能时
在以下情况使用 @unity-refactor 代理:改进现有脚本或重构代码以提高可维护性时
在以下情况使用 /unity:new-script 命令:实际使用特定参数从模板生成脚本文件时
在以下情况使用 /unity:setup-test 命令:设置包含测试脚本的完整测试环境时
每周安装数
0
代码仓库
GitHub 星标数
76
首次出现时间
1970年1月1日
安全审计
Assists with generating production-ready Unity C# script templates that follow best practices and Unity conventions.
MonoBehaviour - GameObject components with lifecycle methods, serialized fields, component caching, and Gizmo helpers.
ScriptableObject - Data assets with [CreateAssetMenu], validation, encapsulation, and clone methods.
Editor Script - Custom inspectors or windows. Asks for UGUI vs UI Toolkit preference (see unity-ui-selector).
Test Script - NUnit/PlayMode tests with Setup/TearDown, [UnityTest], performance tests, and Arrange-Act-Assert pattern.
All templates include:
[SerializeField], PascalCase, XML docs)Placeholders: {{CLASS_NAME}}, {{NAMESPACE}}, {{DESCRIPTION}}, {{MENU_PATH}}, {{FILE_NAME}}
See template-reference.md for detailed customization options.
Use this Skill when : Discussing template options, understanding template features, or getting guidance on script structure
Use @unity-scripter agent when : Writing custom scripts with specific requirements or implementing complex Unity features
Use @unity-refactor agent when : Improving existing scripts or restructuring code for better maintainability
Use /unity:new-script command when : Actually generating script files from templates with specific parameters
Use /unity:setup-test command when : Setting up complete test environments with test scripts
Weekly Installs
0
Repository
GitHub Stars
76
First Seen
Jan 1, 1970
Security Audits
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
107,800 周安装
Clean Code 整洁代码技能:遵循鲍勃大叔原则,提升代码质量与可维护性
4,300 周安装
Python代码风格与文档规范指南:PEP8、Ruff、Mypy工具链配置
4,400 周安装
Grafana仪表盘设计与管理指南:生产级监控、Prometheus可视化、SLO实现
4,400 周安装
GitLab CI/CD 流水线模式大全:自动化测试、构建、部署与Kubernetes集成
4,400 周安装
电子邮件最佳实践指南:提升送达率、合规性与用户体验
4,300 周安装
NotebookLM 研究助手技能:基于 Google NotebookLM 的文档智能查询与自动化管理工具
4,400 周安装