oneie 3.6.28 → 3.6.32
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/.claude/agents/agent-backend.md +113 -0
- package/.claude/agents/agent-builder.md +282 -31
- package/.claude/agents/agent-designer.md +267 -11
- package/.claude/agents/agent-director.md +476 -5
- package/.claude/agents/agent-frontend.md +304 -0
- package/.claude/commands/chat.md +234 -10
- package/.claude/commands/create.md +428 -397
- package/.claude/commands/fast.md +156 -51
- package/.claude/commands/onboard.md +361 -100
- package/.claude/commands/one.md +95 -25
- package/.claude/commands/plan.md +367 -137
- package/.claude/commands/push.md +42 -24
- package/.claude/commands/release.md +10 -6
- package/.claude/commands/start.md +45 -0
- package/.claude/hooks/.last-news-context +1 -0
- package/.claude/hooks/README-news-generation.md +364 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/push.sh +64 -12
- package/.claude/hooks/release-cli.sh +7 -5
- package/CLAUDE.md +25 -0
- package/one/knowledge/ontology-cheatsheet.md +78 -70
- package/one/knowledge/ontology-developer-guide.md +94 -87
- package/one/knowledge/ontology-index.md +51 -26
- package/one/knowledge/ontology-quickstart.md +58 -50
- package/one/knowledge/ontology-tutorial.md +27 -24
- package/one/knowledge/ontology-video-script.md +90 -59
- package/one/things/plans/multi-ontology-architecture.md +8 -8
- package/one/things/plans/ontology-compliance-audit.md +36 -9
- package/package.json +1 -1
- package/.mcp.json +0 -95
package/.claude/commands/push.md
CHANGED
|
@@ -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
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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:
|
|
54
|
+
## Workflow: Automatic Push (No Manual Steps)
|
|
49
55
|
|
|
50
|
-
**
|
|
56
|
+
**The `/push` command handles everything automatically:**
|
|
51
57
|
|
|
52
58
|
```bash
|
|
53
|
-
#
|
|
54
|
-
|
|
55
|
-
git commit -m "Your message"
|
|
59
|
+
# Just make your changes, then run:
|
|
60
|
+
/push all
|
|
56
61
|
|
|
57
|
-
#
|
|
58
|
-
git
|
|
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
|
-
|
|
61
|
-
/push main
|
|
69
|
+
**You can also push to specific remotes:**
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
/push
|
|
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
|
-
|
|
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
|
-
|
|
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. **
|
|
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:**
|
|
@@ -22,12 +22,13 @@ Runs `./.claude/hooks/release-cli.sh [type]` which:
|
|
|
22
22
|
|
|
23
23
|
1. **Syncs documentation** `/one/*` → `cli/one/` (all platform docs)
|
|
24
24
|
2. **Syncs root markdown** (CLAUDE.md, README.md, LICENSE.md, SECURITY.md, AGENTS.md)
|
|
25
|
-
3. **
|
|
26
|
-
4. **
|
|
27
|
-
5. **
|
|
28
|
-
6. **
|
|
29
|
-
7. **
|
|
30
|
-
8. **
|
|
25
|
+
3. **Syncs MCP config files** (.mcp.json.on, .mcp.json.off)
|
|
26
|
+
4. **Hooks stay in root** - CLI references `./.claude/hooks/` (single source of truth, no duplication)
|
|
27
|
+
5. **Parallel operations** - Uses background jobs for file copies
|
|
28
|
+
6. **Bumps version** in `cli/package.json` (if not sync)
|
|
29
|
+
7. **Builds CLI** with npm
|
|
30
|
+
8. **Publishes to npm** registry
|
|
31
|
+
9. **Verifies publication** on npm registry
|
|
31
32
|
|
|
32
33
|
## Architecture
|
|
33
34
|
|
|
@@ -37,6 +38,8 @@ Root Repository (.claude/hooks/)
|
|
|
37
38
|
CLI Repo (cli/)
|
|
38
39
|
├── cli/one/* (synced documentation)
|
|
39
40
|
├── cli/*.md (synced markdown files)
|
|
41
|
+
├── cli/.mcp.json.on (MCP servers enabled config)
|
|
42
|
+
├── cli/.mcp.json.off (MCP servers disabled config)
|
|
40
43
|
└── package.json (version bumped & published)
|
|
41
44
|
```
|
|
42
45
|
|
|
@@ -61,6 +64,7 @@ Task({
|
|
|
61
64
|
1. Execute: ./.claude/hooks/release-cli.sh ${releaseType}
|
|
62
65
|
- Syncs /one/* to cli/one/
|
|
63
66
|
- Syncs root markdown files
|
|
67
|
+
- Syncs .mcp.json.on and .mcp.json.off files
|
|
64
68
|
- Hooks reference root .claude/ (no copy)
|
|
65
69
|
- Bumps version (if not sync)
|
|
66
70
|
- Publishes to npm
|
|
@@ -107,6 +107,21 @@ PID: [process-id]
|
|
|
107
107
|
|
|
108
108
|
Opening /start page in browser...
|
|
109
109
|
|
|
110
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
111
|
+
|
|
112
|
+
Welcome to ONE Platform!
|
|
113
|
+
|
|
114
|
+
Build production-ready features in minutes, not hours.
|
|
115
|
+
|
|
116
|
+
Get started with proven templates:
|
|
117
|
+
• "I want to sell coffee mugs"
|
|
118
|
+
• "Create a landing page for my course"
|
|
119
|
+
• "Build a product page for my service"
|
|
120
|
+
|
|
121
|
+
I'll guide you through every step - no technical knowledge needed.
|
|
122
|
+
|
|
123
|
+
Ready to build something amazing?
|
|
124
|
+
|
|
110
125
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
111
126
|
```
|
|
112
127
|
|
|
@@ -124,6 +139,21 @@ Opening /start page in browser...
|
|
|
124
139
|
|
|
125
140
|
The server is running in the background.
|
|
126
141
|
|
|
142
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
143
|
+
|
|
144
|
+
Welcome to ONE Platform!
|
|
145
|
+
|
|
146
|
+
Build production-ready features in minutes, not hours.
|
|
147
|
+
|
|
148
|
+
Get started with proven templates:
|
|
149
|
+
• "I want to sell coffee mugs"
|
|
150
|
+
• "Create a landing page for my course"
|
|
151
|
+
• "Build a product page for my service"
|
|
152
|
+
|
|
153
|
+
I'll guide you through every step - no technical knowledge needed.
|
|
154
|
+
|
|
155
|
+
Ready to build something amazing?
|
|
156
|
+
|
|
127
157
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
128
158
|
```
|
|
129
159
|
|
|
@@ -142,6 +172,21 @@ Opening /start page in browser...
|
|
|
142
172
|
|
|
143
173
|
The server is running in the background.
|
|
144
174
|
|
|
175
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
176
|
+
|
|
177
|
+
Welcome to ONE Platform!
|
|
178
|
+
|
|
179
|
+
Build production-ready features in minutes, not hours.
|
|
180
|
+
|
|
181
|
+
Get started with proven templates:
|
|
182
|
+
• "I want to sell coffee mugs"
|
|
183
|
+
• "Create a landing page for my course"
|
|
184
|
+
• "Build a product page for my service"
|
|
185
|
+
|
|
186
|
+
I'll guide you through every step - no technical knowledge needed.
|
|
187
|
+
|
|
188
|
+
Ready to build something amazing?
|
|
189
|
+
|
|
145
190
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
146
191
|
```
|
|
147
192
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/var/folders/ll/3vb8ckfd47dc_pcl31s65xg40000gn/T/tmp.XBBS8j80Nd
|
|
@@ -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.**
|
|
Binary file
|