@jakkrichm/create-nexus-devflow 2.0.19 → 2.0.21

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 (253) hide show
  1. package/dist/lib/update.js +19 -8
  2. package/dist/lib/update.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template/.agents/skills/00-discover/SKILL.md +28 -116
  5. package/template/.agents/skills/40-execute/SKILL.md +1 -1
  6. package/template/.agents/skills/50-verify/SKILL.md +28 -161
  7. package/template/.agents/skills/60-report/SKILL.md +19 -92
  8. package/template/.agents/skills/70-release/SKILL.md +36 -11
  9. package/template/.agents/skills/check/SKILL.md +19 -7
  10. package/template/.agents/skills/complete/SKILL.md +21 -10
  11. package/template/.claude/skills/00-discover/SKILL.md +28 -116
  12. package/template/.claude/skills/40-execute/SKILL.md +1 -1
  13. package/template/.claude/skills/50-verify/SKILL.md +28 -161
  14. package/template/.claude/skills/60-report/SKILL.md +19 -92
  15. package/template/.claude/skills/70-release/SKILL.md +36 -11
  16. package/template/.claude/skills/check/SKILL.md +19 -7
  17. package/template/.claude/skills/complete/SKILL.md +21 -10
  18. package/template/AGENTS.md +1 -1
  19. package/template/devflow/context/coding-standards.md +40 -29
  20. package/template/.agents/skills/agent/SKILL.md +0 -165
  21. package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
  22. package/template/.agents/skills/app-builder/SKILL.md +0 -75
  23. package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
  24. package/template/.agents/skills/app-builder/feature-building.md +0 -53
  25. package/template/.agents/skills/app-builder/project-detection.md +0 -34
  26. package/template/.agents/skills/app-builder/scaffolding.md +0 -118
  27. package/template/.agents/skills/app-builder/tech-stack.md +0 -40
  28. package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
  29. package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  30. package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  31. package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  32. package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  33. package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  34. package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  35. package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  36. package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  37. package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  38. package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  39. package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  40. package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  41. package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  42. package/template/.agents/skills/architecture/SKILL.md +0 -55
  43. package/template/.agents/skills/architecture/context-discovery.md +0 -43
  44. package/template/.agents/skills/architecture/examples.md +0 -94
  45. package/template/.agents/skills/architecture/pattern-selection.md +0 -68
  46. package/template/.agents/skills/architecture/patterns-reference.md +0 -50
  47. package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
  48. package/template/.agents/skills/bash-linux/SKILL.md +0 -199
  49. package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
  50. package/template/.agents/skills/brainstorm/SKILL.md +0 -168
  51. package/template/.agents/skills/changelog/SKILL.md +0 -109
  52. package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
  53. package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  54. package/template/.agents/skills/codebase-design/SKILL.md +0 -58
  55. package/template/.agents/skills/commit/SKILL.md +0 -59
  56. package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
  57. package/template/.agents/skills/context-engineering/SKILL.md +0 -290
  58. package/template/.agents/skills/database-design/SKILL.md +0 -52
  59. package/template/.agents/skills/database-design/database-selection.md +0 -43
  60. package/template/.agents/skills/database-design/indexing.md +0 -39
  61. package/template/.agents/skills/database-design/migrations.md +0 -48
  62. package/template/.agents/skills/database-design/optimization.md +0 -36
  63. package/template/.agents/skills/database-design/orm-selection.md +0 -30
  64. package/template/.agents/skills/database-design/schema-design.md +0 -56
  65. package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
  66. package/template/.agents/skills/deploy/SKILL.md +0 -63
  67. package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
  68. package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  69. package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  70. package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
  71. package/template/.agents/skills/followup/SKILL.md +0 -83
  72. package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
  73. package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  74. package/template/.agents/skills/goal/SKILL.md +0 -148
  75. package/template/.agents/skills/handoff/SKILL.md +0 -46
  76. package/template/.agents/skills/help/SKILL.md +0 -253
  77. package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
  78. package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  79. package/template/.agents/skills/insight/SKILL.md +0 -42
  80. package/template/.agents/skills/issue-triage/SKILL.md +0 -115
  81. package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
  82. package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  83. package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  84. package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
  85. package/template/.agents/skills/merge/SKILL.md +0 -76
  86. package/template/.agents/skills/mobile-design/SKILL.md +0 -394
  87. package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
  88. package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
  89. package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
  90. package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
  91. package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
  92. package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
  93. package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
  94. package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
  95. package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
  96. package/template/.agents/skills/mobile-design/platform-android.md +0 -666
  97. package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
  98. package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
  99. package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
  100. package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  101. package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  102. package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  103. package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  104. package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  105. package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  106. package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  107. package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  108. package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
  109. package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  110. package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  111. package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
  112. package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
  113. package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
  114. package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
  115. package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
  116. package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
  117. package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
  118. package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
  119. package/template/.agents/skills/pr/SKILL.md +0 -93
  120. package/template/.agents/skills/prd/SKILL.md +0 -127
  121. package/template/.agents/skills/preview/SKILL.md +0 -42
  122. package/template/.agents/skills/python-patterns/SKILL.md +0 -441
  123. package/template/.agents/skills/research/SKILL.md +0 -143
  124. package/template/.agents/skills/review/SKILL.md +0 -71
  125. package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
  126. package/template/.agents/skills/security-review/SKILL.md +0 -63
  127. package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
  128. package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  129. package/template/.agents/skills/server-management/SKILL.md +0 -161
  130. package/template/.agents/skills/simplify/SKILL.md +0 -70
  131. package/template/.agents/skills/skill-development/SKILL.md +0 -86
  132. package/template/.agents/skills/spec/SKILL.md +0 -39
  133. package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
  134. package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
  135. package/template/.agents/skills/type-design/SKILL.md +0 -84
  136. package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
  137. package/template/.claude/skills/agent/SKILL.md +0 -165
  138. package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
  139. package/template/.claude/skills/app-builder/SKILL.md +0 -75
  140. package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
  141. package/template/.claude/skills/app-builder/feature-building.md +0 -53
  142. package/template/.claude/skills/app-builder/project-detection.md +0 -34
  143. package/template/.claude/skills/app-builder/scaffolding.md +0 -118
  144. package/template/.claude/skills/app-builder/tech-stack.md +0 -40
  145. package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
  146. package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  147. package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  148. package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  149. package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  150. package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  151. package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  152. package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  153. package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  154. package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  155. package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  156. package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  157. package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  158. package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  159. package/template/.claude/skills/architecture/SKILL.md +0 -55
  160. package/template/.claude/skills/architecture/context-discovery.md +0 -43
  161. package/template/.claude/skills/architecture/examples.md +0 -94
  162. package/template/.claude/skills/architecture/pattern-selection.md +0 -68
  163. package/template/.claude/skills/architecture/patterns-reference.md +0 -50
  164. package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
  165. package/template/.claude/skills/bash-linux/SKILL.md +0 -199
  166. package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
  167. package/template/.claude/skills/brainstorm/SKILL.md +0 -168
  168. package/template/.claude/skills/changelog/SKILL.md +0 -109
  169. package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
  170. package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  171. package/template/.claude/skills/codebase-design/SKILL.md +0 -58
  172. package/template/.claude/skills/commit/SKILL.md +0 -59
  173. package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
  174. package/template/.claude/skills/context-engineering/SKILL.md +0 -290
  175. package/template/.claude/skills/database-design/SKILL.md +0 -52
  176. package/template/.claude/skills/database-design/database-selection.md +0 -43
  177. package/template/.claude/skills/database-design/indexing.md +0 -39
  178. package/template/.claude/skills/database-design/migrations.md +0 -48
  179. package/template/.claude/skills/database-design/optimization.md +0 -36
  180. package/template/.claude/skills/database-design/orm-selection.md +0 -30
  181. package/template/.claude/skills/database-design/schema-design.md +0 -56
  182. package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
  183. package/template/.claude/skills/deploy/SKILL.md +0 -63
  184. package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
  185. package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
  186. package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  187. package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
  188. package/template/.claude/skills/followup/SKILL.md +0 -83
  189. package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
  190. package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  191. package/template/.claude/skills/goal/SKILL.md +0 -148
  192. package/template/.claude/skills/handoff/SKILL.md +0 -46
  193. package/template/.claude/skills/help/SKILL.md +0 -253
  194. package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
  195. package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  196. package/template/.claude/skills/insight/SKILL.md +0 -42
  197. package/template/.claude/skills/issue-triage/SKILL.md +0 -115
  198. package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
  199. package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  200. package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  201. package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
  202. package/template/.claude/skills/merge/SKILL.md +0 -76
  203. package/template/.claude/skills/mobile-design/SKILL.md +0 -394
  204. package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
  205. package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
  206. package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
  207. package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
  208. package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
  209. package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
  210. package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
  211. package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
  212. package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
  213. package/template/.claude/skills/mobile-design/platform-android.md +0 -666
  214. package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
  215. package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
  216. package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
  217. package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  218. package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  219. package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  220. package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  221. package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  222. package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  223. package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  224. package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  225. package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
  226. package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  227. package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  228. package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
  229. package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
  230. package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
  231. package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
  232. package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
  233. package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
  234. package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
  235. package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
  236. package/template/.claude/skills/pr/SKILL.md +0 -93
  237. package/template/.claude/skills/prd/SKILL.md +0 -127
  238. package/template/.claude/skills/preview/SKILL.md +0 -42
  239. package/template/.claude/skills/python-patterns/SKILL.md +0 -441
  240. package/template/.claude/skills/research/SKILL.md +0 -143
  241. package/template/.claude/skills/review/SKILL.md +0 -71
  242. package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
  243. package/template/.claude/skills/security-review/SKILL.md +0 -63
  244. package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
  245. package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  246. package/template/.claude/skills/server-management/SKILL.md +0 -161
  247. package/template/.claude/skills/simplify/SKILL.md +0 -70
  248. package/template/.claude/skills/skill-development/SKILL.md +0 -86
  249. package/template/.claude/skills/spec/SKILL.md +0 -39
  250. package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
  251. package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
  252. package/template/.claude/skills/type-design/SKILL.md +0 -84
  253. package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
@@ -1,173 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- Type Coverage Checker - Measures TypeScript/Python type coverage.
4
- Identifies untyped functions, any usage, and type safety issues.
5
- """
6
- import sys
7
- import re
8
- import subprocess
9
- from pathlib import Path
10
-
11
- # Fix Windows console encoding for Unicode output
12
- try:
13
- sys.stdout.reconfigure(encoding='utf-8', errors='replace')
14
- sys.stderr.reconfigure(encoding='utf-8', errors='replace')
15
- except AttributeError:
16
- pass # Python < 3.7
17
-
18
- def check_typescript_coverage(project_path: Path) -> dict:
19
- """Check TypeScript type coverage."""
20
- issues = []
21
- passed = []
22
- stats = {'any_count': 0, 'untyped_functions': 0, 'total_functions': 0}
23
-
24
- ts_files = list(project_path.rglob("*.ts")) + list(project_path.rglob("*.tsx"))
25
- ts_files = [f for f in ts_files if 'node_modules' not in str(f) and '.d.ts' not in str(f)]
26
-
27
- if not ts_files:
28
- return {'type': 'typescript', 'files': 0, 'passed': [], 'issues': ["[!] No TypeScript files found"], 'stats': stats}
29
-
30
- for file_path in ts_files[:30]: # Limit
31
- try:
32
- content = file_path.read_text(encoding='utf-8', errors='ignore')
33
-
34
- # Count 'any' usage
35
- any_matches = re.findall(r':\s*any\b', content)
36
- stats['any_count'] += len(any_matches)
37
-
38
- # Find functions without return types
39
- # function name(params) { - no return type
40
- untyped = re.findall(r'function\s+\w+\s*\([^)]*\)\s*{', content)
41
- # Arrow functions without types: const fn = (x) => or (x) =>
42
- untyped += re.findall(r'=\s*\([^:)]*\)\s*=>', content)
43
- stats['untyped_functions'] += len(untyped)
44
-
45
- # Count typed functions
46
- typed = re.findall(r'function\s+\w+\s*\([^)]*\)\s*:\s*\w+', content)
47
- typed += re.findall(r':\s*\([^)]*\)\s*=>\s*\w+', content)
48
- stats['total_functions'] += len(typed) + len(untyped)
49
-
50
- except Exception:
51
- continue
52
-
53
- # Analyze results
54
- if stats['any_count'] == 0:
55
- passed.append("[OK] No 'any' types found")
56
- elif stats['any_count'] <= 5:
57
- issues.append(f"[!] {stats['any_count']} 'any' types found (acceptable)")
58
- else:
59
- issues.append(f"[X] {stats['any_count']} 'any' types found (too many)")
60
-
61
- if stats['total_functions'] > 0:
62
- typed_ratio = (stats['total_functions'] - stats['untyped_functions']) / stats['total_functions'] * 100
63
- if typed_ratio >= 80:
64
- passed.append(f"[OK] Type coverage: {typed_ratio:.0f}%")
65
- elif typed_ratio >= 50:
66
- issues.append(f"[!] Type coverage: {typed_ratio:.0f}% (improve)")
67
- else:
68
- issues.append(f"[X] Type coverage: {typed_ratio:.0f}% (too low)")
69
-
70
- passed.append(f"[OK] Analyzed {len(ts_files)} TypeScript files")
71
-
72
- return {'type': 'typescript', 'files': len(ts_files), 'passed': passed, 'issues': issues, 'stats': stats}
73
-
74
- def check_python_coverage(project_path: Path) -> dict:
75
- """Check Python type hints coverage."""
76
- issues = []
77
- passed = []
78
- stats = {'untyped_functions': 0, 'typed_functions': 0, 'any_count': 0}
79
-
80
- py_files = list(project_path.rglob("*.py"))
81
- py_files = [f for f in py_files if not any(x in str(f) for x in ['venv', '__pycache__', '.git', 'node_modules'])]
82
-
83
- if not py_files:
84
- return {'type': 'python', 'files': 0, 'passed': [], 'issues': ["[!] No Python files found"], 'stats': stats}
85
-
86
- for file_path in py_files[:30]: # Limit
87
- try:
88
- content = file_path.read_text(encoding='utf-8', errors='ignore')
89
-
90
- # Count Any usage
91
- any_matches = re.findall(r':\s*Any\b', content)
92
- stats['any_count'] += len(any_matches)
93
-
94
- # Find functions with type hints
95
- typed_funcs = re.findall(r'def\s+\w+\s*\([^)]*:[^)]+\)', content)
96
- typed_funcs += re.findall(r'def\s+\w+\s*\([^)]*\)\s*->', content)
97
- stats['typed_functions'] += len(typed_funcs)
98
-
99
- # Find functions without type hints
100
- all_funcs = re.findall(r'def\s+\w+\s*\(', content)
101
- stats['untyped_functions'] += len(all_funcs) - len(typed_funcs)
102
-
103
- except Exception:
104
- continue
105
-
106
- total = stats['typed_functions'] + stats['untyped_functions']
107
-
108
- if total > 0:
109
- typed_ratio = stats['typed_functions'] / total * 100
110
- if typed_ratio >= 70:
111
- passed.append(f"[OK] Type hints coverage: {typed_ratio:.0f}%")
112
- elif typed_ratio >= 40:
113
- issues.append(f"[!] Type hints coverage: {typed_ratio:.0f}%")
114
- else:
115
- issues.append(f"[X] Type hints coverage: {typed_ratio:.0f}% (add type hints)")
116
-
117
- if stats['any_count'] == 0:
118
- passed.append("[OK] No 'Any' types found")
119
- elif stats['any_count'] <= 3:
120
- issues.append(f"[!] {stats['any_count']} 'Any' types found")
121
- else:
122
- issues.append(f"[X] {stats['any_count']} 'Any' types found")
123
-
124
- passed.append(f"[OK] Analyzed {len(py_files)} Python files")
125
-
126
- return {'type': 'python', 'files': len(py_files), 'passed': passed, 'issues': issues, 'stats': stats}
127
-
128
- def main():
129
- target = sys.argv[1] if len(sys.argv) > 1 else "."
130
- project_path = Path(target)
131
-
132
- print("\n" + "=" * 60)
133
- print(" TYPE COVERAGE CHECKER")
134
- print("=" * 60 + "\n")
135
-
136
- results = []
137
-
138
- # Check TypeScript
139
- ts_result = check_typescript_coverage(project_path)
140
- if ts_result['files'] > 0:
141
- results.append(ts_result)
142
-
143
- # Check Python
144
- py_result = check_python_coverage(project_path)
145
- if py_result['files'] > 0:
146
- results.append(py_result)
147
-
148
- if not results:
149
- print("[!] No TypeScript or Python files found.")
150
- sys.exit(0)
151
-
152
- # Print results
153
- critical_issues = 0
154
- for result in results:
155
- print(f"\n[{result['type'].upper()}]")
156
- print("-" * 40)
157
- for item in result['passed']:
158
- print(f" {item}")
159
- for item in result['issues']:
160
- print(f" {item}")
161
- if item.startswith("[X]"):
162
- critical_issues += 1
163
-
164
- print("\n" + "=" * 60)
165
- if critical_issues == 0:
166
- print("[OK] TYPE COVERAGE: ACCEPTABLE")
167
- sys.exit(0)
168
- else:
169
- print(f"[X] TYPE COVERAGE: {critical_issues} critical issues")
170
- sys.exit(1)
171
-
172
- if __name__ == "__main__":
173
- main()
@@ -1,176 +0,0 @@
1
- ---
2
- name: mcp-builder
3
- description: "[Devflow] MCP (Model Context Protocol) server building principles. Tool design, resource patterns, best practices."
4
- allowed-tools: Read, Write, Edit, Glob, Grep
5
- ---
6
-
7
- # MCP Builder
8
-
9
- > Principles for building MCP servers.
10
-
11
- ---
12
-
13
- ## 1. MCP Overview
14
-
15
- ### What is MCP?
16
-
17
- Model Context Protocol - standard for connecting AI systems with external tools and data sources.
18
-
19
- ### Core Concepts
20
-
21
- | Concept | Purpose |
22
- |---------|---------|
23
- | **Tools** | Functions AI can call |
24
- | **Resources** | Data AI can read |
25
- | **Prompts** | Pre-defined prompt templates |
26
-
27
- ---
28
-
29
- ## 2. Server Architecture
30
-
31
- ### Project Structure
32
-
33
- ```
34
- my-mcp-server/
35
- ├── src/
36
- │ └── index.ts # Main entry
37
- ├── package.json
38
- └── tsconfig.json
39
- ```
40
-
41
- ### Transport Types
42
-
43
- | Type | Use |
44
- |------|-----|
45
- | **Stdio** | Local, CLI-based |
46
- | **SSE** | Web-based, streaming |
47
- | **WebSocket** | Real-time, bidirectional |
48
-
49
- ---
50
-
51
- ## 3. Tool Design Principles
52
-
53
- ### Good Tool Design
54
-
55
- | Principle | Description |
56
- |-----------|-------------|
57
- | Clear name | Action-oriented (get_weather, create_user) |
58
- | Single purpose | One thing well |
59
- | Validated input | Schema with types and descriptions |
60
- | Structured output | Predictable response format |
61
-
62
- ### Input Schema Design
63
-
64
- | Field | Required? |
65
- |-------|-----------|
66
- | Type | Yes - object |
67
- | Properties | Define each param |
68
- | Required | List mandatory params |
69
- | Description | Human-readable |
70
-
71
- ---
72
-
73
- ## 4. Resource Patterns
74
-
75
- ### Resource Types
76
-
77
- | Type | Use |
78
- |------|-----|
79
- | Static | Fixed data (config, docs) |
80
- | Dynamic | Generated on request |
81
- | Template | URI with parameters |
82
-
83
- ### URI Patterns
84
-
85
- | Pattern | Example |
86
- |---------|---------|
87
- | Fixed | `docs://readme` |
88
- | Parameterized | `users://{userId}` |
89
- | Collection | `files://project/*` |
90
-
91
- ---
92
-
93
- ## 5. Error Handling
94
-
95
- ### Error Types
96
-
97
- | Situation | Response |
98
- |-----------|----------|
99
- | Invalid params | Validation error message |
100
- | Not found | Clear "not found" |
101
- | Server error | Generic error, log details |
102
-
103
- ### Best Practices
104
-
105
- - Return structured errors
106
- - Don't expose internal details
107
- - Log for debugging
108
- - Provide actionable messages
109
-
110
- ---
111
-
112
- ## 6. Multimodal Handling
113
-
114
- ### Supported Types
115
-
116
- | Type | Encoding |
117
- |------|----------|
118
- | Text | Plain text |
119
- | Images | Base64 + MIME type |
120
- | Files | Base64 + MIME type |
121
-
122
- ---
123
-
124
- ## 7. Security Principles
125
-
126
- ### Input Validation
127
-
128
- - Validate all tool inputs
129
- - Sanitize user-provided data
130
- - Limit resource access
131
-
132
- ### API Keys
133
-
134
- - Use environment variables
135
- - Don't log secrets
136
- - Validate permissions
137
-
138
- ---
139
-
140
- ## 8. Configuration
141
-
142
- ### Claude Desktop Config
143
-
144
- | Field | Purpose |
145
- |-------|---------|
146
- | command | Executable to run |
147
- | args | Command arguments |
148
- | env | Environment variables |
149
-
150
- ---
151
-
152
- ## 9. Testing
153
-
154
- ### Test Categories
155
-
156
- | Type | Focus |
157
- |------|-------|
158
- | Unit | Tool logic |
159
- | Integration | Full server |
160
- | Contract | Schema validation |
161
-
162
- ---
163
-
164
- ## 10. Best Practices Checklist
165
-
166
- - [ ] Clear, action-oriented tool names
167
- - [ ] Complete input schemas with descriptions
168
- - [ ] Structured JSON output
169
- - [ ] Error handling for all cases
170
- - [ ] Input validation
171
- - [ ] Environment-based configuration
172
- - [ ] Logging for debugging
173
-
174
- ---
175
-
176
- > **Remember:** MCP tools should be simple, focused, and well-documented. The AI relies on descriptions to use them correctly.
@@ -1,76 +0,0 @@
1
- ---name: merge
2
-
3
- description: "[Devflow] Safe PR branch merge into base branch, cleanup, and release readiness check."
4
- ---
5
- # Smart Merge (Git Orchestration)
6
-
7
- ## Target Branch: $ARGUMENTS (default: main)
8
-
9
- Safely merge the current feature branch into the base branch, push the updates to the remote repository, and perform branch cleanup.
10
-
11
- Primary behavior now lives in:
12
-
13
- ```text
14
- .agents/skills/release-git-operations/SKILL.md
15
- ```
16
-
17
- Treat this workflow file as a compatibility wrapper around that skill in `merge` mode.
18
-
19
- In DevFlow 2.0, this is a release-adjacent workflow. It should happen only after review and verification evidence are already in place.
20
-
21
- ---
22
-
23
- ## Internal Process
24
-
25
- You are an orchestrator. Your goal is to safely integrate code and clean up local or remote branches without skipping quality gates.
26
-
27
- ### Phase 1: Pre-flight Validation
28
- **Call Agent**: `prp-core-git-committer` or `orchestrator`
29
-
30
- - Check the current Git branch and ensure you are not already on `main` or `master`.
31
- - Capture the feature branch name.
32
- - Verify the working directory is clean.
33
- - Confirm there are no uncommitted changes hiding outside the intended merge.
34
- - Confirm the work has already passed the expected review and verification path.
35
-
36
- ### Phase 2: Switch And Update Base
37
-
38
- - Checkout the target base branch.
39
- - Fetch and pull the latest changes from the remote base branch to avoid drift before integration.
40
- - If the repository uses a protected or queue-based merge model, follow that instead of forcing a local-only merge pattern.
41
-
42
- ### Phase 3: Integration
43
-
44
- - Merge the feature branch into the base branch using the repository-standard strategy.
45
- - Use standard merge, squash, or rebase-based merge only if that matches project policy.
46
- - Push the updated base branch to the remote repository when appropriate.
47
- - If conflicts appear, stop and route back to implementation or follow-up work instead of hand-waving them away.
48
-
49
- ### Phase 4: Cleanup
50
-
51
- - Safely delete the local feature branch only after the merge is confirmed.
52
- - Optionally delete the remote feature branch if repository policy allows it.
53
- - Switch back to the base branch as the active working branch.
54
-
55
- ---
56
-
57
- ## Relationship To DevFlow 2.0
58
-
59
- - Classification: Companion command
60
- - Mainline status: Release support command, not a numbered stage
61
- - Typical entry points: after `PR` and review gates are complete
62
- - Typical handoff targets: `70-release`, `Wiki`
63
-
64
- ## Sources
65
-
66
- - `AGENTS.md`
67
- - `.agents/skills/release-git-operations/SKILL.md`
68
- - `.agents/skills/git-workflow-and-versioning/SKILL.md`
69
- - Related commands: `PR`, `PR-Review`, `PR-Followup`, `60-report`, `70-release`
70
-
71
- ## Next Workflow Recommendation
72
-
73
- - **Primary**: `70-release`
74
- - **Why**: after merge, the remaining work is usually release execution, deployment coordination, or final packaging against the already aligned report.
75
- - **Alternative**: `60-report` if merge outcomes changed the story enough that the final summary must be refreshed first.
76
-