AgentSkillsCN

init-project

为Unity项目生成一份定制化的CLAUDE.md。扫描项目以识别已安装的Synty插件、渲染管线以及项目结构,随后据此创建专属的CLAUDE.md。

SKILL.md
--- frontmatter
name: init-project
description: Generate a customized CLAUDE.md for a Unity project. Scans the project to detect installed Synty packs, render pipeline, and project structure, then creates a tailored CLAUDE.md.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep
argument-hint: <path to Unity project root>

Generate a CLAUDE.md file for the Unity project at: $ARGUMENTS

Process

  1. Detect project configuration:

    • Read ProjectSettings/ProjectVersion.txt for Unity version
    • Read ProjectSettings/ProjectSettings.asset for company name, product name, scripting backend
    • Check Packages/manifest.json for installed packages (URP, Input System, etc.)
    • Check for render pipeline asset in ProjectSettings/GraphicsSettings.asset
  2. Scan for asset packs:

    • Look for Assets/Polygon* folders (Synty POLYGON packs)
    • Look for Assets/Simple* folders (Synty SIMPLE packs)
    • List all detected packs
  3. Scan project structure:

    • Find assembly definition files (.asmdef)
    • Identify namespace patterns from existing scripts
    • Detect naming conventions from existing code
    • Find existing managers, systems, and patterns
  4. Generate CLAUDE.md:

    • Start from the template at docs/CLAUDE.md.template in this plugin
    • Customize all <!-- CUSTOMIZE --> sections with detected values
    • Add detected Synty packs to the asset section
    • Add detected namespaces and patterns to the code conventions
    • Write to the project root as CLAUDE.md
  5. Report what was generated and suggest manual customizations the user should make