oh-my-customcode 0.8.0 → 0.9.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/README.md +10 -2
- package/dist/cli/index.js +517 -274
- package/dist/index.js +303 -101
- package/package.json +1 -1
- package/templates/.codex/agents/arch-documenter.md +97 -0
- package/templates/.codex/agents/arch-speckit-agent.md +134 -0
- package/templates/.codex/agents/be-express-expert.md +80 -0
- package/templates/.codex/agents/be-fastapi-expert.md +43 -0
- package/templates/.codex/agents/be-go-backend-expert.md +43 -0
- package/templates/.codex/agents/be-nestjs-expert.md +60 -0
- package/templates/.codex/agents/be-springboot-expert.md +85 -0
- package/templates/.codex/agents/db-postgres-expert.md +106 -0
- package/templates/.codex/agents/db-redis-expert.md +101 -0
- package/templates/.codex/agents/db-supabase-expert.md +71 -0
- package/templates/.codex/agents/de-airflow-expert.md +71 -0
- package/templates/.codex/agents/de-dbt-expert.md +72 -0
- package/templates/.codex/agents/de-kafka-expert.md +81 -0
- package/templates/.codex/agents/de-pipeline-expert.md +92 -0
- package/templates/.codex/agents/de-snowflake-expert.md +89 -0
- package/templates/.codex/agents/de-spark-expert.md +80 -0
- package/templates/.codex/agents/fe-svelte-agent.md +65 -0
- package/templates/.codex/agents/fe-vercel-agent.md +69 -0
- package/templates/.codex/agents/fe-vuejs-agent.md +65 -0
- package/templates/.codex/agents/infra-aws-expert.md +47 -0
- package/templates/.codex/agents/infra-docker-expert.md +47 -0
- package/templates/.codex/agents/lang-golang-expert.md +43 -0
- package/templates/.codex/agents/lang-java21-expert.md +65 -0
- package/templates/.codex/agents/lang-kotlin-expert.md +43 -0
- package/templates/.codex/agents/lang-python-expert.md +43 -0
- package/templates/.codex/agents/lang-rust-expert.md +43 -0
- package/templates/.codex/agents/lang-typescript-expert.md +43 -0
- package/templates/.codex/agents/mgr-claude-code-bible.md +246 -0
- package/templates/.codex/agents/mgr-creator.md +120 -0
- package/templates/.codex/agents/mgr-gitnerd.md +113 -0
- package/templates/.codex/agents/mgr-sauron.md +154 -0
- package/templates/.codex/agents/mgr-supplier.md +120 -0
- package/templates/.codex/agents/mgr-sync-checker.md +99 -0
- package/templates/.codex/agents/mgr-updater.md +103 -0
- package/templates/.codex/agents/qa-engineer.md +96 -0
- package/templates/.codex/agents/qa-planner.md +74 -0
- package/templates/.codex/agents/qa-writer.md +97 -0
- package/templates/.codex/agents/sys-memory-keeper.md +117 -0
- package/templates/.codex/agents/sys-naggy.md +90 -0
- package/templates/.codex/agents/tool-bun-expert.md +71 -0
- package/templates/.codex/agents/tool-npm-expert.md +88 -0
- package/templates/.codex/agents/tool-optimizer.md +87 -0
- package/templates/.codex/codex-native-hash.txt +1 -0
- package/templates/.codex/contexts/dev.md +20 -0
- package/templates/.codex/contexts/ecomode.md +63 -0
- package/templates/.codex/contexts/index.yaml +41 -0
- package/templates/.codex/contexts/research.md +28 -0
- package/templates/.codex/contexts/review.md +23 -0
- package/templates/.codex/hooks/hooks.json +151 -0
- package/templates/.codex/install-hooks.sh +100 -0
- package/templates/.codex/rules/MAY-optimization.md +93 -0
- package/templates/.codex/rules/MUST-agent-design.md +162 -0
- package/templates/.codex/rules/MUST-agent-identification.md +108 -0
- package/templates/.codex/rules/MUST-continuous-improvement.md +132 -0
- package/templates/.codex/rules/MUST-intent-transparency.md +199 -0
- package/templates/.codex/rules/MUST-language-policy.md +62 -0
- package/templates/.codex/rules/MUST-orchestrator-coordination.md +471 -0
- package/templates/.codex/rules/MUST-parallel-execution.md +469 -0
- package/templates/.codex/rules/MUST-permissions.md +84 -0
- package/templates/.codex/rules/MUST-safety.md +69 -0
- package/templates/.codex/rules/MUST-sync-verification.md +281 -0
- package/templates/.codex/rules/MUST-tool-identification.md +195 -0
- package/templates/.codex/rules/SHOULD-agent-teams.md +183 -0
- package/templates/.codex/rules/SHOULD-ecomode.md +145 -0
- package/templates/.codex/rules/SHOULD-error-handling.md +102 -0
- package/templates/.codex/rules/SHOULD-hud-statusline.md +112 -0
- package/templates/.codex/rules/SHOULD-interaction.md +103 -0
- package/templates/.codex/rules/SHOULD-memory-integration.md +132 -0
- package/templates/.codex/rules/index.yaml +141 -0
- package/templates/.codex/skills/airflow-best-practices/SKILL.md +56 -0
- package/templates/.codex/skills/audit-agents/SKILL.md +116 -0
- package/templates/.codex/skills/aws-best-practices/SKILL.md +280 -0
- package/templates/.codex/skills/claude-code-bible/SKILL.md +180 -0
- package/templates/.codex/skills/claude-code-bible/scripts/fetch-docs.js +244 -0
- package/templates/.codex/skills/create-agent/SKILL.md +91 -0
- package/templates/.codex/skills/dbt-best-practices/SKILL.md +54 -0
- package/templates/.codex/skills/de-lead-routing/SKILL.md +230 -0
- package/templates/.codex/skills/dev-lead-routing/SKILL.md +253 -0
- package/templates/.codex/skills/dev-refactor/SKILL.md +123 -0
- package/templates/.codex/skills/dev-review/SKILL.md +81 -0
- package/templates/.codex/skills/docker-best-practices/SKILL.md +275 -0
- package/templates/.codex/skills/fastapi-best-practices/SKILL.md +270 -0
- package/templates/.codex/skills/fix-refs/SKILL.md +107 -0
- package/templates/.codex/skills/go-backend-best-practices/SKILL.md +338 -0
- package/templates/.codex/skills/go-best-practices/CLAUDE.md +9 -0
- package/templates/.codex/skills/go-best-practices/SKILL.md +203 -0
- package/templates/.codex/skills/help/SKILL.md +125 -0
- package/templates/.codex/skills/intent-detection/SKILL.md +215 -0
- package/templates/.codex/skills/intent-detection/patterns/agent-triggers.yaml +349 -0
- package/templates/.codex/skills/kafka-best-practices/SKILL.md +52 -0
- package/templates/.codex/skills/kotlin-best-practices/SKILL.md +256 -0
- package/templates/.codex/skills/lists/SKILL.md +78 -0
- package/templates/.codex/skills/memory-management/SKILL.md +195 -0
- package/templates/.codex/skills/memory-recall/SKILL.md +152 -0
- package/templates/.codex/skills/memory-save/SKILL.md +126 -0
- package/templates/.codex/skills/monitoring-setup/SKILL.md +115 -0
- package/templates/.codex/skills/npm-audit/SKILL.md +72 -0
- package/templates/.codex/skills/npm-publish/SKILL.md +63 -0
- package/templates/.codex/skills/npm-version/SKILL.md +75 -0
- package/templates/.codex/skills/optimize-analyze/SKILL.md +55 -0
- package/templates/.codex/skills/optimize-bundle/SKILL.md +67 -0
- package/templates/.codex/skills/optimize-report/SKILL.md +74 -0
- package/templates/.codex/skills/pipeline-architecture-patterns/SKILL.md +83 -0
- package/templates/.codex/skills/postgres-best-practices/SKILL.md +66 -0
- package/templates/.codex/skills/python-best-practices/SKILL.md +222 -0
- package/templates/.codex/skills/qa-lead-routing/SKILL.md +277 -0
- package/templates/.codex/skills/react-best-practices/SKILL.md +101 -0
- package/templates/.codex/skills/redis-best-practices/SKILL.md +83 -0
- package/templates/.codex/skills/result-aggregation/SKILL.md +164 -0
- package/templates/.codex/skills/rust-best-practices/SKILL.md +267 -0
- package/templates/.codex/skills/sauron-watch/SKILL.md +144 -0
- package/templates/.codex/skills/secretary-routing/SKILL.md +190 -0
- package/templates/.codex/skills/snowflake-best-practices/SKILL.md +65 -0
- package/templates/.codex/skills/spark-best-practices/SKILL.md +52 -0
- package/templates/.codex/skills/springboot-best-practices/SKILL.md +357 -0
- package/templates/.codex/skills/status/SKILL.md +153 -0
- package/templates/.codex/skills/supabase-postgres-best-practices/SKILL.md +99 -0
- package/templates/.codex/skills/typescript-best-practices/SKILL.md +321 -0
- package/templates/.codex/skills/update-docs/SKILL.md +140 -0
- package/templates/.codex/skills/update-external/SKILL.md +149 -0
- package/templates/.codex/skills/vercel-deploy/SKILL.md +73 -0
- package/templates/.codex/skills/web-design-guidelines/SKILL.md +118 -0
- package/templates/.codex/skills/writing-clearly-and-concisely/SKILL.md +64 -0
- package/templates/.codex/uninstall-hooks.sh +52 -0
- package/templates/AGENTS.md.en +39 -0
- package/templates/AGENTS.md.ko +39 -0
- package/templates/manifest.codex.json +43 -0
- package/templates/manifest.json +5 -5
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memory-save
|
|
3
|
+
description: Save current session context to claude-mem
|
|
4
|
+
argument-hint: "[--tags <tags>] [--include-code]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Memory Save Skill
|
|
9
|
+
|
|
10
|
+
Save current session context to claude-mem for persistence across context compaction.
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
--tags, -t Additional tags for the memory
|
|
16
|
+
--include-code Include code changes in the save
|
|
17
|
+
--summary, -s Custom summary (otherwise auto-generated)
|
|
18
|
+
--verbose, -v Show detailed save information
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
1. Collect session context
|
|
25
|
+
├── Tasks completed
|
|
26
|
+
├── Decisions made
|
|
27
|
+
├── Open items
|
|
28
|
+
└── Code changes (if --include-code)
|
|
29
|
+
|
|
30
|
+
2. Format with metadata
|
|
31
|
+
├── project: my-project
|
|
32
|
+
├── session: {date}-{uuid}
|
|
33
|
+
├── tags: [session, ...user_tags]
|
|
34
|
+
└── created_at: {timestamp}
|
|
35
|
+
|
|
36
|
+
3. Store in claude-mem
|
|
37
|
+
└── chroma_add_documents
|
|
38
|
+
|
|
39
|
+
4. Report result
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Storage Format
|
|
43
|
+
|
|
44
|
+
```yaml
|
|
45
|
+
project: my-project
|
|
46
|
+
session: {date}-{uuid}
|
|
47
|
+
tags: [session, task, decision]
|
|
48
|
+
content:
|
|
49
|
+
summary: Brief description of session context
|
|
50
|
+
tasks_completed: List of completed tasks
|
|
51
|
+
decisions: Key decisions made
|
|
52
|
+
open_items: Unfinished work
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Output Format
|
|
56
|
+
|
|
57
|
+
### Success
|
|
58
|
+
```
|
|
59
|
+
[sys-memory-keeper:save]
|
|
60
|
+
|
|
61
|
+
Saving session context...
|
|
62
|
+
|
|
63
|
+
Context collected:
|
|
64
|
+
Tasks: 3 completed
|
|
65
|
+
Decisions: 2 recorded
|
|
66
|
+
Open items: 1 pending
|
|
67
|
+
|
|
68
|
+
Metadata:
|
|
69
|
+
Project: my-project
|
|
70
|
+
Session: 2025-01-24-a1b2c3d4
|
|
71
|
+
Tags: [session, task, decision]
|
|
72
|
+
|
|
73
|
+
[Done] Session context saved successfully.
|
|
74
|
+
Memory ID: mem_abc123
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### With Tags
|
|
78
|
+
```
|
|
79
|
+
[sys-memory-keeper:save --tags "authentication,oauth"]
|
|
80
|
+
|
|
81
|
+
Saving session context...
|
|
82
|
+
|
|
83
|
+
Metadata:
|
|
84
|
+
Project: my-project
|
|
85
|
+
Session: 2025-01-24-a1b2c3d4
|
|
86
|
+
Tags: [session, task, decision, authentication, oauth]
|
|
87
|
+
|
|
88
|
+
[Done] Session context saved successfully.
|
|
89
|
+
Memory ID: mem_abc123
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Verbose
|
|
93
|
+
```
|
|
94
|
+
[sys-memory-keeper:save --verbose]
|
|
95
|
+
|
|
96
|
+
Collecting session context...
|
|
97
|
+
|
|
98
|
+
Tasks Completed:
|
|
99
|
+
1. Implemented OAuth flow
|
|
100
|
+
2. Added JWT token validation
|
|
101
|
+
3. Created authentication middleware
|
|
102
|
+
|
|
103
|
+
Decisions Made:
|
|
104
|
+
1. Use RS256 for JWT signing
|
|
105
|
+
Rationale: Better security for distributed systems
|
|
106
|
+
2. Token expiry: 1 hour
|
|
107
|
+
Rationale: Balance security and user experience
|
|
108
|
+
|
|
109
|
+
Open Items:
|
|
110
|
+
1. Refresh token implementation
|
|
111
|
+
Status: In progress
|
|
112
|
+
|
|
113
|
+
Saving to claude-mem...
|
|
114
|
+
|
|
115
|
+
Document content:
|
|
116
|
+
## Session Summary
|
|
117
|
+
Date: 2025-01-24
|
|
118
|
+
...
|
|
119
|
+
|
|
120
|
+
[Done] Session context saved.
|
|
121
|
+
Memory ID: mem_abc123
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Related
|
|
125
|
+
|
|
126
|
+
- memory-recall - Search and recall memories
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: monitoring-setup
|
|
3
|
+
description: Enable/disable OpenTelemetry console monitoring for Claude Code usage tracking
|
|
4
|
+
argument-hint: "[enable|disable|status]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Monitoring Setup Skill
|
|
8
|
+
|
|
9
|
+
Enable or disable OpenTelemetry console monitoring. When enabled, Claude Code outputs usage metrics (cost, tokens, sessions, LOC, commits, PRs, active time) and events (tool results, API requests) to the terminal.
|
|
10
|
+
|
|
11
|
+
## Natural Language Triggers
|
|
12
|
+
|
|
13
|
+
This skill activates when the user mentions any of:
|
|
14
|
+
- Korean: "모니터링", "텔레메트리", "사용량 추적", "메트릭", "모니터링 켜줘", "텔레메트리 활성화"
|
|
15
|
+
- English: "monitoring", "telemetry", "usage tracking", "metrics", "enable monitoring"
|
|
16
|
+
- Combined with actions: "켜", "끄", "활성화", "비활성화", "설정", "enable", "disable", "setup"
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
|
|
20
|
+
### enable (default)
|
|
21
|
+
|
|
22
|
+
1. Read `.codex/settings.local.json` (create if not exists)
|
|
23
|
+
2. Add or update `env` field with:
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"env": {
|
|
27
|
+
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
|
|
28
|
+
"OTEL_METRICS_EXPORTER": "console",
|
|
29
|
+
"OTEL_LOGS_EXPORTER": "console"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
3. Preserve all existing settings
|
|
34
|
+
4. Report to user:
|
|
35
|
+
```
|
|
36
|
+
[Done] OpenTelemetry Console Monitoring enabled
|
|
37
|
+
|
|
38
|
+
Configured in: .codex/settings.local.json
|
|
39
|
+
Metrics: sessions, cost, tokens, LOC, commits, PRs, active time
|
|
40
|
+
Events: tool results, API requests, tool decisions
|
|
41
|
+
|
|
42
|
+
Note: Takes effect on next `claude` session restart.
|
|
43
|
+
To disable: /monitoring-setup disable
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### disable
|
|
47
|
+
|
|
48
|
+
1. Read `.codex/settings.local.json`
|
|
49
|
+
2. Remove OTel-related keys from `env`:
|
|
50
|
+
- `CLAUDE_CODE_ENABLE_TELEMETRY`
|
|
51
|
+
- `OTEL_METRICS_EXPORTER`
|
|
52
|
+
- `OTEL_LOGS_EXPORTER`
|
|
53
|
+
3. If `env` object becomes empty, remove `env` field entirely
|
|
54
|
+
4. Report:
|
|
55
|
+
```
|
|
56
|
+
[Done] OpenTelemetry Monitoring disabled
|
|
57
|
+
|
|
58
|
+
Removed from: .codex/settings.local.json
|
|
59
|
+
Takes effect on next session restart.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### status
|
|
63
|
+
|
|
64
|
+
1. Read `.codex/settings.local.json`
|
|
65
|
+
2. Check for OTel env vars
|
|
66
|
+
3. Report current state:
|
|
67
|
+
```
|
|
68
|
+
[Monitoring Status]
|
|
69
|
+
├── Enabled: Yes/No
|
|
70
|
+
├── Metrics exporter: console / otlp / none
|
|
71
|
+
├── Logs exporter: console / otlp / none
|
|
72
|
+
└── Config: .codex/settings.local.json
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Implementation Notes
|
|
76
|
+
|
|
77
|
+
- `settings.local.json` is NOT git-tracked (local to user)
|
|
78
|
+
- Each user enables monitoring independently
|
|
79
|
+
- No infrastructure required for console mode
|
|
80
|
+
- Metrics appear in stderr during Claude Code execution
|
|
81
|
+
- Default export interval: 60s for metrics, 5s for events
|
|
82
|
+
|
|
83
|
+
## Available Metrics
|
|
84
|
+
|
|
85
|
+
| Metric | Description | Unit |
|
|
86
|
+
|--------|-------------|------|
|
|
87
|
+
| `claude_code.session.count` | CLI sessions started | count |
|
|
88
|
+
| `claude_code.cost.usage` | Session cost | USD |
|
|
89
|
+
| `claude_code.token.usage` | Tokens used (input/output/cache) | tokens |
|
|
90
|
+
| `claude_code.lines_of_code.count` | Code lines modified (added/removed) | count |
|
|
91
|
+
| `claude_code.commit.count` | Git commits created | count |
|
|
92
|
+
| `claude_code.pull_request.count` | Pull requests created | count |
|
|
93
|
+
| `claude_code.active_time.total` | Active usage time | seconds |
|
|
94
|
+
|
|
95
|
+
## Available Events
|
|
96
|
+
|
|
97
|
+
| Event | Description |
|
|
98
|
+
|-------|-------------|
|
|
99
|
+
| `claude_code.tool_result` | Tool execution results with duration |
|
|
100
|
+
| `claude_code.api_request` | API request details with cost/tokens |
|
|
101
|
+
| `claude_code.api_error` | API error details |
|
|
102
|
+
| `claude_code.tool_decision` | Tool accept/reject decisions |
|
|
103
|
+
| `claude_code.user_prompt` | User prompt metadata (content redacted by default) |
|
|
104
|
+
|
|
105
|
+
## Upgrade Path
|
|
106
|
+
|
|
107
|
+
For production monitoring, upgrade from console to OTLP:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# In settings.local.json env:
|
|
111
|
+
OTEL_METRICS_EXPORTER=otlp
|
|
112
|
+
OTEL_LOGS_EXPORTER=otlp
|
|
113
|
+
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
|
|
114
|
+
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
|
|
115
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: npm-audit
|
|
3
|
+
description: Audit npm dependencies for security and updates
|
|
4
|
+
argument-hint: "[--fix] [--production]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# NPM Audit Skill
|
|
8
|
+
|
|
9
|
+
Audit npm dependencies for security vulnerabilities and outdated packages.
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
--fix Automatically fix vulnerabilities where possible
|
|
15
|
+
--production Only audit production dependencies
|
|
16
|
+
--json Output in JSON format
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
1. Run npm audit for security vulnerabilities
|
|
23
|
+
2. Analyze vulnerability severity
|
|
24
|
+
3. Check for outdated dependencies
|
|
25
|
+
4. Generate health report
|
|
26
|
+
5. Suggest remediation steps
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Output Format
|
|
30
|
+
|
|
31
|
+
### Success
|
|
32
|
+
```
|
|
33
|
+
[NPM Audit] package-name
|
|
34
|
+
|
|
35
|
+
Security:
|
|
36
|
+
Critical: 0
|
|
37
|
+
High: 0
|
|
38
|
+
Moderate: 2
|
|
39
|
+
Low: 1
|
|
40
|
+
|
|
41
|
+
Outdated:
|
|
42
|
+
Major updates: 3
|
|
43
|
+
Minor updates: 5
|
|
44
|
+
Patch updates: 12
|
|
45
|
+
|
|
46
|
+
Status: Needs attention (2 moderate vulnerabilities)
|
|
47
|
+
|
|
48
|
+
Recommendations:
|
|
49
|
+
1. npm update lodash
|
|
50
|
+
2. npm update axios
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Failure
|
|
54
|
+
```
|
|
55
|
+
[NPM Audit] Failed
|
|
56
|
+
|
|
57
|
+
Error: {error_message}
|
|
58
|
+
Hint: Ensure package-lock.json exists
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Full dependency audit with report
|
|
65
|
+
npm-audit
|
|
66
|
+
|
|
67
|
+
# Audit and fix vulnerabilities
|
|
68
|
+
npm-audit --fix
|
|
69
|
+
|
|
70
|
+
# Audit only production dependencies
|
|
71
|
+
npm-audit --production
|
|
72
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: npm-publish
|
|
3
|
+
description: Publish package to npm registry with pre-checks
|
|
4
|
+
argument-hint: "[--tag <tag>] [--dry-run]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# NPM Publish Skill
|
|
9
|
+
|
|
10
|
+
Publish package to npm registry with comprehensive pre-publish checks and validation.
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
--tag npm dist-tag (default: latest)
|
|
16
|
+
--dry-run Run all checks without publishing
|
|
17
|
+
--skip-tests Skip test execution
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
1. Validate package.json configuration
|
|
24
|
+
2. Check version against registry
|
|
25
|
+
3. Run pre-publish checks (tests, lint, build)
|
|
26
|
+
4. Execute npm pack (dry-run)
|
|
27
|
+
5. Publish with appropriate tag
|
|
28
|
+
6. Verify publication success
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Output Format
|
|
32
|
+
|
|
33
|
+
### Success
|
|
34
|
+
```
|
|
35
|
+
[NPM Publish] package-name@1.2.3
|
|
36
|
+
|
|
37
|
+
Pre-checks: All passed
|
|
38
|
+
Registry: https://registry.npmjs.org
|
|
39
|
+
Tag: latest
|
|
40
|
+
|
|
41
|
+
Package published successfully.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Failure
|
|
45
|
+
```
|
|
46
|
+
[NPM Publish] Failed
|
|
47
|
+
|
|
48
|
+
Error: {error_message}
|
|
49
|
+
Suggested fix: {fix_suggestion}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Publish to npm with all checks
|
|
56
|
+
npm-publish
|
|
57
|
+
|
|
58
|
+
# Publish to beta tag
|
|
59
|
+
npm-publish --tag beta
|
|
60
|
+
|
|
61
|
+
# Validate without publishing
|
|
62
|
+
npm-publish --dry-run
|
|
63
|
+
```
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: npm-version
|
|
3
|
+
description: Manage semantic versions for npm packages
|
|
4
|
+
argument-hint: "<major|minor|patch> [--no-tag] [--no-commit]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# NPM Version Management Skill
|
|
9
|
+
|
|
10
|
+
Manage semantic versions for npm packages with automatic changelog and git integration.
|
|
11
|
+
|
|
12
|
+
## Arguments
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
major Bump major version (x.0.0)
|
|
16
|
+
minor Bump minor version (0.x.0)
|
|
17
|
+
patch Bump patch version (0.0.x)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
--no-tag Skip git tag creation
|
|
24
|
+
--no-commit Skip commit creation (only update files)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
1. Analyze current version from package.json
|
|
31
|
+
2. Determine version bump type
|
|
32
|
+
3. Update package.json version field
|
|
33
|
+
4. Update CHANGELOG.md if exists
|
|
34
|
+
5. Create version commit
|
|
35
|
+
6. Create git tag (optional)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Output Format
|
|
39
|
+
|
|
40
|
+
### Success
|
|
41
|
+
```
|
|
42
|
+
[NPM Version] package-name
|
|
43
|
+
|
|
44
|
+
Previous: 1.2.3
|
|
45
|
+
Current: 1.2.4
|
|
46
|
+
|
|
47
|
+
Changes:
|
|
48
|
+
- package.json updated
|
|
49
|
+
- Commit: "chore: bump version to 1.2.4"
|
|
50
|
+
- Tag: v1.2.4
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Failure
|
|
54
|
+
```
|
|
55
|
+
[NPM Version] Failed
|
|
56
|
+
|
|
57
|
+
Error: {error_message}
|
|
58
|
+
Hint: Ensure clean git working directory
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Bump patch version (1.2.3 -> 1.2.4)
|
|
65
|
+
npm-version patch
|
|
66
|
+
|
|
67
|
+
# Bump minor version (1.2.3 -> 1.3.0)
|
|
68
|
+
npm-version minor
|
|
69
|
+
|
|
70
|
+
# Bump major version (1.2.3 -> 2.0.0)
|
|
71
|
+
npm-version major
|
|
72
|
+
|
|
73
|
+
# Update version without creating git tag
|
|
74
|
+
npm-version patch --no-tag
|
|
75
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: optimize-analyze
|
|
3
|
+
description: Analyze bundle size and performance metrics
|
|
4
|
+
argument-hint: "[target] [--verbose]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Bundle Analysis Skill
|
|
8
|
+
|
|
9
|
+
Analyze bundle size and performance metrics for web applications.
|
|
10
|
+
|
|
11
|
+
## Arguments
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
target Build output path or project root (optional, auto-detects)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
--verbose, -v Show detailed analysis
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
1. Identify build tool (webpack, vite, rollup, esbuild)
|
|
27
|
+
2. Locate build output
|
|
28
|
+
3. Analyze bundle composition
|
|
29
|
+
4. Calculate size metrics
|
|
30
|
+
5. Identify large dependencies
|
|
31
|
+
6. Detect unused code/exports
|
|
32
|
+
7. Generate analysis report
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Output
|
|
36
|
+
|
|
37
|
+
- Total bundle size
|
|
38
|
+
- Size breakdown by chunk/module
|
|
39
|
+
- Top dependencies by size
|
|
40
|
+
- Tree-shaking status
|
|
41
|
+
- Dead code detection
|
|
42
|
+
- Optimization recommendations
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Analyze current project
|
|
48
|
+
optimize-analyze
|
|
49
|
+
|
|
50
|
+
# Analyze specific output directory
|
|
51
|
+
optimize-analyze ./dist
|
|
52
|
+
|
|
53
|
+
# Verbose analysis
|
|
54
|
+
optimize-analyze --verbose
|
|
55
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: optimize-bundle
|
|
3
|
+
description: Apply bundle size optimizations
|
|
4
|
+
argument-hint: "[--dry-run] [--safe]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Bundle Optimization Skill
|
|
9
|
+
|
|
10
|
+
Apply bundle size optimizations to reduce build output and improve performance.
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
--dry-run Show what would be changed without applying
|
|
16
|
+
--safe Only apply safe, reversible optimizations
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
1. Run full bundle analysis
|
|
23
|
+
2. Identify optimization opportunities
|
|
24
|
+
3. Prioritize by impact and risk
|
|
25
|
+
4. Apply recommended changes (or show dry-run)
|
|
26
|
+
5. Rebuild if changes applied
|
|
27
|
+
6. Verify improvements
|
|
28
|
+
7. Report before/after metrics
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Optimization Levels
|
|
32
|
+
|
|
33
|
+
### Safe
|
|
34
|
+
- Configure code splitting
|
|
35
|
+
- Enable tree-shaking for ESM
|
|
36
|
+
- Add terser/minification
|
|
37
|
+
- Configure chunk optimization
|
|
38
|
+
|
|
39
|
+
### Moderate
|
|
40
|
+
- Replace heavy dependencies with lighter alternatives
|
|
41
|
+
- Add dynamic imports for routes
|
|
42
|
+
- Configure asset optimization
|
|
43
|
+
|
|
44
|
+
### Aggressive
|
|
45
|
+
- Remove unused dependencies
|
|
46
|
+
- Inline small modules
|
|
47
|
+
- Configure aggressive minification
|
|
48
|
+
|
|
49
|
+
## Output
|
|
50
|
+
|
|
51
|
+
- Applied changes list
|
|
52
|
+
- Before/after size comparison
|
|
53
|
+
- Build time comparison
|
|
54
|
+
- Risk assessment for each change
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Apply all safe optimizations
|
|
60
|
+
optimize-bundle
|
|
61
|
+
|
|
62
|
+
# Preview changes without applying
|
|
63
|
+
optimize-bundle --dry-run
|
|
64
|
+
|
|
65
|
+
# Only apply safe optimizations
|
|
66
|
+
optimize-bundle --safe
|
|
67
|
+
```
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: optimize-report
|
|
3
|
+
description: Generate comprehensive optimization report
|
|
4
|
+
argument-hint: "[--baseline <file>] [--format <format>]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Optimization Report Skill
|
|
8
|
+
|
|
9
|
+
Generate comprehensive optimization report with analysis, metrics, and recommendations.
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
--baseline Compare against previous report
|
|
15
|
+
--format Output format (text, json, markdown)
|
|
16
|
+
Default: text
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
1. Run full analysis
|
|
23
|
+
2. Collect all metrics
|
|
24
|
+
3. Compare against baseline (if provided)
|
|
25
|
+
4. Calculate performance scores
|
|
26
|
+
5. Generate recommendations
|
|
27
|
+
6. Format report
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Report Sections
|
|
31
|
+
|
|
32
|
+
### Bundle Analysis
|
|
33
|
+
- Total size (raw and gzipped)
|
|
34
|
+
- Chunk breakdown
|
|
35
|
+
- Dependency tree
|
|
36
|
+
|
|
37
|
+
### Performance Metrics
|
|
38
|
+
- Estimated load times
|
|
39
|
+
- Core Web Vitals impact
|
|
40
|
+
- Build performance
|
|
41
|
+
|
|
42
|
+
### Code Quality
|
|
43
|
+
- Tree-shaking effectiveness
|
|
44
|
+
- Dead code percentage
|
|
45
|
+
- Duplicate code detection
|
|
46
|
+
|
|
47
|
+
### Recommendations
|
|
48
|
+
- High impact optimizations
|
|
49
|
+
- Quick wins
|
|
50
|
+
- Long-term improvements
|
|
51
|
+
|
|
52
|
+
### Comparison (if baseline)
|
|
53
|
+
- Size delta
|
|
54
|
+
- Performance delta
|
|
55
|
+
- Trend analysis
|
|
56
|
+
|
|
57
|
+
## Output
|
|
58
|
+
|
|
59
|
+
- Formatted report in requested format
|
|
60
|
+
- Performance grade (A-F)
|
|
61
|
+
- Priority action items
|
|
62
|
+
|
|
63
|
+
## Examples
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Generate current report
|
|
67
|
+
optimize-report
|
|
68
|
+
|
|
69
|
+
# Compare against previous report
|
|
70
|
+
optimize-report --baseline ./previous-report.json
|
|
71
|
+
|
|
72
|
+
# Generate markdown report
|
|
73
|
+
optimize-report --format markdown
|
|
74
|
+
```
|