AgentSkillsCN

feature-oriented-structure

适用于按功能或垂直切片组织代码,而非单纯依据技术分层时使用。

SKILL.md
--- frontmatter
name: feature-oriented-structure
description: Use when organizing code by feature or vertical slice rather than purely by technical layer.
  • Organize code by feature (e.g., Documents, Settings, Dashboard)
  • Each feature may contain its own Views, ViewModels, and services
  • Features should be as self-contained as practical
  • Shared infrastructure belongs outside feature folders
  • Avoid large global ViewModels or Services folders

Structural guidance:

  • /Features/<FeatureName>/
    • Views
    • ViewModels
    • Services (optional)
  • Cross-cutting concerns live in /Infrastructure or equivalent
  • Do not reorganize existing features without explicit approval