create-dev-agents 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,263 @@
1
+ # create-dev-agents
2
+
3
+ Claude Code agents for rapid development. Add AI-powered slash commands to any project.
4
+
5
+ ```bash
6
+ npx create-dev-agents init
7
+ ```
8
+
9
+ ## What You Get
10
+
11
+ | Command | Description |
12
+ |---------|-------------|
13
+ | `/new-project` | Interactive project scaffolding (Expo, React Native, React, Next.js) |
14
+ | `/feature` | Implement complete features with components, hooks, services, tests |
15
+ | `/commit` | Generate conventional commit messages from staged changes |
16
+ | `/pr` | Create pull requests with proper descriptions and checklists |
17
+ | `/ticket` | Create well-formatted Jira tickets |
18
+ | `/review` | Code review with actionable feedback |
19
+
20
+ ## Installation
21
+
22
+ ### Per-Project (Recommended)
23
+
24
+ ```bash
25
+ cd your-project
26
+ npx create-dev-agents init
27
+ ```
28
+
29
+ ### Global (Available in All Projects)
30
+
31
+ ```bash
32
+ npx create-dev-agents global
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ After installation, open your project in Claude Code and use the slash commands:
38
+
39
+ ```
40
+ > /new-project
41
+ ? What type of project? › Expo (React Native)
42
+ ? Architecture pattern? › Feature-based
43
+ ? State management? › Zustand
44
+ ...
45
+
46
+ > /feature user-profile
47
+ Creating feature: user-profile
48
+ ├── src/features/user-profile/
49
+ │ ├── components/
50
+ │ ├── hooks/
51
+ │ ├── services/
52
+ │ └── types/
53
+ ...
54
+
55
+ > /commit
56
+ Analyzing staged changes...
57
+ Generated: feat(profile): add user profile screen with avatar upload
58
+
59
+ > /pr
60
+ Creating pull request...
61
+ Title: feat(profile): add user profile screen
62
+ ```
63
+
64
+ ## Commands
65
+
66
+ ### `dev-agents init`
67
+
68
+ Initialize dev agents in your project.
69
+
70
+ ```bash
71
+ npx create-dev-agents init # Interactive selection
72
+ npx create-dev-agents init --all # Install everything
73
+ npx create-dev-agents init --minimal # Only commit, pr, review
74
+ ```
75
+
76
+ ### `dev-agents add <command>`
77
+
78
+ Add a specific command.
79
+
80
+ ```bash
81
+ npx create-dev-agents add commit
82
+ npx create-dev-agents add feature
83
+ ```
84
+
85
+ ### `dev-agents global`
86
+
87
+ Install commands globally to `~/.claude` (works in any project).
88
+
89
+ ```bash
90
+ npx create-dev-agents global
91
+ ```
92
+
93
+ ### `dev-agents mcp`
94
+
95
+ Configure MCP servers for GitHub and Jira integration.
96
+
97
+ ```bash
98
+ npx create-dev-agents mcp
99
+ ```
100
+
101
+ ### `dev-agents list`
102
+
103
+ List all available commands and agents.
104
+
105
+ ```bash
106
+ npx create-dev-agents list
107
+ ```
108
+
109
+ ## MCP Integration
110
+
111
+ For GitHub and Jira integration, configure API tokens:
112
+
113
+ ```bash
114
+ npx create-dev-agents mcp
115
+ ```
116
+
117
+ This enables:
118
+ - **`/pr`** - Creates actual PRs on GitHub
119
+ - **`/ticket`** - Creates tickets in Jira
120
+ - **`/review`** - Can review PR diffs
121
+
122
+ ### Manual Setup
123
+
124
+ Set environment variables:
125
+
126
+ ```bash
127
+ # GitHub (https://github.com/settings/tokens)
128
+ export GITHUB_TOKEN="ghp_xxxx"
129
+
130
+ # Jira (https://id.atlassian.com/manage-profile/security/api-tokens)
131
+ export JIRA_HOST="company.atlassian.net"
132
+ export JIRA_EMAIL="you@company.com"
133
+ export JIRA_API_TOKEN="xxxx"
134
+ ```
135
+
136
+ ## Project Structure After Init
137
+
138
+ ```
139
+ your-project/
140
+ ├── .claude/
141
+ │ ├── commands/ # Slash commands
142
+ │ │ ├── new-project.md
143
+ │ │ ├── feature.md
144
+ │ │ ├── commit.md
145
+ │ │ ├── pr.md
146
+ │ │ ├── ticket.md
147
+ │ │ └── review.md
148
+ │ └── settings.json # MCP configuration
149
+ ├── agents/ # Agent behavior definitions (optional)
150
+ ├── templates/ # PR, commit, Jira templates (optional)
151
+ └── CLAUDE.md # Project context
152
+ ```
153
+
154
+ ## Customization
155
+
156
+ ### Adding Custom Commands
157
+
158
+ Create `.claude/commands/my-command.md`:
159
+
160
+ ```markdown
161
+ # /my-command - Description
162
+
163
+ When the user runs /my-command, do the following:
164
+
165
+ 1. Step one
166
+ 2. Step two
167
+ ...
168
+ ```
169
+
170
+ ### Modifying Existing Commands
171
+
172
+ Edit files in `.claude/commands/` to match your team's conventions.
173
+
174
+ ### Project-Specific Context
175
+
176
+ Edit `CLAUDE.md` to add:
177
+ - Tech stack details
178
+ - Coding conventions
179
+ - Architecture patterns
180
+ - API documentation
181
+
182
+ ## Examples
183
+
184
+ ### Create a React Native App
185
+
186
+ ```
187
+ > /new-project
188
+
189
+ ? Project type: Expo (React Native)
190
+ ? Architecture: Feature-based
191
+ ? State management: Zustand
192
+ ? Styling: NativeWind (Tailwind)
193
+ ? Include testing setup? Yes
194
+
195
+ Creating project...
196
+ ✓ Initialized Expo project
197
+ ✓ Created folder structure
198
+ ✓ Installed dependencies
199
+ ✓ Configured TypeScript
200
+ ✓ Added ESLint + Prettier
201
+
202
+ Next: cd my-app && npx expo start
203
+ ```
204
+
205
+ ### Implement a Feature
206
+
207
+ ```
208
+ > /feature shopping-cart
209
+
210
+ Planning feature: shopping-cart
211
+
212
+ Files to create:
213
+ ├── src/features/cart/
214
+ │ ├── components/
215
+ │ │ ├── CartItem.tsx
216
+ │ │ ├── CartSummary.tsx
217
+ │ │ └── CartButton.tsx
218
+ │ ├── hooks/
219
+ │ │ └── useCart.ts
220
+ │ ├── services/
221
+ │ │ └── cart.service.ts
222
+ │ └── types/
223
+ │ └── cart.types.ts
224
+
225
+ Implementing...
226
+ ```
227
+
228
+ ### Generate Commit Message
229
+
230
+ ```
231
+ > /commit
232
+
233
+ Staged changes:
234
+ M src/features/cart/hooks/useCart.ts
235
+ A src/features/cart/components/CartBadge.tsx
236
+
237
+ Analyzing changes...
238
+
239
+ Suggested commit:
240
+ feat(cart): add cart badge showing item count
241
+
242
+ Options:
243
+ 1. feat(cart): add cart badge showing item count
244
+ 2. feat(cart): add CartBadge component with item counter
245
+ 3. Edit manually
246
+
247
+ ? Select: 1
248
+
249
+ ✓ Committed: feat(cart): add cart badge showing item count
250
+ ```
251
+
252
+ ## Requirements
253
+
254
+ - Node.js 16+
255
+ - Claude Code CLI
256
+
257
+ ## License
258
+
259
+ MIT
260
+
261
+ ## Contributing
262
+
263
+ Issues and PRs welcome at [github.com/yourusername/create-dev-agents](https://github.com/yourusername/create-dev-agents)
package/bin/cli.js ADDED
@@ -0,0 +1,74 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { Command } from 'commander';
4
+ import chalk from 'chalk';
5
+ import { init, addCommand, listCommands, setupMcp, installGlobal } from '../src/index.js';
6
+
7
+ const program = new Command();
8
+
9
+ program
10
+ .name('dev-agents')
11
+ .description('Claude Code agents for rapid development')
12
+ .version('1.0.0');
13
+
14
+ // Init command - add agents to current project
15
+ program
16
+ .command('init')
17
+ .description('Initialize dev agents in current project')
18
+ .option('-g, --global', 'Install globally to ~/.claude')
19
+ .option('--all', 'Install all agents and templates')
20
+ .option('--minimal', 'Install only essential commands')
21
+ .action(async (options) => {
22
+ console.log(chalk.blue.bold('\n🤖 Dev Agents Setup\n'));
23
+ await init(options);
24
+ });
25
+
26
+ // Add specific command
27
+ program
28
+ .command('add <command>')
29
+ .description('Add a specific command (new-project, feature, commit, pr, ticket, review)')
30
+ .action(async (command) => {
31
+ await addCommand(command);
32
+ });
33
+
34
+ // List available commands
35
+ program
36
+ .command('list')
37
+ .description('List all available agents and commands')
38
+ .action(() => {
39
+ listCommands();
40
+ });
41
+
42
+ // Setup MCP servers
43
+ program
44
+ .command('mcp')
45
+ .description('Configure MCP servers (GitHub, Jira, Git)')
46
+ .action(async () => {
47
+ await setupMcp();
48
+ });
49
+
50
+ // Install globally
51
+ program
52
+ .command('global')
53
+ .description('Install commands globally to ~/.claude (works in any project)')
54
+ .action(async () => {
55
+ await installGlobal();
56
+ });
57
+
58
+ // Show examples
59
+ program
60
+ .command('examples')
61
+ .description('Show usage examples')
62
+ .action(() => {
63
+ console.log(chalk.blue.bold('\n📚 Usage Examples\n'));
64
+ console.log(chalk.white('After running `dev-agents init`, use these in Claude Code:\n'));
65
+ console.log(chalk.yellow(' /new-project') + ' Create Expo, React, Next.js project');
66
+ console.log(chalk.yellow(' /feature auth') + ' Implement authentication feature');
67
+ console.log(chalk.yellow(' /commit') + ' Generate conventional commit message');
68
+ console.log(chalk.yellow(' /pr') + ' Create pull request with description');
69
+ console.log(chalk.yellow(' /ticket') + ' Create Jira ticket');
70
+ console.log(chalk.yellow(' /review') + ' Code review with suggestions');
71
+ console.log();
72
+ });
73
+
74
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "create-dev-agents",
3
+ "version": "1.0.0",
4
+ "description": "Claude Code agents for rapid development - project scaffolding, features, commits, PRs, Jira tickets",
5
+ "keywords": [
6
+ "claude",
7
+ "claude-code",
8
+ "ai",
9
+ "agents",
10
+ "developer-tools",
11
+ "automation",
12
+ "mcp",
13
+ "jira",
14
+ "github",
15
+ "commit",
16
+ "pull-request",
17
+ "scaffolding"
18
+ ],
19
+ "author": "Kiran C",
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/ck-kiran/create-dev-agents"
24
+ },
25
+ "homepage": "https://github.com/ck-kiran/create-dev-agents#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/ck-kiran/create-dev-agents/issues"
28
+ },
29
+ "bin": {
30
+ "create-dev-agents": "./bin/cli.js",
31
+ "dev-agents": "./bin/cli.js"
32
+ },
33
+ "main": "./src/index.js",
34
+ "files": [
35
+ "bin",
36
+ "src",
37
+ "templates"
38
+ ],
39
+ "type": "module",
40
+ "scripts": {
41
+ "test": "node bin/cli.js --help",
42
+ "dev": "node bin/cli.js",
43
+ "prepublishOnly": "echo 'Ready to publish!'"
44
+ },
45
+ "engines": {
46
+ "node": ">=16.0.0"
47
+ },
48
+ "dependencies": {
49
+ "chalk": "^5.3.0",
50
+ "commander": "^11.1.0",
51
+ "enquirer": "^2.4.1",
52
+ "ora": "^7.0.1"
53
+ }
54
+ }