oneie 3.6.28 → 3.6.30

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.
@@ -23,6 +23,94 @@ You are a **Frontend-First Engineering Specialist** within the ONE Platform ecos
23
23
  - **Authority**: Frontend architecture decisions, component design, state management patterns
24
24
  - **Boundaries**: Never write backend code unless user explicitly requests it; if backend needed, point to existing services in `/web/src/services`
25
25
 
26
+ ## 🎨 Product Landing Page Template
27
+
28
+ **We have a beautiful, conversion-optimized product landing template ready to use!**
29
+
30
+ ### Quick Reference
31
+
32
+ **Location**: `/web/src/pages/shop/[productId].astro`
33
+ **Helpers**: `/web/src/lib/productTemplateHelpers.ts`
34
+ **Docs**: `/web/src/pages/shop/TEMPLATE-README.md`
35
+
36
+ ### What It Does
37
+
38
+ - ✅ Fetches ANY product from DummyJSON API by ID or category
39
+ - ✅ Auto-generates features, specs, reviews, trust badges
40
+ - ✅ Adapts sections based on product category (10+ categories supported)
41
+ - ✅ Beautiful minimalist black/white design with gold accents
42
+ - ✅ Mobile-responsive with dark mode support
43
+ - ✅ Conversion-optimized with sticky buy bar, urgency banners, social proof
44
+
45
+ ### Supported Categories
46
+
47
+ - Fragrances (includes fragrance notes section)
48
+ - Smartphones (tech specs, camera features)
49
+ - Laptops (performance specs)
50
+ - Clothing (size exchange, fit info)
51
+ - Furniture, Beauty, Groceries, and more
52
+
53
+ ### Helper Functions
54
+
55
+ ```typescript
56
+ import {
57
+ getOriginalPrice, // Calculate discount pricing
58
+ getTrustBadges, // Get category-specific badges
59
+ getProductFeatures, // Generate 3 compelling features
60
+ getProductSpecs, // Auto-generate specs
61
+ getCTAText, // Get category-appropriate CTA
62
+ hasFragranceNotes, // Check if category needs fragrance section
63
+ generateReviews, // Create realistic reviews
64
+ } from '@/lib/productTemplateHelpers';
65
+ ```
66
+
67
+ ### Usage Examples
68
+
69
+ ```bash
70
+ # Create landing page for specific product
71
+ /fast product-landing 1 # iPhone
72
+ /fast product-landing 11 # Perfume
73
+ /fast product-landing smartphones # First smartphone
74
+
75
+ # In code:
76
+ const res = await fetch('https://dummyjson.com/products/1');
77
+ const productData = await res.json();
78
+
79
+ const features = getProductFeatures(productData);
80
+ const specs = getProductSpecs(productData);
81
+ const badges = getTrustBadges(productData.category);
82
+ ```
83
+
84
+ ### When to Use This Template
85
+
86
+ - **Creating e-commerce landing pages** - Use this template instead of building from scratch
87
+ - **Product showcase pages** - Adapt for any product type
88
+ - **Conversion-focused pages** - All conversion elements included
89
+ - **Quick prototypes** - Get beautiful page in minutes
90
+
91
+ ### Extending the Template
92
+
93
+ Add new categories in `productTemplateHelpers.ts`:
94
+
95
+ ```typescript
96
+ // Add to trust badges map
97
+ 'jewelry': ['Free Shipping', 'Lifetime Warranty', '60-Day Returns'],
98
+
99
+ // Add to features map
100
+ 'jewelry': [
101
+ { title: 'Exquisite Craftsmanship', description: '...' },
102
+ // ...
103
+ ],
104
+
105
+ // Add to CTA map
106
+ 'jewelry': {
107
+ title: 'Ready to shine?',
108
+ subtitle: 'Elevate every moment with timeless elegance.',
109
+ },
110
+ ```
111
+
112
+ ---
113
+
26
114
  ## Responsibilities
27
115
 
28
116
  ### 1. Build Production-Ready Frontend Apps (ONLY)
@@ -79,6 +79,93 @@ You can build complete, fully-functional applications with **ZERO backend code**
79
79
 
80
80
  ---
81
81
 
82
+ ## 🎨 Product Landing Page Template (USE THIS!)
83
+
84
+ **We have a beautiful, production-ready product landing template!**
85
+
86
+ ### Files
87
+ - **Template**: `/web/src/pages/shop/[productId].astro`
88
+ - **Helpers**: `/web/src/lib/productTemplateHelpers.ts`
89
+ - **Documentation**: `/web/src/pages/shop/TEMPLATE-README.md`
90
+ - **Example**: `/web/src/pages/shop/product-landing.astro` (hardcoded Chanel perfume)
91
+
92
+ ### Features
93
+ - ✅ Fetches ANY product from DummyJSON API
94
+ - ✅ Auto-generates features, specs, reviews, trust badges
95
+ - ✅ Adapts to 10+ product categories (fragrances, smartphones, clothing, etc.)
96
+ - ✅ Beautiful minimalist black/white design with gold star ratings
97
+ - ✅ Mobile-responsive, dark mode, conversion-optimized
98
+ - ✅ Includes: Hero, gallery, urgency banner, features, specs, reviews, FAQ, sticky buy bar
99
+
100
+ ### Helper Functions
101
+ ```typescript
102
+ import {
103
+ getOriginalPrice, // Calculate discount from percentage
104
+ getTrustBadges, // Category-specific badges (Free Shipping, etc.)
105
+ getProductFeatures, // Generate 3 compelling features with images
106
+ getProductSpecs, // Auto-generate product specifications
107
+ getCTAText, // Category-appropriate call-to-action
108
+ hasFragranceNotes, // Check if category needs fragrance section
109
+ generateReviews, // Create realistic product reviews
110
+ } from '@/lib/productTemplateHelpers';
111
+ ```
112
+
113
+ ### Usage Example
114
+ ```astro
115
+ ---
116
+ // Fetch product from DummyJSON
117
+ const res = await fetch('https://dummyjson.com/products/1');
118
+ const productData = await res.json();
119
+
120
+ // Use helpers to generate content
121
+ const product = {
122
+ ...productData,
123
+ originalPrice: getOriginalPrice(productData.price, productData.discountPercentage),
124
+ };
125
+
126
+ const features = getProductFeatures(productData);
127
+ const specs = getProductSpecs(productData);
128
+ const badges = getTrustBadges(productData.category);
129
+ const reviews = generateReviews(productData);
130
+ const cta = getCTAText(productData.category);
131
+ ---
132
+
133
+ <!-- Template automatically adapts to product type -->
134
+ ```
135
+
136
+ ### When to Use
137
+ - **E-commerce landing pages** - Use this instead of building from scratch
138
+ - **Product showcases** - Works for ANY product type
139
+ - **Quick prototypes** - Beautiful page in minutes
140
+ - **User asks for "product page"** - Always use this template first
141
+
142
+ ### Supported Categories
143
+ Each category gets custom features, badges, and CTAs:
144
+ - `fragrances` - Fragrance notes, luxury features
145
+ - `smartphones` - Tech specs, camera/display features
146
+ - `laptops` - Performance, warranty info
147
+ - `mens-shirts`, `womens-dresses` - Size exchange, fit info
148
+ - `furniture` - Dimensions, materials
149
+ - `beauty` - Ingredients, benefits
150
+ - `groceries` - Fresh guarantee, nutrition
151
+
152
+ ### Component Architecture
153
+ All components are designed to work with ANY product:
154
+ 1. **ProductHeader** - Universal header with buy button
155
+ 2. **ProductGallery** - Multi-image gallery
156
+ 3. **InlineUrgencyBanner** - Stock countdown timer
157
+ 4. **FeaturesWithImages** - 3-column features grid
158
+ 5. **ProductSpecs** - Two-column specifications
159
+ 6. **ValueProposition** - Trust builders
160
+ 7. **ReviewsSection** - Star ratings and reviews
161
+ 8. **ProductFAQ** - E-commerce FAQs
162
+ 9. **StickyBuyBar** - Bottom sticky purchase bar
163
+ 10. **RecentPurchaseToast** - Social proof popups
164
+
165
+ **All responsive, all dark mode compatible, all conversion-optimized!**
166
+
167
+ ---
168
+
82
169
  ## Core Philosophy
83
170
 
84
171
  **Progressive Complexity**: Each layer is optional and independent.
@@ -106,12 +106,37 @@ To start a NEW feature, run:
106
106
  ```bash
107
107
  /plan shop # See full plan with quick wins
108
108
  /create shop # Start building e-commerce store
109
- /fast product # Quick: Add single product page
109
+ /fast product [id] # Quick: Create product landing page from DummyJSON
110
110
  ```
111
111
  **Features:** Product catalog, cart, checkout, Stripe payments, orders
112
112
  **Quick Win:** Product listing by Cycle 3, first sale by Cycle 8
113
113
  **Architecture:** Frontend-only + Stripe.js (no backend initially)
114
114
 
115
+ **✨ NEW: Dynamic Product Landing Template**
116
+ We have a beautiful, conversion-optimized product landing page template that:
117
+ - ✅ Fetches ANY product from DummyJSON API
118
+ - ✅ Auto-generates features, specs, reviews based on category
119
+ - ✅ Adapts trust badges, CTA text, and sections automatically
120
+ - ✅ Supports 10+ product categories (fragrances, smartphones, clothing, etc.)
121
+ - ✅ Mobile-responsive with dark mode support
122
+
123
+ **Usage:**
124
+ ```bash
125
+ # Create landing page for specific product
126
+ /fast product-landing 1 # iPhone landing page
127
+ /fast product-landing 5 # T-shirt landing page
128
+ /fast product-landing 11 # Perfume landing page
129
+
130
+ # Or fetch from category
131
+ /fast product-landing smartphones # First smartphone
132
+ /fast product-landing mens-shirts # First t-shirt
133
+ ```
134
+
135
+ **Files:**
136
+ - Template: `/web/src/pages/shop/[productId].astro`
137
+ - Helpers: `/web/src/lib/productTemplateHelpers.ts`
138
+ - Docs: `/web/src/pages/shop/TEMPLATE-README.md`
139
+
115
140
  ### 4. Dashboard (40 cycles · Backend + Frontend)
116
141
  ```bash
117
142
  /plan dashboard # See full plan with quick wins
@@ -26,11 +26,17 @@ git push origin main # ← Then push
26
26
 
27
27
  ## How It Works
28
28
 
29
- This command uses `./.claude/hooks/push.sh` to intelligently push to:
30
- - Main repository: `github.com/one-ie/one`
31
- - `/one` subtree: `github.com/one-ie/ontology`
32
- - `/web` subtree: `github.com/one-ie/web`
33
- - `one.ie/` directory: `github.com/one-ie/one.ie`
29
+ This command uses `./.claude/hooks/push.sh` to automatically:
30
+ 1. **Stage all changes** (`git add -A`) if any exist
31
+ 2. **Commit changes** with generated message if needed
32
+ 3. **Pull latest** from remote (prevent divergence)
33
+ 4. **Push to remotes**:
34
+ - Main repository: `github.com/one-ie/one`
35
+ - `/one` subtree: `github.com/one-ie/ontology`
36
+ - `/web` subtree: `github.com/one-ie/web`
37
+ - `one.ie/` directory: `github.com/one-ie/one.ie`
38
+
39
+ **You don't need to manually run `git add` or `git commit` - the script handles it automatically!**
34
40
 
35
41
  ## Usage
36
42
 
@@ -45,44 +51,54 @@ This command uses `./.claude/hooks/push.sh` to intelligently push to:
45
51
  /push oneie # one.ie directory only
46
52
  ```
47
53
 
48
- ## Workflow: Safe Push (No Divergence)
54
+ ## Workflow: Automatic Push (No Manual Steps)
49
55
 
50
- **Always follow this sequence:**
56
+ **The `/push` command handles everything automatically:**
51
57
 
52
58
  ```bash
53
- # 1. Make changes
54
- git add -A
55
- git commit -m "Your message"
59
+ # Just make your changes, then run:
60
+ /push all
56
61
 
57
- # 2. Pull latest from remote (CRITICAL)
58
- git pull origin main
62
+ # That's it! The script automatically:
63
+ # 1. Stages all changes (git add -A)
64
+ # 2. Commits with generated message
65
+ # 3. Pulls latest from remote (prevents divergence)
66
+ # 4. Pushes to all remotes
67
+ ```
59
68
 
60
- # 3. Now push safely
61
- /push main
69
+ **You can also push to specific remotes:**
62
70
 
63
- # Or push to all:
64
- /push all
71
+ ```bash
72
+ /push main # Push to one-ie/one only
73
+ /push one # Push to one-ie/ontology only
74
+ /push web # Push to one-ie/web only
75
+ /push oneie # Push to one-ie/one.ie only
65
76
  ```
66
77
 
67
- **Result:** Zero divergence, always in sync with remote.
78
+ **Result:** Zero divergence, always in sync with remote, zero manual steps.
79
+
80
+ ## What the Script Does (Automatically)
68
81
 
69
- ## What the Script Does
82
+ 1. **Checks for uncommitted changes** - If any exist, proceeds to stage and commit
83
+ 2. **Stages all changes** - Runs `git add -A` to stage everything
84
+ 3. **Commits with generated message** - Creates commit from changed file list
85
+ 4. **Pulls latest changes** - Always pulls before pushing (prevents divergence)
86
+ 5. **Pushes to remotes** - Pushes to main repo and/or subtrees
87
+ 6. **Reports summary** - Shows what was pushed where
70
88
 
71
- 1. **Pulls latest changes** from remote first (prevent divergence)
72
- 2. **Analyzes changes** across all repositories
73
- 3. **Commits with generated messages** based on file changes
74
- 4. **Pushes to each remote** with appropriate branch handling
75
- 5. **Reports summary** of all pushed repositories
89
+ **You never need to manually run `git add`, `git commit`, or `git pull` - it's all automatic!**
76
90
 
77
91
  ## Your Task
78
92
 
79
93
  When the user runs `/push [option]`, you MUST:
80
94
 
81
- 1. **Run the push script** with the appropriate argument:
95
+ 1. **Simply run the push script** with the appropriate argument:
82
96
  ```bash
83
97
  ./.claude/hooks/push.sh [all|main|one|web|oneie]
84
98
  ```
85
99
 
100
+ **DO NOT run `git add`, `git commit`, or `git pull` manually** - the script handles everything!
101
+
86
102
  2. **Handle errors gracefully**:
87
103
  - If a directory doesn't exist, the script handles it
88
104
  - If push fails, display the error and suggest fixes
@@ -99,6 +115,8 @@ When the user runs `/push [option]`, you MUST:
99
115
  - one.ie: pushed (if directory exists)
100
116
  ```
101
117
 
118
+ **IMPORTANT:** Do not manually stage, commit, or pull. The script does this automatically to ensure consistency.
119
+
102
120
  ## Examples
103
121
 
104
122
  **Push all remotes:**
@@ -0,0 +1 @@
1
+ /var/folders/ll/3vb8ckfd47dc_pcl31s65xg40000gn/T/tmp.y11OiFIdFB
@@ -0,0 +1,364 @@
1
+ # Automated News Generation from Git Commits
2
+
3
+ ## Overview
4
+
5
+ Every meaningful commit automatically triggers news article generation using the `agent-writer` agent.
6
+
7
+ **Flow:**
8
+ ```
9
+ git commit → post-commit hook → write-news.sh → agent-writer → news article
10
+ ```
11
+
12
+ ## Files Created
13
+
14
+ ### Agent
15
+ - `.claude/agents/agent-writer.md` - Content strategist with voice inspired by Alex Hormozi, Wired, Ars Technica, Fast Company, and Theo
16
+
17
+ ### Hook
18
+ - `.claude/hooks/write-news.sh` - Postcommit hook that prepares context for news generation
19
+ - `.git/hooks/post-commit` - Updated to call write-news.sh
20
+
21
+ ### Output
22
+ - `web/src/content/news/*.md` - Generated news articles (no dates in filenames!)
23
+
24
+ ## Usage
25
+
26
+ ### Automatic (After Each Commit)
27
+
28
+ The hook runs automatically after every commit:
29
+
30
+ ```bash
31
+ git commit -m "feat: Add video upload support"
32
+ # Hook fires, prepares context for news generation
33
+ ```
34
+
35
+ ### Skip News Generation
36
+
37
+ Add `[skip-news]` or `[no-news]` to skip:
38
+
39
+ ```bash
40
+ git commit -m "fix: typo [skip-news]"
41
+ ```
42
+
43
+ ### Manual Generation
44
+
45
+ Ask Claude Code to use agent-writer:
46
+
47
+ ```
48
+ Use agent-writer to create a news article from the latest commit.
49
+ ```
50
+
51
+ Claude will:
52
+ 1. Read commit info from the prepared context
53
+ 2. Generate engaging article with proper voice
54
+ 3. Save to `web/src/content/news/[descriptive-slug].md`
55
+
56
+ ## Voice Guidelines
57
+
58
+ ### Style Pillars
59
+
60
+ 1. **Authority** - We know our shit. Zero fluff.
61
+ 2. **Humor** - Code is serious. Writing about it isn't.
62
+ 3. **Sarcasm** - When appropriate (earned, not default)
63
+ 4. **Warmth** - Rooting for the reader
64
+ 5. **Education** - Every piece teaches something
65
+
66
+ ### Influences
67
+
68
+ - **Alex Hormozi** - Direct, value-focused, no filler
69
+ - **Wired** - Technical depth with narrative
70
+ - **Ars Technica** - Respects reader intelligence
71
+ - **Fast Company** - Business implications clear
72
+ - **Theo (YouTube)** - Modern dev voice, opinionated but fair
73
+
74
+ ### Do This
75
+
76
+ ✅ Benefits before features
77
+ ✅ Specificity (87% faster, not "faster")
78
+ ✅ Code examples over walls of text
79
+ ✅ Self-aware humor
80
+
81
+ ### Avoid This
82
+
83
+ ❌ Jargon without explanation
84
+ ❌ Features without benefits
85
+ ❌ Punching down at readers
86
+ ❌ Humor that obscures the message
87
+
88
+ ## File Naming
89
+
90
+ **CRITICAL:** Use descriptive slugs, NOT dates.
91
+
92
+ ```bash
93
+ ✅ video-upload-cloudflare-stream.md
94
+ ✅ api-separation-rest-graphql.md
95
+ ✅ lighthouse-perfect-scores.md
96
+
97
+ ❌ 2025-11-08-video-upload.md
98
+ ```
99
+
100
+ **Why?**
101
+ - Better URLs: `one.ie/news/video-upload` vs `one.ie/news/2025-11-08-video`
102
+ - SEO-friendly keywords in URL
103
+ - Timeless content (no stale dates)
104
+ - Date goes in frontmatter, not filename
105
+
106
+ ## Commit Types That Trigger News
107
+
108
+ | Type | Generates News? | Category |
109
+ |------|----------------|----------|
110
+ | `feat` | ✅ Yes | feature |
111
+ | `fix` | ✅ Yes | infrastructure |
112
+ | `perf` | ✅ Yes | article |
113
+ | `refactor` | ✅ Yes | infrastructure |
114
+ | `docs` | ❌ No | - |
115
+ | `chore` | ❌ No | - |
116
+ | `style` | ❌ No | - |
117
+ | `test` | ❌ No | - |
118
+
119
+ ## Article Structure
120
+
121
+ ```markdown
122
+ ---
123
+ title: "[Benefit-Focused Headline]"
124
+ date: 2025-11-08
125
+ description: "One-sentence value proposition"
126
+ author: "ONE Platform Team"
127
+ type: "feature_update"
128
+ tags: ["tag1", "tag2", "tag3"]
129
+ category: "feature"
130
+ repo: "web"
131
+ draft: false
132
+ ---
133
+
134
+ ## What Changed
135
+
136
+ [Clear explanation of the update]
137
+
138
+ ## Why This Matters
139
+
140
+ [Connect to user needs/pain points]
141
+
142
+ ## How It Works
143
+
144
+ [Technical details with examples]
145
+
146
+ ## What You Can Do Now
147
+
148
+ [Clear next steps for readers]
149
+ ```
150
+
151
+ ## Customization
152
+
153
+ ### Change the Voice
154
+
155
+ Edit `.claude/agents/agent-writer.md`:
156
+
157
+ ```markdown
158
+ ## Your Voice
159
+
160
+ [Add your brand personality]
161
+
162
+ ## Your Influences
163
+
164
+ [List your style inspirations]
165
+ ```
166
+
167
+ ### Change the Hook Behavior
168
+
169
+ Edit `.claude/hooks/write-news.sh`:
170
+
171
+ ```bash
172
+ # Skip different commit types
173
+ if [[ "$COMMIT_TYPE" == "your-type" ]]; then
174
+ exit 0
175
+ fi
176
+
177
+ # Change category mapping
178
+ case "$COMMIT_TYPE" in
179
+ custom)
180
+ CATEGORY="your-category"
181
+ ;;
182
+ esac
183
+ ```
184
+
185
+ ## Examples
186
+
187
+ ### Example 1: Feature Launch
188
+
189
+ **Commit:**
190
+ ```bash
191
+ git commit -m "feat: Add GraphQL API support with auto-generated types"
192
+ ```
193
+
194
+ **Generated Article:**
195
+ - Title: "Build Integrations 10x Faster With GraphQL API"
196
+ - Focuses on user benefits (faster development)
197
+ - Shows code examples
198
+ - Explains technical implementation
199
+ - Clear next steps
200
+
201
+ ### Example 2: Performance Win
202
+
203
+ **Commit:**
204
+ ```bash
205
+ git commit -m "perf: Reduce build time from 23s to 3s (87% faster)"
206
+ ```
207
+
208
+ **Generated Article:**
209
+ - Title: "Subsecond Builds: How We Cut Build Time by 87%"
210
+ - Opens with developer pain (waiting for builds)
211
+ - Explains optimization techniques
212
+ - Shows before/after metrics
213
+ - Includes lessons learned
214
+
215
+ ### Example 3: Bug Fix
216
+
217
+ **Commit:**
218
+ ```bash
219
+ git commit -m "fix: Resolve mobile authentication timeout issue"
220
+ ```
221
+
222
+ **Generated Article:**
223
+ - Title: "Mobile Login Now Works Instantly (Sorry About That)"
224
+ - Acknowledges the problem
225
+ - Explains what was wrong
226
+ - Shows the fix
227
+ - Notes testing improvements
228
+
229
+ ## Workflow Integration
230
+
231
+ ### With PRs
232
+
233
+ Generate news when PR merges:
234
+
235
+ ```bash
236
+ # In PR description
237
+ Closes #123
238
+
239
+ [News]
240
+ Title: Ship Features Faster With New Deployment Pipeline
241
+ Focus: Developer velocity, time savings
242
+ ```
243
+
244
+ Hook uses PR description to enhance article.
245
+
246
+ ### With Releases
247
+
248
+ Generate comprehensive release notes:
249
+
250
+ ```bash
251
+ git tag v1.2.0 -m "Release v1.2.0
252
+
253
+ Features:
254
+ - Video upload
255
+ - GraphQL API
256
+ - Performance improvements"
257
+
258
+ # Hook generates release announcement
259
+ ```
260
+
261
+ ## Quality Checklist
262
+
263
+ Before publishing, verify:
264
+ - [ ] Headline is benefit-focused
265
+ - [ ] Opening hooks attention in 2 sentences
266
+ - [ ] Technical accuracy (no BS)
267
+ - [ ] Code examples compile
268
+ - [ ] Links work
269
+ - [ ] Tone matches voice guidelines
270
+ - [ ] Scannable structure (headers, lists, code)
271
+ - [ ] Clear CTA
272
+ - [ ] Proper tags and metadata
273
+ - [ ] Today's date in frontmatter
274
+
275
+ ## Troubleshooting
276
+
277
+ ### Article Not Generated
278
+
279
+ **Check:**
280
+ 1. Commit type is newsworthy (feat|fix|perf|refactor)
281
+ 2. No `[skip-news]` flag in message
282
+ 3. Hook script is executable: `chmod +x .claude/hooks/write-news.sh`
283
+ 4. Hook is registered in `.git/hooks/post-commit`
284
+
285
+ ### Article Quality Poor
286
+
287
+ **Improve:**
288
+ 1. Write better commit messages (more context)
289
+ 2. Customize agent-writer voice in `.claude/agents/agent-writer.md`
290
+ 3. Edit generated article before publishing
291
+ 4. Provide more detail in commit body
292
+
293
+ ### Wrong Category/Tags
294
+
295
+ **Fix:**
296
+ 1. Edit generated article frontmatter
297
+ 2. Update hook logic in `.claude/hooks/write-news.sh`
298
+ 3. Improve commit message format
299
+
300
+ ## Best Practices
301
+
302
+ ### Write Good Commit Messages
303
+
304
+ **Bad:**
305
+ ```bash
306
+ git commit -m "update stuff"
307
+ ```
308
+
309
+ **Good:**
310
+ ```bash
311
+ git commit -m "feat: Add Cloudflare Stream integration for video uploads
312
+
313
+ Enables uploading videos up to 4K resolution without server storage.
314
+ Uses Cloudflare Stream API for processing and delivery.
315
+ Reduces infrastructure costs by 90%."
316
+ ```
317
+
318
+ Better commits = better articles.
319
+
320
+ ### Use Conventional Commits
321
+
322
+ ```bash
323
+ type(scope): subject
324
+
325
+ body
326
+
327
+ footer
328
+ ```
329
+
330
+ **Examples:**
331
+ ```bash
332
+ feat(api): Add GraphQL endpoint with type generation
333
+ fix(auth): Resolve mobile session timeout on iOS
334
+ perf(build): Reduce bundle size from 800KB to 28KB
335
+ refactor(db): Migrate to edge-optimized queries
336
+ ```
337
+
338
+ ### Tag Strategically
339
+
340
+ Use tags that users search for:
341
+ - Technology: `graphql`, `react`, `cloudflare`
342
+ - Feature: `video`, `api`, `auth`
343
+ - Benefit: `performance`, `dx`, `security`
344
+ - Use case: `ecommerce`, `saas`, `education`
345
+
346
+ ## Future Enhancements
347
+
348
+ **Coming:**
349
+ - ✅ Auto-generate from PR descriptions
350
+ - ✅ Multi-language translation
351
+ - ✅ Social media post generation
352
+ - ✅ Email newsletter compilation
353
+ - ✅ Video script generation
354
+
355
+ ## Related Documentation
356
+
357
+ - **Agent Definition:** `.claude/agents/agent-writer.md`
358
+ - **Hook Script:** `.claude/hooks/write-news.sh`
359
+ - **Example Article:** `web/src/content/news/automated-news-generation-from-commits.md`
360
+ - **Content Schema:** `web/src/content/config.ts` (NewsSchema)
361
+
362
+ ---
363
+
364
+ **Write code. Ship features. Generate news. Repeat.**