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,136 @@
|
|
|
1
|
+
# Commands System
|
|
2
|
+
|
|
3
|
+
> Command structure for Baekgom Agents
|
|
4
|
+
|
|
5
|
+
## Command Format
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
{agent}:{action} [arguments]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Examples
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
lists # Show all commands
|
|
15
|
+
updater:docs # Sync documentation
|
|
16
|
+
updater:external # Update external agents
|
|
17
|
+
supplier:audit golang-expert # Audit specific agent
|
|
18
|
+
creator:agent my-agent # Create new agent
|
|
19
|
+
dev:review src/main.go # Review code
|
|
20
|
+
memory:save # Save session context
|
|
21
|
+
memory:recall auth # Search memories for "auth"
|
|
22
|
+
pipeline:run code-review # Execute code-review pipeline
|
|
23
|
+
pipeline:list # List available pipelines
|
|
24
|
+
intent:explain # Explain intent detection
|
|
25
|
+
naggy:add "Fix login bug" # Add TODO item
|
|
26
|
+
naggy:done 3 # Mark task #3 complete
|
|
27
|
+
git:commit # Create commit
|
|
28
|
+
git:branch feature/auth # Create feature branch
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Available Commands
|
|
32
|
+
|
|
33
|
+
### System Commands
|
|
34
|
+
|
|
35
|
+
| Command | Description |
|
|
36
|
+
|---------|-------------|
|
|
37
|
+
| `lists` | Show all available commands |
|
|
38
|
+
| `status` | Show system status |
|
|
39
|
+
| `help` | Show help information |
|
|
40
|
+
|
|
41
|
+
### Manager Commands
|
|
42
|
+
|
|
43
|
+
| Command | Description |
|
|
44
|
+
|---------|-------------|
|
|
45
|
+
| `creator:agent` | Create a new agent |
|
|
46
|
+
| `updater:docs` | Sync documentation with project structure |
|
|
47
|
+
| `updater:external` | Update agents from external sources |
|
|
48
|
+
| `supplier:audit` | Audit agent dependencies |
|
|
49
|
+
| `supplier:fix` | Fix broken references |
|
|
50
|
+
|
|
51
|
+
### Dev Commands
|
|
52
|
+
|
|
53
|
+
| Command | Description |
|
|
54
|
+
|---------|-------------|
|
|
55
|
+
| `dev:review` | Review code for best practices |
|
|
56
|
+
| `dev:refactor` | Refactor code |
|
|
57
|
+
|
|
58
|
+
### Memory Commands
|
|
59
|
+
|
|
60
|
+
| Command | Description |
|
|
61
|
+
|---------|-------------|
|
|
62
|
+
| `memory:save` | Save session context to claude-mem |
|
|
63
|
+
| `memory:recall` | Search and recall memories |
|
|
64
|
+
|
|
65
|
+
### Pipeline Commands
|
|
66
|
+
|
|
67
|
+
| Command | Description |
|
|
68
|
+
|---------|-------------|
|
|
69
|
+
| `pipeline:run <name>` | Execute a defined pipeline |
|
|
70
|
+
| `pipeline:list` | List available pipelines |
|
|
71
|
+
|
|
72
|
+
### Intent Commands
|
|
73
|
+
|
|
74
|
+
| Command | Description |
|
|
75
|
+
|---------|-------------|
|
|
76
|
+
| `intent:explain` | Explain intent detection system |
|
|
77
|
+
|
|
78
|
+
### Naggy Commands (TODO Management)
|
|
79
|
+
|
|
80
|
+
| Command | Description |
|
|
81
|
+
|---------|-------------|
|
|
82
|
+
| `naggy:list` | List all pending TODOs |
|
|
83
|
+
| `naggy:add <task>` | Add new TODO item |
|
|
84
|
+
| `naggy:done <id>` | Mark task as complete |
|
|
85
|
+
| `naggy:priority <id> <level>` | Set task priority (high/medium/low) |
|
|
86
|
+
| `naggy:remind` | Show overdue tasks |
|
|
87
|
+
|
|
88
|
+
### Git Commands (Git Operations)
|
|
89
|
+
|
|
90
|
+
| Command | Description |
|
|
91
|
+
|---------|-------------|
|
|
92
|
+
| `git:commit` | Create a proper commit with conventional message |
|
|
93
|
+
| `git:branch <name>` | Create feature branch |
|
|
94
|
+
| `git:pr` | Create pull request |
|
|
95
|
+
| `git:sync` | Sync with remote repository |
|
|
96
|
+
| `git:status` | Show detailed git status |
|
|
97
|
+
|
|
98
|
+
### Sync Commands (Documentation Synchronization)
|
|
99
|
+
|
|
100
|
+
| Command | Description |
|
|
101
|
+
|---------|-------------|
|
|
102
|
+
| `sync:check` | Run full synchronization check |
|
|
103
|
+
| `sync:agents` | Check agent registry sync |
|
|
104
|
+
| `sync:commands` | Check command registry sync |
|
|
105
|
+
| `sync:docs` | Check documentation sync |
|
|
106
|
+
| `sync:fix` | Auto-fix simple inconsistencies |
|
|
107
|
+
|
|
108
|
+
## Command Workflow
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
User Input: "updater:docs"
|
|
112
|
+
│
|
|
113
|
+
▼
|
|
114
|
+
Secretary (orchestrator)
|
|
115
|
+
│
|
|
116
|
+
├── Parse command → updater:docs
|
|
117
|
+
│
|
|
118
|
+
├── Route to → updater (manager)
|
|
119
|
+
│
|
|
120
|
+
└── Execute → docs action
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Adding New Commands
|
|
124
|
+
|
|
125
|
+
1. Create command file in `commands/{agent}/{action}.md`
|
|
126
|
+
2. Add entry to `commands/index.yaml`
|
|
127
|
+
3. Document parameters and workflow
|
|
128
|
+
|
|
129
|
+
## Command vs Agent
|
|
130
|
+
|
|
131
|
+
| Aspect | Command | Agent |
|
|
132
|
+
|--------|---------|-------|
|
|
133
|
+
| Purpose | User-invoked action | Worker/Manager |
|
|
134
|
+
| Format | `{agent}:{action}` | `{type}/{name}` |
|
|
135
|
+
| Scope | Single operation | Multiple capabilities |
|
|
136
|
+
| Example | `updater:docs` | `updater` agent |
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Command: creator:agent
|
|
2
|
+
|
|
3
|
+
> Create a new agent
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
creator:agent <name> --type <type>
|
|
9
|
+
creator:agent <name> --type <type> --source <url>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | Type | Required | Description |
|
|
15
|
+
|------|------|----------|-------------|
|
|
16
|
+
| name | string | yes | Agent name (kebab-case) |
|
|
17
|
+
|
|
18
|
+
## Options
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
--type, -t Agent type (required)
|
|
22
|
+
Values: sw-engineer, sw-engineer/backend, infra-engineer, manager
|
|
23
|
+
--source, -s External source URL (for external agents)
|
|
24
|
+
--desc, -d Description
|
|
25
|
+
--skills Comma-separated skills to include
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. Validate input
|
|
32
|
+
├── Name is unique
|
|
33
|
+
├── Name is kebab-case
|
|
34
|
+
└── Type is valid
|
|
35
|
+
|
|
36
|
+
2. Create structure
|
|
37
|
+
├── agents/{type}/{name}/
|
|
38
|
+
├── AGENT.md
|
|
39
|
+
├── index.yaml
|
|
40
|
+
└── refs/
|
|
41
|
+
|
|
42
|
+
3. Register agent
|
|
43
|
+
└── Update agents/index.yaml
|
|
44
|
+
|
|
45
|
+
4. Validate
|
|
46
|
+
└── Run supplier:audit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Output
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
[creator:agent golang-expert --type sw-engineer]
|
|
53
|
+
|
|
54
|
+
Creating agent: golang-expert
|
|
55
|
+
|
|
56
|
+
[1/4] Validating...
|
|
57
|
+
✓ Name available
|
|
58
|
+
✓ Type valid: sw-engineer
|
|
59
|
+
|
|
60
|
+
[2/4] Creating structure...
|
|
61
|
+
✓ agents/sw-engineer/golang-expert/
|
|
62
|
+
✓ agents/sw-engineer/golang-expert/AGENT.md
|
|
63
|
+
✓ agents/sw-engineer/golang-expert/index.yaml
|
|
64
|
+
✓ agents/sw-engineer/golang-expert/refs/
|
|
65
|
+
|
|
66
|
+
[3/4] Registering...
|
|
67
|
+
✓ Updated agents/index.yaml
|
|
68
|
+
|
|
69
|
+
[4/4] Validating...
|
|
70
|
+
✓ supplier:audit passed
|
|
71
|
+
|
|
72
|
+
Agent created successfully: agents/sw-engineer/golang-expert/
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Templates
|
|
76
|
+
|
|
77
|
+
Generated AGENT.md:
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
# {Name} Agent
|
|
81
|
+
|
|
82
|
+
> **Type**: {Type}
|
|
83
|
+
> **Source**: Internal
|
|
84
|
+
|
|
85
|
+
## Purpose
|
|
86
|
+
|
|
87
|
+
{Description}
|
|
88
|
+
|
|
89
|
+
## Capabilities
|
|
90
|
+
|
|
91
|
+
1.
|
|
92
|
+
2.
|
|
93
|
+
|
|
94
|
+
## Skills
|
|
95
|
+
|
|
96
|
+
| Skill | Purpose |
|
|
97
|
+
|-------|---------|
|
|
98
|
+
|
|
99
|
+
## Guides
|
|
100
|
+
|
|
101
|
+
| Guide | Purpose |
|
|
102
|
+
|-------|---------|
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Generated index.yaml:
|
|
106
|
+
|
|
107
|
+
```yaml
|
|
108
|
+
metadata:
|
|
109
|
+
name: {name}
|
|
110
|
+
type: {type}
|
|
111
|
+
description: {description}
|
|
112
|
+
|
|
113
|
+
source:
|
|
114
|
+
type: internal
|
|
115
|
+
|
|
116
|
+
capabilities: []
|
|
117
|
+
|
|
118
|
+
skills: []
|
|
119
|
+
|
|
120
|
+
guides: []
|
|
121
|
+
```
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Command: dev:refactor
|
|
2
|
+
|
|
3
|
+
> Refactor code for better structure
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
dev:refactor <file-or-directory>
|
|
9
|
+
dev:refactor <path> --lang <language>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | Type | Required | Description |
|
|
15
|
+
|------|------|----------|-------------|
|
|
16
|
+
| path | string | yes | File or directory to refactor |
|
|
17
|
+
|
|
18
|
+
## Options
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
--lang, -l Language (auto-detected if not specified)
|
|
22
|
+
Values: go, python, rust, kotlin, typescript, java
|
|
23
|
+
--focus, -f Focus area (structure, naming, patterns, all)
|
|
24
|
+
--dry-run Show proposed changes without applying
|
|
25
|
+
--verbose, -v Detailed output
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. Detect language (or use --lang)
|
|
32
|
+
2. Select appropriate expert agent
|
|
33
|
+
3. Load language-specific skill
|
|
34
|
+
4. Analyze code structure
|
|
35
|
+
5. Propose refactoring changes
|
|
36
|
+
6. Apply changes (if not --dry-run)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Agent Selection
|
|
40
|
+
|
|
41
|
+
| File Extension | Agent | Skill |
|
|
42
|
+
|----------------|-------|-------|
|
|
43
|
+
| .go | golang-expert | go-best-practices |
|
|
44
|
+
| .py | python-expert | python-best-practices |
|
|
45
|
+
| .rs | rust-expert | rust-best-practices |
|
|
46
|
+
| .kt | kotlin-expert | kotlin-best-practices |
|
|
47
|
+
| .ts, .tsx | typescript-expert | typescript-best-practices |
|
|
48
|
+
| .java | springboot-expert | springboot-best-practices |
|
|
49
|
+
| .jsx, .js (React) | vercel-agent | react-best-practices |
|
|
50
|
+
|
|
51
|
+
## Refactoring Categories
|
|
52
|
+
|
|
53
|
+
| Category | Description |
|
|
54
|
+
|----------|-------------|
|
|
55
|
+
| structure | File/module organization, package structure |
|
|
56
|
+
| naming | Variable, function, type naming conventions |
|
|
57
|
+
| patterns | Design patterns, idiomatic code |
|
|
58
|
+
| duplication | Extract common code, reduce repetition |
|
|
59
|
+
| complexity | Simplify complex functions, reduce nesting |
|
|
60
|
+
|
|
61
|
+
## Output
|
|
62
|
+
|
|
63
|
+
### Dry Run
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
[dev:refactor src/utils.go --dry-run]
|
|
67
|
+
|
|
68
|
+
┌─ Agent: golang-expert (sw-engineer)
|
|
69
|
+
├─ Skill: go-best-practices
|
|
70
|
+
└─ File: src/utils.go
|
|
71
|
+
|
|
72
|
+
Analysis:
|
|
73
|
+
|
|
74
|
+
[Structure] Lines 10-45
|
|
75
|
+
Issue: Function too long (35 lines)
|
|
76
|
+
Suggest: Extract helper functions
|
|
77
|
+
|
|
78
|
+
[Naming] Line 12
|
|
79
|
+
Issue: Abbreviation in function name
|
|
80
|
+
Found: func procData()
|
|
81
|
+
Suggest: func processData()
|
|
82
|
+
|
|
83
|
+
[Patterns] Lines 20-30
|
|
84
|
+
Issue: Repeated error handling pattern
|
|
85
|
+
Suggest: Create handleError() helper
|
|
86
|
+
|
|
87
|
+
Proposed Changes:
|
|
88
|
+
1. Extract lines 15-25 into validateInput()
|
|
89
|
+
2. Rename procData → processData
|
|
90
|
+
3. Create handleError() helper function
|
|
91
|
+
|
|
92
|
+
No changes made (dry-run mode).
|
|
93
|
+
Run without --dry-run to apply changes.
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Apply Changes
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
[dev:refactor src/utils.go]
|
|
100
|
+
|
|
101
|
+
┌─ Agent: golang-expert (sw-engineer)
|
|
102
|
+
├─ Skill: go-best-practices
|
|
103
|
+
└─ File: src/utils.go
|
|
104
|
+
|
|
105
|
+
Refactoring:
|
|
106
|
+
|
|
107
|
+
[1/3] Extracting validateInput()...
|
|
108
|
+
✓ Created function at line 50
|
|
109
|
+
✓ Updated calls at lines 15, 22
|
|
110
|
+
|
|
111
|
+
[2/3] Renaming procData → processData...
|
|
112
|
+
✓ Renamed function definition
|
|
113
|
+
✓ Updated 3 call sites
|
|
114
|
+
|
|
115
|
+
[3/3] Creating handleError() helper...
|
|
116
|
+
✓ Created function at line 60
|
|
117
|
+
✓ Replaced 5 error handling blocks
|
|
118
|
+
|
|
119
|
+
Summary:
|
|
120
|
+
Changes applied: 3
|
|
121
|
+
Lines modified: 28
|
|
122
|
+
Functions added: 2
|
|
123
|
+
Functions renamed: 1
|
|
124
|
+
|
|
125
|
+
Recommendation: Run tests to verify changes.
|
|
126
|
+
```
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Command: dev:review
|
|
2
|
+
|
|
3
|
+
> Review code for best practices
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
dev:review <file-or-directory>
|
|
9
|
+
dev:review <path> --lang <language>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | Type | Required | Description |
|
|
15
|
+
|------|------|----------|-------------|
|
|
16
|
+
| path | string | yes | File or directory to review |
|
|
17
|
+
|
|
18
|
+
## Options
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
--lang, -l Language (auto-detected if not specified)
|
|
22
|
+
Values: go, python, rust, kotlin, typescript, java
|
|
23
|
+
--focus, -f Focus area (style, performance, security, all)
|
|
24
|
+
--verbose, -v Detailed output
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
1. Detect language (or use --lang)
|
|
31
|
+
2. Select appropriate expert agent
|
|
32
|
+
3. Load language-specific skill
|
|
33
|
+
4. Analyze code against best practices
|
|
34
|
+
5. Generate review report
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Agent Selection
|
|
38
|
+
|
|
39
|
+
| File Extension | Agent | Skill |
|
|
40
|
+
|----------------|-------|-------|
|
|
41
|
+
| .go | golang-expert | go-best-practices |
|
|
42
|
+
| .py | python-expert | python-best-practices |
|
|
43
|
+
| .rs | rust-expert | rust-best-practices |
|
|
44
|
+
| .kt | kotlin-expert | kotlin-best-practices |
|
|
45
|
+
| .ts, .tsx | typescript-expert | typescript-best-practices |
|
|
46
|
+
| .java | springboot-expert | springboot-best-practices |
|
|
47
|
+
| .jsx, .js (React) | vercel-agent | react-best-practices |
|
|
48
|
+
|
|
49
|
+
## Output
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
[dev:review src/main.go]
|
|
53
|
+
|
|
54
|
+
┌─ Agent: golang-expert (sw-engineer)
|
|
55
|
+
├─ Skill: go-best-practices
|
|
56
|
+
└─ File: src/main.go
|
|
57
|
+
|
|
58
|
+
Review Results:
|
|
59
|
+
|
|
60
|
+
[Style] Line 15
|
|
61
|
+
Issue: Variable name should be camelCase
|
|
62
|
+
Found: user_name
|
|
63
|
+
Suggest: userName
|
|
64
|
+
|
|
65
|
+
[Error Handling] Line 42
|
|
66
|
+
Issue: Error not checked
|
|
67
|
+
Found: file.Close()
|
|
68
|
+
Suggest: if err := file.Close(); err != nil { ... }
|
|
69
|
+
|
|
70
|
+
[Performance] Line 78
|
|
71
|
+
Issue: Inefficient string concatenation in loop
|
|
72
|
+
Found: str += item
|
|
73
|
+
Suggest: Use strings.Builder
|
|
74
|
+
|
|
75
|
+
Summary:
|
|
76
|
+
Style: 1 issue
|
|
77
|
+
Error Handling: 1 issue
|
|
78
|
+
Performance: 1 issue
|
|
79
|
+
Total: 3 issues
|
|
80
|
+
|
|
81
|
+
Recommendation: Fix error handling issues first.
|
|
82
|
+
```
|