@h1dr0n/skill-pool 0.1.0

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 (189) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +296 -0
  3. package/bin/cli.js +157 -0
  4. package/package.json +41 -0
  5. package/skills/api/agents/backend-specialist.md +69 -0
  6. package/skills/api/agents/database-optimizer.md +176 -0
  7. package/skills/api/manifest.yaml +20 -0
  8. package/skills/api/rules/auth-security.md +45 -0
  9. package/skills/api/skills/api-patterns/SKILL.md +81 -0
  10. package/skills/api/skills/api-patterns/api-style.md +42 -0
  11. package/skills/api/skills/api-patterns/auth.md +24 -0
  12. package/skills/api/skills/api-patterns/documentation.md +26 -0
  13. package/skills/api/skills/api-patterns/graphql.md +41 -0
  14. package/skills/api/skills/api-patterns/rate-limiting.md +31 -0
  15. package/skills/api/skills/api-patterns/response.md +37 -0
  16. package/skills/api/skills/api-patterns/rest.md +40 -0
  17. package/skills/api/skills/api-patterns/scripts/api_validator.py +211 -0
  18. package/skills/api/skills/api-patterns/security-testing.md +122 -0
  19. package/skills/api/skills/api-patterns/trpc.md +41 -0
  20. package/skills/api/skills/api-patterns/versioning.md +22 -0
  21. package/skills/api/skills/database-patterns.md +126 -0
  22. package/skills/api/skills/deployment-patterns.md +105 -0
  23. package/skills/api/skills/docker-patterns.md +135 -0
  24. package/skills/common/agents/code-reviewer.md +78 -0
  25. package/skills/common/agents/planner.md +80 -0
  26. package/skills/common/agents/security-reviewer.md +82 -0
  27. package/skills/common/agents/software-architect.md +81 -0
  28. package/skills/common/manifest.yaml +25 -0
  29. package/skills/common/rules/coding-style.md +39 -0
  30. package/skills/common/rules/git-workflow.md +33 -0
  31. package/skills/common/rules/security.md +25 -0
  32. package/skills/common/skills/architecture/SKILL.md +55 -0
  33. package/skills/common/skills/architecture/context-discovery.md +43 -0
  34. package/skills/common/skills/architecture/examples.md +94 -0
  35. package/skills/common/skills/architecture/pattern-selection.md +68 -0
  36. package/skills/common/skills/architecture/patterns-reference.md +50 -0
  37. package/skills/common/skills/architecture/trade-off-analysis.md +77 -0
  38. package/skills/common/skills/brainstorming/SKILL.md +163 -0
  39. package/skills/common/skills/brainstorming/dynamic-questioning.md +350 -0
  40. package/skills/common/skills/clean-code.md +99 -0
  41. package/skills/common/skills/code-review-checklist.md +86 -0
  42. package/skills/common/skills/plan-writing/SKILL.md +152 -0
  43. package/skills/common/skills/skill-feedback.md +94 -0
  44. package/skills/common/skills/tdd-workflow.md +130 -0
  45. package/skills/common/skills/verification-loop.md +112 -0
  46. package/skills/cpp/agents/cpp-build-resolver.md +90 -0
  47. package/skills/cpp/agents/cpp-reviewer.md +72 -0
  48. package/skills/cpp/manifest.yaml +15 -0
  49. package/skills/cpp/skills/cpp-coding-standards.md +722 -0
  50. package/skills/cpp/skills/cpp-testing.md +323 -0
  51. package/skills/devops/agents/devops-automator.md +376 -0
  52. package/skills/devops/agents/sre.md +90 -0
  53. package/skills/devops/manifest.yaml +20 -0
  54. package/skills/devops/skills/deployment-patterns.md +427 -0
  55. package/skills/devops/skills/deployment-procedures/SKILL.md +241 -0
  56. package/skills/devops/skills/docker-patterns.md +364 -0
  57. package/skills/devops/skills/e2e-testing.md +326 -0
  58. package/skills/devops/skills/github-ops.md +144 -0
  59. package/skills/django/manifest.yaml +16 -0
  60. package/skills/django/skills/django-patterns.md +734 -0
  61. package/skills/django/skills/django-security.md +593 -0
  62. package/skills/django/skills/django-tdd.md +729 -0
  63. package/skills/django/skills/django-verification.md +469 -0
  64. package/skills/dotnet/agents/csharp-reviewer.md +101 -0
  65. package/skills/dotnet/manifest.yaml +14 -0
  66. package/skills/dotnet/skills/csharp-testing.md +321 -0
  67. package/skills/dotnet/skills/dotnet-patterns.md +321 -0
  68. package/skills/go/agents/code-reviewer.md +76 -0
  69. package/skills/go/agents/go-build-resolver.md +94 -0
  70. package/skills/go/agents/go-reviewer.md +76 -0
  71. package/skills/go/manifest.yaml +17 -0
  72. package/skills/go/rules/go-style.md +55 -0
  73. package/skills/go/skills/golang-patterns.md +674 -0
  74. package/skills/go/skills/golang-testing.md +720 -0
  75. package/skills/java/agents/java-build-resolver.md +153 -0
  76. package/skills/java/agents/java-reviewer.md +92 -0
  77. package/skills/java/manifest.yaml +18 -0
  78. package/skills/java/skills/java-coding-standards.md +147 -0
  79. package/skills/java/skills/jpa-patterns.md +151 -0
  80. package/skills/java/skills/springboot-patterns.md +314 -0
  81. package/skills/java/skills/springboot-security.md +272 -0
  82. package/skills/kotlin/agents/kotlin-build-resolver.md +118 -0
  83. package/skills/kotlin/agents/kotlin-reviewer.md +159 -0
  84. package/skills/kotlin/manifest.yaml +17 -0
  85. package/skills/kotlin/skills/kotlin-coroutines-flows.md +284 -0
  86. package/skills/kotlin/skills/kotlin-patterns.md +711 -0
  87. package/skills/kotlin/skills/kotlin-testing.md +824 -0
  88. package/skills/laravel/manifest.yaml +15 -0
  89. package/skills/laravel/skills/laravel-patterns.md +409 -0
  90. package/skills/laravel/skills/laravel-security.md +279 -0
  91. package/skills/laravel/skills/laravel-tdd.md +277 -0
  92. package/skills/laravel/skills/laravel-verification.md +173 -0
  93. package/skills/mobile/agents/dart-build-resolver.md +201 -0
  94. package/skills/mobile/agents/flutter-reviewer.md +243 -0
  95. package/skills/mobile/manifest.yaml +19 -0
  96. package/skills/mobile/skills/android-clean-architecture.md +339 -0
  97. package/skills/mobile/skills/dart-flutter-patterns.md +563 -0
  98. package/skills/mobile/skills/swiftui-patterns.md +259 -0
  99. package/skills/nestjs/manifest.yaml +13 -0
  100. package/skills/nestjs/skills/nestjs-patterns.md +230 -0
  101. package/skills/perl/manifest.yaml +13 -0
  102. package/skills/perl/skills/perl-patterns.md +504 -0
  103. package/skills/perl/skills/perl-security.md +503 -0
  104. package/skills/perl/skills/perl-testing.md +475 -0
  105. package/skills/python/agents/python-reviewer.md +98 -0
  106. package/skills/python/manifest.yaml +18 -0
  107. package/skills/python/rules/python-style.md +69 -0
  108. package/skills/python/skills/python-patterns/SKILL.md +441 -0
  109. package/skills/python/skills/python-patterns.md +90 -0
  110. package/skills/python/skills/python-testing.md +81 -0
  111. package/skills/rust/agents/rust-build-resolver.md +148 -0
  112. package/skills/rust/agents/rust-reviewer.md +94 -0
  113. package/skills/rust/manifest.yaml +16 -0
  114. package/skills/rust/rules/rust-style.md +107 -0
  115. package/skills/rust/skills/rust-patterns.md +499 -0
  116. package/skills/rust/skills/rust-testing.md +500 -0
  117. package/skills/security/agents/accessibility-auditor.md +316 -0
  118. package/skills/security/agents/security-reviewer.md +108 -0
  119. package/skills/security/manifest.yaml +19 -0
  120. package/skills/security/skills/red-team-tactics/SKILL.md +199 -0
  121. package/skills/security/skills/security-bounty-hunter.md +99 -0
  122. package/skills/security/skills/security-review.md +495 -0
  123. package/skills/security/skills/security-scan.md +165 -0
  124. package/skills/security/skills/vulnerability-scanner/SKILL.md +276 -0
  125. package/skills/security/skills/vulnerability-scanner/checklists.md +121 -0
  126. package/skills/security/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  127. package/skills/swift/manifest.yaml +16 -0
  128. package/skills/swift/skills/swift-actor-persistence.md +142 -0
  129. package/skills/swift/skills/swift-concurrency.md +216 -0
  130. package/skills/swift/skills/swift-protocol-di-testing.md +190 -0
  131. package/skills/swift/skills/swiftui-patterns.md +259 -0
  132. package/skills/unity/agents/game-designer.md +167 -0
  133. package/skills/unity/agents/unity-architect.md +52 -0
  134. package/skills/unity/agents/unity-editor-tool-developer.md +310 -0
  135. package/skills/unity/agents/unity-multiplayer-engineer.md +321 -0
  136. package/skills/unity/agents/unity-shader-graph-artist.md +269 -0
  137. package/skills/unity/manifest.yaml +21 -0
  138. package/skills/unity/rules/csharp-patterns.md +48 -0
  139. package/skills/unity/rules/unity-specific.md +53 -0
  140. package/skills/unity/skills/systematic-debugging.md +92 -0
  141. package/skills/unity/skills/unity-architecture.md +173 -0
  142. package/skills/unreal/agents/level-designer.md +208 -0
  143. package/skills/unreal/agents/technical-artist.md +229 -0
  144. package/skills/unreal/agents/unreal-multiplayer-architect.md +313 -0
  145. package/skills/unreal/agents/unreal-systems-engineer.md +310 -0
  146. package/skills/unreal/agents/unreal-technical-artist.md +256 -0
  147. package/skills/unreal/agents/unreal-world-builder.md +273 -0
  148. package/skills/unreal/manifest.yaml +21 -0
  149. package/skills/unreal/skills/unreal-patterns.md +183 -0
  150. package/skills/web/agents/frontend-specialist.md +71 -0
  151. package/skills/web/agents/ui-designer.md +383 -0
  152. package/skills/web/agents/ux-architect.md +469 -0
  153. package/skills/web/manifest.yaml +22 -0
  154. package/skills/web/rules/accessibility.md +54 -0
  155. package/skills/web/rules/css-performance.md +52 -0
  156. package/skills/web/skills/e2e-testing.md +132 -0
  157. package/skills/web/skills/frontend-design/SKILL.md +452 -0
  158. package/skills/web/skills/frontend-design/animation-guide.md +331 -0
  159. package/skills/web/skills/frontend-design/color-system.md +311 -0
  160. package/skills/web/skills/frontend-design/decision-trees.md +418 -0
  161. package/skills/web/skills/frontend-design/motion-graphics.md +306 -0
  162. package/skills/web/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  163. package/skills/web/skills/frontend-design/scripts/ux_audit.py +722 -0
  164. package/skills/web/skills/frontend-design/typography-system.md +345 -0
  165. package/skills/web/skills/frontend-design/ux-psychology.md +1116 -0
  166. package/skills/web/skills/frontend-design/visual-effects.md +383 -0
  167. package/skills/web/skills/react-nextjs.md +135 -0
  168. package/skills/web/skills/tailwind-patterns/SKILL.md +269 -0
  169. package/src/adapters/antigravity.js +164 -0
  170. package/src/adapters/claude.js +188 -0
  171. package/src/adapters/cursor.js +161 -0
  172. package/src/adapters/index.js +67 -0
  173. package/src/adapters/windsurf.js +158 -0
  174. package/src/commands/add.js +266 -0
  175. package/src/commands/create.js +127 -0
  176. package/src/commands/diff.js +78 -0
  177. package/src/commands/info.js +88 -0
  178. package/src/commands/init.js +224 -0
  179. package/src/commands/install.js +90 -0
  180. package/src/commands/list.js +54 -0
  181. package/src/commands/remove.js +101 -0
  182. package/src/commands/targets.js +32 -0
  183. package/src/commands/update.js +57 -0
  184. package/src/core/manifest.js +57 -0
  185. package/src/core/plugins.js +86 -0
  186. package/src/core/resolver.js +84 -0
  187. package/src/core/tracker.js +49 -0
  188. package/src/utils/fs.js +80 -0
  189. package/src/utils/git.js +52 -0
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: go-build-resolver
3
+ description: Go build, vet, and compilation error resolution specialist. Fixes build errors, go vet issues, and linter warnings with minimal changes. Use when Go builds fail.
4
+ tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
5
+ model: sonnet
6
+ ---
7
+
8
+ # Go Build Error Resolver
9
+
10
+ You are an expert Go build error resolution specialist. Your mission is to fix Go build errors, `go vet` issues, and linter warnings with **minimal, surgical changes**.
11
+
12
+ ## Core Responsibilities
13
+
14
+ 1. Diagnose Go compilation errors
15
+ 2. Fix `go vet` warnings
16
+ 3. Resolve `staticcheck` / `golangci-lint` issues
17
+ 4. Handle module dependency problems
18
+ 5. Fix type errors and interface mismatches
19
+
20
+ ## Diagnostic Commands
21
+
22
+ Run these in order:
23
+
24
+ ```bash
25
+ go build ./...
26
+ go vet ./...
27
+ staticcheck ./... 2>/dev/null || echo "staticcheck not installed"
28
+ golangci-lint run 2>/dev/null || echo "golangci-lint not installed"
29
+ go mod verify
30
+ go mod tidy -v
31
+ ```
32
+
33
+ ## Resolution Workflow
34
+
35
+ ```text
36
+ 1. go build ./... -> Parse error message
37
+ 2. Read affected file -> Understand context
38
+ 3. Apply minimal fix -> Only what's needed
39
+ 4. go build ./... -> Verify fix
40
+ 5. go vet ./... -> Check for warnings
41
+ 6. go test ./... -> Ensure nothing broke
42
+ ```
43
+
44
+ ## Common Fix Patterns
45
+
46
+ | Error | Cause | Fix |
47
+ |-------|-------|-----|
48
+ | `undefined: X` | Missing import, typo, unexported | Add import or fix casing |
49
+ | `cannot use X as type Y` | Type mismatch, pointer/value | Type conversion or dereference |
50
+ | `X does not implement Y` | Missing method | Implement method with correct receiver |
51
+ | `import cycle not allowed` | Circular dependency | Extract shared types to new package |
52
+ | `cannot find package` | Missing dependency | `go get pkg@version` or `go mod tidy` |
53
+ | `missing return` | Incomplete control flow | Add return statement |
54
+ | `declared but not used` | Unused var/import | Remove or use blank identifier |
55
+ | `multiple-value in single-value context` | Unhandled return | `result, err := func()` |
56
+ | `cannot assign to struct field in map` | Map value mutation | Use pointer map or copy-modify-reassign |
57
+ | `invalid type assertion` | Assert on non-interface | Only assert from `interface{}` |
58
+
59
+ ## Module Troubleshooting
60
+
61
+ ```bash
62
+ grep "replace" go.mod # Check local replaces
63
+ go mod why -m package # Why a version is selected
64
+ go get package@v1.2.3 # Pin specific version
65
+ go clean -modcache && go mod download # Fix checksum issues
66
+ ```
67
+
68
+ ## Key Principles
69
+
70
+ - **Surgical fixes only** -- don't refactor, just fix the error
71
+ - **Never** add `//nolint` without explicit approval
72
+ - **Never** change function signatures unless necessary
73
+ - **Always** run `go mod tidy` after adding/removing imports
74
+ - Fix root cause over suppressing symptoms
75
+
76
+ ## Stop Conditions
77
+
78
+ Stop and report if:
79
+ - Same error persists after 3 fix attempts
80
+ - Fix introduces more errors than it resolves
81
+ - Error requires architectural changes beyond scope
82
+
83
+ ## Output Format
84
+
85
+ ```text
86
+ [FIXED] internal/handler/user.go:42
87
+ Error: undefined: UserService
88
+ Fix: Added import "project/internal/service"
89
+ Remaining errors: 3
90
+ ```
91
+
92
+ Final: `Build Status: SUCCESS/FAILED | Errors Fixed: N | Files Modified: list`
93
+
94
+ For detailed Go error patterns and code examples, see `skill: golang-patterns`.
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: go-reviewer
3
+ description: Expert Go code reviewer specializing in idiomatic Go, concurrency patterns, error handling, and performance. Use for all Go code changes. MUST BE USED for Go projects.
4
+ tools: ["Read", "Grep", "Glob", "Bash"]
5
+ model: sonnet
6
+ ---
7
+
8
+ You are a senior Go code reviewer ensuring high standards of idiomatic Go and best practices.
9
+
10
+ When invoked:
11
+ 1. Run `git diff -- '*.go'` to see recent Go file changes
12
+ 2. Run `go vet ./...` and `staticcheck ./...` if available
13
+ 3. Focus on modified `.go` files
14
+ 4. Begin review immediately
15
+
16
+ ## Review Priorities
17
+
18
+ ### CRITICAL -- Security
19
+ - **SQL injection**: String concatenation in `database/sql` queries
20
+ - **Command injection**: Unvalidated input in `os/exec`
21
+ - **Path traversal**: User-controlled file paths without `filepath.Clean` + prefix check
22
+ - **Race conditions**: Shared state without synchronization
23
+ - **Unsafe package**: Use without justification
24
+ - **Hardcoded secrets**: API keys, passwords in source
25
+ - **Insecure TLS**: `InsecureSkipVerify: true`
26
+
27
+ ### CRITICAL -- Error Handling
28
+ - **Ignored errors**: Using `_` to discard errors
29
+ - **Missing error wrapping**: `return err` without `fmt.Errorf("context: %w", err)`
30
+ - **Panic for recoverable errors**: Use error returns instead
31
+ - **Missing errors.Is/As**: Use `errors.Is(err, target)` not `err == target`
32
+
33
+ ### HIGH -- Concurrency
34
+ - **Goroutine leaks**: No cancellation mechanism (use `context.Context`)
35
+ - **Unbuffered channel deadlock**: Sending without receiver
36
+ - **Missing sync.WaitGroup**: Goroutines without coordination
37
+ - **Mutex misuse**: Not using `defer mu.Unlock()`
38
+
39
+ ### HIGH -- Code Quality
40
+ - **Large functions**: Over 50 lines
41
+ - **Deep nesting**: More than 4 levels
42
+ - **Non-idiomatic**: `if/else` instead of early return
43
+ - **Package-level variables**: Mutable global state
44
+ - **Interface pollution**: Defining unused abstractions
45
+
46
+ ### MEDIUM -- Performance
47
+ - **String concatenation in loops**: Use `strings.Builder`
48
+ - **Missing slice pre-allocation**: `make([]T, 0, cap)`
49
+ - **N+1 queries**: Database queries in loops
50
+ - **Unnecessary allocations**: Objects in hot paths
51
+
52
+ ### MEDIUM -- Best Practices
53
+ - **Context first**: `ctx context.Context` should be first parameter
54
+ - **Table-driven tests**: Tests should use table-driven pattern
55
+ - **Error messages**: Lowercase, no punctuation
56
+ - **Package naming**: Short, lowercase, no underscores
57
+ - **Deferred call in loop**: Resource accumulation risk
58
+
59
+ ## Diagnostic Commands
60
+
61
+ ```bash
62
+ go vet ./...
63
+ staticcheck ./...
64
+ golangci-lint run
65
+ go build -race ./...
66
+ go test -race ./...
67
+ govulncheck ./...
68
+ ```
69
+
70
+ ## Approval Criteria
71
+
72
+ - **Approve**: No CRITICAL or HIGH issues
73
+ - **Warning**: MEDIUM issues only
74
+ - **Block**: CRITICAL or HIGH issues found
75
+
76
+ For detailed Go code examples and anti-patterns, see `skill: golang-patterns`.
@@ -0,0 +1,17 @@
1
+ name: go
2
+ version: 0.1.0
3
+ description: Go development - idiomatic patterns, testing, concurrency, code review
4
+ depends:
5
+ - common
6
+ tags:
7
+ - go
8
+ - golang
9
+ rules:
10
+ - rules/go-style.md
11
+ skills:
12
+ - skills/golang-patterns.md
13
+ - skills/golang-testing.md
14
+ agents:
15
+ - agents/go-reviewer.md
16
+ - agents/go-build-resolver.md
17
+ - agents/code-reviewer.md
@@ -0,0 +1,55 @@
1
+ # Go Coding Style
2
+
3
+ > This file extends [common/coding-style.md](../../../rules/common/coding-style.md) with Go-specific conventions.
4
+
5
+ ## Formatting
6
+
7
+ - Always run `gofmt` or `goimports` on all `.go` files before committing.
8
+ - Do not argue about formatting -- `gofmt` is the single source of truth.
9
+ - Use `goimports` to manage import grouping automatically.
10
+
11
+ ## Naming Conventions
12
+
13
+ - **Packages**: Short, lowercase, single-word names. No underscores or mixedCaps.
14
+ - Good: `http`, `user`, `auth`
15
+ - Bad: `httpHandler`, `user_service`, `authUtils`
16
+ - **Exported names**: PascalCase (`GetUser`, `Config`, `ErrNotFound`).
17
+ - **Unexported names**: camelCase (`parseConfig`, `defaultTimeout`).
18
+ - **Interfaces**: Name by behavior, not by the type they wrap.
19
+ - Single-method interfaces use the method name plus `-er` suffix: `Reader`, `Writer`, `Closer`.
20
+ - **Acronyms**: Keep consistent casing (`HTTP`, `ID`, `URL` -- not `Http`, `Id`, `Url`).
21
+ - **Error variables**: Prefix with `Err` (`ErrNotFound`, `ErrTimeout`).
22
+ - **Error types**: Suffix with `Error` (`ValidationError`, `TimeoutError`).
23
+
24
+ ## Error Handling
25
+
26
+ - Always check returned errors. Never discard with `_` unless justified in a comment.
27
+ - Wrap errors with `fmt.Errorf("context: %w", err)` to preserve the chain.
28
+ - Use `errors.Is` and `errors.As` for comparison -- not `==`.
29
+ - Error messages: lowercase, no trailing punctuation.
30
+ - Never use `panic` for recoverable errors. Reserve `panic` for truly unrecoverable programmer bugs.
31
+ - Return early on error to keep the happy path unindented.
32
+
33
+ ## Package Organization
34
+
35
+ - Use `cmd/` for executable entry points, `internal/` for private packages, `pkg/` for public libraries.
36
+ - Keep packages focused on a single responsibility.
37
+ - Define interfaces in the consumer package, not the provider.
38
+ - Avoid `init()` functions and package-level mutable state. Prefer dependency injection.
39
+
40
+ ## Concurrency
41
+
42
+ - Pass `context.Context` as the first parameter to functions that may block or need cancellation.
43
+ - Never store `context.Context` in a struct field.
44
+ - Use `defer mu.Unlock()` immediately after `mu.Lock()`.
45
+ - Prefer `errgroup` for coordinating goroutines with error propagation.
46
+ - Always provide a cancellation path for goroutines to prevent leaks.
47
+
48
+ ## Idiomatic Patterns
49
+
50
+ - Accept interfaces, return structs.
51
+ - Make the zero value useful.
52
+ - Prefer composition over inheritance (embedding).
53
+ - Use the functional options pattern for configurable constructors.
54
+ - Preallocate slices and maps when the size is known.
55
+ - Use `strings.Builder` for string concatenation in loops.