developer-ai 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 (105) hide show
  1. package/README.md +241 -0
  2. package/bin/developer-ai.js +2 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +219 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/config/index.d.ts +7 -0
  8. package/dist/config/index.d.ts.map +1 -0
  9. package/dist/config/index.js +82 -0
  10. package/dist/config/index.js.map +1 -0
  11. package/dist/config/schema.d.ts +115 -0
  12. package/dist/config/schema.d.ts.map +1 -0
  13. package/dist/config/schema.js +29 -0
  14. package/dist/config/schema.js.map +1 -0
  15. package/dist/constants.d.ts +8 -0
  16. package/dist/constants.d.ts.map +1 -0
  17. package/dist/constants.js +8 -0
  18. package/dist/constants.js.map +1 -0
  19. package/dist/core/agent.d.ts +38 -0
  20. package/dist/core/agent.d.ts.map +1 -0
  21. package/dist/core/agent.js +155 -0
  22. package/dist/core/agent.js.map +1 -0
  23. package/dist/core/system-prompt.d.ts +6 -0
  24. package/dist/core/system-prompt.d.ts.map +1 -0
  25. package/dist/core/system-prompt.js +44 -0
  26. package/dist/core/system-prompt.js.map +1 -0
  27. package/dist/core/types.d.ts +42 -0
  28. package/dist/core/types.d.ts.map +1 -0
  29. package/dist/core/types.js +6 -0
  30. package/dist/core/types.js.map +1 -0
  31. package/dist/index.d.ts +15 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +12 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/mcp/client.d.ts +13 -0
  36. package/dist/mcp/client.d.ts.map +1 -0
  37. package/dist/mcp/client.js +202 -0
  38. package/dist/mcp/client.js.map +1 -0
  39. package/dist/providers/ollama.d.ts +13 -0
  40. package/dist/providers/ollama.d.ts.map +1 -0
  41. package/dist/providers/ollama.js +60 -0
  42. package/dist/providers/ollama.js.map +1 -0
  43. package/dist/providers/openai.d.ts +9 -0
  44. package/dist/providers/openai.d.ts.map +1 -0
  45. package/dist/providers/openai.js +40 -0
  46. package/dist/providers/openai.js.map +1 -0
  47. package/dist/skills/loader.d.ts +25 -0
  48. package/dist/skills/loader.d.ts.map +1 -0
  49. package/dist/skills/loader.js +93 -0
  50. package/dist/skills/loader.js.map +1 -0
  51. package/dist/tests/tools.test.d.ts +2 -0
  52. package/dist/tests/tools.test.d.ts.map +1 -0
  53. package/dist/tests/tools.test.js +170 -0
  54. package/dist/tests/tools.test.js.map +1 -0
  55. package/dist/tools/index.d.ts +5 -0
  56. package/dist/tools/index.d.ts.map +1 -0
  57. package/dist/tools/index.js +19 -0
  58. package/dist/tools/index.js.map +1 -0
  59. package/dist/tools/list-files.d.ts +3 -0
  60. package/dist/tools/list-files.d.ts.map +1 -0
  61. package/dist/tools/list-files.js +60 -0
  62. package/dist/tools/list-files.js.map +1 -0
  63. package/dist/tools/read-file.d.ts +3 -0
  64. package/dist/tools/read-file.d.ts.map +1 -0
  65. package/dist/tools/read-file.js +46 -0
  66. package/dist/tools/read-file.js.map +1 -0
  67. package/dist/tools/registry.d.ts +24 -0
  68. package/dist/tools/registry.d.ts.map +1 -0
  69. package/dist/tools/registry.js +37 -0
  70. package/dist/tools/registry.js.map +1 -0
  71. package/dist/tools/run-command.d.ts +3 -0
  72. package/dist/tools/run-command.d.ts.map +1 -0
  73. package/dist/tools/run-command.js +114 -0
  74. package/dist/tools/run-command.js.map +1 -0
  75. package/dist/tools/search-text.d.ts +3 -0
  76. package/dist/tools/search-text.d.ts.map +1 -0
  77. package/dist/tools/search-text.js +103 -0
  78. package/dist/tools/search-text.js.map +1 -0
  79. package/dist/tools/utils.d.ts +6 -0
  80. package/dist/tools/utils.d.ts.map +1 -0
  81. package/dist/tools/utils.js +14 -0
  82. package/dist/tools/utils.js.map +1 -0
  83. package/dist/tools/web-search.d.ts +3 -0
  84. package/dist/tools/web-search.d.ts.map +1 -0
  85. package/dist/tools/web-search.js +80 -0
  86. package/dist/tools/web-search.js.map +1 -0
  87. package/dist/tools/write-file.d.ts +3 -0
  88. package/dist/tools/write-file.d.ts.map +1 -0
  89. package/dist/tools/write-file.js +66 -0
  90. package/dist/tools/write-file.js.map +1 -0
  91. package/package.json +54 -0
  92. package/skills/accessibility/SKILL.md +496 -0
  93. package/skills/api-design/SKILL.md +419 -0
  94. package/skills/code-review/SKILL.md +267 -0
  95. package/skills/debugging/SKILL.md +332 -0
  96. package/skills/documentation/SKILL.md +496 -0
  97. package/skills/error-handling/SKILL.md +504 -0
  98. package/skills/git-workflow/SKILL.md +448 -0
  99. package/skills/human-like-coding/SKILL.md +400 -0
  100. package/skills/performance-optimization/SKILL.md +412 -0
  101. package/skills/prompt-engineering/SKILL.md +362 -0
  102. package/skills/refactoring/SKILL.md +457 -0
  103. package/skills/security-audit/SKILL.md +453 -0
  104. package/skills/testing-strategy/SKILL.md +501 -0
  105. package/skills/webapp-testing/SKILL.md +309 -0
@@ -0,0 +1,400 @@
1
+ ---
2
+ name: human-like-coding
3
+ description: Guide AI agents to write code that feels human-crafted rather than AI-generated. Use this skill when building websites, UIs, or any frontend code that should avoid the telltale signs of AI generation. Applies principles of intentional imperfection, personal voice, narrative flow, and authentic design decisions.
4
+ ---
5
+
6
+ # Human-Like Coding Skill
7
+
8
+ This skill teaches AI agents how to write code that feels authentically human-crafted, avoiding the common patterns and fingerprints that make AI-generated code obvious.
9
+
10
+ ## Objective
11
+
12
+ Design and develop websites that feel human-made rather than AI-generated. Avoid predictable SaaS patterns, generic copy, and over-polished layouts.
13
+
14
+ ## Structured Layout Rules
15
+
16
+ ### Avoid:
17
+ - Perfect symmetry everywhere
18
+ - 3-column feature grid by default
19
+ - Hero → Features → Testimonials → Pricing → FAQ pattern
20
+ - Centered hero text every time
21
+ - Uniform 8px spacing system across everything
22
+
23
+ ### Prefer:
24
+ - Asymmetric layouts
25
+ - Offset sections
26
+ - Mixed alignment (left hero instead of centered)
27
+ - Occasional irregular spacing (18px, 37px, 23px etc.)
28
+ - Section width variations
29
+ - Intentional white space
30
+
31
+ ---
32
+
33
+ ## Overview
34
+
35
+ AI-generated websites and code have clear fingerprints. This skill helps you create work that feels genuinely human by understanding what makes code feel human vs machine-generated.
36
+
37
+ **Core Principle:**
38
+ AI optimizes for completeness and symmetry.
39
+ Humans optimize for expression and intent.
40
+ Design for feeling, not for structure.
41
+
42
+ ## What Makes Code Feel Human-Coded
43
+
44
+ ### 1. Intentional Imperfections (Visual Tension)
45
+
46
+ **Human developers:**
47
+ - Break spacing rules slightly
48
+ - Use inconsistent border radii sometimes
49
+ - Mix font weights imperfectly
50
+ - Don't always follow perfect grid symmetry
51
+ - Developer personality
52
+ - Honest trade-offs discussion
53
+
54
+ **AI patterns to avoid:**
55
+ - "Welcome to our innovative platform"
56
+ - "We deliver cutting-edge solutions"
57
+ - "Seamless experience"
58
+ - Generic startup tone
59
+
60
+ **Avoid these overused words:**
61
+ - Seamless
62
+ - Innovative
63
+ - Cutting-edge
64
+ - Next-generation
65
+ - Revolutionary
66
+ - Empowering
67
+ - Clean but sterile layouts
68
+
69
+ **Principle:** Humans create *visual tension*. AI creates *visual balance*.
70
+
71
+ ### 2. Personal Voice & Microcopy
72
+
73
+ **Human sites have:**
74
+ - Weird small jokes in footer
75
+ - Conversational copy
76
+ - Unexpected phrases
77
+ - Emotional sentences
78
+ - Real-world context and metaphors
79
+
80
+ **AI patterns to avoid:**
81
+ - "Welcome to our innovative platform"
82
+ - "We deliver cutting-edge solutions"
83
+ - "Seamless experience"
84
+ - Generic startup tone
85
+ - Overusing words: "Seamless", "Innovative", "Next-generation", "Cutting-edge", "Empowering", "Revolutionary"
86
+
87
+ ### 3. Layout Flow That Breaks Patterns
88
+
89
+ **Human designers:**
90
+ - Use overlapping sections
91
+ - Break container width mid-page
92
+ - Add unexpected empty space
93
+ - Use staggered grids
94
+ - Add slightly rotated elements
95
+ - Create experimental scroll effects
96
+ - Use custom separators like waves instead of lines
97
+ - Create unique cursor pointers on interactive elements
98
+
99
+ **AI patterns to avoid (the standard template):**
100
+ 1. Hero
101
+ 2. Features grid (3 columns)
102
+ 3. Testimonials
103
+ 4. CTA
104
+ 5. Footer
105
+
106
+ Same order. Every time.
107
+
108
+ ### 4. Real Constraints & Tradeoffs
109
+
110
+ **Human projects show:**
111
+ - Slight performance compromises
112
+ - Uneven icon styles
113
+ - Mixed illustration styles
114
+ - Weird design decisions driven by time constraints
115
+ - Unfinished features/roadmap items
116
+
117
+ **AI patterns to avoid:**
118
+ - Over-polished everything
119
+ - Too consistent styling
120
+ - Every icon same72px+)
121
+ - Small body text (14px)
122
+ - Play with line height creatively
123
+ - Strong contrast in font scale
124
+
125
+ **AI patterns to avoid:**
126
+ - Safe SaaS typography scale (16px base, 1.5 line height, 32px headings)
127
+ - Always using Inter, Poppins, or Roboto
128
+ - Very predictable type scales
129
+ - Uniform hierarchy
130
+ - Use dramatic font-size jumps
131
+ - Big hero text (96px+)
132
+ - Small body text (14px)
133
+ - Play with line height creatively
134
+
135
+ **AI patterns to avoid:**
136
+ - Safe typography (16px base, 1.5 line height, 32px headings)
137
+ - Always using Inter, Poppins, or Roboto
138
+ - Very predictable type scales
139
+
140
+ ### 6. Color Behavior
141
+
142
+ **AI patterns to avoid:**
143
+ - Soft gradients everywhere
144
+
145
+ ---
146
+
147
+ ## Styling Standards
148
+
149
+ ### Avoid:
150
+ - `border-radius: 12px` everywhere
151
+ - Subtle `box-shadow` on every card
152
+ - Glassmorphism by default
153
+ - Purple-blue gradients
154
+ - OTechnical Signals
155
+
156
+ ### Avoid:
157
+ - Over-perfect component structure
158
+ - Excessive abstraction
159
+ - Over-commenting obvious code
160
+ - Everything perfectly modularized
161
+ - No visible decision-making
162
+
163
+ ### Prefer:
164
+ - Practical structure with real trade-offs
165
+ - Visible decision-making in comments
166
+ - Realistic trade-offs discussion
167
+ - Developer notes showing thought process
168
+ - Some code left slightly less organized (but functional)
169
+ ### Avoid:
170
+ - Feature listing without narrative
171
+ - Generic testimonials
172
+ - Placeholder avatars
173
+ - Fake metrics
174
+ - Hero with gradient background → 3-column features → Testimonials → CTA → Footer (the template)
175
+
176
+ ### Prefer:
177
+ - Story-driven scroll flow
178
+ - Problem → Frustration → Solution → Outcome narrative
179
+ - Real constraints and trade-offs
180
+ - Roadmap or unfinished ideas section
181
+ - Behind-the-scenes content
182
+ - Architecture diagrams
183
+ - Technical blog section
184
+ - How it works internally explanations
185
+ - Purple-blue combos
186
+ - Glassmorphism
187
+ - Glow effects
188
+ - Pastel SaaS palette
189
+ - Following trends too closely
190
+
191
+ **Human color choices:**
192
+ - Sometimes ugly but bold colors
193
+ - High contrast
194
+ - Unexpected palettes
195
+ - Brand personality over trends
196
+
197
+ ## Common AI Fingerprints to Remove
198
+
199
+ ### Layout Patterns
200
+ - Hero with gradient background
201
+ - Centered headline
202
+ - 3-column features
203
+ - Rounded cards with consistent radii
204
+ - Subtle hover lift animation
205
+ - CTA button with gradient
206
+ - Footer with 4 columns
207
+
208
+ ### Styling Patterns
209
+ - `border-radius: 12px` everywhere
210
+ - Subtle `box-shadow` everywhere
211
+ - `backdrop-blur` overuse
212
+ - Glassmorphism panels
213
+ - Fade-in animations on scroll
214
+ - Smooth scroll always enabled
215
+ - Intersection observer reveal animations
216
+
217
+ ### Component Patterns
218
+ - Card grid layouts
219
+ - Pricing table (3 tiers)
220
+ - FAQ accordion
221
+ - Testimonial slider
222
+ - Navbar with blur background
223
+ - Sticky header
224
+ - "Get Started" primary CTA
225
+
226
+ ### Animation Patterns (Too Predictable)
227
+ - Fade up on scroll (`opacity: 0 → 1`)
228
+ - `translateY(20px)` on entrance
229
+ - `hover: scale(1.05)`
230
+ - Button ripple effects
231
+
232
+ ## What AI Usually Misses
233
+
234
+ ### 1. Narrative Flow
235
+ - Humans tell a story across scroll
236
+ - AI lists features
237
+ - **Fix:** Structure as: Problem → What sucks → What I built → Why it matters
238
+
239
+ ### 2. Emotional Intent
240
+ **Humans design for:**
241
+ - Feeling
242
+ - Frustration resolution
243
+ - Aspiration
244
+ - Humor
245
+
246
+ **AI designs for:**
247
+ - Structure
248
+ - Completeness
249
+
250
+ ### 3. Strategic White Space
251
+ - AI fills space
252
+ - Humans leave emptiness intentionally
253
+
254
+ ### 4. Personality Through Constraints
255
+ **Human projects sometimes:**
256
+ - Only use 2 colors
257
+ - Use no animation
258
+ - Go brutalist style
259
+
260
+ AI tries to impress always.
261
+
262
+ ### 5. Unexpected Decisions
263
+ **Human choices:**
264
+ - Left-aligned hero instead of centered
265
+ - Asymmetric layout
266
+ - Hard cut sections
267
+ - Mixed dark/light sections
268
+
269
+ **AI choices:**
270
+ - Balanced, centered, safe
271
+
272
+ ## How To Make It Look Human
273
+
274
+ ### Break Symmetry
275
+ - Offset images
276
+ - Shift elements slightly off-grid
277
+ - Mix alignment (don't center everything)
278
+
279
+ ### Add Voice
280
+ - Add 2-3 personal lines
281
+ - Add weird/quirky footer text
282
+ - Include real developer notes
283
+ - Show personality in microcopy
284
+
285
+ ### Remove Some Polish
286
+ - Don't animate everything
287
+ - Use sharp edges sometimes
288
+ - Mix in subtle imperfections
289
+ - Leave some rough edges intentionally
290
+
291
+ ### Tell a Story
292
+ Instead of listing features:
293
+ ```
294
+ Feature 1, Feature 2, Feature 3
295
+ ```
296
+
297
+ Structure as:
298
+ ```
299
+ Here's the problem
300
+ Here's what sucks about current solutions
301
+ Here's what I built
302
+ Here's why it matters
303
+ ```
304
+
305
+ ### Add Human Touches
306
+ - Technical blog section
307
+ - "How it works internally"
308
+ - Architecture diagrams
309
+ - Real dev notes
310
+ - P
311
+
312
+ ### Variable Naming
313
+ - Use slightly longer, more descriptive names
314
+ - Include occasional comments that show thought process
315
+ - Don't over-comment everything perfectlyerformance tradeoffs discussion
316
+ - Roadmap with unfinished items
317
+ - Custom cursors on interactive elements
318
+ - Unique animations (not just fade/slide)
319
+ - Wave separators instead of lines
320
+ - Custom SVG illustrations
321
+
322
+ ## Code Style Guidelines
323
+
324
+ ### Variable Naming
325
+ - Use slightly longer, more descriptive names
326
+ - Include occasional comments that show thought process
327
+ - Don't over-comment everything perfectly
328
+
329
+ ### Structure
330
+ - Leave some code slightly less organized
331
+ - Mix patterns occasionally (consistency but not robotic)
332
+ - Include TODO comments for future improvements
333
+
334
+ ### CSS/Styling
335
+ ```css
336
+ /* Human Signals Checklist
337
+
338
+ Verify your work has these signals that it was human-made:
339
+
340
+ - [ ] Slight asymmetry exists in layout
341
+ - [ ] Copy contains personality and avoids generic startup buzzwords
342
+ - [ ] Layout breaks at least one common SaaS pattern
343
+ - [ ] Some intentional asymmetry (offset sections, mixed alignment)
344
+ - [ ] Typography has character and dramatic size contrasts
345
+ - [ ] Colors aren't the "safe" AI palette (avoid soft pastels unless intentional)
346
+ - [ ] Animations are selective and meaningful, not on every element
347
+ - [ ] There's narrative flow, not just feature lists
348
+ - [ ] Strategic white space/emptiness used intentionally
349
+ - [ ] Personal touches visible (quirky copy, developer notes, comments)
350
+ - [ ] Not everything is perfectly polished
351
+ - [ ] At least one unexpected element exists
352
+ - [ ] Spacing isn't perfectly systematic (mix 18px, 37px, 23px vs pure 8px grid)
353
+ - [ ] No generic testimonials or placeholder avatars
354
+ - [ ] Real constraints or roadmap discuss
355
+ // Human: Casual, shows thinking
356
+ // this fixes that weird Safari bug from 2019
357
+ // TODO: probably should refactor this mess later
358
+
359
+ // AI to avoid: Too formal and complete
360
+ // This function handles the Safari browser compatibility
361
+ // issue related to flexbox rendering in version 12.1
362
+ ```
363
+
364
+ ## Example Transformations
365
+
366
+ ### Before (AI-like)
367
+ ```html
368
+ <section class="features">
369
+ <div class="feature-card">
370
+ <h3>Seamless Integration</h3>
371
+ <p>Our cutting-edge solution provides...</p>
372
+ </div>
373
+ </section>
374
+ ```
375
+
376
+ ### After (Human-like)
377
+ ```html
378
+ <section class="features" style="padding: 67px 0 89px;">
379
+ <div class="feature-card" style="border-radius: 8px 12px 8px 14px;">
380
+ <h3>It just works with your stuff</h3>
381
+ <p>Plug it in, grab coffee, come back. Done.</p>
382
+ </div>
383
+ </section>
384
+ ```
385
+
386
+ ## Summary Checklist
387
+
388
+ When generating code, verify:
389
+
390
+ - [ ] Spacing isn't perfectly systematic
391
+ - [ ] Copy has personality and avoids buzzwords
392
+ - [ ] Layout breaks expected patterns somewhere
393
+ - [ ] Some intentional asymmetry exists
394
+ - [ ] Typography has character
395
+ - [ ] Colors aren't the "safe" AI palette
396
+ - [ ] Animations are unique or minimal
397
+ - [ ] There's narrative flow, not just feature lists
398
+ - [ ] Some strategic emptiness/white space
399
+ - [ ] Personal touches are visible (comments, quirks)
400
+ - [ ] Not everything is perfectly polished