kodelyth-ecc 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/CLAUDE.md +1 -1
  3. package/README.md +23 -3
  4. package/package.json +1 -1
  5. package/scripts/supply-chain/manifest.js +5 -4
  6. package/social/facebook-v150.svg +3 -3
  7. package/social/github-social-preview.svg +6 -6
  8. package/social/readme-hero.svg +6 -6
  9. package/social/section-install.svg +1 -1
  10. package/tests/evolve/stats.test.js +10 -2
  11. package/tests/mcp/client.test.js +8 -4
  12. package/wiki/FAQ.md +1 -1
  13. package/wiki/Home.md +19 -20
  14. package/wiki/Installation-Guide.md +1 -1
  15. package/wiki/Platform-Support.md +116 -213
  16. package/wiki/Skill-Reference.md +1 -1
  17. package/.agent/rules/README.md +0 -108
  18. package/.agent/rules/agents.md +0 -94
  19. package/.agent/rules/code-review.md +0 -124
  20. package/.agent/rules/coding-style.md +0 -122
  21. package/.agent/rules/design-quality.md +0 -63
  22. package/.agent/rules/development-workflow.md +0 -44
  23. package/.agent/rules/git-mastery.md +0 -366
  24. package/.agent/rules/git-workflow.md +0 -24
  25. package/.agent/rules/hooks.md +0 -25
  26. package/.agent/rules/kodelyth-always-on.md +0 -63
  27. package/.agent/rules/kodelyth-quickstart.md +0 -207
  28. package/.agent/rules/observability.md +0 -390
  29. package/.agent/rules/patterns.md +0 -50
  30. package/.agent/rules/performance.md +0 -178
  31. package/.agent/rules/security.md +0 -58
  32. package/.agent/rules/smart-debug.md +0 -241
  33. package/.agent/rules/soul.md +0 -32
  34. package/.agent/rules/testing.md +0 -46
  35. package/.agent/skills/api-guardian.md +0 -279
  36. package/.agent/skills/architect.md +0 -211
  37. package/.agent/skills/build-error-resolver.md +0 -114
  38. package/.agent/skills/chief-of-staff.md +0 -151
  39. package/.agent/skills/code-architect.md +0 -71
  40. package/.agent/skills/code-explorer.md +0 -69
  41. package/.agent/skills/code-reviewer.md +0 -237
  42. package/.agent/skills/code-simplifier.md +0 -47
  43. package/.agent/skills/comment-analyzer.md +0 -45
  44. package/.agent/skills/conversation-analyzer.md +0 -52
  45. package/.agent/skills/cpp-build-resolver.md +0 -90
  46. package/.agent/skills/cpp-reviewer.md +0 -72
  47. package/.agent/skills/csharp-reviewer.md +0 -101
  48. package/.agent/skills/dart-build-resolver.md +0 -201
  49. package/.agent/skills/database-reviewer.md +0 -91
  50. package/.agent/skills/debug-detective.md +0 -409
  51. package/.agent/skills/doc-updater.md +0 -107
  52. package/.agent/skills/docs-lookup.md +0 -68
  53. package/.agent/skills/e2e-runner.md +0 -107
  54. package/.agent/skills/flutter-reviewer.md +0 -243
  55. package/.agent/skills/gan-evaluator.md +0 -209
  56. package/.agent/skills/gan-generator.md +0 -131
  57. package/.agent/skills/gan-planner.md +0 -99
  58. package/.agent/skills/go-build-resolver.md +0 -94
  59. package/.agent/skills/go-reviewer.md +0 -76
  60. package/.agent/skills/harness-optimizer.md +0 -35
  61. package/.agent/skills/healthcare-reviewer.md +0 -83
  62. package/.agent/skills/java-build-resolver.md +0 -153
  63. package/.agent/skills/java-reviewer.md +0 -92
  64. package/.agent/skills/kodelyth-advisor.md +0 -172
  65. package/.agent/skills/kotlin-build-resolver.md +0 -118
  66. package/.agent/skills/kotlin-reviewer.md +0 -159
  67. package/.agent/skills/loop-operator.md +0 -36
  68. package/.agent/skills/migration-guide.md +0 -368
  69. package/.agent/skills/opensource-forker.md +0 -198
  70. package/.agent/skills/opensource-packager.md +0 -249
  71. package/.agent/skills/opensource-sanitizer.md +0 -188
  72. package/.agent/skills/pair-programmer.md +0 -260
  73. package/.agent/skills/performance-optimizer.md +0 -446
  74. package/.agent/skills/planner.md +0 -212
  75. package/.agent/skills/pr-test-analyzer.md +0 -45
  76. package/.agent/skills/python-reviewer.md +0 -98
  77. package/.agent/skills/pytorch-build-resolver.md +0 -120
  78. package/.agent/skills/refactor-cleaner.md +0 -85
  79. package/.agent/skills/rust-build-resolver.md +0 -148
  80. package/.agent/skills/rust-reviewer.md +0 -94
  81. package/.agent/skills/security-reviewer.md +0 -108
  82. package/.agent/skills/seo-specialist.md +0 -62
  83. package/.agent/skills/silent-failure-hunter.md +0 -50
  84. package/.agent/skills/tdd-guide.md +0 -91
  85. package/.agent/skills/type-design-analyzer.md +0 -41
  86. package/.agent/skills/typescript-reviewer.md +0 -112
  87. package/.agent/skills/ux-reviewer.md +0 -483
  88. package/.agent/workflows/agent-sort.md +0 -23
  89. package/.agent/workflows/aside.md +0 -164
  90. package/.agent/workflows/build-fix.md +0 -62
  91. package/.agent/workflows/checkpoint.md +0 -74
  92. package/.agent/workflows/claw.md +0 -23
  93. package/.agent/workflows/code-review.md +0 -289
  94. package/.agent/workflows/context-budget.md +0 -23
  95. package/.agent/workflows/cpp-build.md +0 -173
  96. package/.agent/workflows/cpp-review.md +0 -132
  97. package/.agent/workflows/cpp-test.md +0 -251
  98. package/.agent/workflows/devfleet.md +0 -23
  99. package/.agent/workflows/docs.md +0 -23
  100. package/.agent/workflows/e2e.md +0 -268
  101. package/.agent/workflows/eval.md +0 -23
  102. package/.agent/workflows/evolve.md +0 -178
  103. package/.agent/workflows/feature-dev.md +0 -49
  104. package/.agent/workflows/flutter-build.md +0 -164
  105. package/.agent/workflows/flutter-review.md +0 -116
  106. package/.agent/workflows/flutter-test.md +0 -144
  107. package/.agent/workflows/gan-build.md +0 -99
  108. package/.agent/workflows/gan-design.md +0 -35
  109. package/.agent/workflows/go-build.md +0 -183
  110. package/.agent/workflows/go-review.md +0 -148
  111. package/.agent/workflows/go-test.md +0 -268
  112. package/.agent/workflows/gradle-build.md +0 -70
  113. package/.agent/workflows/harness-audit.md +0 -73
  114. package/.agent/workflows/hookify-configure.md +0 -14
  115. package/.agent/workflows/hookify-help.md +0 -46
  116. package/.agent/workflows/hookify-list.md +0 -21
  117. package/.agent/workflows/hookify.md +0 -50
  118. package/.agent/workflows/instinct-export.md +0 -66
  119. package/.agent/workflows/instinct-import.md +0 -114
  120. package/.agent/workflows/instinct-status.md +0 -59
  121. package/.agent/workflows/jira.md +0 -106
  122. package/.agent/workflows/kotlin-build.md +0 -174
  123. package/.agent/workflows/kotlin-review.md +0 -140
  124. package/.agent/workflows/kotlin-test.md +0 -312
  125. package/.agent/workflows/learn-eval.md +0 -116
  126. package/.agent/workflows/learn.md +0 -70
  127. package/.agent/workflows/loop-start.md +0 -32
  128. package/.agent/workflows/loop-status.md +0 -24
  129. package/.agent/workflows/model-route.md +0 -26
  130. package/.agent/workflows/multi-backend.md +0 -158
  131. package/.agent/workflows/multi-execute.md +0 -315
  132. package/.agent/workflows/multi-frontend.md +0 -158
  133. package/.agent/workflows/multi-plan.md +0 -268
  134. package/.agent/workflows/multi-workflow.md +0 -191
  135. package/.agent/workflows/orchestrate.md +0 -135
  136. package/.agent/workflows/plan.md +0 -117
  137. package/.agent/workflows/pm2.md +0 -272
  138. package/.agent/workflows/projects.md +0 -39
  139. package/.agent/workflows/promote.md +0 -41
  140. package/.agent/workflows/prompt-optimize.md +0 -23
  141. package/.agent/workflows/prp-commit.md +0 -112
  142. package/.agent/workflows/prp-implement.md +0 -385
  143. package/.agent/workflows/prp-plan.md +0 -502
  144. package/.agent/workflows/prp-pr.md +0 -184
  145. package/.agent/workflows/prp-prd.md +0 -447
  146. package/.agent/workflows/prune.md +0 -31
  147. package/.agent/workflows/python-review.md +0 -297
  148. package/.agent/workflows/quality-gate.md +0 -29
  149. package/.agent/workflows/refactor-clean.md +0 -80
  150. package/.agent/workflows/resume-session.md +0 -156
  151. package/.agent/workflows/review-pr.md +0 -37
  152. package/.agent/workflows/rules-distill.md +0 -20
  153. package/.agent/workflows/rust-build.md +0 -187
  154. package/.agent/workflows/rust-review.md +0 -142
  155. package/.agent/workflows/rust-test.md +0 -308
  156. package/.agent/workflows/santa-loop.md +0 -175
  157. package/.agent/workflows/save-session.md +0 -275
  158. package/.agent/workflows/sessions.md +0 -333
  159. package/.agent/workflows/setup-pm.md +0 -80
  160. package/.agent/workflows/skill-create.md +0 -174
  161. package/.agent/workflows/skill-health.md +0 -54
  162. package/.agent/workflows/tdd.md +0 -231
  163. package/.agent/workflows/test-coverage.md +0 -69
  164. package/.agent/workflows/update-codemaps.md +0 -72
  165. package/.agent/workflows/update-docs.md +0 -84
  166. package/.agent/workflows/verify.md +0 -23
@@ -1,94 +0,0 @@
1
- # Kodelyth ECC — Agent Roster
2
-
3
- This project has 53 specialist agents installed in `.agent/skills/`.
4
- Invoke them proactively — do not wait to be asked.
5
-
6
- ## When to Invoke Without Being Asked
7
-
8
- | Situation | Agent to invoke |
9
- |---|---|
10
- | User asks for a new feature | `planner` |
11
- | User is unsure what to do | `kodelyth-advisor` |
12
- | Code was just written or modified | `code-reviewer` |
13
- | A bug is reported | `debug-detective` |
14
- | Frontend or UI work was done | `ux-reviewer` |
15
- | An API route was changed | `api-guardian` |
16
- | Security-sensitive code touched | `security-reviewer` |
17
- | Build is failing | `build-error-resolver` |
18
- | User is about to start coding | `pair-programmer` |
19
- | Framework or dependency upgrade | `migration-guide` |
20
- | Something is slow | `performance-optimizer` |
21
-
22
- ## Full Agent Roster
23
-
24
- ### Guidance
25
- - `kodelyth-advisor` — reads situation, recommends exact tool — start here when unsure
26
- - `pair-programmer` — thinking partner before coding; catches wrong approach early
27
- - `planner` — implementation planning for complex features
28
- - `architect` — system design and scalability decisions
29
- - `code-architect` — feature architecture blueprints with concrete files and interfaces
30
-
31
- ### Code Review
32
- - `code-reviewer` — general quality, patterns, best practices
33
- - `typescript-reviewer` — TypeScript and JavaScript specific
34
- - `python-reviewer` — Python specific
35
- - `go-reviewer` — Go specific
36
- - `rust-reviewer` — Rust specific
37
- - `java-reviewer` — Java and Spring Boot specific
38
- - `kotlin-reviewer` — Kotlin, Android, KMP specific
39
- - `cpp-reviewer` — C++ specific
40
- - `csharp-reviewer` — C# and .NET specific
41
- - `flutter-reviewer` — Flutter and Dart specific
42
- - `database-reviewer` — PostgreSQL, schema design, query optimization
43
- - `healthcare-reviewer` — clinical safety, PHI compliance
44
-
45
- ### Build Error Resolution
46
- - `build-error-resolver` — general build errors
47
- - `go-build-resolver` — Go specific
48
- - `rust-build-resolver` — Rust and Cargo specific
49
- - `java-build-resolver` — Java, Maven, Gradle specific
50
- - `kotlin-build-resolver` — Kotlin and Gradle specific
51
- - `cpp-build-resolver` — C++ and CMake specific
52
- - `dart-build-resolver` — Dart and Flutter specific
53
- - `pytorch-build-resolver` — PyTorch, CUDA, training errors
54
-
55
- ### Debugging
56
- - `debug-detective` — traces every bug to root cause; never guesses
57
- - `silent-failure-hunter` — finds swallowed errors and bad fallbacks
58
-
59
- ### Security
60
- - `security-reviewer` — OWASP Top 10, injection, auth, secrets, SSRF
61
-
62
- ### UX and Accessibility
63
- - `ux-reviewer` — usability, interaction logic, WCAG 2.1 AA; never touches visual design
64
-
65
- ### Kodelyth Exclusive
66
- - `api-guardian` — detects breaking API changes before they ship
67
- - `migration-guide` — framework and language migration playbooks
68
-
69
- ### Code Quality
70
- - `refactor-cleaner` — dead code removal, consolidation
71
- - `code-simplifier` — simplify for clarity after complex changes
72
- - `performance-optimizer` — bottleneck analysis and optimization
73
- - `type-design-analyzer` — type safety improvements
74
- - `comment-analyzer` — documentation hygiene
75
- - `code-explorer` — understanding unfamiliar codebases
76
-
77
- ### Testing
78
- - `tdd-guide` — write tests first, enforces red-green-refactor
79
- - `e2e-runner` — end-to-end Playwright tests for critical user flows
80
- - `pr-test-analyzer` — PR test coverage review
81
-
82
- ### Documentation
83
- - `doc-updater` — READMEs, codemaps, documentation updates
84
- - `docs-lookup` — library and API documentation
85
- - `seo-specialist` — technical SEO, structured data, Core Web Vitals
86
-
87
- ### Open Source
88
- - `opensource-forker` — strip secrets, clean history
89
- - `opensource-packager` — README, setup, license for public release
90
- - `opensource-sanitizer` — verify sanitization before public release
91
-
92
- ## Parallel Execution Rule
93
-
94
- For independent tasks, always run agents in parallel — never sequentially when tasks do not depend on each other.
@@ -1,124 +0,0 @@
1
- # 代码审查标准
2
-
3
- ## 目的
4
-
5
- 代码审查确保代码合并前的质量、安全性和可维护性。此规则定义何时以及如何进行代码审查。
6
-
7
- ## 何时审查
8
-
9
- **强制审查触发条件:**
10
-
11
- - 编写或修改代码后
12
- - 提交到共享分支之前
13
- - 更改安全敏感代码时(认证、支付、用户数据)
14
- - 进行架构更改时
15
- - 合并 pull request 之前
16
-
17
- **审查前要求:**
18
-
19
- 在请求审查之前,确保:
20
-
21
- - 所有自动化检查(CI/CD)已通过
22
- - 合并冲突已解决
23
- - 分支已与目标分支同步
24
-
25
- ## 审查检查清单
26
-
27
- 在标记代码完成之前:
28
-
29
- - [ ] 代码可读且命名良好
30
- - [ ] 函数聚焦(<50 行)
31
- - [ ] 文件内聚(<800 行)
32
- - [ ] 无深层嵌套(>4 层)
33
- - [ ] 错误显式处理
34
- - [ ] 无硬编码密钥或凭据
35
- - [ ] 无 console.log 或调试语句
36
- - [ ] 新功能有测试
37
- - [ ] 测试覆盖率满足 80% 最低要求
38
-
39
- ## 安全审查触发条件
40
-
41
- **停止并使用 security-reviewer 代理当:**
42
-
43
- - 认证或授权代码
44
- - 用户输入处理
45
- - 数据库查询
46
- - 文件系统操作
47
- - 外部 API 调用
48
- - 加密操作
49
- - 支付或金融代码
50
-
51
- ## 审查严重级别
52
-
53
- | 级别 | 含义 | 行动 |
54
- |-------|---------|--------|
55
- | CRITICAL(关键) | 安全漏洞或数据丢失风险 | **阻止** - 合并前必须修复 |
56
- | HIGH(高) | Bug 或重大质量问题 | **警告** - 合并前应修复 |
57
- | MEDIUM(中) | 可维护性问题 | **信息** - 考虑修复 |
58
- | LOW(低) | 风格或次要建议 | **注意** - 可选 |
59
-
60
- ## 代理使用
61
-
62
- 使用这些代理进行代码审查:
63
-
64
- | 代理 | 用途 |
65
- |-------|--------|
66
- | **code-reviewer** | 通用代码质量、模式、最佳实践 |
67
- | **security-reviewer** | 安全漏洞、OWASP Top 10 |
68
- | **typescript-reviewer** | TypeScript/JavaScript 特定问题 |
69
- | **python-reviewer** | Python 特定问题 |
70
- | **go-reviewer** | Go 特定问题 |
71
- | **rust-reviewer** | Rust 特定问题 |
72
-
73
- ## 审查工作流
74
-
75
- ```
76
- 1. 运行 git diff 了解更改
77
- 2. 先检查安全检查清单
78
- 3. 审查代码质量检查清单
79
- 4. 运行相关测试
80
- 5. 验证覆盖率 >= 80%
81
- 6. 使用适当的代理进行详细审查
82
- ```
83
-
84
- ## 常见问题捕获
85
-
86
- ### 安全
87
-
88
- - 硬编码凭据(API 密钥、密码、令牌)
89
- - SQL 注入(查询中的字符串拼接)
90
- - XSS 漏洞(未转义的用户输入)
91
- - 路径遍历(未净化的文件路径)
92
- - CSRF 保护缺失
93
- - 认证绕过
94
-
95
- ### 代码质量
96
-
97
- - 大函数(>50 行)- 拆分为更小的
98
- - 大文件(>800 行)- 提取模块
99
- - 深层嵌套(>4 层)- 使用提前返回
100
- - 缺少错误处理 - 显式处理
101
- - 变更模式 - 优先使用不可变操作
102
- - 缺少测试 - 添加测试覆盖
103
-
104
- ### 性能
105
-
106
- - N+1 查询 - 使用 JOIN 或批处理
107
- - 缺少分页 - 给查询添加 LIMIT
108
- - 无界查询 - 添加约束
109
- - 缺少缓存 - 缓存昂贵操作
110
-
111
- ## 批准标准
112
-
113
- - **批准**:无关键或高优先级问题
114
- - **警告**:仅有高优先级问题(谨慎合并)
115
- - **阻止**:发现关键问题
116
-
117
- ## 与其他规则的集成
118
-
119
- 此规则与以下规则配合:
120
-
121
- - [testing.md](testing.md) - 测试覆盖率要求
122
- - [security.md](security.md) - 安全检查清单
123
- - [git-workflow.md](git-workflow.md) - 提交标准
124
- - [agents.md](agents.md) - 代理委托
@@ -1,122 +0,0 @@
1
- # Coding Style
2
-
3
- ## Immutability (CRITICAL)
4
-
5
- ALWAYS create new objects, NEVER mutate existing ones:
6
-
7
- ```
8
- // Pseudocode
9
- WRONG: modify(original, field, value) → changes original in-place
10
- CORRECT: update(original, field, value) → returns new copy with change
11
- ```
12
-
13
- Rationale: Immutable data prevents hidden side effects, makes debugging easier, and enables safe concurrency.
14
-
15
- ## Core Principles
16
-
17
- ### KISS (Keep It Simple)
18
-
19
- - Prefer the simplest solution that actually works
20
- - Avoid premature optimization
21
- - Optimize for clarity over cleverness
22
-
23
- ### DRY (Don't Repeat Yourself)
24
-
25
- - Extract repeated logic into shared functions or utilities
26
- - Avoid copy-paste implementation drift
27
- - Introduce abstractions when repetition is real, not speculative
28
-
29
- ### YAGNI (You Aren't Gonna Need It)
30
-
31
- - Do not build features or abstractions before they are needed
32
- - Avoid speculative generality
33
- - Start simple, then refactor when the pressure is real
34
-
35
- ## File Organization
36
-
37
- MANY SMALL FILES > FEW LARGE FILES:
38
- - High cohesion, low coupling
39
- - 200-400 lines typical, 800 max
40
- - Extract utilities from large modules
41
- - Organize by feature/domain, not by type
42
-
43
- ## Error Handling
44
-
45
- ALWAYS handle errors comprehensively:
46
- - Handle errors explicitly at every level
47
- - Provide user-friendly error messages in UI-facing code
48
- - Log detailed error context on the server side
49
- - Never silently swallow errors
50
-
51
- ## Input Validation
52
-
53
- ALWAYS validate at system boundaries:
54
- - Validate all user input before processing
55
- - Use schema-based validation where available
56
- - Fail fast with clear error messages
57
- - Never trust external data (API responses, user input, file content)
58
-
59
- ## Naming Conventions
60
-
61
- - Variables and functions: `camelCase` with descriptive names
62
- - Booleans: prefer `is`, `has`, `should`, or `can` prefixes
63
- - Interfaces, types, and components: `PascalCase`
64
- - Constants: `UPPER_SNAKE_CASE`
65
- - Custom hooks: `camelCase` with a `use` prefix
66
-
67
- ## Code Smells to Avoid
68
-
69
- ### Deep Nesting
70
-
71
- Prefer early returns over nested conditionals once the logic starts stacking.
72
-
73
- ### Magic Numbers
74
-
75
- Use named constants for meaningful thresholds, delays, and limits.
76
-
77
- ### Long Functions
78
-
79
- Split large functions into focused pieces with clear responsibilities.
80
-
81
- ## Visual Output & Documentation Style
82
-
83
- ### No Emoji (STRICT)
84
-
85
- **Never** use decorative emoji in documentation, agent responses, README files, skill files, or UI output.
86
-
87
- Emoji signals low craft. Use professional alternatives instead:
88
-
89
- | Context | Wrong | Right |
90
- |---|---|---|
91
- | GitHub Markdown badges | ✅ Feature complete | `![Status](https://img.shields.io/badge/status-complete-brightgreen.svg)` |
92
- | Inline doc icons | 🔍 Search | `<img src="icons/search.svg" width="16" alt="Search">` |
93
- | Status indicators | ✅ Passing / ❌ Failing | `PASS` / `FAIL` or ✓ / ✗ (Unicode, not emoji) |
94
- | Section headers | 🎯 Goals | `## Goals` — plain heading, no decoration |
95
- | Terminal output | 🚀 Installing... | `Installing...` or `[INFO] Installing...` |
96
- | Checklists | ✅ Done | `- [x] Done` (Markdown checkbox) |
97
-
98
- **Allowed in terminal scripts only:** Unicode symbols `✓` (U+2713), `✗` (U+2717), `→` (U+2192) — these are text characters, not emoji, and render cleanly in all terminals.
99
-
100
- **In rendered Markdown (README, docs, skills):**
101
- ```html
102
- <!-- Use shields.io SVG badges for status -->
103
- ![Build](https://img.shields.io/badge/build-passing-brightgreen.svg)
104
- ![Coverage](https://img.shields.io/badge/coverage-94%25-brightgreen.svg)
105
-
106
- <!-- Use <img> for inline icons -->
107
- <img src="https://cdn.simpleicons.org/typescript" width="16" height="16" alt="TypeScript">
108
- ```
109
-
110
- **In agent responses:** no decoration whatsoever — structured prose, code blocks, and tables only.
111
-
112
- ## Code Quality Checklist
113
-
114
- Before marking work complete:
115
- - [ ] Code is readable and well-named
116
- - [ ] Functions are small (<50 lines)
117
- - [ ] Files are focused (<800 lines)
118
- - [ ] No deep nesting (>4 levels)
119
- - [ ] Proper error handling
120
- - [ ] No hardcoded values (use constants or config)
121
- - [ ] No mutation (immutable patterns used)
122
- - [ ] No emoji — SVG badges or plain text only
@@ -1,63 +0,0 @@
1
- > This file extends [common/patterns.md](../common/patterns.md) with web-specific design-quality guidance.
2
-
3
- # Web Design Quality Standards
4
-
5
- ## Anti-Template Policy
6
-
7
- Do not ship generic template-looking UI. Frontend output should look intentional, opinionated, and specific to the product.
8
-
9
- ### Banned Patterns
10
-
11
- - Default card grids with uniform spacing and no hierarchy
12
- - Stock hero section with centered headline, gradient blob, and generic CTA
13
- - Unmodified library defaults passed off as finished design
14
- - Flat layouts with no layering, depth, or motion
15
- - Uniform radius, spacing, and shadows across every component
16
- - Safe gray-on-white styling with one decorative accent color
17
- - Dashboard-by-numbers layouts with sidebar + cards + charts and no point of view
18
- - Default font stacks used without a deliberate reason
19
-
20
- ### Required Qualities
21
-
22
- Every meaningful frontend surface should demonstrate at least four of these:
23
-
24
- 1. Clear hierarchy through scale contrast
25
- 2. Intentional rhythm in spacing, not uniform padding everywhere
26
- 3. Depth or layering through overlap, shadows, surfaces, or motion
27
- 4. Typography with character and a real pairing strategy
28
- 5. Color used semantically, not just decoratively
29
- 6. Hover, focus, and active states that feel designed
30
- 7. Grid-breaking editorial or bento composition where appropriate
31
- 8. Texture, grain, or atmosphere when it fits the visual direction
32
- 9. Motion that clarifies flow instead of distracting from it
33
- 10. Data visualization treated as part of the design system, not an afterthought
34
-
35
- ## Before Writing Frontend Code
36
-
37
- 1. Pick a specific style direction. Avoid vague defaults like "clean minimal".
38
- 2. Define a palette intentionally.
39
- 3. Choose typography deliberately.
40
- 4. Gather at least a small set of real references.
41
- 5. Use ECC design/frontend skills where relevant.
42
-
43
- ## Worthwhile Style Directions
44
-
45
- - Editorial / magazine
46
- - Neo-brutalism
47
- - Glassmorphism with real depth
48
- - Dark luxury or light luxury with disciplined contrast
49
- - Bento layouts
50
- - Scrollytelling
51
- - 3D integration
52
- - Swiss / International
53
- - Retro-futurism
54
-
55
- Do not default to dark mode automatically. Choose the visual direction the product actually wants.
56
-
57
- ## Component Checklist
58
-
59
- - [ ] Does it avoid looking like a default Tailwind or shadcn template?
60
- - [ ] Does it have intentional hover/focus/active states?
61
- - [ ] Does it use hierarchy rather than uniform emphasis?
62
- - [ ] Would this look believable in a real product screenshot?
63
- - [ ] If it supports both themes, do both light and dark feel intentional?
@@ -1,44 +0,0 @@
1
- # 开发工作流
2
-
3
- > 此文件扩展 [common/git-workflow.md](./git-workflow.md),包含 git 操作之前的完整功能开发流程。
4
-
5
- 功能实现工作流描述了开发管道:研究、规划、TDD、代码审查,然后提交到 git。
6
-
7
- ## 功能实现工作流
8
-
9
- 0. **研究与重用** _(任何新实现前必需)_
10
- - **GitHub 代码搜索优先:** 在编写任何新代码之前,运行 `gh search repos` 和 `gh search code` 查找现有实现、模板和模式。
11
- - **库文档其次:** 使用 Context7 或主要供应商文档确认 API 行为、包使用和版本特定细节。
12
- - **仅当前两者不足时使用 Exa:** 在 GitHub 搜索和主要文档之后,使用 Exa 进行更广泛的网络研究或发现。
13
- - **检查包注册表:** 在编写工具代码之前搜索 npm、PyPI、crates.io 和其他注册表。首选久经考验的库而非手工编写的解决方案。
14
- - **搜索可适配的实现:** 寻找解决问题 80%+ 且可以分支、移植或包装的开源项目。
15
- - 当满足需求时,优先采用或移植经验证的方法而非从头编写新代码。
16
-
17
- 1. **先规划**
18
- - 使用 **planner** 代理创建实现计划
19
- - 编码前生成规划文档:PRD、架构、系统设计、技术文档、任务列表
20
- - 识别依赖和风险
21
- - 分解为阶段
22
-
23
- 2. **TDD 方法**
24
- - 使用 **tdd-guide** 代理
25
- - 先写测试(RED)
26
- - 实现以通过测试(GREEN)
27
- - 重构(IMPROVE)
28
- - 验证 80%+ 覆盖率
29
-
30
- 3. **代码审查**
31
- - 编写代码后立即使用 **code-reviewer** 代理
32
- - 解决关键和高优先级问题
33
- - 尽可能修复中优先级问题
34
-
35
- 4. **提交与推送**
36
- - 详细的提交消息
37
- - 遵循约定式提交格式
38
- - 参见 [git-workflow.md](./git-workflow.md) 了解提交消息格式和 PR 流程
39
-
40
- 5. **审查前检查**
41
- - 验证所有自动化检查(CI/CD)已通过
42
- - 解决任何合并冲突
43
- - 确保分支已与目标分支同步
44
- - 仅在这些检查通过后请求审查