oh-my-customcode 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.
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/dist/cli/index.js +13299 -0
- package/dist/index.js +927 -0
- package/package.json +74 -0
- package/templates/.claude/contexts/dev.md +20 -0
- package/templates/.claude/contexts/ecomode.md +63 -0
- package/templates/.claude/contexts/index.yaml +41 -0
- package/templates/.claude/contexts/research.md +28 -0
- package/templates/.claude/contexts/review.md +23 -0
- package/templates/.claude/hooks/hooks.json +185 -0
- package/templates/.claude/hooks/hud/index.yaml +27 -0
- package/templates/.claude/hooks/hud/update-status.sh +32 -0
- package/templates/.claude/hooks/index.yaml +46 -0
- package/templates/.claude/hooks/memory-persistence/pre-compact.sh +37 -0
- package/templates/.claude/hooks/memory-persistence/session-end.sh +64 -0
- package/templates/.claude/hooks/memory-persistence/session-start.sh +41 -0
- package/templates/.claude/hooks/strategic-compact/suggest-compact.sh +50 -0
- package/templates/.claude/install-hooks.sh +100 -0
- package/templates/.claude/rules/MAY-optimization.md +93 -0
- package/templates/.claude/rules/MUST-agent-design.md +107 -0
- package/templates/.claude/rules/MUST-agent-identification.md +108 -0
- package/templates/.claude/rules/MUST-continuous-improvement.md +132 -0
- package/templates/.claude/rules/MUST-intent-transparency.md +199 -0
- package/templates/.claude/rules/MUST-language-policy.md +62 -0
- package/templates/.claude/rules/MUST-orchestrator-coordination.md +266 -0
- package/templates/.claude/rules/MUST-parallel-execution.md +341 -0
- package/templates/.claude/rules/MUST-permissions.md +84 -0
- package/templates/.claude/rules/MUST-safety.md +69 -0
- package/templates/.claude/rules/MUST-sync-verification.md +219 -0
- package/templates/.claude/rules/MUST-tool-identification.md +112 -0
- package/templates/.claude/rules/SHOULD-ecomode.md +145 -0
- package/templates/.claude/rules/SHOULD-error-handling.md +102 -0
- package/templates/.claude/rules/SHOULD-hud-statusline.md +89 -0
- package/templates/.claude/rules/SHOULD-interaction.md +103 -0
- package/templates/.claude/rules/SHOULD-memory-integration.md +114 -0
- package/templates/.claude/rules/SHOULD-pipeline-mode.md +165 -0
- package/templates/.claude/rules/index.yaml +125 -0
- package/templates/.claude/uninstall-hooks.sh +52 -0
- package/templates/CLAUDE.md.en +259 -0
- package/templates/CLAUDE.md.ko +259 -0
- package/templates/agents/index.yaml +237 -0
- package/templates/agents/infra-engineer/aws-expert/AGENT.md +47 -0
- package/templates/agents/infra-engineer/aws-expert/index.yaml +27 -0
- package/templates/agents/infra-engineer/docker-expert/AGENT.md +47 -0
- package/templates/agents/infra-engineer/docker-expert/index.yaml +27 -0
- package/templates/agents/manager/creator/AGENT.md +274 -0
- package/templates/agents/manager/creator/index.yaml +66 -0
- package/templates/agents/manager/gitnerd/AGENT.md +91 -0
- package/templates/agents/manager/gitnerd/index.yaml +55 -0
- package/templates/agents/manager/sauron/AGENT.md +153 -0
- package/templates/agents/manager/sauron/index.yaml +52 -0
- package/templates/agents/manager/supplier/AGENT.md +142 -0
- package/templates/agents/manager/supplier/index.yaml +31 -0
- package/templates/agents/manager/sync-checker/AGENT.md +34 -0
- package/templates/agents/manager/sync-checker/index.yaml +32 -0
- package/templates/agents/manager/updater/AGENT.md +125 -0
- package/templates/agents/manager/updater/index.yaml +31 -0
- package/templates/agents/orchestrator/dev-lead/AGENT.md +116 -0
- package/templates/agents/orchestrator/dev-lead/index.yaml +73 -0
- package/templates/agents/orchestrator/planner/AGENT.md +102 -0
- package/templates/agents/orchestrator/planner/index.yaml +38 -0
- package/templates/agents/orchestrator/qa-lead/AGENT.md +92 -0
- package/templates/agents/orchestrator/qa-lead/index.yaml +40 -0
- package/templates/agents/orchestrator/secretary/AGENT.md +132 -0
- package/templates/agents/orchestrator/secretary/index.yaml +55 -0
- package/templates/agents/qa-team/qa-engineer/AGENT.md +98 -0
- package/templates/agents/qa-team/qa-engineer/index.yaml +59 -0
- package/templates/agents/qa-team/qa-planner/AGENT.md +75 -0
- package/templates/agents/qa-team/qa-planner/index.yaml +47 -0
- package/templates/agents/qa-team/qa-writer/AGENT.md +98 -0
- package/templates/agents/qa-team/qa-writer/index.yaml +44 -0
- package/templates/agents/sw-architect/documenter/AGENT.md +120 -0
- package/templates/agents/sw-architect/documenter/index.yaml +39 -0
- package/templates/agents/sw-architect/speckit-agent/AGENT.md +127 -0
- package/templates/agents/sw-architect/speckit-agent/index.yaml +78 -0
- package/templates/agents/sw-engineer/backend/express-expert/AGENT.md +132 -0
- package/templates/agents/sw-engineer/backend/express-expert/index.yaml +36 -0
- package/templates/agents/sw-engineer/backend/fastapi-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/backend/fastapi-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/backend/go-backend-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/backend/go-backend-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/backend/nestjs-expert/AGENT.md +107 -0
- package/templates/agents/sw-engineer/backend/nestjs-expert/index.yaml +43 -0
- package/templates/agents/sw-engineer/backend/springboot-expert/AGENT.md +103 -0
- package/templates/agents/sw-engineer/backend/springboot-expert/index.yaml +69 -0
- package/templates/agents/sw-engineer/frontend/svelte-agent/AGENT.md +71 -0
- package/templates/agents/sw-engineer/frontend/svelte-agent/index.yaml +41 -0
- package/templates/agents/sw-engineer/frontend/vercel-agent/AGENT.md +67 -0
- package/templates/agents/sw-engineer/frontend/vercel-agent/index.yaml +43 -0
- package/templates/agents/sw-engineer/frontend/vuejs-agent/AGENT.md +71 -0
- package/templates/agents/sw-engineer/frontend/vuejs-agent/index.yaml +48 -0
- package/templates/agents/sw-engineer/language/golang-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/golang-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/java21-expert/AGENT.md +122 -0
- package/templates/agents/sw-engineer/language/java21-expert/index.yaml +51 -0
- package/templates/agents/sw-engineer/language/kotlin-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/kotlin-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/python-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/python-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/rust-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/rust-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/typescript-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/typescript-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/tooling/bun-expert/AGENT.md +73 -0
- package/templates/agents/sw-engineer/tooling/bun-expert/index.yaml +46 -0
- package/templates/agents/sw-engineer/tooling/npm-expert/AGENT.md +160 -0
- package/templates/agents/sw-engineer/tooling/npm-expert/index.yaml +45 -0
- package/templates/agents/sw-engineer/tooling/optimizer/AGENT.md +170 -0
- package/templates/agents/sw-engineer/tooling/optimizer/index.yaml +45 -0
- package/templates/agents/system/memory-keeper/AGENT.md +126 -0
- package/templates/agents/system/memory-keeper/index.yaml +45 -0
- package/templates/agents/system/naggy/AGENT.md +72 -0
- package/templates/agents/system/naggy/index.yaml +35 -0
- package/templates/commands/COMMANDS.md +136 -0
- package/templates/commands/creator/agent.md +121 -0
- package/templates/commands/dev/refactor.md +126 -0
- package/templates/commands/dev/review.md +82 -0
- package/templates/commands/git/branch.yaml +8 -0
- package/templates/commands/git/commit.yaml +4 -0
- package/templates/commands/git/pr.yaml +4 -0
- package/templates/commands/git/status.yaml +4 -0
- package/templates/commands/git/sync.yaml +4 -0
- package/templates/commands/index.yaml +225 -0
- package/templates/commands/intent/explain.md +144 -0
- package/templates/commands/memory/recall.md +164 -0
- package/templates/commands/memory/save.md +128 -0
- package/templates/commands/naggy/add.yaml +8 -0
- package/templates/commands/naggy/done.yaml +8 -0
- package/templates/commands/naggy/list.yaml +4 -0
- package/templates/commands/naggy/priority.yaml +11 -0
- package/templates/commands/naggy/remind.yaml +4 -0
- package/templates/commands/npm/audit.yaml +62 -0
- package/templates/commands/npm/publish.yaml +52 -0
- package/templates/commands/npm/version.yaml +62 -0
- package/templates/commands/optimize/analyze.yaml +34 -0
- package/templates/commands/optimize/bundle.yaml +50 -0
- package/templates/commands/optimize/report.yaml +56 -0
- package/templates/commands/pipeline/list.md +81 -0
- package/templates/commands/pipeline/run.md +127 -0
- package/templates/commands/sauron/quick.yaml +4 -0
- package/templates/commands/sauron/report.yaml +4 -0
- package/templates/commands/sauron/watch.yaml +4 -0
- package/templates/commands/supplier/audit.md +133 -0
- package/templates/commands/supplier/fix.md +121 -0
- package/templates/commands/sync/agents.yaml +4 -0
- package/templates/commands/sync/check.yaml +4 -0
- package/templates/commands/sync/commands.yaml +4 -0
- package/templates/commands/sync/docs.yaml +4 -0
- package/templates/commands/sync/fix.yaml +4 -0
- package/templates/commands/system/help.md +137 -0
- package/templates/commands/system/lists.md +86 -0
- package/templates/commands/system/status.md +163 -0
- package/templates/commands/updater/docs.md +165 -0
- package/templates/commands/updater/external.md +214 -0
- package/templates/guides/aws/common-patterns.md +169 -0
- package/templates/guides/aws/index.yaml +26 -0
- package/templates/guides/aws/well-architected.md +143 -0
- package/templates/guides/claude-code/01-overview.md +42 -0
- package/templates/guides/claude-code/03-tools.md +107 -0
- package/templates/guides/claude-code/04-agent-skills.md +90 -0
- package/templates/guides/claude-code/05-agent-sdk.md +129 -0
- package/templates/guides/claude-code/06-mcp.md +165 -0
- package/templates/guides/claude-code/07-prompt-engineering.md +100 -0
- package/templates/guides/claude-code/08-testing.md +58 -0
- package/templates/guides/claude-code/09-guardrails.md +80 -0
- package/templates/guides/claude-code/10-monitoring.md +89 -0
- package/templates/guides/claude-code/index.yaml +51 -0
- package/templates/guides/docker/compose-best-practices.md +284 -0
- package/templates/guides/docker/dockerfile-best-practices.md +262 -0
- package/templates/guides/docker/index.yaml +26 -0
- package/templates/guides/fastapi/best-practices.md +232 -0
- package/templates/guides/fastapi/index.yaml +21 -0
- package/templates/guides/go-backend/index.yaml +26 -0
- package/templates/guides/go-backend/project-layout.md +243 -0
- package/templates/guides/go-backend/uber-style.md +212 -0
- package/templates/guides/golang/concurrency.md +282 -0
- package/templates/guides/golang/effective-go.md +309 -0
- package/templates/guides/golang/error-handling.md +250 -0
- package/templates/guides/golang/index.yaml +27 -0
- package/templates/guides/index.yaml +101 -0
- package/templates/guides/kotlin/coding-conventions.md +247 -0
- package/templates/guides/kotlin/idioms.md +234 -0
- package/templates/guides/kotlin/index.yaml +26 -0
- package/templates/guides/python/index.yaml +26 -0
- package/templates/guides/python/pep8-style-guide.md +202 -0
- package/templates/guides/python/zen-of-python.md +79 -0
- package/templates/guides/rust/error-handling.md +262 -0
- package/templates/guides/rust/index.yaml +26 -0
- package/templates/guides/rust/ownership.md +180 -0
- package/templates/guides/springboot/best-practices.md +361 -0
- package/templates/guides/springboot/index.yaml +22 -0
- package/templates/guides/typescript/advanced-types.md +225 -0
- package/templates/guides/typescript/index.yaml +26 -0
- package/templates/guides/typescript/type-system.md +219 -0
- package/templates/guides/web-design/accessibility.md +66 -0
- package/templates/guides/web-design/index.yaml +20 -0
- package/templates/guides/web-design/performance.md +102 -0
- package/templates/pipelines/examples/code-review.yaml +66 -0
- package/templates/pipelines/index.yaml +18 -0
- package/templates/pipelines/templates/pipeline-template.yaml +50 -0
- package/templates/skills/backend/fastapi-best-practices/SKILL.md +269 -0
- package/templates/skills/backend/fastapi-best-practices/index.yaml +25 -0
- package/templates/skills/backend/go-backend-best-practices/SKILL.md +337 -0
- package/templates/skills/backend/go-backend-best-practices/index.yaml +26 -0
- package/templates/skills/backend/springboot-best-practices/SKILL.md +356 -0
- package/templates/skills/backend/springboot-best-practices/index.yaml +27 -0
- package/templates/skills/development/go-best-practices/SKILL.md +202 -0
- package/templates/skills/development/go-best-practices/index.yaml +25 -0
- package/templates/skills/development/kotlin-best-practices/SKILL.md +255 -0
- package/templates/skills/development/kotlin-best-practices/index.yaml +27 -0
- package/templates/skills/development/python-best-practices/SKILL.md +221 -0
- package/templates/skills/development/python-best-practices/index.yaml +25 -0
- package/templates/skills/development/react-best-practices/SKILL.md +100 -0
- package/templates/skills/development/react-best-practices/index.yaml +39 -0
- package/templates/skills/development/rust-best-practices/SKILL.md +266 -0
- package/templates/skills/development/rust-best-practices/index.yaml +26 -0
- package/templates/skills/development/typescript-best-practices/SKILL.md +320 -0
- package/templates/skills/development/typescript-best-practices/index.yaml +28 -0
- package/templates/skills/development/vercel-deploy/SKILL.md +73 -0
- package/templates/skills/development/vercel-deploy/index.yaml +30 -0
- package/templates/skills/development/web-design-guidelines/SKILL.md +117 -0
- package/templates/skills/development/web-design-guidelines/index.yaml +34 -0
- package/templates/skills/index.yaml +129 -0
- package/templates/skills/infrastructure/aws-best-practices/SKILL.md +279 -0
- package/templates/skills/infrastructure/aws-best-practices/index.yaml +27 -0
- package/templates/skills/infrastructure/docker-best-practices/SKILL.md +274 -0
- package/templates/skills/infrastructure/docker-best-practices/index.yaml +26 -0
- package/templates/skills/orchestration/intent-detection/SKILL.md +214 -0
- package/templates/skills/orchestration/intent-detection/index.yaml +30 -0
- package/templates/skills/orchestration/intent-detection/patterns/agent-triggers.yaml +333 -0
- package/templates/skills/orchestration/pipeline-execution/SKILL.md +188 -0
- package/templates/skills/orchestration/pipeline-execution/index.yaml +27 -0
- package/templates/skills/system/memory-management/SKILL.md +194 -0
- package/templates/skills/system/memory-management/index.yaml +30 -0
- package/templates/skills/system/result-aggregation/SKILL.md +163 -0
- package/templates/skills/system/result-aggregation/index.yaml +36 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Golang Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: Worker
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Go developer agent specialized in writing idiomatic, performant, and maintainable Go code following official best practices.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write idiomatic Go code following Effective Go guidelines
|
|
13
|
+
2. Review and refactor Go code for best practices
|
|
14
|
+
3. Design concurrent systems using goroutines and channels
|
|
15
|
+
4. Implement proper error handling patterns
|
|
16
|
+
5. Optimize Go applications for performance
|
|
17
|
+
6. Structure Go projects following standard layout
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Writing new Go applications or packages
|
|
22
|
+
- Reviewing existing Go code for improvements
|
|
23
|
+
- Implementing concurrent/parallel systems
|
|
24
|
+
- Debugging performance issues in Go
|
|
25
|
+
- Learning Go best practices
|
|
26
|
+
|
|
27
|
+
## Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Purpose |
|
|
30
|
+
|-------|---------|
|
|
31
|
+
| go-best-practices | Core Go development guidelines from Effective Go |
|
|
32
|
+
|
|
33
|
+
## Guides
|
|
34
|
+
|
|
35
|
+
| Guide | Purpose |
|
|
36
|
+
|-------|---------|
|
|
37
|
+
| golang | Reference documentation from official Go docs |
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
1. Understand requirements
|
|
43
|
+
2. Apply go-best-practices skill
|
|
44
|
+
3. Reference golang guide for specific patterns
|
|
45
|
+
4. Write/review code with idiomatic Go style
|
|
46
|
+
5. Ensure proper error handling and concurrency patterns
|
|
47
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Golang Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: golang-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert Go developer following Effective Go best practices
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write idiomatic Go code
|
|
13
|
+
- Review and refactor Go code
|
|
14
|
+
- Design concurrent systems
|
|
15
|
+
- Implement error handling patterns
|
|
16
|
+
- Optimize Go performance
|
|
17
|
+
- Structure Go projects
|
|
18
|
+
|
|
19
|
+
skills:
|
|
20
|
+
- name: go-best-practices
|
|
21
|
+
path: ../../../../skills/development/go-best-practices/
|
|
22
|
+
required: true
|
|
23
|
+
|
|
24
|
+
guides:
|
|
25
|
+
- name: golang
|
|
26
|
+
path: ../../../../guides/golang/
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Java 21 Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Java 21 developer specialized in modern Java features including Virtual Threads, Pattern Matching, Record Patterns, and Sequenced Collections.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write modern Java 21 code leveraging latest language features
|
|
13
|
+
2. Implement Virtual Threads (JEP 444) for scalable concurrent applications
|
|
14
|
+
3. Apply Pattern Matching for switch expressions and instanceof
|
|
15
|
+
4. Use Record Patterns (JEP 440) for data decomposition
|
|
16
|
+
5. Leverage Sequenced Collections (JEP 431) for ordered data structures
|
|
17
|
+
6. Follow Google Java Style Guide and best practices
|
|
18
|
+
7. Migrate legacy Java code to modern Java 21 idioms
|
|
19
|
+
|
|
20
|
+
## When to Use
|
|
21
|
+
|
|
22
|
+
- Writing new Java 21 applications or libraries
|
|
23
|
+
- Reviewing existing Java code for modernization opportunities
|
|
24
|
+
- Implementing high-concurrency systems with Virtual Threads
|
|
25
|
+
- Designing data-centric APIs with Records and Sealed Classes
|
|
26
|
+
- Migrating from older Java versions to Java 21
|
|
27
|
+
|
|
28
|
+
## Key Java 21 Features
|
|
29
|
+
|
|
30
|
+
| Feature | JEP | Description |
|
|
31
|
+
|---------|-----|-------------|
|
|
32
|
+
| Virtual Threads | JEP 444 | Lightweight threads for scalable concurrency |
|
|
33
|
+
| Pattern Matching for switch | - | Exhaustive switch with type patterns |
|
|
34
|
+
| Record Patterns | JEP 440 | Deconstruct record values in patterns |
|
|
35
|
+
| Sequenced Collections | JEP 431 | Collections with defined encounter order |
|
|
36
|
+
|
|
37
|
+
## Reference Documentation
|
|
38
|
+
|
|
39
|
+
| Resource | URL |
|
|
40
|
+
|----------|-----|
|
|
41
|
+
| JDK 21 Documentation | https://docs.oracle.com/en/java/javase/21/ |
|
|
42
|
+
| JDK 21 Guides | https://docs.oracle.com/en/java/javase/21/books.html |
|
|
43
|
+
| JEPs since JDK 17 | https://openjdk.org/projects/jdk/21/jeps-since-jdk-17 |
|
|
44
|
+
| Google Java Style Guide | https://google.github.io/styleguide/javaguide.html |
|
|
45
|
+
|
|
46
|
+
## Skills
|
|
47
|
+
|
|
48
|
+
| Skill | Purpose |
|
|
49
|
+
|-------|---------|
|
|
50
|
+
| java21-best-practices | Core Java 21 development guidelines |
|
|
51
|
+
|
|
52
|
+
## Guides
|
|
53
|
+
|
|
54
|
+
| Guide | Purpose |
|
|
55
|
+
|-------|---------|
|
|
56
|
+
| java21 | Reference documentation from official JDK 21 docs |
|
|
57
|
+
|
|
58
|
+
## Workflow
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
1. Understand requirements
|
|
62
|
+
2. Apply java21-best-practices skill
|
|
63
|
+
3. Reference java21 guide for specific patterns
|
|
64
|
+
4. Write/review code with modern Java 21 features
|
|
65
|
+
5. Ensure proper use of Virtual Threads, Pattern Matching, Records
|
|
66
|
+
6. Follow Google Java Style Guide for formatting
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Code Examples
|
|
70
|
+
|
|
71
|
+
### Virtual Threads (JEP 444)
|
|
72
|
+
|
|
73
|
+
```java
|
|
74
|
+
// Create virtual threads for high-concurrency tasks
|
|
75
|
+
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
|
|
76
|
+
IntStream.range(0, 10_000).forEach(i -> {
|
|
77
|
+
executor.submit(() -> {
|
|
78
|
+
Thread.sleep(Duration.ofSeconds(1));
|
|
79
|
+
return i;
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Record Patterns (JEP 440)
|
|
86
|
+
|
|
87
|
+
```java
|
|
88
|
+
record Point(int x, int y) {}
|
|
89
|
+
record Rectangle(Point topLeft, Point bottomRight) {}
|
|
90
|
+
|
|
91
|
+
static void printRectangle(Rectangle r) {
|
|
92
|
+
if (r instanceof Rectangle(Point(var x1, var y1), Point(var x2, var y2))) {
|
|
93
|
+
System.out.printf("Rectangle from (%d,%d) to (%d,%d)%n", x1, y1, x2, y2);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Pattern Matching for switch
|
|
99
|
+
|
|
100
|
+
```java
|
|
101
|
+
static String format(Object obj) {
|
|
102
|
+
return switch (obj) {
|
|
103
|
+
case Integer i -> String.format("int %d", i);
|
|
104
|
+
case Long l -> String.format("long %d", l);
|
|
105
|
+
case Double d -> String.format("double %f", d);
|
|
106
|
+
case String s -> String.format("String %s", s);
|
|
107
|
+
case null -> "null";
|
|
108
|
+
default -> obj.toString();
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Sequenced Collections (JEP 431)
|
|
114
|
+
|
|
115
|
+
```java
|
|
116
|
+
SequencedCollection<String> list = new ArrayList<>();
|
|
117
|
+
list.addFirst("first");
|
|
118
|
+
list.addLast("last");
|
|
119
|
+
String first = list.getFirst();
|
|
120
|
+
String last = list.getLast();
|
|
121
|
+
SequencedCollection<String> reversed = list.reversed();
|
|
122
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Java 21 Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: java21-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert Java 21 developer specialized in modern Java features
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write modern Java 21 code
|
|
13
|
+
- Implement Virtual Threads (JEP 444)
|
|
14
|
+
- Apply Pattern Matching for switch
|
|
15
|
+
- Use Record Patterns (JEP 440)
|
|
16
|
+
- Leverage Sequenced Collections (JEP 431)
|
|
17
|
+
- Follow Google Java Style Guide
|
|
18
|
+
- Migrate legacy Java to Java 21
|
|
19
|
+
|
|
20
|
+
features:
|
|
21
|
+
- name: Virtual Threads
|
|
22
|
+
jep: JEP 444
|
|
23
|
+
description: Lightweight threads for scalable concurrency
|
|
24
|
+
- name: Pattern Matching for switch
|
|
25
|
+
description: Exhaustive switch with type patterns
|
|
26
|
+
- name: Record Patterns
|
|
27
|
+
jep: JEP 440
|
|
28
|
+
description: Deconstruct record values in patterns
|
|
29
|
+
- name: Sequenced Collections
|
|
30
|
+
jep: JEP 431
|
|
31
|
+
description: Collections with defined encounter order
|
|
32
|
+
|
|
33
|
+
references:
|
|
34
|
+
- name: JDK 21 Documentation
|
|
35
|
+
url: https://docs.oracle.com/en/java/javase/21/
|
|
36
|
+
- name: JDK 21 Guides
|
|
37
|
+
url: https://docs.oracle.com/en/java/javase/21/books.html
|
|
38
|
+
- name: JEPs since JDK 17
|
|
39
|
+
url: https://openjdk.org/projects/jdk/21/jeps-since-jdk-17
|
|
40
|
+
- name: Google Java Style Guide
|
|
41
|
+
url: https://google.github.io/styleguide/javaguide.html
|
|
42
|
+
|
|
43
|
+
skills:
|
|
44
|
+
- name: java21-best-practices
|
|
45
|
+
path: ../../../../skills/development/java21-best-practices/
|
|
46
|
+
required: true
|
|
47
|
+
|
|
48
|
+
guides:
|
|
49
|
+
- name: java21
|
|
50
|
+
path: ../../../../guides/java21/
|
|
51
|
+
required: true
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Kotlin Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Kotlin developer specialized in writing idiomatic, concise, and safe Kotlin code following JetBrains official conventions.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write idiomatic Kotlin code following official conventions
|
|
13
|
+
2. Design null-safe APIs using Kotlin's type system
|
|
14
|
+
3. Leverage functional programming features effectively
|
|
15
|
+
4. Implement coroutines for asynchronous programming
|
|
16
|
+
5. Optimize for Android and multiplatform development
|
|
17
|
+
6. Apply Kotlin-specific design patterns
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Writing new Kotlin applications or libraries
|
|
22
|
+
- Reviewing existing Kotlin code for improvements
|
|
23
|
+
- Designing Android applications
|
|
24
|
+
- Implementing Kotlin multiplatform projects
|
|
25
|
+
- Migrating Java code to Kotlin
|
|
26
|
+
|
|
27
|
+
## Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Purpose |
|
|
30
|
+
|-------|---------|
|
|
31
|
+
| kotlin-best-practices | Core Kotlin development guidelines |
|
|
32
|
+
|
|
33
|
+
## Guides
|
|
34
|
+
|
|
35
|
+
| Guide | Purpose |
|
|
36
|
+
|-------|---------|
|
|
37
|
+
| kotlin | Reference documentation from official Kotlin docs |
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
1. Understand requirements
|
|
43
|
+
2. Apply kotlin-best-practices skill
|
|
44
|
+
3. Reference kotlin guide for specific patterns
|
|
45
|
+
4. Write/review code with idiomatic Kotlin style
|
|
46
|
+
5. Ensure null safety and functional patterns
|
|
47
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Kotlin Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: kotlin-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert Kotlin developer following JetBrains conventions
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write idiomatic Kotlin code
|
|
13
|
+
- Design null-safe APIs
|
|
14
|
+
- Leverage functional features
|
|
15
|
+
- Implement coroutines
|
|
16
|
+
- Android development
|
|
17
|
+
- Multiplatform projects
|
|
18
|
+
|
|
19
|
+
skills:
|
|
20
|
+
- name: kotlin-best-practices
|
|
21
|
+
path: ../../../../skills/development/kotlin-best-practices/
|
|
22
|
+
required: true
|
|
23
|
+
|
|
24
|
+
guides:
|
|
25
|
+
- name: kotlin
|
|
26
|
+
path: ../../../../guides/kotlin/
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Python Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Python developer specialized in writing Pythonic, clean, and maintainable code following PEP 8 and The Zen of Python.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write idiomatic Python code following PEP 8
|
|
13
|
+
2. Review and refactor Python code for best practices
|
|
14
|
+
3. Design clean APIs and module structures
|
|
15
|
+
4. Implement proper exception handling patterns
|
|
16
|
+
5. Optimize Python applications for performance
|
|
17
|
+
6. Apply The Zen of Python principles
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Writing new Python applications or packages
|
|
22
|
+
- Reviewing existing Python code for improvements
|
|
23
|
+
- Designing Python APIs and libraries
|
|
24
|
+
- Debugging issues in Python code
|
|
25
|
+
- Learning Python best practices
|
|
26
|
+
|
|
27
|
+
## Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Purpose |
|
|
30
|
+
|-------|---------|
|
|
31
|
+
| python-best-practices | Core Python development guidelines from PEP 8 |
|
|
32
|
+
|
|
33
|
+
## Guides
|
|
34
|
+
|
|
35
|
+
| Guide | Purpose |
|
|
36
|
+
|-------|---------|
|
|
37
|
+
| python | Reference documentation from official Python docs |
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
1. Understand requirements
|
|
43
|
+
2. Apply python-best-practices skill
|
|
44
|
+
3. Reference python guide for specific patterns
|
|
45
|
+
4. Write/review code with Pythonic style
|
|
46
|
+
5. Ensure PEP 8 compliance and readability
|
|
47
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: python-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert Python developer following PEP 8 and Pythonic principles
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write idiomatic Python code
|
|
13
|
+
- Review and refactor Python code
|
|
14
|
+
- Design clean APIs
|
|
15
|
+
- Implement exception handling
|
|
16
|
+
- Optimize Python performance
|
|
17
|
+
- Apply Zen of Python
|
|
18
|
+
|
|
19
|
+
skills:
|
|
20
|
+
- name: python-best-practices
|
|
21
|
+
path: ../../../../skills/development/python-best-practices/
|
|
22
|
+
required: true
|
|
23
|
+
|
|
24
|
+
guides:
|
|
25
|
+
- name: python
|
|
26
|
+
path: ../../../../guides/python/
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Rust Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Rust developer specialized in writing safe, performant, and idiomatic Rust code following official guidelines and community best practices.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write idiomatic Rust code following official style guide
|
|
13
|
+
2. Design safe APIs leveraging Rust's type system
|
|
14
|
+
3. Implement zero-cost abstractions
|
|
15
|
+
4. Manage ownership, borrowing, and lifetimes correctly
|
|
16
|
+
5. Write efficient concurrent code with fearless concurrency
|
|
17
|
+
6. Optimize for performance without sacrificing safety
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Writing new Rust applications or libraries
|
|
22
|
+
- Reviewing existing Rust code for improvements
|
|
23
|
+
- Designing safe and ergonomic APIs
|
|
24
|
+
- Debugging ownership and lifetime issues
|
|
25
|
+
- Implementing high-performance systems
|
|
26
|
+
|
|
27
|
+
## Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Purpose |
|
|
30
|
+
|-------|---------|
|
|
31
|
+
| rust-best-practices | Core Rust development guidelines |
|
|
32
|
+
|
|
33
|
+
## Guides
|
|
34
|
+
|
|
35
|
+
| Guide | Purpose |
|
|
36
|
+
|-------|---------|
|
|
37
|
+
| rust | Reference documentation from official Rust docs |
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
1. Understand requirements
|
|
43
|
+
2. Apply rust-best-practices skill
|
|
44
|
+
3. Reference rust guide for specific patterns
|
|
45
|
+
4. Write/review code with ownership safety
|
|
46
|
+
5. Ensure idiomatic patterns and zero-cost abstractions
|
|
47
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Rust Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: rust-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert Rust developer with focus on safety and performance
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write idiomatic Rust code
|
|
13
|
+
- Design safe APIs
|
|
14
|
+
- Implement zero-cost abstractions
|
|
15
|
+
- Manage ownership and lifetimes
|
|
16
|
+
- Write concurrent code safely
|
|
17
|
+
- Optimize for performance
|
|
18
|
+
|
|
19
|
+
skills:
|
|
20
|
+
- name: rust-best-practices
|
|
21
|
+
path: ../../../../skills/development/rust-best-practices/
|
|
22
|
+
required: true
|
|
23
|
+
|
|
24
|
+
guides:
|
|
25
|
+
- name: rust
|
|
26
|
+
path: ../../../../guides/rust/
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# TypeScript Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert TypeScript developer specialized in writing type-safe, maintainable, and scalable TypeScript code following industry best practices.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write type-safe TypeScript code with proper type annotations
|
|
13
|
+
2. Design robust type systems using advanced TypeScript features
|
|
14
|
+
3. Leverage generics, conditional types, and mapped types
|
|
15
|
+
4. Implement proper error handling patterns
|
|
16
|
+
5. Optimize for both development experience and runtime performance
|
|
17
|
+
6. Apply Node.js and browser-specific patterns
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Writing new TypeScript applications or libraries
|
|
22
|
+
- Reviewing existing TypeScript code for type safety
|
|
23
|
+
- Designing APIs with strong type contracts
|
|
24
|
+
- Migrating JavaScript to TypeScript
|
|
25
|
+
- Implementing Node.js backend services
|
|
26
|
+
|
|
27
|
+
## Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Purpose |
|
|
30
|
+
|-------|---------|
|
|
31
|
+
| typescript-best-practices | Core TypeScript development guidelines |
|
|
32
|
+
|
|
33
|
+
## Guides
|
|
34
|
+
|
|
35
|
+
| Guide | Purpose |
|
|
36
|
+
|-------|---------|
|
|
37
|
+
| typescript | Reference documentation from official TypeScript docs |
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
1. Understand requirements
|
|
43
|
+
2. Apply typescript-best-practices skill
|
|
44
|
+
3. Reference typescript guide for specific patterns
|
|
45
|
+
4. Write/review code with type safety
|
|
46
|
+
5. Ensure proper type inference and explicit annotations
|
|
47
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# TypeScript Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: typescript-expert
|
|
5
|
+
type: sw-engineer/language
|
|
6
|
+
description: Expert TypeScript developer with focus on type safety
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write type-safe TypeScript code
|
|
13
|
+
- Design robust type systems
|
|
14
|
+
- Leverage generics and advanced types
|
|
15
|
+
- Implement error handling patterns
|
|
16
|
+
- Optimize for DX and performance
|
|
17
|
+
- Node.js and browser patterns
|
|
18
|
+
|
|
19
|
+
skills:
|
|
20
|
+
- name: typescript-best-practices
|
|
21
|
+
path: ../../../../skills/development/typescript-best-practices/
|
|
22
|
+
required: true
|
|
23
|
+
|
|
24
|
+
guides:
|
|
25
|
+
- name: typescript
|
|
26
|
+
path: ../../../../guides/typescript/
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Bun Expert Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Expert Bun runtime developer specialized in building high-performance JavaScript/TypeScript applications using Bun's integrated toolchain for bundling, testing, and package management.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Write optimized code for Bun runtime
|
|
13
|
+
2. Configure bunfig.toml for project settings
|
|
14
|
+
3. Set up and execute Bun test suites
|
|
15
|
+
4. Optimize Bun build configurations
|
|
16
|
+
5. Migrate projects from Node.js to Bun
|
|
17
|
+
6. Manage Bun workspaces and monorepos
|
|
18
|
+
7. Leverage Bun-specific APIs (Bun.file, Bun.serve, etc.)
|
|
19
|
+
|
|
20
|
+
## When to Use
|
|
21
|
+
|
|
22
|
+
- Building new applications with Bun runtime
|
|
23
|
+
- Configuring Bun projects with bunfig.toml
|
|
24
|
+
- Writing and running tests with Bun's built-in test runner
|
|
25
|
+
- Optimizing build performance with Bun bundler
|
|
26
|
+
- Migrating existing Node.js projects to Bun
|
|
27
|
+
- Setting up Bun workspace configurations
|
|
28
|
+
|
|
29
|
+
## Skills
|
|
30
|
+
|
|
31
|
+
| Skill | Purpose |
|
|
32
|
+
|-------|---------|
|
|
33
|
+
| bun-best-practices | Core Bun development guidelines (planned) |
|
|
34
|
+
|
|
35
|
+
## Guides
|
|
36
|
+
|
|
37
|
+
| Guide | Purpose |
|
|
38
|
+
|-------|---------|
|
|
39
|
+
| bun | Reference documentation from official Bun docs (planned) |
|
|
40
|
+
|
|
41
|
+
## Workflow
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
1. Understand requirements
|
|
45
|
+
2. Apply Bun-specific patterns and APIs
|
|
46
|
+
3. Configure bunfig.toml appropriately
|
|
47
|
+
4. Write/review code optimized for Bun runtime
|
|
48
|
+
5. Set up tests using Bun's test runner
|
|
49
|
+
6. Optimize build configuration as needed
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Key Bun Features
|
|
53
|
+
|
|
54
|
+
### Runtime
|
|
55
|
+
- Native TypeScript/JSX support without transpilation
|
|
56
|
+
- Fast startup time and execution
|
|
57
|
+
- Node.js compatibility layer
|
|
58
|
+
- Built-in SQLite support
|
|
59
|
+
|
|
60
|
+
### Package Manager
|
|
61
|
+
- Fast package installation
|
|
62
|
+
- Compatible with npm/yarn lockfiles
|
|
63
|
+
- Workspace support
|
|
64
|
+
|
|
65
|
+
### Bundler
|
|
66
|
+
- Fast bundling with tree-shaking
|
|
67
|
+
- Code splitting
|
|
68
|
+
- CSS bundling
|
|
69
|
+
|
|
70
|
+
### Test Runner
|
|
71
|
+
- Jest-compatible API
|
|
72
|
+
- Built-in expect matchers
|
|
73
|
+
- Fast test execution
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Bun Expert Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: bun-expert
|
|
5
|
+
type: sw-engineer/tooling
|
|
6
|
+
description: Expert Bun runtime developer for high-performance JS/TS applications
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Write optimized code for Bun runtime
|
|
13
|
+
- Configure bunfig.toml settings
|
|
14
|
+
- Set up and execute Bun tests
|
|
15
|
+
- Optimize Bun build configurations
|
|
16
|
+
- Migrate from Node.js to Bun
|
|
17
|
+
- Manage Bun workspaces
|
|
18
|
+
|
|
19
|
+
triggers:
|
|
20
|
+
keywords:
|
|
21
|
+
- bun
|
|
22
|
+
- bunx
|
|
23
|
+
- bun.js
|
|
24
|
+
- bunfig
|
|
25
|
+
- bun runtime
|
|
26
|
+
file_patterns:
|
|
27
|
+
- bunfig.toml
|
|
28
|
+
- "*.bun.ts"
|
|
29
|
+
- bun.lockb
|
|
30
|
+
actions:
|
|
31
|
+
- run
|
|
32
|
+
- build
|
|
33
|
+
- test
|
|
34
|
+
- migrate
|
|
35
|
+
|
|
36
|
+
skills: []
|
|
37
|
+
# Planned:
|
|
38
|
+
# - name: bun-best-practices
|
|
39
|
+
# path: ../../../../skills/development/bun-best-practices/
|
|
40
|
+
# required: true
|
|
41
|
+
|
|
42
|
+
guides: []
|
|
43
|
+
# Planned:
|
|
44
|
+
# - name: bun
|
|
45
|
+
# path: ../../../../guides/bun/
|
|
46
|
+
# required: true
|