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,62 @@
|
|
|
1
|
+
# npm:audit Command
|
|
2
|
+
|
|
3
|
+
name: audit
|
|
4
|
+
agent: npm-expert
|
|
5
|
+
description: Audit npm dependencies for security and updates
|
|
6
|
+
|
|
7
|
+
workflow:
|
|
8
|
+
1. Run npm audit for security vulnerabilities
|
|
9
|
+
2. Analyze vulnerability severity
|
|
10
|
+
3. Check for outdated dependencies
|
|
11
|
+
4. Generate health report
|
|
12
|
+
5. Suggest remediation steps
|
|
13
|
+
|
|
14
|
+
options:
|
|
15
|
+
- name: --fix
|
|
16
|
+
description: Automatically fix vulnerabilities where possible
|
|
17
|
+
example: "npm:audit --fix"
|
|
18
|
+
|
|
19
|
+
- name: --production
|
|
20
|
+
description: Only audit production dependencies
|
|
21
|
+
example: "npm:audit --production"
|
|
22
|
+
|
|
23
|
+
- name: --json
|
|
24
|
+
description: Output in JSON format
|
|
25
|
+
example: "npm:audit --json"
|
|
26
|
+
|
|
27
|
+
examples:
|
|
28
|
+
- command: "npm:audit"
|
|
29
|
+
description: Full dependency audit with report
|
|
30
|
+
|
|
31
|
+
- command: "npm:audit --fix"
|
|
32
|
+
description: Audit and fix vulnerabilities
|
|
33
|
+
|
|
34
|
+
- command: "npm:audit --production"
|
|
35
|
+
description: Audit only production dependencies
|
|
36
|
+
|
|
37
|
+
output:
|
|
38
|
+
success: |
|
|
39
|
+
[NPM Audit] package-name
|
|
40
|
+
|
|
41
|
+
Security:
|
|
42
|
+
Critical: 0
|
|
43
|
+
High: 0
|
|
44
|
+
Moderate: 2
|
|
45
|
+
Low: 1
|
|
46
|
+
|
|
47
|
+
Outdated:
|
|
48
|
+
Major updates: 3
|
|
49
|
+
Minor updates: 5
|
|
50
|
+
Patch updates: 12
|
|
51
|
+
|
|
52
|
+
Status: Needs attention (2 moderate vulnerabilities)
|
|
53
|
+
|
|
54
|
+
Recommendations:
|
|
55
|
+
1. npm update lodash
|
|
56
|
+
2. npm update axios
|
|
57
|
+
|
|
58
|
+
failure: |
|
|
59
|
+
[NPM Audit] Failed
|
|
60
|
+
|
|
61
|
+
Error: {error_message}
|
|
62
|
+
Hint: Ensure package-lock.json exists
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# npm:publish Command
|
|
2
|
+
|
|
3
|
+
name: publish
|
|
4
|
+
agent: npm-expert
|
|
5
|
+
description: Publish package to npm registry
|
|
6
|
+
|
|
7
|
+
workflow:
|
|
8
|
+
1. Validate package.json configuration
|
|
9
|
+
2. Check version against registry
|
|
10
|
+
3. Run pre-publish checks (tests, lint, build)
|
|
11
|
+
4. Execute npm pack (dry-run)
|
|
12
|
+
5. Publish with appropriate tag
|
|
13
|
+
6. Verify publication success
|
|
14
|
+
|
|
15
|
+
options:
|
|
16
|
+
- name: --tag
|
|
17
|
+
description: npm dist-tag (default: latest)
|
|
18
|
+
example: "npm:publish --tag beta"
|
|
19
|
+
|
|
20
|
+
- name: --dry-run
|
|
21
|
+
description: Run all checks without publishing
|
|
22
|
+
example: "npm:publish --dry-run"
|
|
23
|
+
|
|
24
|
+
- name: --skip-tests
|
|
25
|
+
description: Skip test execution
|
|
26
|
+
example: "npm:publish --skip-tests"
|
|
27
|
+
|
|
28
|
+
examples:
|
|
29
|
+
- command: "npm:publish"
|
|
30
|
+
description: Publish to npm with all checks
|
|
31
|
+
|
|
32
|
+
- command: "npm:publish --tag beta"
|
|
33
|
+
description: Publish to beta tag
|
|
34
|
+
|
|
35
|
+
- command: "npm:publish --dry-run"
|
|
36
|
+
description: Validate without publishing
|
|
37
|
+
|
|
38
|
+
output:
|
|
39
|
+
success: |
|
|
40
|
+
[NPM Publish] package-name@1.2.3
|
|
41
|
+
|
|
42
|
+
Pre-checks: All passed
|
|
43
|
+
Registry: https://registry.npmjs.org
|
|
44
|
+
Tag: latest
|
|
45
|
+
|
|
46
|
+
Package published successfully.
|
|
47
|
+
|
|
48
|
+
failure: |
|
|
49
|
+
[NPM Publish] Failed
|
|
50
|
+
|
|
51
|
+
Error: {error_message}
|
|
52
|
+
Suggested fix: {fix_suggestion}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# npm:version Command
|
|
2
|
+
|
|
3
|
+
name: version
|
|
4
|
+
agent: npm-expert
|
|
5
|
+
description: Manage semantic versions for npm packages
|
|
6
|
+
|
|
7
|
+
workflow:
|
|
8
|
+
1. Analyze current version from package.json
|
|
9
|
+
2. Determine version bump type
|
|
10
|
+
3. Update package.json version field
|
|
11
|
+
4. Update CHANGELOG.md if exists
|
|
12
|
+
5. Create version commit
|
|
13
|
+
6. Create git tag (optional)
|
|
14
|
+
|
|
15
|
+
options:
|
|
16
|
+
- name: major
|
|
17
|
+
description: Bump major version (x.0.0)
|
|
18
|
+
example: "npm:version major"
|
|
19
|
+
|
|
20
|
+
- name: minor
|
|
21
|
+
description: Bump minor version (0.x.0)
|
|
22
|
+
example: "npm:version minor"
|
|
23
|
+
|
|
24
|
+
- name: patch
|
|
25
|
+
description: Bump patch version (0.0.x)
|
|
26
|
+
example: "npm:version patch"
|
|
27
|
+
|
|
28
|
+
- name: --no-tag
|
|
29
|
+
description: Skip git tag creation
|
|
30
|
+
example: "npm:version patch --no-tag"
|
|
31
|
+
|
|
32
|
+
- name: --no-commit
|
|
33
|
+
description: Skip commit creation (only update files)
|
|
34
|
+
example: "npm:version minor --no-commit"
|
|
35
|
+
|
|
36
|
+
examples:
|
|
37
|
+
- command: "npm:version patch"
|
|
38
|
+
description: Bump patch version (1.2.3 -> 1.2.4)
|
|
39
|
+
|
|
40
|
+
- command: "npm:version minor"
|
|
41
|
+
description: Bump minor version (1.2.3 -> 1.3.0)
|
|
42
|
+
|
|
43
|
+
- command: "npm:version major"
|
|
44
|
+
description: Bump major version (1.2.3 -> 2.0.0)
|
|
45
|
+
|
|
46
|
+
output:
|
|
47
|
+
success: |
|
|
48
|
+
[NPM Version] package-name
|
|
49
|
+
|
|
50
|
+
Previous: 1.2.3
|
|
51
|
+
Current: 1.2.4
|
|
52
|
+
|
|
53
|
+
Changes:
|
|
54
|
+
- package.json updated
|
|
55
|
+
- Commit: "chore: bump version to 1.2.4"
|
|
56
|
+
- Tag: v1.2.4
|
|
57
|
+
|
|
58
|
+
failure: |
|
|
59
|
+
[NPM Version] Failed
|
|
60
|
+
|
|
61
|
+
Error: {error_message}
|
|
62
|
+
Hint: Ensure clean git working directory
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Command: optimize:analyze
|
|
2
|
+
# Agent: optimizer (manager)
|
|
3
|
+
|
|
4
|
+
name: analyze
|
|
5
|
+
description: Analyze bundle size and performance metrics
|
|
6
|
+
|
|
7
|
+
usage: "optimize:analyze [target]"
|
|
8
|
+
|
|
9
|
+
arguments:
|
|
10
|
+
- name: target
|
|
11
|
+
description: Build output path or project root (optional, auto-detects)
|
|
12
|
+
required: false
|
|
13
|
+
|
|
14
|
+
workflow:
|
|
15
|
+
1. Identify build tool (webpack, vite, rollup, esbuild)
|
|
16
|
+
2. Locate build output
|
|
17
|
+
3. Analyze bundle composition
|
|
18
|
+
4. Calculate size metrics
|
|
19
|
+
5. Identify large dependencies
|
|
20
|
+
6. Detect unused code/exports
|
|
21
|
+
7. Generate analysis report
|
|
22
|
+
|
|
23
|
+
output:
|
|
24
|
+
- Total bundle size
|
|
25
|
+
- Size breakdown by chunk/module
|
|
26
|
+
- Top dependencies by size
|
|
27
|
+
- Tree-shaking status
|
|
28
|
+
- Dead code detection
|
|
29
|
+
- Optimization recommendations
|
|
30
|
+
|
|
31
|
+
examples:
|
|
32
|
+
- "optimize:analyze"
|
|
33
|
+
- "optimize:analyze ./dist"
|
|
34
|
+
- "optimize:analyze --verbose"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Command: optimize:bundle
|
|
2
|
+
# Agent: optimizer (manager)
|
|
3
|
+
|
|
4
|
+
name: bundle
|
|
5
|
+
description: Apply bundle size optimizations
|
|
6
|
+
|
|
7
|
+
usage: "optimize:bundle [options]"
|
|
8
|
+
|
|
9
|
+
arguments:
|
|
10
|
+
- name: --dry-run
|
|
11
|
+
description: Show what would be changed without applying
|
|
12
|
+
required: false
|
|
13
|
+
- name: --safe
|
|
14
|
+
description: Only apply safe, reversible optimizations
|
|
15
|
+
required: false
|
|
16
|
+
|
|
17
|
+
workflow:
|
|
18
|
+
1. Run full bundle analysis
|
|
19
|
+
2. Identify optimization opportunities
|
|
20
|
+
3. Prioritize by impact and risk
|
|
21
|
+
4. Apply recommended changes (or show dry-run)
|
|
22
|
+
5. Rebuild if changes applied
|
|
23
|
+
6. Verify improvements
|
|
24
|
+
7. Report before/after metrics
|
|
25
|
+
|
|
26
|
+
optimizations:
|
|
27
|
+
safe:
|
|
28
|
+
- Configure code splitting
|
|
29
|
+
- Enable tree-shaking for ESM
|
|
30
|
+
- Add terser/minification
|
|
31
|
+
- Configure chunk optimization
|
|
32
|
+
moderate:
|
|
33
|
+
- Replace heavy dependencies with lighter alternatives
|
|
34
|
+
- Add dynamic imports for routes
|
|
35
|
+
- Configure asset optimization
|
|
36
|
+
aggressive:
|
|
37
|
+
- Remove unused dependencies
|
|
38
|
+
- Inline small modules
|
|
39
|
+
- Configure aggressive minification
|
|
40
|
+
|
|
41
|
+
output:
|
|
42
|
+
- Applied changes list
|
|
43
|
+
- Before/after size comparison
|
|
44
|
+
- Build time comparison
|
|
45
|
+
- Risk assessment for each change
|
|
46
|
+
|
|
47
|
+
examples:
|
|
48
|
+
- "optimize:bundle"
|
|
49
|
+
- "optimize:bundle --dry-run"
|
|
50
|
+
- "optimize:bundle --safe"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Command: optimize:report
|
|
2
|
+
# Agent: optimizer (manager)
|
|
3
|
+
|
|
4
|
+
name: report
|
|
5
|
+
description: Generate comprehensive optimization report
|
|
6
|
+
|
|
7
|
+
usage: "optimize:report [options]"
|
|
8
|
+
|
|
9
|
+
arguments:
|
|
10
|
+
- name: --baseline
|
|
11
|
+
description: Compare against previous report
|
|
12
|
+
required: false
|
|
13
|
+
- name: --format
|
|
14
|
+
description: Output format (text, json, markdown)
|
|
15
|
+
required: false
|
|
16
|
+
default: text
|
|
17
|
+
|
|
18
|
+
workflow:
|
|
19
|
+
1. Run full analysis
|
|
20
|
+
2. Collect all metrics
|
|
21
|
+
3. Compare against baseline (if provided)
|
|
22
|
+
4. Calculate performance scores
|
|
23
|
+
5. Generate recommendations
|
|
24
|
+
6. Format report
|
|
25
|
+
|
|
26
|
+
report_sections:
|
|
27
|
+
- Bundle Analysis
|
|
28
|
+
- Total size (raw and gzipped)
|
|
29
|
+
- Chunk breakdown
|
|
30
|
+
- Dependency tree
|
|
31
|
+
- Performance Metrics
|
|
32
|
+
- Estimated load times
|
|
33
|
+
- Core Web Vitals impact
|
|
34
|
+
- Build performance
|
|
35
|
+
- Code Quality
|
|
36
|
+
- Tree-shaking effectiveness
|
|
37
|
+
- Dead code percentage
|
|
38
|
+
- Duplicate code detection
|
|
39
|
+
- Recommendations
|
|
40
|
+
- High impact optimizations
|
|
41
|
+
- Quick wins
|
|
42
|
+
- Long-term improvements
|
|
43
|
+
- Comparison (if baseline)
|
|
44
|
+
- Size delta
|
|
45
|
+
- Performance delta
|
|
46
|
+
- Trend analysis
|
|
47
|
+
|
|
48
|
+
output:
|
|
49
|
+
- Formatted report in requested format
|
|
50
|
+
- Performance grade (A-F)
|
|
51
|
+
- Priority action items
|
|
52
|
+
|
|
53
|
+
examples:
|
|
54
|
+
- "optimize:report"
|
|
55
|
+
- "optimize:report --baseline ./previous-report.json"
|
|
56
|
+
- "optimize:report --format markdown"
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Command: pipeline:list
|
|
2
|
+
|
|
3
|
+
> List all available pipelines
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pipeline:list
|
|
9
|
+
pipeline:list --verbose
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
--verbose, -v Show detailed info including steps
|
|
16
|
+
--templates Include templates in list
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
### Standard
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
[pipeline:list]
|
|
25
|
+
|
|
26
|
+
Available Pipelines:
|
|
27
|
+
|
|
28
|
+
| Name | Description | Steps |
|
|
29
|
+
|------|-------------|-------|
|
|
30
|
+
| code-review | Full code review workflow | 4 |
|
|
31
|
+
|
|
32
|
+
Templates:
|
|
33
|
+
|
|
34
|
+
| Name | Description |
|
|
35
|
+
|------|-------------|
|
|
36
|
+
| pipeline-template | Base template for creating pipelines |
|
|
37
|
+
|
|
38
|
+
Use "pipeline:run <name>" to execute a pipeline.
|
|
39
|
+
Use "pipeline:list --verbose" for detailed info.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Verbose
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
[pipeline:list --verbose]
|
|
46
|
+
|
|
47
|
+
Available Pipelines:
|
|
48
|
+
|
|
49
|
+
## code-review
|
|
50
|
+
Description: Full code review workflow with automatic language detection
|
|
51
|
+
Location: pipelines/examples/code-review.yaml
|
|
52
|
+
Steps: 4
|
|
53
|
+
|
|
54
|
+
Inputs:
|
|
55
|
+
- file_path (required): Path to the file to review
|
|
56
|
+
- focus (optional): Focus area (style, security, performance, all)
|
|
57
|
+
|
|
58
|
+
Steps:
|
|
59
|
+
1. detect_language → secretary
|
|
60
|
+
2. analyze → ${language}-expert
|
|
61
|
+
3. security_check → qa-lead
|
|
62
|
+
4. report → documenter
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
Templates:
|
|
67
|
+
|
|
68
|
+
## pipeline-template
|
|
69
|
+
Description: Base template for creating new pipelines
|
|
70
|
+
Location: pipelines/templates/pipeline-template.yaml
|
|
71
|
+
|
|
72
|
+
Use as starting point for new pipelines.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Agent
|
|
76
|
+
|
|
77
|
+
Executed by: **secretary** (orchestrator)
|
|
78
|
+
|
|
79
|
+
## Related Commands
|
|
80
|
+
|
|
81
|
+
- `pipeline:run` - Execute a pipeline
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Command: pipeline:run
|
|
2
|
+
|
|
3
|
+
> Execute a defined pipeline
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pipeline:run <pipeline-name>
|
|
9
|
+
pipeline:run <pipeline-name> --input key=value
|
|
10
|
+
pipeline:run code-review --input file_path=src/main.go
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Name | Type | Required | Description |
|
|
16
|
+
|------|------|----------|-------------|
|
|
17
|
+
| pipeline-name | string | yes | Name of the pipeline to execute |
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
--input, -i Input values (key=value format, repeatable)
|
|
23
|
+
--dry-run Show steps without executing
|
|
24
|
+
--verbose, -v Show detailed execution info
|
|
25
|
+
--continue Continue from failed step (if pipeline was interrupted)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. Load pipeline from pipelines/{name}.yaml or pipelines/examples/{name}.yaml
|
|
32
|
+
2. Validate pipeline structure
|
|
33
|
+
3. Process input parameters
|
|
34
|
+
4. Execute steps sequentially
|
|
35
|
+
5. Pass outputs between steps
|
|
36
|
+
6. Report final results
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Output
|
|
40
|
+
|
|
41
|
+
### Normal Execution
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
[pipeline:run code-review --input file_path=src/main.go]
|
|
45
|
+
|
|
46
|
+
┌─ Agent: secretary (orchestrator)
|
|
47
|
+
├─ Skill: pipeline-execution
|
|
48
|
+
└─ Task: Executing pipeline: code-review
|
|
49
|
+
|
|
50
|
+
[Pipeline] code-review
|
|
51
|
+
├── Input: file_path=src/main.go
|
|
52
|
+
|
|
53
|
+
[1/4] detect_language
|
|
54
|
+
Agent: secretary
|
|
55
|
+
Status: ✓ go
|
|
56
|
+
|
|
57
|
+
[2/4] analyze
|
|
58
|
+
Agent: go-expert
|
|
59
|
+
Status: ✓ 3 issues found
|
|
60
|
+
|
|
61
|
+
[3/4] security_check
|
|
62
|
+
Agent: qa-lead
|
|
63
|
+
Status: ✓ No vulnerabilities
|
|
64
|
+
|
|
65
|
+
[4/4] report
|
|
66
|
+
Agent: documenter
|
|
67
|
+
Status: ✓ Report generated
|
|
68
|
+
|
|
69
|
+
[Complete] Pipeline finished successfully
|
|
70
|
+
|
|
71
|
+
Results:
|
|
72
|
+
├── language: go
|
|
73
|
+
├── issues: 3
|
|
74
|
+
├── security: clean
|
|
75
|
+
└── report: Review completed with 3 issues...
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Dry Run
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
[pipeline:run code-review --dry-run --input file_path=src/main.go]
|
|
82
|
+
|
|
83
|
+
[Pipeline] code-review (DRY RUN)
|
|
84
|
+
|
|
85
|
+
Steps to execute:
|
|
86
|
+
├── [1] detect_language → secretary.detect_language
|
|
87
|
+
│ Input: { file: "src/main.go" }
|
|
88
|
+
│ Output: → language
|
|
89
|
+
|
|
90
|
+
├── [2] analyze → ${language}-expert.analyze_code
|
|
91
|
+
│ Input: { file: "src/main.go", focus: "all" }
|
|
92
|
+
│ Output: → analysis
|
|
93
|
+
|
|
94
|
+
├── [3] security_check → qa-lead.security_review
|
|
95
|
+
│ Input: { file: "src/main.go", findings: ${analysis} }
|
|
96
|
+
│ Output: → security
|
|
97
|
+
|
|
98
|
+
└── [4] report → documenter.generate_report
|
|
99
|
+
Input: { file, language, analysis, security }
|
|
100
|
+
Output: → report
|
|
101
|
+
|
|
102
|
+
No changes made (dry run).
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Error
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
[pipeline:run code-review --input file_path=missing.go]
|
|
109
|
+
|
|
110
|
+
[Pipeline Failed] code-review
|
|
111
|
+
|
|
112
|
+
Error at step 1: detect_language
|
|
113
|
+
├── Error: File not found: missing.go
|
|
114
|
+
├── Status: ✗ Failed
|
|
115
|
+
└── Steps completed: 0/4
|
|
116
|
+
|
|
117
|
+
Pipeline aborted. No partial results.
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Agent
|
|
121
|
+
|
|
122
|
+
Executed by: **secretary** (orchestrator) using **pipeline-execution** skill
|
|
123
|
+
|
|
124
|
+
## Related Commands
|
|
125
|
+
|
|
126
|
+
- `pipeline:list` - List available pipelines
|
|
127
|
+
- `pipeline:status` - Show running pipeline status
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Command: supplier:audit
|
|
2
|
+
|
|
3
|
+
> Audit agent dependencies
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
supplier:audit
|
|
9
|
+
supplier:audit <agent-name>
|
|
10
|
+
supplier:audit --all
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Name | Type | Required | Description |
|
|
16
|
+
|------|------|----------|-------------|
|
|
17
|
+
| target | string | no | Specific agent to audit |
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
--all, -a Audit all agents
|
|
23
|
+
--verbose, -v Show detailed results
|
|
24
|
+
--fix Auto-fix issues (delegates to supplier:fix)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
1. Load agent configuration
|
|
31
|
+
└── Read index.yaml
|
|
32
|
+
|
|
33
|
+
2. Check skills
|
|
34
|
+
├── Skill exists in skills/
|
|
35
|
+
├── Skill path is valid
|
|
36
|
+
└── Symlink in refs/ is valid
|
|
37
|
+
|
|
38
|
+
3. Check guides
|
|
39
|
+
├── Guide exists in guides/
|
|
40
|
+
├── Guide path is valid
|
|
41
|
+
└── Symlink in refs/ is valid
|
|
42
|
+
|
|
43
|
+
4. Report results
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Output
|
|
47
|
+
|
|
48
|
+
### Single Agent
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
[supplier:audit golang-expert]
|
|
52
|
+
|
|
53
|
+
Auditing: golang-expert
|
|
54
|
+
|
|
55
|
+
Skills:
|
|
56
|
+
✓ go-best-practices
|
|
57
|
+
Path: ../../../skills/development/go-best-practices/
|
|
58
|
+
Status: Valid
|
|
59
|
+
|
|
60
|
+
Guides:
|
|
61
|
+
✓ golang
|
|
62
|
+
Path: ../../../guides/golang/
|
|
63
|
+
Status: Valid
|
|
64
|
+
|
|
65
|
+
Summary:
|
|
66
|
+
Skills: 1/1 valid
|
|
67
|
+
Guides: 1/1 valid
|
|
68
|
+
Status: HEALTHY
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### All Agents
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
[supplier:audit --all]
|
|
75
|
+
|
|
76
|
+
Auditing all agents...
|
|
77
|
+
|
|
78
|
+
sw-engineer:
|
|
79
|
+
✓ golang-expert (2/2 deps valid)
|
|
80
|
+
✓ python-expert (2/2 deps valid)
|
|
81
|
+
✓ rust-expert (2/2 deps valid)
|
|
82
|
+
✗ kotlin-expert (1/2 deps valid)
|
|
83
|
+
└─ Missing: kotlin guide symlink
|
|
84
|
+
|
|
85
|
+
sw-engineer/backend:
|
|
86
|
+
✓ fastapi-expert (2/2 deps valid)
|
|
87
|
+
✓ springboot-expert (2/2 deps valid)
|
|
88
|
+
✓ go-backend-expert (2/2 deps valid)
|
|
89
|
+
|
|
90
|
+
infra-engineer:
|
|
91
|
+
✓ docker-expert (2/2 deps valid)
|
|
92
|
+
✓ aws-expert (2/2 deps valid)
|
|
93
|
+
|
|
94
|
+
Summary:
|
|
95
|
+
Total agents: 15
|
|
96
|
+
Healthy: 14
|
|
97
|
+
Issues: 1
|
|
98
|
+
|
|
99
|
+
Run "supplier:fix kotlin-expert" to fix issues.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Verbose Output
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
[supplier:audit golang-expert --verbose]
|
|
106
|
+
|
|
107
|
+
Auditing: golang-expert
|
|
108
|
+
|
|
109
|
+
Configuration:
|
|
110
|
+
Path: agents/sw-engineer/golang-expert/
|
|
111
|
+
Type: sw-engineer
|
|
112
|
+
Source: internal
|
|
113
|
+
|
|
114
|
+
Declared Skills:
|
|
115
|
+
[1] go-best-practices
|
|
116
|
+
Declared path: ../../../skills/development/go-best-practices/
|
|
117
|
+
Resolved path: /path/to/skills/development/go-best-practices/
|
|
118
|
+
Exists: ✓
|
|
119
|
+
Symlink: refs/go-best-practices → ✓
|
|
120
|
+
|
|
121
|
+
Declared Guides:
|
|
122
|
+
[1] golang
|
|
123
|
+
Declared path: ../../../guides/golang/
|
|
124
|
+
Resolved path: /path/to/guides/golang/
|
|
125
|
+
Exists: ✓
|
|
126
|
+
Symlink: refs/golang → ✓
|
|
127
|
+
|
|
128
|
+
Cross-references:
|
|
129
|
+
✓ go-best-practices.used_by includes golang-expert
|
|
130
|
+
✓ golang.used_by includes golang-expert
|
|
131
|
+
|
|
132
|
+
Status: HEALTHY (all checks passed)
|
|
133
|
+
```
|