VidyFoo/antigravity-skill-engine / .agent/skills/1-dev/architecting
architecting
VerifiedArchitects new features through the full lifecycle. Use when designing, planning, implementing, or extending features. Triggers on 'new feature', 'design', 'plan', 'implement', 'architect', 'prd', 'spec'.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.7 KB |
| resources/anti-patterns.md | markdown | 1.3 KB |
| resources/architecture-patterns.md | markdown | 2.1 KB |
| resources/kiss-checklist.md | markdown | 1.1 KB |
| resources/spec-template.md | markdown | 1.5 KB |
| resources/tech-stack-integration.md | markdown | 1.5 KB |
resources/kiss-checklist.md
View on GitHub# KISS Checklist (Keep It Simple, Stupid)
> 在设计与实现前,必须通过此检查。
## 1. 复杂度奥卡姆剃刀
- [ ] **是否真的需要新目录?**
- 如果只有 1 个组件,放在 `components/ui` 或 `features/shared` 即可。
- 不要为了 future proofing 而过度分层。
- [ ] **状态是否放置正确?**
- 能用 URL 参数解决的,不用 State。
- 能用 React Query 解决的,不用 Zustand。
- 能用 Local State (useState) 解决的,不用 Global。
- [ ] **依赖最小化**
- 不要为了一个简单的 `formatDate` 引入 `date-fns` (如果只用一次)。
- 不要为了简单的动画引入 `framer-motion` (CSS Transition 优先)。
## 2. 代码量警报
- [ ] **单个文件 < 300 行**
- 超过则拆分,但不要为了拆分而拆分(保持逻辑内聚)。
- [ ] **单个函数 < 50 行**
- 提取子逻辑为 pure functions。
## 3. 认知负担
- [ ] **命名即文档**
- 变量名应描述内容,动词+名词。
- 避免 `handle1`, `data2` 这种命名。
- 复杂逻辑必须有 `JSDoc` 或行内注释。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |