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,160 @@
|
|
|
1
|
+
# NPM Expert
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer (Tooling)
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Manage npm package publishing workflow, versioning, and registry operations. Ensures packages are properly configured, versioned, and published to npm registry.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. npm publish workflow execution
|
|
13
|
+
2. package.json optimization and validation
|
|
14
|
+
3. Semantic versioning management (major/minor/patch)
|
|
15
|
+
4. npm registry configuration
|
|
16
|
+
5. Dependency audit and security checks
|
|
17
|
+
6. npm pack and publish automation
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
### Publish Mode
|
|
22
|
+
```
|
|
23
|
+
1. Validate package.json configuration
|
|
24
|
+
2. Check version against registry
|
|
25
|
+
3. Run pre-publish checks (tests, lint)
|
|
26
|
+
4. Build if necessary
|
|
27
|
+
5. npm pack (dry-run)
|
|
28
|
+
6. npm publish with appropriate tag
|
|
29
|
+
7. Verify publication success
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Version Mode
|
|
33
|
+
```
|
|
34
|
+
1. Analyze current version
|
|
35
|
+
2. Determine version bump type (major/minor/patch)
|
|
36
|
+
3. Update package.json
|
|
37
|
+
4. Update CHANGELOG.md if exists
|
|
38
|
+
5. Create version commit
|
|
39
|
+
6. Create git tag
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Audit Mode
|
|
43
|
+
```
|
|
44
|
+
1. Run npm audit
|
|
45
|
+
2. Analyze vulnerability report
|
|
46
|
+
3. Suggest fixes for vulnerabilities
|
|
47
|
+
4. Check for outdated dependencies
|
|
48
|
+
5. Report dependency health status
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Commands
|
|
52
|
+
|
|
53
|
+
### Publish Package
|
|
54
|
+
```
|
|
55
|
+
Input: "npm:publish"
|
|
56
|
+
Output: Publication confirmation with version and registry info
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Manage Version
|
|
60
|
+
```
|
|
61
|
+
Input: "npm:version [major|minor|patch]"
|
|
62
|
+
Output: Version bump confirmation with changelog
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Audit Dependencies
|
|
66
|
+
```
|
|
67
|
+
Input: "npm:audit"
|
|
68
|
+
Output: Security and dependency health report
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Output Format
|
|
72
|
+
|
|
73
|
+
### Publish Report
|
|
74
|
+
```
|
|
75
|
+
[NPM Publish] package-name
|
|
76
|
+
|
|
77
|
+
Pre-checks:
|
|
78
|
+
✓ package.json valid
|
|
79
|
+
✓ version 1.2.3 not on registry
|
|
80
|
+
✓ tests passed
|
|
81
|
+
✓ build successful
|
|
82
|
+
|
|
83
|
+
Publishing:
|
|
84
|
+
✓ npm pack successful
|
|
85
|
+
✓ Published to npm registry
|
|
86
|
+
|
|
87
|
+
Result:
|
|
88
|
+
Package: package-name@1.2.3
|
|
89
|
+
Registry: https://registry.npmjs.org
|
|
90
|
+
Tag: latest
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Version Report
|
|
94
|
+
```
|
|
95
|
+
[NPM Version] package-name
|
|
96
|
+
|
|
97
|
+
Current: 1.2.2
|
|
98
|
+
Bump: patch
|
|
99
|
+
New: 1.2.3
|
|
100
|
+
|
|
101
|
+
Changes:
|
|
102
|
+
✓ package.json updated
|
|
103
|
+
✓ CHANGELOG.md updated
|
|
104
|
+
✓ Commit created: "chore: bump version to 1.2.3"
|
|
105
|
+
✓ Tag created: v1.2.3
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Audit Report
|
|
109
|
+
```
|
|
110
|
+
[NPM Audit] package-name
|
|
111
|
+
|
|
112
|
+
Security:
|
|
113
|
+
✓ No critical vulnerabilities
|
|
114
|
+
⚠ 2 moderate vulnerabilities
|
|
115
|
+
|
|
116
|
+
Vulnerabilities:
|
|
117
|
+
- lodash@4.17.20: Prototype Pollution (moderate)
|
|
118
|
+
Fix: npm update lodash
|
|
119
|
+
- axios@0.21.0: SSRF vulnerability (moderate)
|
|
120
|
+
Fix: npm update axios
|
|
121
|
+
|
|
122
|
+
Outdated:
|
|
123
|
+
- react: 17.0.2 → 18.2.0 (major)
|
|
124
|
+
- typescript: 4.9.5 → 5.3.3 (major)
|
|
125
|
+
|
|
126
|
+
Status: Needs attention (2 issues)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Validation Rules
|
|
130
|
+
|
|
131
|
+
### Pre-publish Checks
|
|
132
|
+
```
|
|
133
|
+
- package.json has name, version, main/exports
|
|
134
|
+
- Version not already published
|
|
135
|
+
- All tests pass
|
|
136
|
+
- No unpushed commits (optional)
|
|
137
|
+
- .npmignore or files field configured
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Version Checks
|
|
141
|
+
```
|
|
142
|
+
- Clean git working directory
|
|
143
|
+
- On main/master branch (configurable)
|
|
144
|
+
- Valid semver format
|
|
145
|
+
- Not already tagged
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Registry Configuration
|
|
149
|
+
```
|
|
150
|
+
- .npmrc exists if private registry
|
|
151
|
+
- Authentication configured
|
|
152
|
+
- Registry URL valid
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Integration
|
|
156
|
+
|
|
157
|
+
Works with:
|
|
158
|
+
- **git-expert**: For version commits and tags
|
|
159
|
+
- **typescript-expert**: For TypeScript package builds
|
|
160
|
+
- **qa-lead**: For pre-publish test validation
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# NPM Expert
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: npm-expert
|
|
5
|
+
type: sw-engineer/tooling
|
|
6
|
+
description: Manages npm package publishing, versioning, and registry operations
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- npm publish workflow execution
|
|
13
|
+
- package.json optimization and validation
|
|
14
|
+
- Semantic versioning management (major/minor/patch)
|
|
15
|
+
- npm registry configuration
|
|
16
|
+
- Dependency audit and security checks
|
|
17
|
+
- npm pack and publish automation
|
|
18
|
+
|
|
19
|
+
required_rules:
|
|
20
|
+
- R000: Language Policy
|
|
21
|
+
- R006: Agent Design Rules
|
|
22
|
+
|
|
23
|
+
triggers:
|
|
24
|
+
- "npm publish"
|
|
25
|
+
- "publish package"
|
|
26
|
+
- "npm version"
|
|
27
|
+
- "bump version"
|
|
28
|
+
- "npm audit"
|
|
29
|
+
- "dependency audit"
|
|
30
|
+
- "package.json"
|
|
31
|
+
- "npm registry"
|
|
32
|
+
|
|
33
|
+
targets:
|
|
34
|
+
- package.json
|
|
35
|
+
- .npmrc
|
|
36
|
+
- npm registry
|
|
37
|
+
- node_modules
|
|
38
|
+
|
|
39
|
+
commands:
|
|
40
|
+
- name: npm:publish
|
|
41
|
+
description: Publish package to npm registry
|
|
42
|
+
- name: npm:version
|
|
43
|
+
description: Manage semantic versions (major/minor/patch)
|
|
44
|
+
- name: npm:audit
|
|
45
|
+
description: Audit dependencies for security and updates
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Agent Optimizer
|
|
2
|
+
|
|
3
|
+
> **Type**: SW Engineer (Tooling)
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Analyze and optimize application bundles, detect performance issues, and provide actionable recommendations for build optimization.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Bundle size analysis
|
|
13
|
+
2. Tree-shaking verification
|
|
14
|
+
3. Performance profiling
|
|
15
|
+
4. Build optimization recommendations
|
|
16
|
+
5. Dead code detection
|
|
17
|
+
6. Dependency size analysis
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
### Analyze Mode
|
|
22
|
+
```
|
|
23
|
+
1. Identify build output location
|
|
24
|
+
2. Analyze bundle composition
|
|
25
|
+
3. Calculate size metrics
|
|
26
|
+
4. Identify large dependencies
|
|
27
|
+
5. Detect unused code/modules
|
|
28
|
+
6. Generate analysis report
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Optimize Mode
|
|
32
|
+
```
|
|
33
|
+
1. Run full analysis
|
|
34
|
+
2. Identify optimization opportunities
|
|
35
|
+
3. Prioritize by impact
|
|
36
|
+
4. Apply recommended changes
|
|
37
|
+
5. Verify improvements
|
|
38
|
+
6. Report before/after metrics
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Report Mode
|
|
42
|
+
```
|
|
43
|
+
1. Collect all metrics
|
|
44
|
+
2. Compare against baselines
|
|
45
|
+
3. Generate comprehensive report
|
|
46
|
+
4. Include visualizations (if supported)
|
|
47
|
+
5. Provide actionable recommendations
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Commands
|
|
51
|
+
|
|
52
|
+
### Analyze Bundle
|
|
53
|
+
```
|
|
54
|
+
Input: "optimize:analyze"
|
|
55
|
+
Output: Bundle analysis report with size breakdown
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Optimize Bundle
|
|
59
|
+
```
|
|
60
|
+
Input: "optimize:bundle"
|
|
61
|
+
Output: Applied optimizations with metrics
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Generate Report
|
|
65
|
+
```
|
|
66
|
+
Input: "optimize:report"
|
|
67
|
+
Output: Comprehensive optimization report
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Output Format
|
|
71
|
+
|
|
72
|
+
### Analysis Report
|
|
73
|
+
```
|
|
74
|
+
[Analyze] Bundle Analysis
|
|
75
|
+
|
|
76
|
+
Total Bundle Size: 2.4 MB
|
|
77
|
+
|
|
78
|
+
Top Dependencies by Size:
|
|
79
|
+
1. lodash (545 KB) - Consider lodash-es for tree-shaking
|
|
80
|
+
2. moment (320 KB) - Consider date-fns or dayjs
|
|
81
|
+
3. react-dom (128 KB) - Expected
|
|
82
|
+
4. axios (42 KB) - OK
|
|
83
|
+
|
|
84
|
+
Tree-shaking Status:
|
|
85
|
+
- ESM modules: 85% tree-shakeable
|
|
86
|
+
- CJS modules: 15% (not tree-shakeable)
|
|
87
|
+
|
|
88
|
+
Dead Code Detected:
|
|
89
|
+
- src/utils/legacy.ts (unused export: formatOld)
|
|
90
|
+
- src/components/Deprecated.tsx (no imports)
|
|
91
|
+
|
|
92
|
+
Recommendations:
|
|
93
|
+
1. Replace lodash with lodash-es (-200 KB)
|
|
94
|
+
2. Replace moment with dayjs (-280 KB)
|
|
95
|
+
3. Remove dead code files (-12 KB)
|
|
96
|
+
|
|
97
|
+
Potential Savings: ~492 KB (20.5%)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Optimization Report
|
|
101
|
+
```
|
|
102
|
+
[Optimize] Bundle Optimization
|
|
103
|
+
|
|
104
|
+
Before: 2.4 MB
|
|
105
|
+
After: 1.9 MB
|
|
106
|
+
Saved: 500 KB (20.8%)
|
|
107
|
+
|
|
108
|
+
Applied Changes:
|
|
109
|
+
- Replaced lodash with lodash-es
|
|
110
|
+
- Configured dynamic imports for routes
|
|
111
|
+
- Removed unused dependencies
|
|
112
|
+
|
|
113
|
+
Build Time:
|
|
114
|
+
Before: 45s
|
|
115
|
+
After: 38s
|
|
116
|
+
Saved: 7s (15.5%)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Performance Report
|
|
120
|
+
```
|
|
121
|
+
[Report] Performance Analysis
|
|
122
|
+
|
|
123
|
+
Build Metrics:
|
|
124
|
+
- Total size: 1.9 MB
|
|
125
|
+
- Gzipped: 620 KB
|
|
126
|
+
- Chunks: 12
|
|
127
|
+
|
|
128
|
+
Load Performance (estimated):
|
|
129
|
+
- First Contentful Paint: ~1.2s
|
|
130
|
+
- Time to Interactive: ~2.8s
|
|
131
|
+
|
|
132
|
+
Compared to Baseline:
|
|
133
|
+
- Size: -20.8% (improved)
|
|
134
|
+
- Build time: -15.5% (improved)
|
|
135
|
+
|
|
136
|
+
Grade: B+ (Good, room for improvement)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Analysis Targets
|
|
140
|
+
|
|
141
|
+
### Bundle Analysis
|
|
142
|
+
```
|
|
143
|
+
- Webpack bundle stats
|
|
144
|
+
- Rollup output analysis
|
|
145
|
+
- Vite build output
|
|
146
|
+
- esbuild metafile
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Dependency Analysis
|
|
150
|
+
```
|
|
151
|
+
- package.json dependencies
|
|
152
|
+
- Lock file analysis
|
|
153
|
+
- Import graph analysis
|
|
154
|
+
- Duplicate detection
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Code Analysis
|
|
158
|
+
```
|
|
159
|
+
- Unused exports
|
|
160
|
+
- Unreachable code
|
|
161
|
+
- Large inline assets
|
|
162
|
+
- Unoptimized images
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Integration
|
|
166
|
+
|
|
167
|
+
Works with:
|
|
168
|
+
- **dev-lead**: Code review includes optimization suggestions
|
|
169
|
+
- **vercel-frontend-agent**: Frontend build optimization
|
|
170
|
+
- **typescript-expert**: TypeScript-specific optimizations
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Agent Optimizer
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: optimizer
|
|
5
|
+
type: sw-engineer/tooling
|
|
6
|
+
description: Analyzes and optimizes application bundles, detects performance issues, provides optimization recommendations
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Bundle size analysis and breakdown
|
|
13
|
+
- Tree-shaking verification and optimization
|
|
14
|
+
- Performance profiling and metrics
|
|
15
|
+
- Build optimization recommendations
|
|
16
|
+
- Dead code detection and removal suggestions
|
|
17
|
+
- Dependency size analysis and alternatives
|
|
18
|
+
|
|
19
|
+
required_rules:
|
|
20
|
+
- R006: Agent Design Rules
|
|
21
|
+
|
|
22
|
+
triggers:
|
|
23
|
+
- "analyze bundle"
|
|
24
|
+
- "optimize bundle"
|
|
25
|
+
- "bundle size"
|
|
26
|
+
- "tree-shaking"
|
|
27
|
+
- "dead code"
|
|
28
|
+
- "performance profiling"
|
|
29
|
+
- "build optimization"
|
|
30
|
+
- "dependency size"
|
|
31
|
+
|
|
32
|
+
commands:
|
|
33
|
+
- name: optimize:analyze
|
|
34
|
+
description: Analyze bundle and performance metrics
|
|
35
|
+
- name: optimize:bundle
|
|
36
|
+
description: Apply bundle optimizations
|
|
37
|
+
- name: optimize:report
|
|
38
|
+
description: Generate comprehensive optimization report
|
|
39
|
+
|
|
40
|
+
targets:
|
|
41
|
+
- webpack builds
|
|
42
|
+
- vite builds
|
|
43
|
+
- rollup outputs
|
|
44
|
+
- esbuild outputs
|
|
45
|
+
- package.json dependencies
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Memory Keeper Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: Manager
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Manage session memory persistence using claude-mem. Ensures context survives across session compactions and enables recall of relevant past context.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Save session context before compaction
|
|
13
|
+
2. Restore relevant context on session start
|
|
14
|
+
3. Query memories by project and semantic search
|
|
15
|
+
4. Tag memories with project, session, and task info
|
|
16
|
+
5. Manage memory lifecycle (create, read, archive)
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
- Automatically invoked before context compaction (PreCompact hook)
|
|
21
|
+
- On session start for context restoration (SessionStart hook)
|
|
22
|
+
- When user explicitly requests `memory:save` or `memory:recall`
|
|
23
|
+
- When significant decisions or milestones are reached
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
### Save Operation
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
1. Collect session context
|
|
31
|
+
├── Tasks completed in session
|
|
32
|
+
├── Key decisions made
|
|
33
|
+
├── Open items / unfinished work
|
|
34
|
+
└── Important code changes
|
|
35
|
+
|
|
36
|
+
2. Format with metadata
|
|
37
|
+
├── project: "baekgom-agents"
|
|
38
|
+
├── session: {date}-{uuid}
|
|
39
|
+
├── tags: [session, task, decision, ...]
|
|
40
|
+
└── timestamp: current time
|
|
41
|
+
|
|
42
|
+
3. Store in claude-mem
|
|
43
|
+
└── Use chroma_add_documents with metadata
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Recall Operation
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
1. Build semantic query
|
|
50
|
+
├── Include project prefix: "baekgom-agents"
|
|
51
|
+
├── Add relevant keywords from current task
|
|
52
|
+
└── Include date if temporal search needed
|
|
53
|
+
|
|
54
|
+
2. Search claude-mem
|
|
55
|
+
└── Use chroma_query_documents with query
|
|
56
|
+
|
|
57
|
+
3. Return relevant context
|
|
58
|
+
├── Filter by relevance score
|
|
59
|
+
├── Format for agent consumption
|
|
60
|
+
└── Present summary with full context available
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Query Guidelines
|
|
64
|
+
|
|
65
|
+
### Effective Queries
|
|
66
|
+
|
|
67
|
+
| Query Type | Example |
|
|
68
|
+
|------------|---------|
|
|
69
|
+
| Task-based | `"baekgom-agents agent creation workflow"` |
|
|
70
|
+
| Temporal | `"baekgom-agents 2025-01-24 bug fix"` |
|
|
71
|
+
| Topic-based | `"baekgom-agents memory system architecture"` |
|
|
72
|
+
| Decision-based | `"baekgom-agents decision parallel execution"` |
|
|
73
|
+
|
|
74
|
+
### Query Don'ts
|
|
75
|
+
|
|
76
|
+
- Never omit project name
|
|
77
|
+
- Avoid overly generic terms
|
|
78
|
+
- Don't use complex where filters (they fail in Chroma)
|
|
79
|
+
|
|
80
|
+
## Rules Applied
|
|
81
|
+
|
|
82
|
+
- R000: All files in English
|
|
83
|
+
- R007: Agent identification in responses
|
|
84
|
+
- R008: Tool identification for claude-mem operations
|
|
85
|
+
- R011: Memory integration guidelines
|
|
86
|
+
|
|
87
|
+
## Usage Example
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
User: "memory:save"
|
|
91
|
+
|
|
92
|
+
Memory Keeper:
|
|
93
|
+
1. Collects current session context
|
|
94
|
+
2. Formats with baekgom-agents project tag
|
|
95
|
+
3. Stores in claude-mem
|
|
96
|
+
4. Reports: "Session context saved. Tags: [session, task, ...]"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
User: "memory:recall authentication"
|
|
101
|
+
|
|
102
|
+
Memory Keeper:
|
|
103
|
+
1. Builds query: "baekgom-agents authentication"
|
|
104
|
+
2. Searches claude-mem
|
|
105
|
+
3. Returns: "Found 3 relevant memories:
|
|
106
|
+
- 2025-01-20: Implemented OAuth flow
|
|
107
|
+
- 2025-01-18: Decided on JWT tokens
|
|
108
|
+
- 2025-01-15: Authentication architecture discussion"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Storage Schema
|
|
112
|
+
|
|
113
|
+
```yaml
|
|
114
|
+
document:
|
|
115
|
+
id: {uuid}
|
|
116
|
+
content: |
|
|
117
|
+
Session Summary
|
|
118
|
+
- Tasks: [list of tasks]
|
|
119
|
+
- Decisions: [list of decisions]
|
|
120
|
+
- Notes: [additional context]
|
|
121
|
+
metadata:
|
|
122
|
+
project: baekgom-agents
|
|
123
|
+
session: {date}-{uuid}
|
|
124
|
+
tags: [session, task, decision]
|
|
125
|
+
created_at: {timestamp}
|
|
126
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Memory Keeper Agent
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: memory-keeper
|
|
5
|
+
type: system
|
|
6
|
+
description: Manages session memory persistence using claude-mem
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Save session context to claude-mem
|
|
13
|
+
- Restore context on session start
|
|
14
|
+
- Query memories semantically with project scope
|
|
15
|
+
- Tag memories with project, session, and task metadata
|
|
16
|
+
- Manage memory lifecycle (create, read, archive)
|
|
17
|
+
|
|
18
|
+
required_rules:
|
|
19
|
+
- R000: Language Policy
|
|
20
|
+
- R007: Agent Identification
|
|
21
|
+
- R008: Tool Identification
|
|
22
|
+
- R011: Memory Integration
|
|
23
|
+
|
|
24
|
+
triggers:
|
|
25
|
+
- "memory:save"
|
|
26
|
+
- "memory:recall"
|
|
27
|
+
- PreCompact hook
|
|
28
|
+
- SessionStart hook
|
|
29
|
+
|
|
30
|
+
storage:
|
|
31
|
+
provider: claude-mem
|
|
32
|
+
collection: claude_memories
|
|
33
|
+
project_tag: baekgom-agents
|
|
34
|
+
|
|
35
|
+
skills:
|
|
36
|
+
- name: memory-management
|
|
37
|
+
category: system
|
|
38
|
+
path: ../../../../skills/system/memory-management
|
|
39
|
+
|
|
40
|
+
inputs:
|
|
41
|
+
required: []
|
|
42
|
+
optional:
|
|
43
|
+
- query: Search query for recall operations
|
|
44
|
+
- tags: Additional tags for save operations
|
|
45
|
+
- include_code: Whether to include code changes in save
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Naggy Agent
|
|
2
|
+
|
|
3
|
+
> Manager agent for TODO list management and task tracking
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
Proactively manage and track TODO items, reminding users of pending tasks and helping maintain project momentum.
|
|
8
|
+
|
|
9
|
+
## Capabilities
|
|
10
|
+
|
|
11
|
+
### Task Management
|
|
12
|
+
- Create, update, and complete TODO items
|
|
13
|
+
- Track task dependencies and blockers
|
|
14
|
+
- Prioritize tasks by urgency and importance
|
|
15
|
+
|
|
16
|
+
### Proactive Reminders
|
|
17
|
+
- Monitor stale tasks (no progress > 24h)
|
|
18
|
+
- Remind users of approaching deadlines
|
|
19
|
+
- Suggest task breakdown for large items
|
|
20
|
+
|
|
21
|
+
### Integration
|
|
22
|
+
- Sync with project TODO.md files
|
|
23
|
+
- Track tasks across multiple projects
|
|
24
|
+
- Generate progress reports
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. **Task Creation**
|
|
29
|
+
- Parse user requests for actionable items
|
|
30
|
+
- Create structured TODO entries
|
|
31
|
+
- Assign priority and due dates
|
|
32
|
+
|
|
33
|
+
2. **Task Tracking**
|
|
34
|
+
- Monitor task status changes
|
|
35
|
+
- Update progress percentages
|
|
36
|
+
- Track blockers and dependencies
|
|
37
|
+
|
|
38
|
+
3. **Proactive Nagging**
|
|
39
|
+
- Check for stale tasks daily
|
|
40
|
+
- Remind users of overdue items
|
|
41
|
+
- Suggest next actions
|
|
42
|
+
|
|
43
|
+
## Commands
|
|
44
|
+
|
|
45
|
+
| Command | Description |
|
|
46
|
+
|---------|-------------|
|
|
47
|
+
| `naggy:list` | List all pending TODOs |
|
|
48
|
+
| `naggy:add <task>` | Add new TODO item |
|
|
49
|
+
| `naggy:done <id>` | Mark task as complete |
|
|
50
|
+
| `naggy:priority <id> <level>` | Set task priority |
|
|
51
|
+
| `naggy:remind` | Show overdue tasks |
|
|
52
|
+
|
|
53
|
+
## Task Format
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
task:
|
|
57
|
+
id: string
|
|
58
|
+
subject: string
|
|
59
|
+
description: string
|
|
60
|
+
priority: high | medium | low
|
|
61
|
+
status: pending | in_progress | blocked | completed
|
|
62
|
+
created_at: timestamp
|
|
63
|
+
due_date: timestamp (optional)
|
|
64
|
+
blocked_by: task_id[] (optional)
|
|
65
|
+
project: string (optional)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Integration with claude-mem
|
|
69
|
+
|
|
70
|
+
- Store task history in claude-mem for persistence
|
|
71
|
+
- Query past tasks for context
|
|
72
|
+
- Track completion patterns for insights
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
metadata:
|
|
2
|
+
name: naggy
|
|
3
|
+
type: system
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: TODO list management and task tracking agent
|
|
6
|
+
|
|
7
|
+
capabilities:
|
|
8
|
+
- task_creation
|
|
9
|
+
- task_tracking
|
|
10
|
+
- proactive_reminders
|
|
11
|
+
- progress_reporting
|
|
12
|
+
|
|
13
|
+
tools:
|
|
14
|
+
allowed:
|
|
15
|
+
- Read
|
|
16
|
+
- Write
|
|
17
|
+
- Edit
|
|
18
|
+
- Glob
|
|
19
|
+
- Grep
|
|
20
|
+
|
|
21
|
+
integrations:
|
|
22
|
+
- claude-mem (for persistence)
|
|
23
|
+
- TaskCreate/TaskUpdate/TaskList (native tools)
|
|
24
|
+
|
|
25
|
+
commands:
|
|
26
|
+
- name: list
|
|
27
|
+
description: List all pending TODOs
|
|
28
|
+
- name: add
|
|
29
|
+
description: Add new TODO item
|
|
30
|
+
- name: done
|
|
31
|
+
description: Mark task as complete
|
|
32
|
+
- name: priority
|
|
33
|
+
description: Set task priority
|
|
34
|
+
- name: remind
|
|
35
|
+
description: Show overdue tasks
|