@haposoft/cafekit 0.3.7 → 0.3.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haposoft/cafekit",
3
- "version": "0.3.7",
3
+ "version": "0.3.11",
4
4
  "description": "Spec-Driven Development workflow for AI coding assistants. Supports Claude Code and Antigravity with spec-first and code-test-review workflows.",
5
5
  "author": "Haposoft <nghialt@haposoft.com>",
6
6
  "license": "MIT",
@@ -37,4 +37,4 @@
37
37
  "engines": {
38
38
  "node": ">=18.0.0"
39
39
  }
40
- }
40
+ }
@@ -1,12 +1,12 @@
1
1
  ---
2
- description: Phân tích tác động của code changes lên tính năng hành động người dùng
2
+ description: Analyze code change impacts on features and user actions
3
3
  allowed-tools: Read, Glob, Grep, Bash, WebSearch
4
4
  argument-hint: <feature-name> [--from <branch>]
5
5
  ---
6
6
 
7
- # /impact-analysis - Phân Tích Tác Động Tính Năng
7
+ # /impact-analysis - Feature Impact Analysis
8
8
 
9
- Sử dụng workflow này sau khi hoàn thành feature (sau `/code`) hoặc trước khi commit.
9
+ Use this workflow after completing a feature (after `/code`) or before committing.
10
10
 
11
11
  <background_information>
12
12
  - **Mission**: Comprehensive impact analysis for completed features to prevent regression bugs
@@ -16,8 +16,8 @@ Sử dụng workflow này sau khi hoàn thành feature (sau `/code`) hoặc trư
16
16
  - Test scenarios generated for all critical paths
17
17
  - Regression risks assessed with mitigation recommendations
18
18
  - Cross-referenced with spec artifacts when available
19
- - **Timing**: After implementing all tasks for a feature, before running `/test`
20
- - **Helper Scripts**: Optionally use advanced analysis scripts from `.claude/skills/impact-analysis/scripts/` for automated dependency analysis, AST-based semantic analysis, and risk scoring
19
+ - **Timing**: After implementing all tasks for a feature, before running tests
20
+ - **Helper Scripts**: Optionally use advanced analysis scripts from `.agent/skills/impact-analysis/scripts/` for automated dependency analysis, AST-based semantic analysis, and risk scoring
21
21
  </background_information>
22
22
 
23
23
  <instructions>
@@ -26,11 +26,11 @@ Analyze the impact of code changes for feature **$ARGUMENTS** to identify affect
26
26
 
27
27
  ## Helper Scripts (Optional Enhancement)
28
28
 
29
- If available in `.claude/skills/impact-analysis/scripts/`, these scripts provide advanced automated analysis:
29
+ If available in `.agent/skills/impact-analysis/scripts/`, these scripts provide advanced automated analysis:
30
30
 
31
31
  **1. Dependency Analysis**:
32
32
  ```bash
33
- .claude/skills/impact-analysis/scripts/find-dependencies.sh <file>
33
+ .agent/skills/impact-analysis/scripts/find-dependencies.sh <file>
34
34
  ```
35
35
  - Finds all files importing/using the changed file
36
36
  - Identifies API consumers and component usage
@@ -38,7 +38,7 @@ If available in `.claude/skills/impact-analysis/scripts/`, these scripts provide
38
38
 
39
39
  **2. AST-Based Analysis** (for TypeScript/JavaScript):
40
40
  ```bash
41
- node .claude/skills/impact-analysis/scripts/ast-analyze.js <file>
41
+ node .agent/skills/impact-analysis/scripts/ast-analyze.js <file>
42
42
  ```
43
43
  - Detects function signature changes
44
44
  - Identifies breaking changes
@@ -46,7 +46,7 @@ node .claude/skills/impact-analysis/scripts/ast-analyze.js <file>
46
46
 
47
47
  **3. Risk Calculation**:
48
48
  ```bash
49
- node .claude/skills/impact-analysis/scripts/calculate-risk.js
49
+ node .agent/skills/impact-analysis/scripts/calculate-risk.js
50
50
  ```
51
51
  - Calculates risk score (0-25)
52
52
  - Determines risk level (CRITICAL/HIGH/MEDIUM/LOW)
@@ -54,7 +54,7 @@ node .claude/skills/impact-analysis/scripts/calculate-risk.js
54
54
 
55
55
  **4. Complete Analysis**:
56
56
  ```bash
57
- .claude/skills/impact-analysis/scripts/run-analysis.sh
57
+ .agent/skills/impact-analysis/scripts/run-analysis.sh
58
58
  ```
59
59
  - Runs all techniques
60
60
  - Generates comprehensive markdown report
@@ -160,8 +160,7 @@ Scan file contents for keywords to detect additional features:
160
160
 
161
161
  If helper script available, run comprehensive analysis:
162
162
  ```bash
163
- # Run dependency analysis script for each changed file
164
- .claude/skills/impact-analysis/scripts/find-dependencies.sh <file>
163
+ .agent/skills/impact-analysis/scripts/find-dependencies.sh <file>
165
164
  ```
166
165
 
167
166
  **Manual Dependency Analysis** (fallback):
@@ -200,11 +199,8 @@ For each changed file, find:
200
199
 
201
200
  **Option 1: Use Helper Scripts** (if available):
202
201
  ```bash
203
- # Run AST analysis for TypeScript/JavaScript files
204
- node .claude/skills/impact-analysis/scripts/ast-analyze.js <file>
205
-
206
- # Run risk calculation
207
- node .claude/skills/impact-analysis/scripts/calculate-risk.js
202
+ node .agent/skills/impact-analysis/scripts/ast-analyze.js <file>
203
+ node .agent/skills/impact-analysis/scripts/calculate-risk.js
208
204
  ```
209
205
 
210
206
  **Option 2: Manual Detection** (fallback):
@@ -328,8 +324,7 @@ For each affected feature and user action, generate:
328
324
  **Automated Risk Assessment** (if helper script available):
329
325
 
330
326
  ```bash
331
- # Run comprehensive risk calculation
332
- node .claude/skills/impact-analysis/scripts/calculate-risk.js
327
+ node .agent/skills/impact-analysis/scripts/calculate-risk.js
333
328
 
334
329
  # Output includes:
335
330
  # - Risk score (0-25)