@compilr-dev/agents-coding-ts 0.1.2 → 0.1.3

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.
@@ -12,6 +12,19 @@ export const codeHealthSkill = defineSkill({
12
12
  description: 'Analyze codebase health: complexity, dead code, duplicates, and anti-patterns',
13
13
  prompt: `You are in CODE HEALTH ANALYSIS mode. Analyze the codebase for quality issues.
14
14
 
15
+ ## When to Use
16
+ - Conducting a code quality audit
17
+ - Finding complexity hotspots before refactoring
18
+ - Identifying dead code that can be removed
19
+ - Detecting code duplication and anti-patterns
20
+ - Preparing for a code review or tech debt assessment
21
+
22
+ ## When NOT to Use
23
+ - Need security-focused review → use security-review skill
24
+ - Want to understand code structure → use code-structure skill
25
+ - Planning specific refactoring → use refactor-impact skill first
26
+ - Checking npm package vulnerabilities → use dependency-management skill (from core)
27
+
15
28
  ## TOOLS TO USE
16
29
 
17
30
  1. **get_complexity**: Analyze code complexity
@@ -12,6 +12,16 @@ export const codeStructureSkill = defineSkill({
12
12
  description: 'Analyze and understand codebase structure quickly',
13
13
  prompt: `You are in CODE STRUCTURE ANALYSIS mode. Analyze the specified path to understand its structure.
14
14
 
15
+ ## When to Use
16
+ - Understanding a new file or module
17
+ - Exploring codebase architecture
18
+ - Finding entry points and exports
19
+
20
+ ## When NOT to Use
21
+ - Need to find a specific symbol → use code-navigation skill
22
+ - Need to refactor → use refactor-impact skill first
23
+ - Need dependency analysis → use dependency-audit skill
24
+
15
25
  ## TOOLS TO USE
16
26
 
17
27
  1. **get_file_structure**: Analyze a file's internal structure
@@ -12,6 +12,17 @@ export const dependencyAuditSkill = defineSkill({
12
12
  description: 'Audit module dependencies and identify potential issues',
13
13
  prompt: `You are in DEPENDENCY AUDIT mode. Analyze the project's module dependencies.
14
14
 
15
+ ## When to Use
16
+ - Investigating circular dependency issues
17
+ - Auditing module coupling before refactoring
18
+ - Understanding dependency relationships in a codebase
19
+ - Identifying heavy or duplicate external packages
20
+
21
+ ## When NOT to Use
22
+ - Just need to understand one file's structure → use code-structure skill
23
+ - Looking for a specific function or class → use code-navigation skill (find_symbol)
24
+ - Checking npm package vulnerabilities → use dependency-management skill (from core)
25
+
15
26
  ## TOOLS TO USE
16
27
 
17
28
  1. **get_dependency_graph**: Build a complete module dependency graph
@@ -12,6 +12,17 @@ export const refactorImpactSkill = defineSkill({
12
12
  description: 'Analyze the impact of refactoring a symbol across the codebase',
13
13
  prompt: `You are in REFACTOR IMPACT ANALYSIS mode. Analyze what would be affected by refactoring a symbol.
14
14
 
15
+ ## When to Use
16
+ - Planning to rename, move, or change a function/class/interface
17
+ - Assessing risk before modifying public API
18
+ - Understanding what files will need updates
19
+ - Creating a refactoring checklist
20
+
21
+ ## When NOT to Use
22
+ - Just want to understand what a symbol does → use code-structure skill
23
+ - Need to find where a symbol is used (not planning to change it) → use find_references directly
24
+ - Checking type hierarchy without planning changes → use type-analysis skill
25
+
15
26
  ## TOOLS TO USE
16
27
 
17
28
  1. **find_symbol**: Locate the symbol definition
@@ -12,6 +12,17 @@ export const typeAnalysisSkill = defineSkill({
12
12
  description: 'Analyze type hierarchies, interfaces, and their implementations',
13
13
  prompt: `You are in TYPE ANALYSIS mode. Analyze type relationships in the codebase.
14
14
 
15
+ ## When to Use
16
+ - Understanding interface implementations in the codebase
17
+ - Exploring class inheritance hierarchies
18
+ - Finding all concrete implementations of an abstract class
19
+ - Checking which classes implement a specific interface
20
+
21
+ ## When NOT to Use
22
+ - Planning to refactor a type → use refactor-impact skill first
23
+ - Need general file structure → use code-structure skill
24
+ - Looking for a specific symbol definition → use find_symbol directly
25
+
15
26
  ## TOOLS TO USE
16
27
 
17
28
  1. **get_type_hierarchy**: Analyze inheritance relationships
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/agents-coding-ts",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis, complexity metrics, and type hierarchy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -65,14 +65,14 @@
65
65
  "node": ">=18.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@compilr-dev/agents": "^0.3.0"
68
+ "@compilr-dev/agents": "^0.3.1"
69
69
  },
70
70
  "dependencies": {
71
71
  "typescript": "^5.3.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@anthropic-ai/sdk": "^0.30.1",
75
- "@compilr-dev/agents": "^0.3.0",
75
+ "@compilr-dev/agents": "^0.3.1",
76
76
  "@eslint/js": "^9.39.1",
77
77
  "@types/node": "^24.10.1",
78
78
  "@vitest/coverage-v8": "^3.2.4",