claudekit-cli 1.0.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.
Files changed (137) hide show
  1. package/.claude/agents/brainstormer.md +96 -0
  2. package/.claude/agents/code-reviewer.md +141 -0
  3. package/.claude/agents/copywriter.md +108 -0
  4. package/.claude/agents/database-admin.md +86 -0
  5. package/.claude/agents/debugger.md +124 -0
  6. package/.claude/agents/docs-manager.md +115 -0
  7. package/.claude/agents/git-manager.md +60 -0
  8. package/.claude/agents/journal-writer.md +111 -0
  9. package/.claude/agents/planner.md +87 -0
  10. package/.claude/agents/project-manager.md +113 -0
  11. package/.claude/agents/researcher.md +173 -0
  12. package/.claude/agents/scout.md +123 -0
  13. package/.claude/agents/tester.md +95 -0
  14. package/.claude/agents/ui-ux-designer.md +206 -0
  15. package/.claude/commands/bootstrap.md +104 -0
  16. package/.claude/commands/brainstorm.md +67 -0
  17. package/.claude/commands/content/enhance.md +13 -0
  18. package/.claude/commands/content/fast.md +11 -0
  19. package/.claude/commands/content/good.md +13 -0
  20. package/.claude/commands/cook.md +19 -0
  21. package/.claude/commands/debug.md +10 -0
  22. package/.claude/commands/design/3d.md +65 -0
  23. package/.claude/commands/design/describe.md +13 -0
  24. package/.claude/commands/design/fast.md +19 -0
  25. package/.claude/commands/design/good.md +23 -0
  26. package/.claude/commands/design/screenshot.md +23 -0
  27. package/.claude/commands/design/video.md +23 -0
  28. package/.claude/commands/docs/init.md +13 -0
  29. package/.claude/commands/docs/summarize.md +10 -0
  30. package/.claude/commands/docs/update.md +21 -0
  31. package/.claude/commands/fix/ci.md +11 -0
  32. package/.claude/commands/fix/fast.md +12 -0
  33. package/.claude/commands/fix/hard.md +18 -0
  34. package/.claude/commands/fix/logs.md +16 -0
  35. package/.claude/commands/fix/test.md +18 -0
  36. package/.claude/commands/fix/types.md +10 -0
  37. package/.claude/commands/git/cm.md +5 -0
  38. package/.claude/commands/git/cp.md +4 -0
  39. package/.claude/commands/integrate/polar.md +42 -0
  40. package/.claude/commands/plan/ci.md +12 -0
  41. package/.claude/commands/plan/two.md +13 -0
  42. package/.claude/commands/plan.md +10 -0
  43. package/.claude/commands/scout.md +29 -0
  44. package/.claude/commands/test.md +7 -0
  45. package/.claude/commands/watzup.md +8 -0
  46. package/.claude/hooks/telegram_notify.sh +136 -0
  47. package/.claude/send-discord.sh +64 -0
  48. package/.claude/settings.json +7 -0
  49. package/.claude/statusline.sh +143 -0
  50. package/.claude/workflows/development-rules.md +80 -0
  51. package/.claude/workflows/documentation-management.md +28 -0
  52. package/.claude/workflows/orchestration-protocol.md +16 -0
  53. package/.claude/workflows/primary-workflow.md +41 -0
  54. package/.github/workflows/ci.yml +43 -0
  55. package/.github/workflows/release.yml +58 -0
  56. package/.opencode/agent/code-reviewer.md +141 -0
  57. package/.opencode/agent/debugger.md +74 -0
  58. package/.opencode/agent/docs-manager.md +119 -0
  59. package/.opencode/agent/git-manager.md +60 -0
  60. package/.opencode/agent/planner-researcher.md +100 -0
  61. package/.opencode/agent/planner.md +87 -0
  62. package/.opencode/agent/project-manager.md +113 -0
  63. package/.opencode/agent/researcher.md +173 -0
  64. package/.opencode/agent/solution-brainstormer.md +89 -0
  65. package/.opencode/agent/system-architecture.md +192 -0
  66. package/.opencode/agent/tester.md +96 -0
  67. package/.opencode/agent/ui-ux-designer.md +203 -0
  68. package/.opencode/agent/ui-ux-developer.md +97 -0
  69. package/.opencode/command/cook.md +7 -0
  70. package/.opencode/command/debug.md +10 -0
  71. package/.opencode/command/design/3d.md +65 -0
  72. package/.opencode/command/design/fast.md +18 -0
  73. package/.opencode/command/design/good.md +21 -0
  74. package/.opencode/command/design/screenshot.md +22 -0
  75. package/.opencode/command/design/video.md +22 -0
  76. package/.opencode/command/docs/init.md +11 -0
  77. package/.opencode/command/docs/summarize.md +10 -0
  78. package/.opencode/command/docs/update.md +18 -0
  79. package/.opencode/command/fix/ci.md +8 -0
  80. package/.opencode/command/fix/fast.md +11 -0
  81. package/.opencode/command/fix/hard.md +15 -0
  82. package/.opencode/command/fix/logs.md +16 -0
  83. package/.opencode/command/fix/test.md +18 -0
  84. package/.opencode/command/fix/types.md +10 -0
  85. package/.opencode/command/git/cm.md +5 -0
  86. package/.opencode/command/git/cp.md +4 -0
  87. package/.opencode/command/plan/ci.md +12 -0
  88. package/.opencode/command/plan/two.md +13 -0
  89. package/.opencode/command/plan.md +10 -0
  90. package/.opencode/command/test.md +7 -0
  91. package/.opencode/command/watzup.md +8 -0
  92. package/.releaserc.json +17 -0
  93. package/.repomixignore +15 -0
  94. package/AGENTS.md +217 -0
  95. package/CHANGELOG.md +16 -0
  96. package/CLAUDE.md +33 -0
  97. package/README.md +214 -0
  98. package/biome.json +25 -0
  99. package/bun.lock +1238 -0
  100. package/dist/index.js +19100 -0
  101. package/docs/code-standards.md +1128 -0
  102. package/docs/codebase-summary.md +821 -0
  103. package/docs/github-setup.md +176 -0
  104. package/docs/project-pdr.md +739 -0
  105. package/docs/system-architecture.md +950 -0
  106. package/docs/tech-stack.md +290 -0
  107. package/package.json +60 -0
  108. package/plans/251008-claudekit-cli-implementation-plan.md +1469 -0
  109. package/plans/reports/251008-from-code-reviewer-to-developer-review-report.md +864 -0
  110. package/plans/reports/251008-from-tester-to-developer-test-summary-report.md +409 -0
  111. package/plans/reports/251008-researcher-download-extraction-report.md +1377 -0
  112. package/plans/reports/251008-researcher-github-api-report.md +1339 -0
  113. package/plans/research/251008-cli-frameworks-bun-research.md +1051 -0
  114. package/plans/templates/bug-fix-template.md +69 -0
  115. package/plans/templates/feature-implementation-template.md +84 -0
  116. package/plans/templates/refactor-template.md +82 -0
  117. package/plans/templates/template-usage-guide.md +58 -0
  118. package/src/commands/new.ts +118 -0
  119. package/src/commands/update.ts +114 -0
  120. package/src/index.ts +44 -0
  121. package/src/lib/auth.ts +157 -0
  122. package/src/lib/download.ts +180 -0
  123. package/src/lib/github.ts +157 -0
  124. package/src/lib/merge.ts +116 -0
  125. package/src/lib/prompts.ts +113 -0
  126. package/src/types.ts +149 -0
  127. package/src/utils/config.ts +87 -0
  128. package/src/utils/logger.ts +37 -0
  129. package/tests/lib/auth.test.ts +116 -0
  130. package/tests/lib/download.test.ts +70 -0
  131. package/tests/lib/github.test.ts +52 -0
  132. package/tests/lib/merge.test.ts +138 -0
  133. package/tests/lib/prompts.test.ts +66 -0
  134. package/tests/types.test.ts +255 -0
  135. package/tests/utils/config.test.ts +263 -0
  136. package/tests/utils/logger.test.ts +124 -0
  137. package/tsconfig.json +30 -0
@@ -0,0 +1,176 @@
1
+ # GitHub Setup Guide
2
+
3
+ This document outlines the GitHub repository configuration required for the CI/CD pipeline.
4
+
5
+ ## GitHub Actions Workflows
6
+
7
+ The project includes two GitHub Actions workflows:
8
+
9
+ ### 1. CI Workflow (`.github/workflows/ci.yml`)
10
+
11
+ Runs on every pull request and push to `main`/`master` branches:
12
+
13
+ - Type checking
14
+ - Linting
15
+ - Tests
16
+ - Build verification
17
+
18
+ ### 2. Release Workflow (`.github/workflows/release.yml`)
19
+
20
+ Runs on every push to the `main` branch:
21
+
22
+ - Full CI checks (type checking, linting, tests, build)
23
+ - Semantic release (version bump, changelog generation, npm publishing)
24
+ - Creates GitHub releases with auto-generated release notes
25
+
26
+ ## Required GitHub Secrets
27
+
28
+ The following secrets must be configured in your GitHub repository:
29
+
30
+ 1. **`NPM_TOKEN`** (Already configured)
31
+ - NPM authentication token for publishing packages
32
+ - Get from: https://www.npmjs.com/settings/YOUR_USERNAME/tokens
33
+ - Required permission: Automation (for CI/CD)
34
+
35
+ 2. **`GITHUB_TOKEN`** (Automatically provided)
36
+ - Automatically provided by GitHub Actions
37
+ - Used for creating releases and updating repository
38
+
39
+ ## Branch Protection Rules
40
+
41
+ To ensure code quality and prevent accidental direct pushes to main, configure the following branch protection rules for the `main` branch:
42
+
43
+ ### Steps to Configure:
44
+
45
+ 1. Go to **Settings** → **Branches** in your GitHub repository
46
+ 2. Click **Add rule** under "Branch protection rules"
47
+ 3. Enter `main` as the branch name pattern
48
+ 4. Enable the following options:
49
+
50
+ #### Required Settings:
51
+
52
+ - ✅ **Require a pull request before merging**
53
+ - Require approvals: 1 (or more, based on team size)
54
+ - ✅ Dismiss stale pull request approvals when new commits are pushed
55
+
56
+ - ✅ **Require status checks to pass before merging**
57
+ - ✅ Require branches to be up to date before merging
58
+ - Required status checks:
59
+ - `test` (from CI workflow)
60
+
61
+ - ✅ **Require conversation resolution before merging**
62
+
63
+ - ✅ **Do not allow bypassing the above settings**
64
+
65
+ #### Optional but Recommended:
66
+
67
+ - ✅ **Require linear history** (keeps git history clean)
68
+ - ✅ **Restrict who can push to matching branches** (for larger teams)
69
+
70
+ ### What This Achieves:
71
+
72
+ 1. **PR Required**: Direct pushes to `main` are blocked
73
+ 2. **Tests Must Pass**: PRs can only be merged after all CI checks pass
74
+ 3. **Code Review**: At least one approval required before merging
75
+ 4. **Clean History**: Linear git history for easier tracking
76
+ 5. **Automatic Releases**: Merged PRs to `main` trigger semantic-release
77
+
78
+ ## Semantic Release
79
+
80
+ The project uses [semantic-release](https://github.com/semantic-release/semantic-release) for automated versioning and package publishing.
81
+
82
+ ### Commit Message Convention
83
+
84
+ Use [Conventional Commits](https://www.conventionalcommits.org/) format:
85
+
86
+ ```
87
+ <type>[optional scope]: <description>
88
+
89
+ [optional body]
90
+
91
+ [optional footer(s)]
92
+ ```
93
+
94
+ #### Commit Types:
95
+
96
+ - `feat:` - New feature (triggers minor version bump)
97
+ - `fix:` - Bug fix (triggers patch version bump)
98
+ - `docs:` - Documentation changes only
99
+ - `style:` - Code style changes (formatting, missing semicolons, etc.)
100
+ - `refactor:` - Code refactoring without feature changes
101
+ - `perf:` - Performance improvements
102
+ - `test:` - Adding or updating tests
103
+ - `chore:` - Maintenance tasks (dependencies, build config, etc.)
104
+ - `ci:` - CI/CD changes
105
+
106
+ #### Breaking Changes:
107
+
108
+ For breaking changes, add `BREAKING CHANGE:` in the commit body or use `!` after the type:
109
+
110
+ ```
111
+ feat!: remove deprecated API endpoint
112
+
113
+ BREAKING CHANGE: The /api/v1/old endpoint has been removed. Use /api/v2/new instead.
114
+ ```
115
+
116
+ This triggers a **major version bump**.
117
+
118
+ ### Examples:
119
+
120
+ ```bash
121
+ # Patch release (0.1.0 -> 0.1.1)
122
+ fix: resolve authentication token expiration issue
123
+
124
+ # Minor release (0.1.0 -> 0.2.0)
125
+ feat: add support for custom templates
126
+
127
+ # Major release (0.1.0 -> 1.0.0)
128
+ feat!: redesign CLI commands structure
129
+
130
+ BREAKING CHANGE: Command syntax has changed. Use 'ck create' instead of 'ck init'.
131
+
132
+ # No release
133
+ docs: update installation instructions
134
+ chore: upgrade dependencies
135
+ ```
136
+
137
+ ## Automated Changelog
138
+
139
+ The changelog is automatically generated based on commit messages and updated in `CHANGELOG.md` with each release.
140
+
141
+ ## Workflow Summary
142
+
143
+ 1. Developer creates a feature branch
144
+ 2. Developer makes changes using conventional commits
145
+ 3. Developer opens a PR to `main`
146
+ 4. CI workflow runs automatically
147
+ 5. Code review and approval required
148
+ 6. PR is merged to `main`
149
+ 7. Release workflow runs automatically:
150
+ - Analyzes commits since last release
151
+ - Determines version bump
152
+ - Generates changelog
153
+ - Creates GitHub release
154
+ - Publishes to npm
155
+ - Commits version and changelog updates
156
+
157
+ ## Troubleshooting
158
+
159
+ ### Release Not Triggering
160
+
161
+ - Ensure commits follow conventional commit format
162
+ - Check that `NPM_TOKEN` secret is configured
163
+ - Verify workflow permissions are correct
164
+ - Check GitHub Actions logs for errors
165
+
166
+ ### NPM Publish Fails
167
+
168
+ - Verify `NPM_TOKEN` is valid and not expired
169
+ - Ensure package name is available or you own it
170
+ - Check npm registry permissions
171
+
172
+ ### Tests Failing
173
+
174
+ - Run tests locally: `bun test`
175
+ - Check test output in GitHub Actions logs
176
+ - Ensure all dependencies are installed correctly