@compilr-dev/agents-coding-python 0.1.2 → 0.1.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"python-best-practices.d.ts","sourceRoot":"","sources":["../../src/skills/python-best-practices.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,wBAAwB,qCAuEnC,CAAC"}
1
+ {"version":3,"file":"python-best-practices.d.ts","sourceRoot":"","sources":["../../src/skills/python-best-practices.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,wBAAwB,qCAkFnC,CAAC"}
@@ -9,7 +9,18 @@ export const pythonBestPracticesSkill = defineSkill({
9
9
  description: "Python-specific coding guidance and analysis workflow",
10
10
  version: "1.0.0",
11
11
  tags: ["python", "best-practices", "analysis"],
12
- prompt: `You are in Python analysis mode. Use these tools for comprehensive code understanding:
12
+ prompt: `You are in Python analysis mode. Use these tools for comprehensive code understanding.
13
+
14
+ ## When to Use
15
+ - Reviewing Python code for style and best practices
16
+ - Onboarding to a Python codebase
17
+ - Learning Pythonic patterns and conventions
18
+ - Code review focusing on Python idioms
19
+
20
+ ## When NOT to Use
21
+ - Need detailed code health metrics → use python-code-health skill
22
+ - Need to understand dependencies → use python-dependency-audit skill
23
+ - Planning a refactor → use python-refactor-impact skill first
13
24
 
14
25
  ## Code Structure Analysis
15
26
  - **getFileStructure**: Get overview of classes, functions, imports, variables
@@ -1 +1 @@
1
- {"version":3,"file":"python-code-health.d.ts","sourceRoot":"","sources":["../../src/skills/python-code-health.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,qBAAqB,qCA0MhC,CAAC"}
1
+ {"version":3,"file":"python-code-health.d.ts","sourceRoot":"","sources":["../../src/skills/python-code-health.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,qBAAqB,qCAuNhC,CAAC"}
@@ -9,7 +9,20 @@ export const pythonCodeHealthSkill = defineSkill({
9
9
  description: "Comprehensive Python code quality and health analysis",
10
10
  version: "1.1.0",
11
11
  tags: ["python", "code-health", "quality", "analysis"],
12
- prompt: `You are in Python code health analysis mode. Use these tools systematically:
12
+ prompt: `You are in Python code health analysis mode. Use these tools systematically.
13
+
14
+ ## When to Use
15
+ - Conducting a code quality audit
16
+ - Finding complexity hotspots before refactoring
17
+ - Identifying dead code that can be removed
18
+ - Detecting code duplication and anti-patterns
19
+ - Preparing for a code review or tech debt assessment
20
+
21
+ ## When NOT to Use
22
+ - Need security-focused review → use security-review skill
23
+ - Want to understand code structure → use python-code-structure skill
24
+ - Planning specific refactoring → use python-refactor-impact skill first
25
+ - Checking pip package vulnerabilities → use dependency-management skill (from core)
13
26
 
14
27
  ## Health Check Workflow
15
28
 
@@ -1 +1 @@
1
- {"version":3,"file":"python-code-structure.d.ts","sourceRoot":"","sources":["../../src/skills/python-code-structure.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,wBAAwB,qCAoJnC,CAAC"}
1
+ {"version":3,"file":"python-code-structure.d.ts","sourceRoot":"","sources":["../../src/skills/python-code-structure.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,wBAAwB,qCA+JnC,CAAC"}
@@ -9,7 +9,18 @@ export const pythonCodeStructureSkill = defineSkill({
9
9
  description: "Analyze Python codebase structure and organization",
10
10
  version: "1.0.0",
11
11
  tags: ["python", "structure", "architecture", "analysis"],
12
- prompt: `You are in Python code structure analysis mode. Use these tools systematically:
12
+ prompt: `You are in Python code structure analysis mode. Use these tools systematically.
13
+
14
+ ## When to Use
15
+ - Onboarding to a new Python codebase
16
+ - Understanding project organization and architecture
17
+ - Before major refactoring
18
+ - Documentation generation
19
+
20
+ ## When NOT to Use
21
+ - Need code quality metrics → use python-code-health skill
22
+ - Planning specific changes → use python-refactor-impact skill first
23
+ - Need dependency analysis → use python-dependency-audit skill
13
24
 
14
25
  ## Structure Analysis Workflow
15
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"python-dependency-audit.d.ts","sourceRoot":"","sources":["../../src/skills/python-dependency-audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,0BAA0B,qCA+OrC,CAAC"}
1
+ {"version":3,"file":"python-dependency-audit.d.ts","sourceRoot":"","sources":["../../src/skills/python-dependency-audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,0BAA0B,qCA0PrC,CAAC"}
@@ -9,7 +9,18 @@ export const pythonDependencyAuditSkill = defineSkill({
9
9
  description: "Audit Python imports and dependencies for issues",
10
10
  version: "1.1.0",
11
11
  tags: ["python", "dependencies", "imports", "audit"],
12
- prompt: `You are in Python dependency audit mode. Use these tools systematically:
12
+ prompt: `You are in Python dependency audit mode. Use these tools systematically.
13
+
14
+ ## When to Use
15
+ - Investigating circular import issues
16
+ - Auditing module coupling before refactoring
17
+ - Understanding import relationships in a codebase
18
+ - Identifying heavy or duplicate third-party dependencies
19
+
20
+ ## When NOT to Use
21
+ - Just need to understand one file's structure → use python-code-structure skill
22
+ - Looking for a specific function or class → use find_symbol_python directly
23
+ - Checking pip package vulnerabilities → use dependency-management skill (from core)
13
24
 
14
25
  ## Dependency Audit Workflow
15
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"python-refactor-impact.d.ts","sourceRoot":"","sources":["../../src/skills/python-refactor-impact.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,yBAAyB,qCAiOpC,CAAC"}
1
+ {"version":3,"file":"python-refactor-impact.d.ts","sourceRoot":"","sources":["../../src/skills/python-refactor-impact.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,yBAAyB,qCA4OpC,CAAC"}
@@ -9,7 +9,18 @@ export const pythonRefactorImpactSkill = defineSkill({
9
9
  description: "Assess impact of Python code changes and refactoring",
10
10
  version: "1.1.0",
11
11
  tags: ["python", "refactoring", "impact", "analysis"],
12
- prompt: `You are in Python refactor impact analysis mode. Use these tools systematically:
12
+ prompt: `You are in Python refactor impact analysis mode. Use these tools systematically.
13
+
14
+ ## When to Use
15
+ - Planning to rename, move, or change a function/class
16
+ - Assessing risk before modifying public API
17
+ - Understanding what files will need updates
18
+ - Creating a refactoring checklist
19
+
20
+ ## When NOT to Use
21
+ - Just want to understand what a symbol does → use python-code-structure skill
22
+ - Need to find where a symbol is used (not planning to change it) → use find_references_python directly
23
+ - Checking class hierarchy without planning changes → use get_class_hierarchy_python directly
13
24
 
14
25
  ## Impact Analysis Workflow
15
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/agents-coding-python",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Python analysis tools for AI agents - AST-based code analysis using Tree-sitter",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -64,7 +64,7 @@
64
64
  "node": ">=18.0.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@compilr-dev/agents": "^0.3.0"
67
+ "@compilr-dev/agents": "^0.3.1"
68
68
  },
69
69
  "dependencies": {
70
70
  "tree-sitter": "^0.22.4",
@@ -72,7 +72,7 @@
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",