omgkit 2.23.0 → 2.24.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "omgkit",
3
- "version": "2.23.0",
4
- "description": "Omega-Level Development Kit - AI Team System for Claude Code. 41 agents, 151 commands, 157 skills, 67 workflows.",
3
+ "version": "2.24.0",
4
+ "description": "Omega-Level Development Kit - AI Team System for Claude Code. 41 agents, 156 commands, 157 skills, 68 workflows.",
5
5
  "keywords": [
6
6
  "claude-code",
7
7
  "ai",
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: hooks:run
3
+ description: Manually run Git hook actions for testing or debugging, without triggering an actual Git operation.
4
+ category: hooks
5
+ ---
6
+
7
+ # /hooks:run
8
+
9
+ Manually execute Git hook actions for testing or debugging.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Run all actions for a hook
15
+ /hooks:run pre-commit
16
+ /hooks:run commit-msg
17
+ /hooks:run pre-push
18
+
19
+ # Run specific action only
20
+ /hooks:run pre-commit --action=lint
21
+ /hooks:run pre-commit --action=format
22
+ /hooks:run pre-push --action=test
23
+
24
+ # Run on specific files
25
+ /hooks:run pre-commit --files="src/app.ts,src/utils.ts"
26
+
27
+ # Verbose output
28
+ /hooks:run pre-commit --verbose
29
+ ```
30
+
31
+ ## Available Hooks
32
+
33
+ ### pre-commit
34
+
35
+ ```bash
36
+ /hooks:run pre-commit
37
+
38
+ # Actions:
39
+ # - lint: Run linter on staged files
40
+ # - format: Format staged files
41
+ # - type-check: Run type checker
42
+ # - secrets-check: Detect leaked secrets
43
+ ```
44
+
45
+ ### commit-msg
46
+
47
+ ```bash
48
+ /hooks:run commit-msg
49
+
50
+ # Validates last commit message
51
+ # Or provide message:
52
+ /hooks:run commit-msg --message="feat: add login"
53
+ ```
54
+
55
+ ### pre-push
56
+
57
+ ```bash
58
+ /hooks:run pre-push
59
+
60
+ # Actions:
61
+ # - test: Run test suite
62
+ # - security-scan: Run security audit
63
+ # - build: Verify build works
64
+ ```
65
+
66
+ ## Output
67
+
68
+ ```
69
+ Running pre-commit hooks
70
+ ========================
71
+
72
+ Action: lint
73
+ Running: npx eslint src/
74
+ ✓ Passed (0 errors, 2 warnings)
75
+
76
+ Action: format
77
+ Running: npx prettier --check src/
78
+ ✓ All files formatted
79
+
80
+ Action: type-check
81
+ Running: npx tsc --noEmit
82
+ ✓ No type errors
83
+
84
+ Summary: 3/3 actions passed
85
+ ```
86
+
87
+ ## Use Cases
88
+
89
+ ### Test Before Commit
90
+
91
+ ```bash
92
+ # Make sure hooks will pass
93
+ /hooks:run pre-commit
94
+
95
+ # Then commit
96
+ git commit -m "feat: add feature"
97
+ ```
98
+
99
+ ### Debug Failing Hook
100
+
101
+ ```bash
102
+ # Run with verbose output
103
+ /hooks:run pre-commit --verbose
104
+
105
+ # Run specific failing action
106
+ /hooks:run pre-commit --action=lint
107
+ ```
108
+
109
+ ### Validate Commit Message
110
+
111
+ ```bash
112
+ # Check if message is valid
113
+ /hooks:run commit-msg --message="fix: resolve bug"
114
+
115
+ # Output:
116
+ # ✓ Valid conventional commit
117
+ # Type: fix
118
+ # Subject: resolve bug
119
+ ```
120
+
121
+ ### Run Tests Before Push
122
+
123
+ ```bash
124
+ # Full pre-push check
125
+ /hooks:run pre-push
126
+
127
+ # Just tests
128
+ /hooks:run pre-push --action=test
129
+ ```
130
+
131
+ ## Exit Codes
132
+
133
+ | Code | Meaning |
134
+ |------|---------|
135
+ | 0 | All actions passed |
136
+ | 1 | One or more actions failed |
137
+ | 2 | Config error or invalid hook |
138
+
139
+ ## Related Commands
140
+
141
+ - `/hooks:setup` - Install/update hooks
142
+ - `/workflow:status` - Check workflow status
143
+ - `/dev:test` - Run tests
144
+ - `/quality:lint` - Run linter
@@ -0,0 +1,174 @@
1
+ ---
2
+ name: hooks:setup
3
+ description: Install or update Git hooks based on workflow configuration, creating executable hook scripts in .git/hooks/.
4
+ category: hooks
5
+ ---
6
+
7
+ # /hooks:setup
8
+
9
+ Install Git hooks from your workflow configuration.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Install all hooks from config
15
+ /hooks:setup
16
+
17
+ # Install specific hook only
18
+ /hooks:setup --hook=pre-commit
19
+ /hooks:setup --hook=commit-msg
20
+ /hooks:setup --hook=pre-push
21
+
22
+ # Force overwrite existing hooks
23
+ /hooks:setup --force
24
+
25
+ # Dry run (show what would be created)
26
+ /hooks:setup --dry-run
27
+
28
+ # Remove all hooks
29
+ /hooks:setup --remove
30
+ ```
31
+
32
+ ## What It Does
33
+
34
+ 1. **Reads config** from `.omgkit/workflow.yaml`
35
+ 2. **Generates hook scripts** based on settings
36
+ 3. **Installs to `.git/hooks/`** with execute permissions
37
+ 4. **Validates installation**
38
+
39
+ ## Generated Hooks
40
+
41
+ ### pre-commit
42
+
43
+ Runs before each commit:
44
+
45
+ ```yaml
46
+ hooks:
47
+ pre_commit:
48
+ enabled: true
49
+ actions:
50
+ - lint # ESLint, Pylint, etc.
51
+ - format # Prettier, Black, etc.
52
+ - type-check # TypeScript, mypy, etc.
53
+ ```
54
+
55
+ ### commit-msg
56
+
57
+ Validates commit message:
58
+
59
+ ```yaml
60
+ hooks:
61
+ commit_msg:
62
+ enabled: true
63
+ validate_conventional: true
64
+ max_length: 72
65
+ ```
66
+
67
+ ### pre-push
68
+
69
+ Runs before push:
70
+
71
+ ```yaml
72
+ hooks:
73
+ pre_push:
74
+ enabled: true
75
+ actions:
76
+ - test # Run tests
77
+ - security-scan # npm audit, safety
78
+ ```
79
+
80
+ ### post-merge
81
+
82
+ Runs after git pull/merge:
83
+
84
+ ```yaml
85
+ hooks:
86
+ post_merge:
87
+ enabled: true
88
+ actions:
89
+ - install # npm install
90
+ ```
91
+
92
+ ## Output
93
+
94
+ ```
95
+ Installing Git Hooks
96
+ ====================
97
+
98
+ Reading config from .omgkit/workflow.yaml...
99
+
100
+ Creating hooks:
101
+ ✓ pre-commit (lint, format, type-check)
102
+ ✓ commit-msg (conventional validation)
103
+ ✓ pre-push (test, security-scan)
104
+ - post-merge (disabled in config)
105
+
106
+ Setting permissions...
107
+ ✓ .git/hooks/pre-commit (755)
108
+ ✓ .git/hooks/commit-msg (755)
109
+ ✓ .git/hooks/pre-push (755)
110
+
111
+ Done! 3 hooks installed.
112
+
113
+ Test with: /hooks:run pre-commit
114
+ ```
115
+
116
+ ## Auto-Detection
117
+
118
+ Hooks auto-detect your project type:
119
+
120
+ | Project | Lint | Format | Test |
121
+ |---------|------|--------|------|
122
+ | Node.js | `npx eslint` | `npx prettier` | `npm test` |
123
+ | Python | `ruff check` | `black` | `pytest` |
124
+ | Go | `golangci-lint` | `gofmt` | `go test` |
125
+ | Rust | `cargo clippy` | `cargo fmt` | `cargo test` |
126
+
127
+ ## Examples
128
+
129
+ ```bash
130
+ # Initial setup
131
+ /workflow:init
132
+ /hooks:setup
133
+
134
+ # Update after config change
135
+ /hooks:setup --force
136
+
137
+ # Check what would be created
138
+ /hooks:setup --dry-run
139
+
140
+ # Remove hooks
141
+ /hooks:setup --remove
142
+ ```
143
+
144
+ ## Troubleshooting
145
+
146
+ ### Permission Denied
147
+
148
+ ```bash
149
+ chmod +x .git/hooks/*
150
+ ```
151
+
152
+ ### Hook Not Running
153
+
154
+ ```bash
155
+ # Check hook exists and is executable
156
+ ls -la .git/hooks/pre-commit
157
+
158
+ # Regenerate
159
+ /hooks:setup --force
160
+ ```
161
+
162
+ ### Bypass Temporarily
163
+
164
+ ```bash
165
+ SKIP_HOOKS=1 git commit -m "message"
166
+ # or
167
+ git commit --no-verify -m "message"
168
+ ```
169
+
170
+ ## Related Commands
171
+
172
+ - `/hooks:run` - Manually run hook actions
173
+ - `/workflow:init` - Initialize workflow config
174
+ - `/workflow:status` - Check workflow status
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: workflow:init
3
+ description: Initialize workflow configuration with interactive setup or preset templates for trunk-based, gitflow, or github-flow development.
4
+ category: workflow
5
+ ---
6
+
7
+ # /workflow:init
8
+
9
+ Initialize the OMGKIT workflow configuration system in your project.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Interactive setup
15
+ /workflow:init
16
+
17
+ # Use specific workflow preset
18
+ /workflow:init --workflow=trunk-based
19
+ /workflow:init --workflow=gitflow
20
+ /workflow:init --workflow=github-flow
21
+
22
+ # Use all defaults (trunk-based)
23
+ /workflow:init --defaults
24
+
25
+ # Force overwrite existing config
26
+ /workflow:init --force
27
+ ```
28
+
29
+ ## What It Does
30
+
31
+ 1. **Creates `.omgkit/` directory** if not exists
32
+ 2. **Generates `workflow.yaml`** with your preferences
33
+ 3. **Sets up Git hooks** based on configuration
34
+ 4. **Validates existing setup** and suggests improvements
35
+
36
+ ## Interactive Setup
37
+
38
+ When run without arguments, guides you through:
39
+
40
+ 1. **Workflow Type**
41
+ - Trunk-based (recommended for CI/CD)
42
+ - GitHub Flow (simple, PR-based)
43
+ - GitFlow (release-based)
44
+
45
+ 2. **Branch Settings**
46
+ - Main branch name
47
+ - Branch prefixes
48
+
49
+ 3. **Commit Conventions**
50
+ - Conventional commits (recommended)
51
+ - Scope requirements
52
+
53
+ 4. **PR Settings**
54
+ - Review requirements
55
+ - Auto-labeling
56
+
57
+ 5. **Hooks**
58
+ - Pre-commit actions
59
+ - Pre-push actions
60
+
61
+ 6. **Deployment**
62
+ - Provider (Vercel, Netlify, etc.)
63
+ - Auto-deploy settings
64
+
65
+ ## Output Files
66
+
67
+ ```
68
+ .omgkit/
69
+ └── workflow.yaml # Main configuration
70
+
71
+ .git/hooks/
72
+ ├── pre-commit # Lint, format, type-check
73
+ ├── commit-msg # Validate conventional commits
74
+ └── pre-push # Tests, security scan
75
+ ```
76
+
77
+ ## Workflow Presets
78
+
79
+ ### Trunk-Based (Default)
80
+
81
+ Best for: Teams practicing continuous deployment.
82
+
83
+ ```yaml
84
+ git:
85
+ workflow: trunk-based
86
+ max_branch_age_days: 2
87
+ hooks:
88
+ pre_commit: [lint, format, type-check]
89
+ pre_push: [test, security-scan]
90
+ feature_flags:
91
+ provider: vercel-edge
92
+ ```
93
+
94
+ ### GitHub Flow
95
+
96
+ Best for: Teams with regular releases, focus on code review.
97
+
98
+ ```yaml
99
+ git:
100
+ workflow: github-flow
101
+ max_branch_age_days: 7
102
+ hooks:
103
+ pre_commit: [lint, format]
104
+ pre_push: [test]
105
+ ```
106
+
107
+ ### GitFlow
108
+
109
+ Best for: Teams with scheduled releases, multiple environments.
110
+
111
+ ```yaml
112
+ git:
113
+ workflow: gitflow
114
+ develop_branch: develop
115
+ hooks:
116
+ pre_commit: [lint, format, type-check]
117
+ pre_push: [test, build]
118
+ ```
119
+
120
+ ## Examples
121
+
122
+ ```bash
123
+ # Quick setup for a new project
124
+ /workflow:init --workflow=trunk-based
125
+
126
+ # Setup for enterprise project
127
+ /workflow:init --workflow=gitflow
128
+
129
+ # Reconfigure existing project
130
+ /workflow:init --force
131
+ ```
132
+
133
+ ## After Initialization
134
+
135
+ 1. **Review generated config**: `.omgkit/workflow.yaml`
136
+ 2. **Commit config to repo**: `git add .omgkit && git commit -m "chore: add workflow config"`
137
+ 3. **Team syncs and runs**: `/hooks:setup`
138
+
139
+ ## Related Commands
140
+
141
+ - `/workflow:status` - Check current workflow status
142
+ - `/workflow:trunk-based` - Execute trunk-based workflow
143
+ - `/hooks:setup` - Setup/update Git hooks
@@ -0,0 +1,126 @@
1
+ ---
2
+ name: workflow:status
3
+ description: Display current workflow configuration status, branch info, and next recommended actions.
4
+ category: workflow
5
+ ---
6
+
7
+ # /workflow:status
8
+
9
+ Check the current state of your workflow configuration and Git status.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Full status
15
+ /workflow:status
16
+
17
+ # Config only
18
+ /workflow:status --config
19
+
20
+ # Branch only
21
+ /workflow:status --branch
22
+
23
+ # Hooks only
24
+ /workflow:status --hooks
25
+ ```
26
+
27
+ ## Output
28
+
29
+ ```
30
+ OMGKIT Workflow Status
31
+ ======================
32
+
33
+ Configuration
34
+ -------------
35
+ File: .omgkit/workflow.yaml
36
+ Valid: Yes
37
+ Workflow: trunk-based
38
+ Version: 1.0
39
+
40
+ Git Status
41
+ ----------
42
+ Branch: feature/add-authentication
43
+ Base: main
44
+ Age: 6 hours (max: 48 hours)
45
+ Commits ahead: 3
46
+ Status: Clean
47
+
48
+ Hooks Status
49
+ ------------
50
+ pre-commit: Enabled (lint, format, type-check)
51
+ commit-msg: Enabled (conventional)
52
+ pre-push: Enabled (test, security-scan)
53
+
54
+ Review Settings
55
+ ---------------
56
+ Auto-review: Enabled
57
+ Checks: security, performance, best-practices
58
+ Block on critical: Yes
59
+
60
+ Deploy Settings
61
+ ---------------
62
+ Provider: vercel
63
+ Auto-deploy: Yes
64
+ Preview on PR: Yes
65
+
66
+ Recommendations
67
+ ---------------
68
+ ✓ Branch age is within limit
69
+ ✓ All hooks are enabled
70
+ ! Consider pushing soon (3 commits pending)
71
+ ```
72
+
73
+ ## Validation Checks
74
+
75
+ | Check | Status | Description |
76
+ |-------|--------|-------------|
77
+ | Config exists | ✓/✗ | `.omgkit/workflow.yaml` found |
78
+ | Config valid | ✓/✗ | YAML parses, schema valid |
79
+ | Hooks installed | ✓/✗ | Git hooks in place |
80
+ | Branch age | ✓/! | Within max age limit |
81
+ | Uncommitted changes | ✓/! | Working tree status |
82
+
83
+ ## Error Messages
84
+
85
+ ### Config Not Found
86
+
87
+ ```
88
+ Warning: No workflow config found
89
+ Run /workflow:init to create configuration
90
+ ```
91
+
92
+ ### Invalid Config
93
+
94
+ ```
95
+ Error: Invalid workflow config
96
+ - git.workflow: must be trunk-based, gitflow, or github-flow
97
+ - commit.max_subject_length: must be a number
98
+
99
+ Run /workflow:init --force to regenerate
100
+ ```
101
+
102
+ ### Hooks Not Installed
103
+
104
+ ```
105
+ Warning: Git hooks not installed
106
+ Run /hooks:setup to install hooks
107
+ ```
108
+
109
+ ## Examples
110
+
111
+ ```bash
112
+ # Quick health check
113
+ /workflow:status
114
+
115
+ # Verify after setup
116
+ /workflow:init && /workflow:status
117
+
118
+ # Debug hooks
119
+ /workflow:status --hooks
120
+ ```
121
+
122
+ ## Related Commands
123
+
124
+ - `/workflow:init` - Initialize workflow config
125
+ - `/hooks:setup` - Install Git hooks
126
+ - `/workflow:trunk-based` - Execute workflow