@mrciphersmith/keryx 0.2.97 → 0.2.99

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 (210) hide show
  1. package/dist/cli.js +4583 -2702
  2. package/dist/core.js +40 -2
  3. package/package.json +1 -1
  4. package/src/gdskills/bundled/rules/core/api-contracts.mdc +1 -0
  5. package/src/gdskills/bundled/rules/core/cli-interface-design.mdc +237 -0
  6. package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +1 -0
  7. package/src/gdskills/bundled/rules/core/database-patterns.mdc +1 -0
  8. package/src/gdskills/bundled/rules/core/definition-of-done.mdc +116 -0
  9. package/src/gdskills/bundled/rules/core/documentation-management.mdc +33 -38
  10. package/src/gdskills/bundled/rules/core/error-handling.mdc +1 -11
  11. package/src/gdskills/bundled/rules/core/execution-metrics.md +1 -2
  12. package/src/gdskills/bundled/rules/core/frontend-assistant.mdc +1 -0
  13. package/src/gdskills/bundled/rules/core/git-concurrency.mdc +101 -0
  14. package/src/gdskills/bundled/rules/core/implementation-plans.mdc +23 -11
  15. package/src/gdskills/bundled/rules/core/mobx-store-template.mdc +1 -0
  16. package/src/gdskills/bundled/rules/core/nestjs-dto.mdc +1 -0
  17. package/src/gdskills/bundled/rules/core/playwright-testing.mdc +1 -0
  18. package/src/gdskills/bundled/rules/core/requirements-management.mdc +15 -11
  19. package/src/gdskills/bundled/rules/core/rule-management-workflow.mdc +29 -14
  20. package/src/gdskills/bundled/rules/core/shared-definitions.mdc +1 -1
  21. package/src/gdskills/bundled/rules/core/skill-lifecycle.mdc +9 -5
  22. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +156 -23
  23. package/src/gdskills/bundled/rules/core/storybook-guidelines.mdc +1 -0
  24. package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +9 -2
  25. package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +42 -5
  26. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +67 -74
  27. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +24 -8
  28. package/src/gdskills/bundled/skills/orchestration/context-collector/orchestrator-prompt.md +2 -2
  29. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.detail.md +12 -22
  30. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +44 -31
  31. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.md +2 -2
  32. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.template.md +1 -1
  33. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/input-contract.schema.json +4 -4
  34. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/orchestrator-prompt.md +2 -2
  35. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +20 -6
  36. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +67 -9
  37. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +6 -6
  38. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
  39. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +45 -5
  40. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +88 -32
  41. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +52 -41
  42. package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +32 -1
  43. package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +16 -0
  44. package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +16 -0
  45. package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +16 -0
  46. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +17 -0
  47. package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +16 -0
  48. package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +16 -0
  49. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +29 -4
  50. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +17 -0
  51. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +17 -0
  52. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +17 -0
  53. package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +32 -2
  54. package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +14 -2
  55. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +30 -8
  56. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +33 -7
  57. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +16 -0
  58. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +16 -0
  59. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +16 -0
  60. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +17 -0
  61. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +17 -0
  62. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +17 -0
  63. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +27 -10
  64. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +16 -0
  65. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +16 -0
  66. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +16 -0
  67. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +16 -0
  68. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +16 -0
  69. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +16 -0
  70. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +4 -0
  71. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +4 -0
  72. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +4 -0
  73. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +4 -0
  74. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +4 -0
  75. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +4 -0
  76. package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +31 -4
  77. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +27 -3
  78. package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +29 -4
  79. package/src/gdskills/bundled/skills/quality/api-truth/SKILL.md +226 -0
  80. package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +25 -5
  81. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +26 -5
  82. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +25 -4
  83. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +26 -5
  84. package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +27 -4
  85. package/src/gdskills/bundled/skills/quality/deprecation-path/SKILL.md +268 -0
  86. package/src/gdskills/bundled/skills/quality/fresh-eyes/SKILL.md +190 -0
  87. package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +24 -3
  88. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +30 -9
  89. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +25 -5
  90. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +27 -4
  91. package/src/gdskills/bundled/skills/quality/push/SKILL.md +25 -4
  92. package/src/gdskills/bundled/skills/quality/root-cause/SKILL.md +204 -0
  93. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +25 -4
  94. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +31 -5
  95. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +32 -11
  96. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +42 -7
  97. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +43 -3
  98. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +46 -4
  99. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +46 -6
  100. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +5 -5
  101. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +5 -6
  102. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +6 -6
  103. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +37 -3
  104. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +38 -4
  105. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +4 -6
  106. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +37 -3
  107. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +5 -7
  108. package/src/gdskills/bundled/skills/review/review-layout/SKILL.md +24 -3
  109. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +5 -5
  110. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +49 -64
  111. package/src/gdskills/bundled/skills/review/review-orchestrator/input-contract.schema.json +1 -2
  112. package/src/gdskills/bundled/skills/review/review-orchestrator/review-context.schema.json +1 -5
  113. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +53 -9
  114. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +11 -11
  115. package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +9 -8
  116. package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +33 -2
  117. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +6 -4
  118. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +5 -5
  119. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +41 -3
  120. package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +2 -2
  121. package/src/gdskills/bundled/rules/core/review-agent-profile.mdc +0 -49
  122. package/src/gdskills/bundled/rules/core/review-strict-profile.mdc +0 -48
  123. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +0 -353
  124. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +0 -353
  125. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +0 -353
  126. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +0 -353
  127. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +0 -655
  128. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +0 -655
  129. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +0 -655
  130. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +0 -655
  131. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +0 -434
  132. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +0 -434
  133. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +0 -434
  134. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +0 -434
  135. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +0 -163
  136. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +0 -163
  137. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +0 -373
  138. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +0 -373
  139. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +0 -373
  140. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +0 -373
  141. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +0 -374
  142. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +0 -374
  143. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +0 -374
  144. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +0 -374
  145. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +0 -2190
  146. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +0 -2190
  147. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +0 -2190
  148. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +0 -2190
  149. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +0 -659
  150. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +0 -659
  151. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +0 -659
  152. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +0 -659
  153. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +0 -90
  154. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +0 -90
  155. package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +0 -187
  156. package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +0 -187
  157. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +0 -105
  158. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +0 -105
  159. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +0 -193
  160. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +0 -193
  161. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +0 -193
  162. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +0 -193
  163. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +0 -87
  164. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +0 -87
  165. package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +0 -100
  166. package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +0 -100
  167. package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +0 -84
  168. package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +0 -84
  169. package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +0 -66
  170. package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +0 -66
  171. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +0 -66
  172. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +0 -66
  173. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +0 -81
  174. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +0 -81
  175. package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +0 -70
  176. package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +0 -70
  177. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +0 -83
  178. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +0 -83
  179. package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +0 -75
  180. package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +0 -75
  181. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +0 -378
  182. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +0 -378
  183. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +0 -378
  184. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +0 -378
  185. package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +0 -52
  186. package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +0 -52
  187. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +0 -108
  188. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +0 -108
  189. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +0 -75
  190. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +0 -75
  191. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +0 -339
  192. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +0 -339
  193. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +0 -339
  194. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +0 -339
  195. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +0 -203
  196. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +0 -203
  197. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +0 -203
  198. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +0 -203
  199. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +0 -243
  200. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +0 -243
  201. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +0 -243
  202. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +0 -243
  203. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +0 -259
  204. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +0 -259
  205. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +0 -259
  206. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +0 -259
  207. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +0 -168
  208. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +0 -168
  209. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +0 -168
  210. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +0 -168
@@ -1,434 +0,0 @@
1
- ---
2
- name: feature-analyzer
3
- description: "Use when analyzing feature branch changes across repos, planning implementation, or understanding backend→frontend contracts. Requires the source repository, target repository, and branch as confirmed input; the skill's PRE-STEP validates them before any analysis."
4
- triggers:
5
- - "Analyze branch"
6
- - "Analyze changes"
7
- - "Analyze commit"
8
- - "Study changes"
9
- - "Cross-repo analysis"
10
- - "Backend to frontend analysis"
11
- - "Feature analyzer"
12
- metadata:
13
- author: "MrCipherSmith"
14
- version: "2.4.0"
15
- category: "analysis"
16
- compatible_harnesses: "cursor,codex,zed,opencode"
17
- license: "MIT"
18
- ---
19
-
20
- <SUBAGENT-STOP>
21
- If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
22
- This skill is for orchestrators and interactive session-level routing only.
23
- Proceed directly with your assigned task.
24
- </SUBAGENT-STOP>
25
-
26
- # Feature Analyzer
27
-
28
- ---
29
-
30
- ## Purpose
31
-
32
- Performs deep cross-repository analysis to understand business logic, architecture, API contracts, and implementation requirements. Generates structured documentation for both human developers and AI agents.
33
-
34
- **Two Analysis Modes:**
35
-
36
- **Mode A — Changes Analysis** (when base-branch provided):
37
- - Analyze what changed FROM base-branch TO current branch
38
- - Shows: additions, modifications, deletions
39
- - Use for: reviewing PRs, understanding feature implementation
40
-
41
- **Mode B — Current State Analysis** (when NO base-branch provided):
42
- - Analyze ENTIRE codebase as it exists NOW
43
- - Shows: existing functionality, architecture, patterns
44
- - Use for: understanding system, formalizing features, exploring codebase
45
-
46
- ## Input
47
-
48
- **Required context (ask before starting):**
49
- - Source repository path + GitHub repo + branch to analyze
50
- - Target repository path + current branch
51
- - Analysis mode (A: changes from base-branch, or B: current state)
52
- - Optional: GitHub Issue/PR URL, analysis focus keyword
53
-
54
- **Prepared input:** Use `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.template.md` to prepare structured input.
55
- **Example:** See `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.md` for a filled example.
56
-
57
- ---
58
-
59
- ## When to Use
60
-
61
- **Mode A — Changes Analysis:**
62
- - "Analyze feature branch changes from main"
63
- - "Review what changed in this PR"
64
- - "Compare feature-x with develop branch"
65
-
66
- **Mode B — Current State Analysis:**
67
- - "Analyze everything related to variables in pipelines"
68
- - "How does authentication work in this codebase?"
69
- - "Document the pipeline execution flow"
70
- - "Formalize the user management feature"
71
-
72
- ---
73
-
74
- ## User-Specified Analysis Focus
75
-
76
- When user specifies a focus area (e.g., "variables in pipelines"):
77
-
78
- **Priority Boost Rules:**
79
- - Files matching focus keywords → **Boost to P0** (even if normally P1/P2)
80
- - Files referencing focus entities → **+1 priority level**
81
- - Files in relevant directories → **+1 priority level**
82
-
83
- **Keyword extraction:** parse main concept ("variables") + context ("pipelines") from user request.
84
-
85
- > For detailed focus algorithm, bash search commands, and relationship mapping examples, see `SKILL.detail.md`.
86
-
87
- ---
88
-
89
- ## Workflow
90
-
91
- Copy this checklist and track progress based on your Analysis Mode:
92
-
93
- ### Mode A: Changes Analysis (with base-branch)
94
-
95
- ```
96
- Analysis Progress - Mode A (Changes):
97
- 🚫 PRE-STEP: VALIDATE CONTEXT
98
- □ Source repository path: _____________
99
- □ Target repository path: _____________
100
- □ Branch to analyze: _____________
101
- □ Base branch provided: _____________ (e.g., "main")
102
- □ Analysis Mode: A (Changes)
103
- □ User explicitly confirmed: _____________
104
- □ Step 0.1: Check for existing analysis (cache lookup)
105
- □ Step 0: Gather context (source, target, branch, base-branch, focus)
106
- □ Step 1: GitHub MCP availability check
107
- □ Step 2: Analyze GitHub issue/PR (if provided)
108
- □ Step 3: Calculate BASE_SHA from merge-base (last branching point)
109
- □ Step 4: Collect git changes (git diff BASE_SHA..HEAD)
110
- □ Step 5: Categorize changed files: P0/P1/P2; apply focus boost
111
- □ Step 6: Select 3-7 key files; Deep Dive — read selected files
112
- □ Step 7: Analyze related tests
113
- □ Step 8: Cross-repo dependency analysis
114
- □ Step 9: Intermediate review (show user, wait for confirmation)
115
- □ Step 10: Generate documentation
116
- □ Step 11: Final validation and delivery
117
- □ Step 12: Post-analysis (update doc registry)
118
- ```
119
-
120
- ### Mode B: Current State Analysis (without base-branch)
121
-
122
- ```
123
- Analysis Progress - Mode B (Current State):
124
- 🚫 PRE-STEP: VALIDATE CONTEXT
125
- □ Source repository path: _____________
126
- □ Target repository path: _____________
127
- □ Branch to analyze: _____________
128
- □ Base branch: NOT PROVIDED (Mode B)
129
- □ Analysis Mode: B (Current State)
130
- □ User explicitly confirmed: _____________
131
- □ Step 0.1: Check for existing analysis (cache lookup)
132
- □ Step 0: Gather context (source, target, branch, focus)
133
- □ Step 1: GitHub MCP availability check
134
- □ Step 2: Analyze GitHub issue/PR (if provided)
135
- □ Step 3: SKIP (no base-branch comparison)
136
- □ Step 4: Search ENTIRE codebase for focus-related files
137
- □ Step 5: Discover and categorize ALL relevant files: P0/P1/P2; apply focus boost
138
- □ Step 6: Select 3-10 key files; Deep Dive — read to understand functionality
139
- □ Step 6.5: FORMALIZE functionality (business logic, API contracts, state, data flow)
140
- □ Step 7: Analyze tests (understand coverage)
141
- □ Step 8: Cross-repo dependency analysis (find usages)
142
- □ Step 9: Intermediate review with formalization
143
- □ Step 10: Generate documentation (Feature Specification)
144
- □ Step 11: Final validation and delivery
145
- □ Step 12: Post-analysis
146
- ```
147
-
148
- ---
149
-
150
- ## Step 0: Context Gathering (MANDATORY)
151
-
152
- **CRITICAL**: User MUST specify both Source and Target repositories.
153
-
154
- **Ask all questions in one message:**
155
-
156
- ```
157
- For cross-repository analysis, I need:
158
-
159
- 1. **SOURCE Repository** (where to analyze):
160
- - Local path: ?
161
- - GitHub repo (owner/repo): ?
162
- - Branch to analyze: ?
163
-
164
- 2. **TARGET Repository** (where implementation will happen, if applicable):
165
- - Local path: ?
166
- - GitHub repo (owner/repo): ?
167
- - Current branch: ?
168
- - (Can be same as source for single-repo analysis)
169
-
170
- 3. **Analysis Mode**:
171
- A. Changes Analysis — compare against base-branch (what changed)
172
- - Base branch: ? (e.g., "main", "develop")
173
- B. Current State Analysis — analyze codebase as-is (no base branch needed)
174
-
175
- 4. **Ticket/Reference** (GitHub Issue/PR URL, optional): ?
176
-
177
- 5. **Analysis Focus** (optional): specific area, e.g., "variables in pipelines", "auth changes"
178
- ```
179
-
180
- **No default paths** — user must provide all locations explicitly.
181
-
182
- **Before Step 1, verify context is complete:**
183
-
184
- ```
185
- CONTEXT VALIDATION:
186
- IF Source, Target, or Branch is missing → STOP, ask for missing info
187
- IF Analysis mode not specified → ASK: Mode A (changes from base) or Mode B (current state)?
188
- IF Mode A and no base branch → ASK: "What is the base branch?"
189
- IF user says "just use current directory" → EXPLICITLY CONFIRM the path before proceeding
190
- ```
191
-
192
- > For detailed decision tree and conversation example, see `SKILL.detail.md`.
193
-
194
- ---
195
-
196
- ## Step 1: GitHub MCP Availability Check
197
-
198
- Before starting analysis:
199
- - Try to fetch simple repo info via GitHub MCP
200
- - If unavailable: notify user, offer Option A (restart MCP) or Option B (git-only, limited context)
201
-
202
- ---
203
-
204
- ## Step 2: GitHub Issue/PR Analysis (if provided)
205
-
206
- - Fetch Issue/PR and all comments via GitHub MCP
207
- - Understand business goal — what problem does the feature solve?
208
- - Extract acceptance criteria and requirements
209
-
210
- ---
211
-
212
- ## Step 3: Git Changes Collection
213
-
214
- **CRITICAL**: Find the last branching point (merge-base), NOT the current HEAD of the parent branch.
215
- This ensures you analyze only feature branch changes, not unrelated changes from other merged PRs.
216
-
217
- ```bash
218
- # Find branching point
219
- BASE_SHA="$(git merge-base HEAD <parent_branch>)"
220
-
221
- # Collect changes
222
- git log --oneline "${BASE_SHA}..HEAD"
223
- git diff --stat "${BASE_SHA}..HEAD"
224
- git diff --name-status "${BASE_SHA}..HEAD"
225
- git diff "${BASE_SHA}..HEAD"
226
- ```
227
-
228
- > For the full BASE_SHA detection algorithm (with fallback logic for main/master/upstream), see `SKILL.detail.md`.
229
-
230
- ---
231
-
232
- ## Step 4: File Categorization and Prioritization
233
-
234
- ### Priority Levels
235
-
236
- **P0 — must analyze**:
237
- - API contracts: DTOs, interfaces, type definitions
238
- - Public API endpoints (controllers, routes)
239
- - Database schema changes, auth changes, config changes
240
-
241
- **P1 — SHOULD ANALYZE (Important)**:
242
- - Business logic (services, use cases)
243
- - State management (stores, contexts)
244
- - Error handling, validation logic
245
-
246
- **P2 — NICE TO HAVE (Optional)**:
247
- - Pure UI components, refactoring, tests, docs, package updates
248
-
249
- ### Standard File Selection
250
-
251
- From P0: select up to 5 most important (sort by API contracts → business logic → infrastructure).
252
- From P1: select up to 3 if P0 < 3. Skip P2 unless P0+P1 < 3.
253
-
254
- When focus specified: boost files matching focus keywords to P0; select ALL focus-matching P0 files.
255
-
256
- > For the full focus-based selection algorithm with examples, see `SKILL.detail.md`.
257
-
258
- ---
259
-
260
- ## Step 5: Deep Dive Protocol
261
-
262
- **A git diff alone does not support a conclusion. Also do this:**
263
-
264
- 1. **Read selected files**:
265
- - Small/medium files: read completely
266
- - Large files (> 500 lines): use outline/grep to locate relevant sections, then read only those ranges
267
- 2. **Understand context**: architecture role, dependencies, what depends on it
268
- 3. **Find and analyze tests**: look for matching test files, understand coverage
269
- 4. **Check rules compliance**: verify against `code-style-patterns.mdc`
270
-
271
- ---
272
-
273
- ## Step 6: Cross-Repository Analysis (Source → Target)
274
-
275
- 1. **Dependency search**: find all target files importing changed DTOs/APIs from source
276
- 2. **Contract divergence**: compare new source contracts with current target implementation
277
- 3. **Target deep dive**: read 2-3 key components that will need changes
278
- 4. **Target rules compliance**: check `.cursor/rules/core/*.mdc` in target repo
279
-
280
- ---
281
-
282
- ## Step 7: UI Analysis (if applicable)
283
-
284
- Check `AGENTS.md` for available tools (`playwright-testing.mdc`, `storybook-guidelines.mdc`). Analyze visual regression requirements, component behavior changes, accessibility impact.
285
-
286
- ---
287
-
288
- ## Step 8: Integration with Other Skills
289
-
290
- Before finalizing, consider running:
291
- - `skills/review/code-style-review` — if architecture changes detected
292
- - `skills/review/code-ai-review` — for self-validation of findings
293
- - `skills/review/code-mobx-store-review` — if store changes found
294
-
295
- ---
296
-
297
- ## Step 9: Intermediate Review
298
-
299
- After completing analysis, **show user** before generating full report:
300
-
301
- ```
302
- ═══════════════════════════════════════════════
303
- INTERMEDIATE ANALYSIS SUMMARY
304
- ═══════════════════════════════════════════════
305
-
306
- Scope:
307
- - Source: [repo] @ [branch]
308
- - Target: [repo] @ [branch]
309
- - Files analyzed: [N] (P0: [N], P1: [N])
310
- - BASE_SHA: [sha]
311
-
312
- Key Findings:
313
- 1. [Brief finding 1]
314
- 2. [Brief finding 2]
315
-
316
- Cross-Repo Impact:
317
- - [ ] Breaking API changes detected
318
- - [ ] New endpoints to implement
319
- - [ ] DTO changes affecting frontend
320
-
321
- Estimated Complexity: [Low/Medium/High]
322
-
323
- Continue to full documentation? [Y/n]
324
- ═══════════════════════════════════════════════
325
- ```
326
-
327
- Wait for user confirmation before generating full report.
328
-
329
- ---
330
-
331
- ## Step 10: Documentation Generation
332
-
333
- ### Output Structure
334
-
335
- ```
336
- <DOCS_ROOT>/analysis/<feature-name>-<YYYY-MM-DD>/
337
- ├── README.md # Index and navigation
338
- ├── report/
339
- │ ├── en/report.md # English for humans
340
- │ ├── ru/report.md # Russian for humans
341
- │ └── ai/report.md # Structured for AI agents (EN)
342
- ├── plans/
343
- │ ├── en/implementation-plan.md
344
- │ ├── ru/implementation-plan.md
345
- │ └── ai/implementation-plan.md
346
- ├── contracts/
347
- │ ├── api-changes.md # API contract diff
348
- │ └── dto-comparison.md # Before/after DTOs
349
- └── metrics/
350
- └── analysis-metrics.md # Analysis metadata
351
- ```
352
-
353
- The AI-readable format (`report/ai/`, `plans/ai/`) uses Gherkin-style scenarios.
354
- > For full Gherkin output format and syntax rules, see `SKILL.detail.md`.
355
-
356
- ---
357
-
358
- ## Step 11: Content Requirements
359
-
360
- - Every claim MUST reference specific code: `[filename.ts:L123](file:///absolute/path#L123)`
361
- - Minimum 3 code examples per report
362
- - Mermaid diagrams for architecture, tables for DTO changes, flowcharts for data flow
363
- - Multi-language: `en/` for humans, `ru/` for humans, `ai/` for AI agents
364
-
365
- ---
366
-
367
- ## Step 12: Error Handling
368
-
369
- | Situation | Fallback |
370
- |-----------|----------|
371
- | GitHub MCP unavailable | Use git history only; notify user |
372
- | No tests found | Note risk, recommend coverage |
373
- | Cannot determine BASE_SHA | Ask user for parent branch, or use `--first-parent` estimate |
374
- | Empty diff | Check staged (`--cached`), untracked (`git status`), wrong branch |
375
- | Cross-repo access denied | Ask for manual path, or do source-only analysis |
376
-
377
- ---
378
-
379
- ## Step 13: Analysis Metrics
380
-
381
- Track and include in `metrics/analysis-metrics.md`:
382
- - Duration, files analyzed (P0/P1/P2), lines changed
383
- - Cross-repo dependencies, API endpoints changed, DTOs modified
384
- - Breaking changes count, test coverage %, risk level
385
- - Complexity score: `(P0×3) + (P1×2) + (P2×1) + (breaking_changes×5)` — 0-10 low, 11-25 medium, 26+ high
386
-
387
- ---
388
-
389
- ## Step 14: Validation Checklist
390
-
391
- Before finalizing:
392
- - [ ] All P0 files analyzed completely
393
- - [ ] Target repository analyzed (if cross-repo)
394
- - [ ] Minimum 3 code examples included
395
- - [ ] All file references include line numbers
396
- - [ ] API contracts documented
397
- - [ ] Breaking changes clearly identified
398
- - [ ] Implementation plan provided
399
- - [ ] Metrics calculated
400
- - [ ] User approved intermediate review
401
-
402
- ---
403
-
404
- ## Step 15: Post-Analysis
405
-
406
- Follow `documentation-management.mdc`: update `<DOCS_ROOT>/readme.md`, add entry to analysis index, tag with keywords.
407
-
408
- ---
409
-
410
- ## Rules and Guidelines
411
-
412
- 1. **Always follow** `documentation-management.mdc` for doc structure
413
- 2. **Always check** `code-style-patterns.mdc` for compliance
414
- 3. **Always use** AGENTS.md to discover available skills and tools
415
- 4. **Never assume** — ask user when unclear
416
- 5. **Never skip** intermediate review for complex analyses (P0 files > 3)
417
- 6. **Always provide** concrete, actionable recommendations
418
- 7. **Always include** both human-readable and AI-readable formats
419
-
420
- ---
421
-
422
- ## Success Criteria
423
-
424
- Analysis is successful when:
425
- - Business logic is fully understood and documented
426
- - API contracts are clearly specified
427
- - Breaking changes are identified
428
- - Implementation plan is actionable
429
- - User confirms understanding via intermediate review
430
- - All P0 files analyzed completely
431
-
432
- ---
433
-
434
- > **Extended documentation**: detailed analysis mode descriptions, file selection algorithms, Gherkin output format, cache/existing-report handling, and full examples are in `SKILL.detail.md`.