architecting
2
总安装量
1
周安装量
#72195
全站排名
安装命令
npx skills add https://github.com/vidyfoo/antigravity-skill-engine --skill architecting
Agent 安装分布
cline
1
openclaw
1
cursor
1
Skill 文档
Architect Feature
Role: Oversee the entire lifecycle of a Featureâfrom 0 to 1 to Nâensuring architectural consistency and UX integrity.
When to use this skill
- Creating a new feature from scratch
- Extending an existing feature with new capabilities
- Implementing code based on a finalized design spec
How to use it
Choose a mode based on your intent:
| Mode | Trigger keywords | Scenario |
|---|---|---|
| DESIGN | new feature, 设计 | Create a brand-new feature directory from scratch |
| EXTEND | æ©å±, add capability | Add sub-capabilities to an existing feature |
| BUILD | implement, å®ç° | Code an already-designed spec |
DESIGN Mode (ä» 0 å° 1)
- Context Check: Read
src/features/to avoid reinventing the wheel. - KISS Check: Really need a new directory? If < 3 files, consider
shared. - Generate Spec: Use
resources/spec-template.md. - Tech Decisions: Define dependencies and Schema.
Output: src/features/{name}/docs/spec.md
EXTEND Mode (ä» 1 å° N)
- Locate Host: Identify the target Feature.
- Architecture Conformance: Read the host’s
spec.md, follow its design philosophy. - Incremental Design: Append an “Extension Section” instead of creating new docs.
Output: Updated src/features/{name}/docs/spec.md or core code.
BUILD Mode (ç¼ç å®ç°)
- Read Contract: Always read
spec.mdfirst for scope. - Quality Gate: Establish “Type-First” (Zod Schema -> TypeScript Type).
- Layered Implementation:
- L1 Core: Schema & Service (no UI, pure logic)
- L2 UI: Components (no business logic)
- L3 Integration: Pages & Routing
- Self-Verify:
npm run type-checkandnpm run lintmust pass.
Resources
| Resource | Purpose |
|---|---|
| spec-template.md | Standardized design doc template |
| kiss-checklist.md | Anti-over-engineering checklist |
| anti-patterns.md | Architecture anti-pattern warnings |
Quality Baseline
As an architect, you MUST reject:
- â Circular Dependencies: Features importing each other.
- â Global State Abuse: Local state pushed to global store.
- â Any Type: Even one
anyis a disgrace. - â Implicit Logic: Critical logic without comments or docs.