@patricio0312rev/agentkit 0.1.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 (47) hide show
  1. package/CONTRIBUTING.md +491 -0
  2. package/LICENSE +21 -0
  3. package/README.md +442 -0
  4. package/bin/cli.js +41 -0
  5. package/package.json +54 -0
  6. package/src/commands/init.js +312 -0
  7. package/src/index.js +220 -0
  8. package/src/lib/config.js +157 -0
  9. package/src/lib/generator.js +193 -0
  10. package/src/utils/display.js +95 -0
  11. package/src/utils/readme.js +191 -0
  12. package/src/utils/tool-specific.js +408 -0
  13. package/templates/departments/design/brand-guardian.md +133 -0
  14. package/templates/departments/design/ui-designer.md +154 -0
  15. package/templates/departments/design/ux-researcher.md +285 -0
  16. package/templates/departments/design/visual-storyteller.md +296 -0
  17. package/templates/departments/design/whimsy-injector.md +318 -0
  18. package/templates/departments/engineering/ai-engineer.md +386 -0
  19. package/templates/departments/engineering/backend-architect.md +425 -0
  20. package/templates/departments/engineering/devops-automator.md +393 -0
  21. package/templates/departments/engineering/frontend-developer.md +411 -0
  22. package/templates/departments/engineering/mobile-app-builder.md +412 -0
  23. package/templates/departments/engineering/rapid-prototyper.md +415 -0
  24. package/templates/departments/engineering/test-writer-fixer.md +462 -0
  25. package/templates/departments/marketing/app-store-optimizer.md +176 -0
  26. package/templates/departments/marketing/content-creator.md +206 -0
  27. package/templates/departments/marketing/growth-hacker.md +219 -0
  28. package/templates/departments/marketing/instagram-curator.md +166 -0
  29. package/templates/departments/marketing/reddit-community-builder.md +192 -0
  30. package/templates/departments/marketing/tiktok-strategist.md +158 -0
  31. package/templates/departments/marketing/twitter-engager.md +184 -0
  32. package/templates/departments/product/feedback-synthesizer.md +143 -0
  33. package/templates/departments/product/sprint-prioritizer.md +169 -0
  34. package/templates/departments/product/trend-researcher.md +176 -0
  35. package/templates/departments/project-management/experiment-tracker.md +128 -0
  36. package/templates/departments/project-management/project-shipper.md +151 -0
  37. package/templates/departments/project-management/studio-producer.md +156 -0
  38. package/templates/departments/studio-operations/analytics-reporter.md +191 -0
  39. package/templates/departments/studio-operations/finance-tracker.md +242 -0
  40. package/templates/departments/studio-operations/infrastructure-maintainer.md +202 -0
  41. package/templates/departments/studio-operations/legal-compliance-checker.md +208 -0
  42. package/templates/departments/studio-operations/support-responder.md +181 -0
  43. package/templates/departments/testing/api-tester.md +207 -0
  44. package/templates/departments/testing/performance-benchmarker.md +262 -0
  45. package/templates/departments/testing/test-results-analyzer.md +251 -0
  46. package/templates/departments/testing/tool-evaluator.md +206 -0
  47. package/templates/departments/testing/workflow-optimizer.md +235 -0
@@ -0,0 +1,491 @@
1
+ # Contributing to AgentKit
2
+
3
+ Thank you for your interest in contributing to AgentKit! 🎉
4
+
5
+ We welcome contributions from the community, whether it's bug reports, feature requests, documentation improvements, or code contributions.
6
+
7
+ ---
8
+
9
+ ## 📋 Table of Contents
10
+
11
+ - [Code of Conduct](#code-of-conduct)
12
+ - [How Can I Contribute?](#how-can-i-contribute)
13
+ - [Getting Started](#getting-started)
14
+ - [Development Setup](#development-setup)
15
+ - [Project Structure](#project-structure)
16
+ - [Coding Guidelines](#coding-guidelines)
17
+ - [Submitting Changes](#submitting-changes)
18
+ - [Agent Template Guidelines](#agent-template-guidelines)
19
+
20
+ ---
21
+
22
+ ## 📜 Code of Conduct
23
+
24
+ This project follows the [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/). By participating, you are expected to uphold this code. Please report unacceptable behavior to [patricio0312rev@github].
25
+
26
+ ---
27
+
28
+ ## 🤝 How Can I Contribute?
29
+
30
+ ### Reporting Bugs
31
+
32
+ Before creating bug reports, please check existing issues to avoid duplicates. When creating a bug report, include:
33
+
34
+ - **Clear title and description**
35
+ - **Steps to reproduce** the issue
36
+ - **Expected vs actual behavior**
37
+ - **Environment details** (OS, Node.js version, npm version)
38
+ - **Error messages or logs** (if applicable)
39
+ - **Screenshots** (if relevant)
40
+
41
+ **Bug Report Template:**
42
+
43
+ ```markdown
44
+ **Describe the bug**
45
+ A clear and concise description of what the bug is.
46
+
47
+ **To Reproduce**
48
+ Steps to reproduce the behavior:
49
+
50
+ 1. Run command '...'
51
+ 2. Select option '...'
52
+ 3. See error
53
+
54
+ **Expected behavior**
55
+ What you expected to happen.
56
+
57
+ **Environment:**
58
+
59
+ - OS: [e.g., macOS 13.0]
60
+ - Node.js version: [e.g., 18.17.0]
61
+ - AgentKit version: [e.g., 0.1.0]
62
+
63
+ **Additional context**
64
+ Add any other context about the problem here.
65
+ ```
66
+
67
+ ### Suggesting Features
68
+
69
+ We love feature suggestions! Before creating a feature request:
70
+
71
+ 1. **Check existing feature requests** to avoid duplicates
72
+ 2. **Provide clear use cases** - explain why this feature would be useful
73
+ 3. **Be specific** - detailed proposals are easier to implement
74
+
75
+ **Feature Request Template:**
76
+
77
+ ```markdown
78
+ **Is your feature request related to a problem?**
79
+ A clear description of the problem. Ex. I'm always frustrated when [...]
80
+
81
+ **Describe the solution you'd like**
82
+ A clear and concise description of what you want to happen.
83
+
84
+ **Describe alternatives you've considered**
85
+ Any alternative solutions or features you've considered.
86
+
87
+ **Additional context**
88
+ Add any other context, mockups, or examples here.
89
+ ```
90
+
91
+ ### Improving Documentation
92
+
93
+ Documentation improvements are always welcome! This includes:
94
+
95
+ - Fixing typos or grammatical errors
96
+ - Clarifying confusing sections
97
+ - Adding examples
98
+ - Translating documentation
99
+ - Improving code comments
100
+
101
+ ### Contributing Code
102
+
103
+ See [Development Setup](#development-setup) below for how to get started with code contributions.
104
+
105
+ ---
106
+
107
+ ## 🚀 Getting Started
108
+
109
+ ### Prerequisites
110
+
111
+ - **Node.js** >= 14.0.0
112
+ - **npm** >= 6.0.0
113
+ - **Git**
114
+
115
+ ### Fork and Clone
116
+
117
+ 1. **Fork the repository** on GitHub
118
+ 2. **Clone your fork** locally:
119
+
120
+ ```bash
121
+ git clone https://github.com/YOUR_USERNAME/agentkit.git
122
+ cd agentkit
123
+ ```
124
+
125
+ 3. **Add upstream remote**:
126
+
127
+ ```bash
128
+ git remote add upstream https://github.com/patricio0312rev/agentkit.git
129
+ ```
130
+
131
+ 4. **Create a branch** for your changes:
132
+
133
+ ```bash
134
+ git checkout -b feature/your-feature-name
135
+ # or
136
+ git checkout -b fix/your-bug-fix
137
+ ```
138
+
139
+ ---
140
+
141
+ ## 🛠️ Development Setup
142
+
143
+ ### Install Dependencies
144
+
145
+ ```bash
146
+ npm install
147
+ ```
148
+
149
+ ### Test Your Changes Locally
150
+
151
+ ```bash
152
+ # Run CLI directly
153
+ node bin/cli.js init
154
+
155
+ # Or link globally for testing
156
+ npm link
157
+ agentkit init
158
+
159
+ # Test in a separate directory
160
+ cd /tmp/test-project
161
+ agentkit init
162
+ ```
163
+
164
+ ### Unlink After Testing
165
+
166
+ ```bash
167
+ npm unlink agentkit
168
+ ```
169
+
170
+ ---
171
+
172
+ ## 📁 Project Structure
173
+
174
+ ```
175
+ agentkit/
176
+ ├── bin/
177
+ │ └── cli.js # CLI entry point
178
+ ├── src/
179
+ │ ├── commands/
180
+ │ │ └── init.js # Main init command logic
181
+ │ ├── lib/
182
+ │ │ ├── config.js # Tool and department configurations
183
+ │ │ └── generator.js # Agent file generation logic
184
+ │ ├── utils/
185
+ │ │ ├── display.js # Terminal display utilities
186
+ │ │ ├── readme.js # README generation
187
+ │ │ └── tool-specific.js # Tool-specific file generation
188
+ │ └── index.js # Programmatic API exports
189
+ ├── templates/
190
+ │ └── departments/ # Agent template files
191
+ │ ├── design/
192
+ │ ├── engineering/
193
+ │ ├── marketing/
194
+ │ ├── product/
195
+ │ ├── project-management/
196
+ │ ├── studio-operations/
197
+ │ └── testing/
198
+ ├── package.json
199
+ ├── README.md
200
+ └── CONTRIBUTING.md
201
+ ```
202
+
203
+ ---
204
+
205
+ ## 📝 Coding Guidelines
206
+
207
+ ### Code Style
208
+
209
+ - **JavaScript Standard Style** - We follow standard JavaScript conventions
210
+ - **ES6+ syntax** - Use modern JavaScript features
211
+ - **Meaningful names** - Variables and functions should be self-documenting
212
+ - **Comments** - Add comments for complex logic
213
+
214
+ ### Best Practices
215
+
216
+ **Do:**
217
+
218
+ - ✅ Write clear, descriptive commit messages
219
+ - ✅ Keep functions small and focused
220
+ - ✅ Add comments for complex logic
221
+ - ✅ Update documentation when changing behavior
222
+ - ✅ Test your changes thoroughly
223
+
224
+ **Don't:**
225
+
226
+ - ❌ Commit node_modules or generated files
227
+ - ❌ Mix multiple unrelated changes in one PR
228
+ - ❌ Break existing functionality
229
+ - ❌ Include personal configuration files
230
+
231
+ ### Commit Messages
232
+
233
+ Follow the [Conventional Commits](https://www.conventionalcommits.org/) specification:
234
+
235
+ ```
236
+ <type>: <description>
237
+
238
+ [optional body]
239
+
240
+ [optional footer]
241
+ ```
242
+
243
+ **Types:**
244
+
245
+ - `feat`: New feature
246
+ - `fix`: Bug fix
247
+ - `docs`: Documentation changes
248
+ - `style`: Code style changes (formatting, etc.)
249
+ - `refactor`: Code refactoring
250
+ - `test`: Adding or updating tests
251
+ - `chore`: Maintenance tasks
252
+
253
+ **Examples:**
254
+
255
+ ```bash
256
+ feat: add support for pnpm package manager
257
+
258
+ fix: resolve file permission issues on Windows
259
+
260
+ docs: update installation instructions for M1 Macs
261
+
262
+ refactor: simplify agent selection logic
263
+ ```
264
+
265
+ ---
266
+
267
+ ## 🚀 Submitting Changes
268
+
269
+ ### Pull Request Process
270
+
271
+ 1. **Update your fork** with the latest upstream changes:
272
+
273
+ ```bash
274
+ git fetch upstream
275
+ git rebase upstream/main
276
+ ```
277
+
278
+ 2. **Push your changes** to your fork:
279
+
280
+ ```bash
281
+ git push origin feature/your-feature-name
282
+ ```
283
+
284
+ 3. **Create a Pull Request** from your fork to the main repository
285
+
286
+ 4. **Fill out the PR template** with:
287
+ - Description of changes
288
+ - Related issue numbers (if applicable)
289
+ - Testing performed
290
+ - Screenshots (if UI changes)
291
+
292
+ 5. **Respond to feedback** - maintainers may request changes
293
+
294
+ 6. **Keep your PR updated** - rebase on main if needed
295
+
296
+ ### Pull Request Checklist
297
+
298
+ Before submitting your PR, make sure:
299
+
300
+ - [ ] Code follows the project's coding guidelines
301
+ - [ ] Changes have been tested locally
302
+ - [ ] Documentation has been updated (if needed)
303
+ - [ ] Commit messages follow conventional commits
304
+ - [ ] No breaking changes (or clearly documented)
305
+ - [ ] PR description clearly explains the changes
306
+
307
+ ---
308
+
309
+ ## 🤖 Agent Template Guidelines
310
+
311
+ ### Creating or Modifying Agent Templates
312
+
313
+ Agent templates are the heart of AgentKit. When creating or modifying agents:
314
+
315
+ **File Location:**
316
+
317
+ ```
318
+ templates/departments/{department}/{agent-name}.md
319
+ ```
320
+
321
+ **File Structure:**
322
+
323
+ ```markdown
324
+ ## <!-- {department}/{agent-name}.md -->
325
+
326
+ name: agent-name
327
+ description: Brief description of what this agent does
328
+ color: blue
329
+ tools: Write, Read, MultiEdit, Bash
330
+
331
+ ---
332
+
333
+ You are a {role} who {primary responsibility}.
334
+
335
+ ## Core Responsibilities
336
+
337
+ ### 1. {Responsibility Name}
338
+
339
+ {Description}:
340
+
341
+ - {Detail}
342
+ - {Detail}
343
+
344
+ ## {Section Name}
345
+
346
+ {Content}
347
+
348
+ Your goal: {Clear goal statement}
349
+ ```
350
+
351
+ ### Agent Template Requirements
352
+
353
+ **Length:**
354
+
355
+ - Design agents: ~200 lines
356
+ - Engineering agents: 200-250 lines
357
+ - Product agents: <150 lines
358
+ - Marketing agents: 170-200 lines
359
+ - Testing agents: <250 lines
360
+ - Project Management agents: <150 lines
361
+ - Studio Operations agents: <200 lines
362
+
363
+ **Must Include:**
364
+
365
+ - Clear responsibilities section
366
+ - Practical examples and frameworks
367
+ - Language-agnostic code samples (where applicable)
368
+ - Quick reference checklists
369
+ - Clear goal statement
370
+
371
+ **Must NOT Include:**
372
+
373
+ - Overly verbose explanations
374
+ - Redundant information
375
+ - Tool-specific instructions (unless in engineering)
376
+ - Personal opinions without rationale
377
+
378
+ ### Testing Agent Templates
379
+
380
+ 1. **Generate the agent:**
381
+
382
+ ```bash
383
+ node bin/cli.js init --tool cursor --departments {department} --agents {agent-name} --skip-prompts
384
+ ```
385
+
386
+ 2. **Review the output:**
387
+
388
+ - Check file was created correctly
389
+ - Verify formatting is correct
390
+ - Ensure YAML frontmatter is valid
391
+
392
+ 3. **Test with an AI tool:**
393
+
394
+ - Use the agent with Cursor, Claude Code, etc.
395
+ - Verify it provides helpful guidance
396
+ - Check for any confusing instructions
397
+
398
+ ---
399
+
400
+ ## 🎯 Development Workflow
401
+
402
+ ### Typical Workflow
403
+
404
+ 1. **Pick an issue** from GitHub Issues (or create one)
405
+ 2. **Discuss approach** in the issue comments (for major changes)
406
+ 3. **Create a branch** with descriptive name
407
+ 4. **Make your changes**
408
+ 5. **Test thoroughly** locally
409
+ 6. **Commit with clear messages**
410
+ 7. **Push and create PR**
411
+ 8. **Address review feedback**
412
+ 9. **Celebrate** when merged! 🎉
413
+
414
+ ### Working on Agents
415
+
416
+ 1. Find agent file in `templates/departments/{dept}/{agent}.md`
417
+ 2. Make your improvements
418
+ 3. Test by generating and using the agent
419
+ 4. Update department count in `src/lib/config.js` if adding/removing
420
+ 5. Update README if changing agent descriptions
421
+
422
+ ### Working on CLI
423
+
424
+ 1. Make changes in `src/` or `bin/`
425
+ 2. Test with `node bin/cli.js init`
426
+ 3. Test all tool options (cursor, claude-code, etc.)
427
+ 4. Test both interactive and non-interactive modes
428
+ 5. Verify error handling
429
+
430
+ ---
431
+
432
+ ## 🐛 Debugging Tips
433
+
434
+ ### Common Development Issues
435
+
436
+ **Issue: Changes not reflecting**
437
+
438
+ ```bash
439
+ # Unlink and relink
440
+ npm unlink agentkit
441
+ npm link
442
+ ```
443
+
444
+ **Issue: Cannot find module**
445
+
446
+ ```bash
447
+ # Reinstall dependencies
448
+ rm -rf node_modules
449
+ npm install
450
+ ```
451
+
452
+ **Issue: Permission errors**
453
+
454
+ ```bash
455
+ # Make CLI executable
456
+ chmod +x bin/cli.js
457
+ ```
458
+
459
+ ### Logging
460
+
461
+ Add debug logs:
462
+
463
+ ```javascript
464
+ if (process.env.DEBUG) {
465
+ console.log("Debug info:", data);
466
+ }
467
+ ```
468
+
469
+ Run with debug:
470
+
471
+ ```bash
472
+ DEBUG=1 node bin/cli.js init
473
+ ```
474
+
475
+ ---
476
+
477
+ ## 📞 Getting Help
478
+
479
+ - **Questions?** Open a [GitHub Discussion](https://github.com/patricio0312rev/agentkit/discussions)
480
+ - **Bug?** Open a [GitHub Issue](https://github.com/patricio0312rev/agentkit/issues)
481
+ - **Want to chat?** Reach out on Twitter [@patricio0312rev](https://twitter.com/patricio0312rev)
482
+
483
+ ---
484
+
485
+ ## 🙏 Thank You!
486
+
487
+ Your contributions make AgentKit better for everyone. Thank you for taking the time to contribute!
488
+
489
+ ---
490
+
491
+ **Happy coding! 💜**
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Patricio Marroquin
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.