AgentSkillsCN

platform-first

核心开发理念——修复平台代码,而非修改模组内容。在决定修复或实现哪些功能时,这一原则将为您提供重要参考。

SKILL.md
--- frontmatter
name: platform-first
description: Core development philosophy - fix platform code, not mod content. Load when making decisions about what to fix or implement.

Platform-First Development Philosophy

The Golden Rule

Fix the platform, not the content.

At this stage of development, all agents focus on platform code (core/, scenes/, Sparkling Editor), NOT mod content (mods/).

Why This Matters

The Captain (user) creates all mod content exactly as a real modder would. This ensures:

  1. Real-world testing of the modding experience
  2. No special treatment for demo content
  3. Tool validation - if content is broken, the tool that made it is broken

Decision Framework

SymptomWrong ResponseCorrect Response
Character data is malformedFix the .tres fileFix the Sparkling Editor component that generated it
Battle doesn't load correctlyEdit the battle resourceFix BattleManager or MapMetadataLoader
Item stats are wrongEdit the item resourceFix the item editor or validation
Cinematic breaksEdit the JSON fileFix CinematicLoader or the cinematic editor

What Agents Should Do

  1. Identify the root cause in platform code
  2. Fix the tool or system that produces/consumes the content
  3. Validate the fix by having the Captain recreate the content
  4. Never edit mod content to work around platform bugs

What Agents Should NOT Do

  • Edit files in mods/*/data/
  • Create new mod content (characters, items, battles, etc.)
  • "Fix" mod resources that appear broken
  • Hardcode workarounds for specific content

Exception

Direct mod content changes are acceptable ONLY when:

  • The Captain explicitly requests it
  • The change is for testing/debugging purposes (then reverted)
  • The mod system itself is being tested

Remember

If a modder would hit the same problem the Captain hit, the platform is broken. Fix the platform.