ccjk 14.1.11 → 14.2.1
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/dist/chunks/api-cli.mjs +3 -2
- package/dist/chunks/api-config-selector.mjs +8 -6
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/chunks/ccjk-agents.mjs +2 -2
- package/dist/chunks/ccjk-all.mjs +6 -6
- package/dist/chunks/ccjk-hooks.mjs +2 -2
- package/dist/chunks/ccjk-mcp.mjs +5 -5
- package/dist/chunks/ccjk-setup.mjs +4 -4
- package/dist/chunks/ccjk-skills.mjs +2 -2
- package/dist/chunks/ccr.mjs +11 -9
- package/dist/chunks/check-updates.mjs +2 -1
- package/dist/chunks/claude-code-incremental-manager.mjs +8 -6
- package/dist/chunks/claude-config.mjs +594 -62
- package/dist/chunks/claude-config2.mjs +62 -0
- package/dist/chunks/clavue-config.mjs +1390 -0
- package/dist/chunks/code-type-resolver.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +1 -0
- package/dist/chunks/codex-provider-manager.mjs +2 -1
- package/dist/chunks/codex.mjs +4 -3
- package/dist/chunks/config-switch.mjs +6 -4
- package/dist/chunks/config.mjs +23 -1974
- package/dist/chunks/config2.mjs +8 -7
- package/dist/chunks/config3.mjs +1 -0
- package/dist/chunks/doctor.mjs +178 -8
- package/dist/chunks/features.mjs +9 -7
- package/dist/chunks/index10.mjs +14 -5365
- package/dist/chunks/index9.mjs +5379 -14
- package/dist/chunks/init.mjs +12 -10
- package/dist/chunks/installer.mjs +7 -5
- package/dist/chunks/interview.mjs +1 -1
- package/dist/chunks/mcp-cli.mjs +23 -22
- package/dist/chunks/mcp.mjs +8 -7
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +1 -1
- package/dist/chunks/quick-provider.mjs +7 -5
- package/dist/chunks/quick-setup.mjs +7 -5
- package/dist/chunks/simple-config.mjs +3 -2
- package/dist/chunks/slash-commands.mjs +1 -1
- package/dist/chunks/thinking.mjs +1 -1
- package/dist/chunks/uninstall.mjs +1 -1
- package/dist/chunks/update.mjs +10 -9
- package/dist/chunks/version-checker.mjs +1 -1
- package/dist/chunks/zero-config.mjs +4 -3
- package/dist/cli.mjs +3 -3
- package/dist/index.mjs +7 -6
- package/dist/shared/{ccjk.DGllfVCZ.mjs → ccjk.BtrioX1Z.mjs} +1 -1
- package/dist/shared/{ccjk.DOw7Fawt.mjs → ccjk.C1Be3aJN.mjs} +2 -2
- package/dist/shared/{ccjk.BCzOWT1L.mjs → ccjk.C94P8gCY.mjs} +2 -2
- package/dist/shared/{ccjk.Cgv_cFVX.mjs → ccjk.CTr4yCZ1.mjs} +2 -2
- package/dist/shared/{ccjk.Cv13QsGp.mjs → ccjk.CoCHVXl3.mjs} +1 -1
- package/dist/shared/{ccjk.f3TBLJSt.mjs → ccjk.CwGZSTAK.mjs} +7 -7
- package/dist/shared/{ccjk.CfKJnpbB.mjs → ccjk.D-magaEx.mjs} +2 -2
- package/dist/shared/{ccjk.CbWVbtb9.mjs → ccjk.DhJ1kyDR.mjs} +1 -1
- package/dist/shared/{ccjk.zFGcZT7Y.mjs → ccjk.OJKHVSOb.mjs} +1 -1
- package/dist/templates/agents/README.md +78 -0
- package/dist/templates/common/error-prevention.md +267 -0
- package/dist/templates/common/karpathy-baseline.md +83 -0
- package/dist/templates/common/output-styles/zh-CN/carmack-mode.md +381 -0
- package/dist/templates/common/output-styles/zh-CN/dhh-mode.md +265 -0
- package/dist/templates/common/output-styles/zh-CN/evan-you-mode.md +539 -0
- package/dist/templates/common/output-styles/zh-CN/jobs-mode.md +369 -0
- package/dist/templates/common/output-styles/zh-CN/linus-mode.md +135 -0
- package/dist/templates/common/output-styles/zh-CN/uncle-bob-mode.md +221 -0
- package/dist/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +628 -0
- package/dist/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +628 -0
- package/dist/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +187 -0
- package/dist/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +191 -0
- package/dist/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +249 -0
- package/dist/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +277 -0
- package/dist/templates/common/workflow/essential/en/agents/get-current-datetime.md +29 -0
- package/dist/templates/common/workflow/essential/en/agents/init-architect.md +115 -0
- package/dist/templates/common/workflow/essential/en/agents/ui-ux-designer.md +91 -0
- package/dist/templates/common/workflow/essential/en/feat.md +92 -0
- package/dist/templates/common/workflow/essential/en/goal.md +147 -0
- package/dist/templates/common/workflow/essential/en/init-project.md +53 -0
- package/dist/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +29 -0
- package/dist/templates/common/workflow/essential/zh-CN/agents/init-architect.md +115 -0
- package/dist/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +91 -0
- package/dist/templates/common/workflow/essential/zh-CN/feat.md +315 -0
- package/dist/templates/common/workflow/essential/zh-CN/goal.md +146 -0
- package/dist/templates/common/workflow/essential/zh-CN/init-project.md +53 -0
- package/dist/templates/common/workflow/git/en/git-cleanBranches.md +102 -0
- package/dist/templates/common/workflow/git/en/git-commit.md +205 -0
- package/dist/templates/common/workflow/git/en/git-rollback.md +90 -0
- package/dist/templates/common/workflow/git/en/git-worktree.md +276 -0
- package/dist/templates/common/workflow/git/zh-CN/git-cleanBranches.md +102 -0
- package/dist/templates/common/workflow/git/zh-CN/git-commit.md +205 -0
- package/dist/templates/common/workflow/git/zh-CN/git-rollback.md +90 -0
- package/dist/templates/common/workflow/git/zh-CN/git-worktree.md +276 -0
- package/dist/templates/common/workflow/interview/en/interview.md +67 -0
- package/dist/templates/common/workflow/interview/zh-CN/interview.md +67 -0
- package/dist/templates/common/workflow/linearMethod/en/linear-method.md +651 -0
- package/dist/templates/common/workflow/linearMethod/zh-CN/linear-method.md +752 -0
- package/dist/templates/common/workflow/refactoringMaster/en/refactoring-master.md +516 -0
- package/dist/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +812 -0
- package/dist/templates/common/workflow/sixStep/en/workflow.md +83 -0
- package/dist/templates/common/workflow/sixStep/zh-CN/workflow.md +359 -0
- package/dist/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +364 -0
- package/dist/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +366 -0
- package/dist/templates/hooks/README.md +212 -0
- package/dist/templates/hooks/git-workflow-hooks.md +551 -0
- package/dist/templates/hooks/post-test-coverage.md +434 -0
- package/dist/templates/hooks/pre-commit-black.md +274 -0
- package/dist/templates/hooks/pre-commit-eslint.md +153 -0
- package/dist/templates/hooks/pre-commit-gofmt.md +284 -0
- package/dist/templates/hooks/pre-commit-prettier.md +212 -0
- package/dist/templates/hooks/pre-commit-type-check.md +377 -0
- package/dist/templates/skills/ccjk-init.md +154 -0
- package/dist/templates/skills/ccjk-mcp-setup.md +205 -0
- package/dist/templates/skills/ccjk-troubleshoot.md +228 -0
- package/dist/templates/skills/django-patterns.md +1016 -0
- package/dist/templates/skills/git-workflow.md +748 -0
- package/dist/templates/skills/go-idioms.md +963 -0
- package/dist/templates/skills/nextjs-optimization.md +694 -0
- package/dist/templates/skills/python-pep8.md +852 -0
- package/dist/templates/skills/react-patterns.md +686 -0
- package/dist/templates/skills/rust-patterns.md +1057 -0
- package/dist/templates/skills/security-best-practices.md +1413 -0
- package/dist/templates/skills/testing-best-practices.md +1315 -0
- package/dist/templates/skills/ts-best-practices.md +354 -0
- package/package.json +1 -1
- package/templates/common/karpathy-baseline.md +83 -0
- package/templates/common/output-styles/zh-CN/carmack-mode.md +14 -0
- package/templates/common/output-styles/zh-CN/dhh-mode.md +14 -0
- package/templates/common/output-styles/zh-CN/evan-you-mode.md +14 -0
- package/templates/common/output-styles/zh-CN/jobs-mode.md +14 -0
- package/templates/common/output-styles/zh-CN/linus-mode.md +14 -0
- package/templates/common/output-styles/zh-CN/uncle-bob-mode.md +14 -0
- package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +2 -0
- package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +2 -0
- package/templates/common/workflow/sixStep/zh-CN/workflow.md +2 -0
- package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +2 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# CCJK Hook Templates Library
|
|
2
|
+
|
|
3
|
+
This directory contains comprehensive hook configuration templates for CCJK v8.0.0's Cloud-Native Task Management System.
|
|
4
|
+
|
|
5
|
+
## Available Hook Templates
|
|
6
|
+
|
|
7
|
+
### Pre-commit Hooks (Code Quality)
|
|
8
|
+
|
|
9
|
+
| Template | Priority | Applicable To | Description |
|
|
10
|
+
|----------|----------|---------------|-------------|
|
|
11
|
+
| **[pre-commit-eslint.md](./pre-commit-eslint.md)** | 10 | TypeScript, JavaScript, React, Vue | ESLint with auto-fix before commits |
|
|
12
|
+
| **[pre-commit-prettier.md](./pre-commit-prettier.md)** | 9 | All projects | Code formatting with Prettier |
|
|
13
|
+
| **[pre-commit-black.md](./pre-commit-black.md)** | 10 | Python, Django, Flask, FastAPI | Python code formatting with Black |
|
|
14
|
+
| **[pre-commit-gofmt.md](./pre-commit-gofmt.md)** | 10 | Go, Golang | Go code formatting with gofmt |
|
|
15
|
+
| **[pre-commit-type-check.md](./pre-commit-type-check.md)** | 10 | TypeScript, React, Vue, Angular | TypeScript type checking |
|
|
16
|
+
|
|
17
|
+
### Post-test Hooks (Coverage & Quality)
|
|
18
|
+
|
|
19
|
+
| Template | Priority | Applicable To | Description |
|
|
20
|
+
|----------|----------|---------------|-------------|
|
|
21
|
+
| **[post-test-coverage.md](./post-test-coverage.md)** | 5 | All tested projects | Test coverage report generation |
|
|
22
|
+
|
|
23
|
+
### Git Workflow Hooks (Process Automation)
|
|
24
|
+
|
|
25
|
+
| Template | Priority | Applicable To | Description |
|
|
26
|
+
|----------|----------|---------------|-------------|
|
|
27
|
+
| **[git-workflow-hooks.md](./git-workflow-hooks.md)** | 8 | All projects | Comprehensive git workflow automation |
|
|
28
|
+
|
|
29
|
+
## Hook Types
|
|
30
|
+
|
|
31
|
+
### PreToolUse Hooks
|
|
32
|
+
- **Trigger**: Before tool execution (e.g., `git commit`, `git push`)
|
|
33
|
+
- **Purpose**: Validation, formatting, quality checks
|
|
34
|
+
- **Behavior**: Can block the operation if checks fail
|
|
35
|
+
|
|
36
|
+
### PostToolUse Hooks
|
|
37
|
+
- **Trigger**: After successful tool execution
|
|
38
|
+
- **Purpose**: Reporting, cleanup, automation
|
|
39
|
+
- **Behavior**: Informational, doesn't block operations
|
|
40
|
+
|
|
41
|
+
### Multiple Hooks
|
|
42
|
+
- **Trigger**: Various git operations
|
|
43
|
+
- **Purpose**: Comprehensive workflow management
|
|
44
|
+
- **Behavior**: Combines multiple hook types
|
|
45
|
+
|
|
46
|
+
## Priority System
|
|
47
|
+
|
|
48
|
+
Hook priorities determine execution order:
|
|
49
|
+
|
|
50
|
+
- **Priority 15**: Critical pre-checks (branch protection, environment validation)
|
|
51
|
+
- **Priority 10-14**: Code quality and formatting
|
|
52
|
+
- **Priority 5-9**: Reporting and documentation
|
|
53
|
+
- **Priority 1-4**: Cleanup and automation
|
|
54
|
+
|
|
55
|
+
## Template Structure
|
|
56
|
+
|
|
57
|
+
Each hook template follows this structure:
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
---
|
|
61
|
+
id: unique-hook-id
|
|
62
|
+
type: PreToolUse | PostToolUse | Multiple
|
|
63
|
+
name: Human-readable name
|
|
64
|
+
description: Brief description
|
|
65
|
+
priority: 1-15
|
|
66
|
+
matcher: Bash(pattern) or ToolUse(pattern)
|
|
67
|
+
command: command to execute
|
|
68
|
+
timeout: milliseconds
|
|
69
|
+
enabled: true
|
|
70
|
+
applicableTo: [project-types]
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
# Hook Name
|
|
74
|
+
|
|
75
|
+
## Description
|
|
76
|
+
Detailed description in English and Chinese
|
|
77
|
+
|
|
78
|
+
## When it runs
|
|
79
|
+
Trigger conditions and scope
|
|
80
|
+
|
|
81
|
+
## Configuration
|
|
82
|
+
Setup instructions and prerequisites
|
|
83
|
+
|
|
84
|
+
## Customization
|
|
85
|
+
How to customize the hook
|
|
86
|
+
|
|
87
|
+
## Error Handling
|
|
88
|
+
Error scenarios and solutions
|
|
89
|
+
|
|
90
|
+
## Advanced Configuration
|
|
91
|
+
Complex use cases and integrations
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Usage in CCJK v8.0.0
|
|
95
|
+
|
|
96
|
+
### Installation
|
|
97
|
+
```bash
|
|
98
|
+
# Install hook templates
|
|
99
|
+
ccjk hooks install pre-commit-eslint
|
|
100
|
+
ccjk hooks install post-test-coverage
|
|
101
|
+
ccjk hooks install git-workflow-hooks
|
|
102
|
+
|
|
103
|
+
# Install all hooks for a project type
|
|
104
|
+
ccjk hooks install --type typescript
|
|
105
|
+
ccjk hooks install --type python
|
|
106
|
+
ccjk hooks install --type go
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Configuration
|
|
110
|
+
```yaml
|
|
111
|
+
# ccjk.config.yaml
|
|
112
|
+
hooks:
|
|
113
|
+
pre-commit-eslint:
|
|
114
|
+
enabled: true
|
|
115
|
+
priority: 10
|
|
116
|
+
timeout: 30000
|
|
117
|
+
|
|
118
|
+
post-test-coverage:
|
|
119
|
+
enabled: true
|
|
120
|
+
priority: 5
|
|
121
|
+
generateReport: true
|
|
122
|
+
|
|
123
|
+
git-workflow-hooks:
|
|
124
|
+
enabled: true
|
|
125
|
+
branchProtection:
|
|
126
|
+
protectedBranches: ['main', 'develop']
|
|
127
|
+
requirePullRequest: true
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Management
|
|
131
|
+
```bash
|
|
132
|
+
# List installed hooks
|
|
133
|
+
ccjk hooks list
|
|
134
|
+
|
|
135
|
+
# Enable/disable hooks
|
|
136
|
+
ccjk hooks enable pre-commit-eslint
|
|
137
|
+
ccjk hooks disable post-test-coverage
|
|
138
|
+
|
|
139
|
+
# Update hook configuration
|
|
140
|
+
ccjk hooks config pre-commit-eslint --timeout 45000
|
|
141
|
+
|
|
142
|
+
# Validate hook configuration
|
|
143
|
+
ccjk hooks validate
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Integration with Cloud-Native Features
|
|
147
|
+
|
|
148
|
+
### Cloud Sync
|
|
149
|
+
- Hook configurations sync across devices
|
|
150
|
+
- Team-wide hook policies
|
|
151
|
+
- Centralized hook management
|
|
152
|
+
|
|
153
|
+
### Hot-Reload
|
|
154
|
+
- Hook changes apply without restart
|
|
155
|
+
- Dynamic hook loading
|
|
156
|
+
- Real-time configuration updates
|
|
157
|
+
|
|
158
|
+
### Multi-Agent Orchestration
|
|
159
|
+
- Hooks can trigger agent workflows
|
|
160
|
+
- Coordinated quality checks
|
|
161
|
+
- Intelligent error handling
|
|
162
|
+
|
|
163
|
+
## Best Practices
|
|
164
|
+
|
|
165
|
+
### 1. Hook Selection
|
|
166
|
+
- Choose hooks appropriate for your project type
|
|
167
|
+
- Consider team workflow and requirements
|
|
168
|
+
- Balance quality checks with development speed
|
|
169
|
+
|
|
170
|
+
### 2. Priority Management
|
|
171
|
+
- Set priorities to ensure proper execution order
|
|
172
|
+
- Critical checks should have higher priorities
|
|
173
|
+
- Avoid priority conflicts between similar hooks
|
|
174
|
+
|
|
175
|
+
### 3. Performance Optimization
|
|
176
|
+
- Use appropriate timeouts for hook complexity
|
|
177
|
+
- Consider parallel execution for independent checks
|
|
178
|
+
- Optimize hook commands for speed
|
|
179
|
+
|
|
180
|
+
### 4. Error Handling
|
|
181
|
+
- Provide clear error messages
|
|
182
|
+
- Include recovery instructions
|
|
183
|
+
- Allow hook bypassing for emergencies
|
|
184
|
+
|
|
185
|
+
### 5. Team Adoption
|
|
186
|
+
- Document hook purposes and benefits
|
|
187
|
+
- Provide training on hook usage
|
|
188
|
+
- Gradually introduce hooks to avoid disruption
|
|
189
|
+
|
|
190
|
+
## Contributing
|
|
191
|
+
|
|
192
|
+
To add new hook templates:
|
|
193
|
+
|
|
194
|
+
1. Create a new `.md` file following the template structure
|
|
195
|
+
2. Include comprehensive documentation in English and Chinese
|
|
196
|
+
3. Test the hook configuration thoroughly
|
|
197
|
+
4. Update this index file
|
|
198
|
+
5. Submit a pull request
|
|
199
|
+
|
|
200
|
+
## Support
|
|
201
|
+
|
|
202
|
+
For hook-related issues:
|
|
203
|
+
- Check the individual hook documentation
|
|
204
|
+
- Use `ccjk hooks doctor` for diagnostics
|
|
205
|
+
- Report issues on the CCJK GitHub repository
|
|
206
|
+
- Join the CCJK community discussions
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
**Last Updated**: 2026-01-24
|
|
211
|
+
**CCJK Version**: v8.0.0
|
|
212
|
+
**Total Templates**: 7
|