@compilr-dev/agents-coding-go 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.
- package/dist/skills/go-best-practices.d.ts.map +1 -1
- package/dist/skills/go-best-practices.js +12 -1
- package/dist/skills/go-code-health.d.ts.map +1 -1
- package/dist/skills/go-code-health.js +14 -1
- package/dist/skills/go-code-structure.d.ts.map +1 -1
- package/dist/skills/go-code-structure.js +12 -1
- package/dist/skills/go-dependency-audit.d.ts.map +1 -1
- package/dist/skills/go-dependency-audit.js +12 -1
- package/dist/skills/go-refactor-impact.d.ts.map +1 -1
- package/dist/skills/go-refactor-impact.js +12 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-best-practices.d.ts","sourceRoot":"","sources":["../../src/skills/go-best-practices.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"go-best-practices.d.ts","sourceRoot":"","sources":["../../src/skills/go-best-practices.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,oBAAoB,qCAkF/B,CAAC"}
|
|
@@ -9,7 +9,18 @@ export const goBestPracticesSkill = defineSkill({
|
|
|
9
9
|
description: "Go-specific coding guidance and analysis workflow",
|
|
10
10
|
version: "1.0.0",
|
|
11
11
|
tags: ["python", "best-practices", "analysis"],
|
|
12
|
-
prompt: `You are in Go analysis mode. Use these tools for comprehensive code understanding
|
|
12
|
+
prompt: `You are in Go analysis mode. Use these tools for comprehensive code understanding.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
- Reviewing Go code for style and best practices
|
|
16
|
+
- Onboarding to a Go codebase
|
|
17
|
+
- Learning idiomatic Go patterns and conventions
|
|
18
|
+
- Code review focusing on Go idioms
|
|
19
|
+
|
|
20
|
+
## When NOT to Use
|
|
21
|
+
- Need detailed code health metrics → use go-code-health skill
|
|
22
|
+
- Need to understand dependencies → use go-dependency-audit skill
|
|
23
|
+
- Planning a refactor → use go-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":"go-code-health.d.ts","sourceRoot":"","sources":["../../src/skills/go-code-health.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"go-code-health.d.ts","sourceRoot":"","sources":["../../src/skills/go-code-health.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,iBAAiB,qCAuN5B,CAAC"}
|
|
@@ -9,7 +9,20 @@ export const goCodeHealthSkill = defineSkill({
|
|
|
9
9
|
description: "Comprehensive Go code quality and health analysis",
|
|
10
10
|
version: "1.1.0",
|
|
11
11
|
tags: ["python", "code-health", "quality", "analysis"],
|
|
12
|
-
prompt: `You are in Go code health analysis mode. Use these tools systematically
|
|
12
|
+
prompt: `You are in Go 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 go-code-structure skill
|
|
24
|
+
- Planning specific refactoring → use go-refactor-impact skill first
|
|
25
|
+
- Checking go.mod package vulnerabilities → use dependency-management skill (from core)
|
|
13
26
|
|
|
14
27
|
## Health Check Workflow
|
|
15
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-code-structure.d.ts","sourceRoot":"","sources":["../../src/skills/go-code-structure.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"go-code-structure.d.ts","sourceRoot":"","sources":["../../src/skills/go-code-structure.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,oBAAoB,qCA+J/B,CAAC"}
|
|
@@ -9,7 +9,18 @@ export const goCodeStructureSkill = defineSkill({
|
|
|
9
9
|
description: "Analyze Go codebase structure and organization",
|
|
10
10
|
version: "1.0.0",
|
|
11
11
|
tags: ["python", "structure", "architecture", "analysis"],
|
|
12
|
-
prompt: `You are in Go code structure analysis mode. Use these tools systematically
|
|
12
|
+
prompt: `You are in Go code structure analysis mode. Use these tools systematically.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
- Onboarding to a new Go 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 go-code-health skill
|
|
22
|
+
- Planning specific changes → use go-refactor-impact skill first
|
|
23
|
+
- Need dependency analysis → use go-dependency-audit skill
|
|
13
24
|
|
|
14
25
|
## Structure Analysis Workflow
|
|
15
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-dependency-audit.d.ts","sourceRoot":"","sources":["../../src/skills/go-dependency-audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"go-dependency-audit.d.ts","sourceRoot":"","sources":["../../src/skills/go-dependency-audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,sBAAsB,qCA0PjC,CAAC"}
|
|
@@ -9,7 +9,18 @@ export const goDependencyAuditSkill = defineSkill({
|
|
|
9
9
|
description: "Audit Go imports and dependencies for issues",
|
|
10
10
|
version: "1.1.0",
|
|
11
11
|
tags: ["python", "dependencies", "imports", "audit"],
|
|
12
|
-
prompt: `You are in Go dependency audit mode. Use these tools systematically
|
|
12
|
+
prompt: `You are in Go dependency audit mode. Use these tools systematically.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
- Investigating circular import issues
|
|
16
|
+
- Auditing package 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 go-code-structure skill
|
|
22
|
+
- Looking for a specific function or type → use find_symbol_go directly
|
|
23
|
+
- Checking go.mod package vulnerabilities → use dependency-management skill (from core)
|
|
13
24
|
|
|
14
25
|
## Dependency Audit Workflow
|
|
15
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-refactor-impact.d.ts","sourceRoot":"","sources":["../../src/skills/go-refactor-impact.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"go-refactor-impact.d.ts","sourceRoot":"","sources":["../../src/skills/go-refactor-impact.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,qBAAqB,qCA4OhC,CAAC"}
|
|
@@ -9,7 +9,18 @@ export const goRefactorImpactSkill = defineSkill({
|
|
|
9
9
|
description: "Assess impact of Go code changes and refactoring",
|
|
10
10
|
version: "1.1.0",
|
|
11
11
|
tags: ["python", "refactoring", "impact", "analysis"],
|
|
12
|
-
prompt: `You are in Go refactor impact analysis mode. Use these tools systematically
|
|
12
|
+
prompt: `You are in Go refactor impact analysis mode. Use these tools systematically.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
- Planning to rename, move, or change a function/type/interface
|
|
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 go-code-structure skill
|
|
22
|
+
- Need to find where a symbol is used (not planning to change it) → use find_references_go directly
|
|
23
|
+
- Checking type hierarchy without planning changes → use get_interface_implementations_go 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-go",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Go analysis tools for AI agents - AST-based code analysis using Tree-sitter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"node": ">=18.0.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@compilr-dev/agents": "^0.3.
|
|
68
|
+
"@compilr-dev/agents": "^0.3.1"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"tree-sitter": "^0.25.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@anthropic-ai/sdk": "^0.30.1",
|
|
76
|
-
"@compilr-dev/agents": "^0.3.
|
|
76
|
+
"@compilr-dev/agents": "^0.3.1",
|
|
77
77
|
"@eslint/js": "^9.39.1",
|
|
78
78
|
"@types/node": "^24.10.1",
|
|
79
79
|
"@vitest/coverage-v8": "^3.2.4",
|