@opendirectory.dev/skills 0.1.15 → 0.1.17

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.
@@ -1,302 +0,0 @@
1
- ---
2
- name: show-hn-writer
3
- description: 'Draft a Show HN post backed by real HN performance data. Uses observed patterns from 250 top HN posts to maximise score.'
4
- compatibility: [claude-code, gemini-cli, github-copilot]
5
- author: Varnan / Paras Madan
6
- version: 2.0.0
7
- data-source: 250 top HN posts scraped April 18 2026
8
- ---
9
-
10
- # Show HN Writer — Data-Backed Edition
11
-
12
- This skill drafts HN posts using patterns extracted from 250 real top-ranking posts.
13
- Every rule below comes from observed data, not convention.
14
-
15
- ---
16
-
17
- ## What the data says (internalize this before writing anything)
18
-
19
- These are the findings from 250 top HN posts scraped April 18 2026. They override
20
- any received wisdom about HN writing.
21
-
22
- **Title length is the single strongest predictor of score.**
23
- - Under 40 chars: avg 248 pts (n=82)
24
- - 40–59 chars: avg 192 pts (n=68)
25
- - 60–79 chars: avg 150 pts (n=91)
26
- - 80+ chars: avg 131 pts (n=9)
27
- Default target: under 40 characters. Hard ceiling: 60.
28
-
29
- **Body text does not affect score.**
30
- 90% of posts had no body. With-body avg: 189. Without-body avg: 193. Statistically
31
- identical. A body is only worth writing if you have genuinely interesting technical
32
- detail that won't fit in a title. Never write a body to pad credibility.
33
-
34
- **Show HN prefix suppresses score.**
35
- Show HN posts averaged 94 pts vs 186+ for plain statements. The label signals
36
- "I want feedback on my thing" which triggers a more skeptical read. Only use "Show HN:"
37
- when the project is genuinely novel. Always offer a plain-title alternative.
38
-
39
- **First-person titles outperform anonymous statements.**
40
- First-person ("I…", "My…", "We…"): avg 291 pts (n=9).
41
- Plain statement: avg 186 pts (n=126).
42
- If the builder's perspective is part of the story, lead with it.
43
-
44
- **Questions generate comments more than upvotes.**
45
- Question titles avg ratio of comments-to-score above 1.0×. Best for discussions,
46
- not for raw score. Ask the user which they're optimising for before writing.
47
-
48
- **Themes that consistently outperform:**
49
- - Security / backdoor / breach stories: avg 308 pts
50
- - Privacy / surveillance / data stories: avg 282 pts
51
- - AI / LLM releases: avg 266 pts (42 posts — largest category)
52
- - Open source releases: avg 485 pts (small n, but strong signal)
53
-
54
- **The highest-scoring titles share one trait: they are stories, not topics.**
55
- "Someone bought 30 WordPress plugins and planted a backdoor in all of them" — 1192 pts.
56
- "Google broke its promise to me – now ICE has my data" — 1688 pts.
57
- A topic is "WordPress plugin security". A story has an actor, an action, and stakes.
58
-
59
- ---
60
-
61
- ## Step 1: Ask the user one question before anything else
62
-
63
- Before drafting, ask:
64
-
65
- "Two quick questions:
66
- 1. Are you optimising for **score** (reach) or **comments** (discussion)?
67
- 2. What does the project do — one sentence, technical, no adjectives?"
68
-
69
- Do not proceed until you have both answers.
70
-
71
- ---
72
-
73
- ## Step 2: Determine the right post type
74
-
75
- Based on the project and goal, decide which format to use:
76
-
77
- **Plain title (recommended default)**
78
- No prefix. Just what it is or what happened. Highest avg score.
79
- Use when: sharing a release, article, tool, or event.
80
-
81
- **Show HN: prefix (use sparingly)**
82
- Use only when: the project is a working demo, the builder is present to answer
83
- questions, and the technical implementation is the interesting part.
84
- Avg score is low (94), but it signals authenticity when the project is genuinely novel.
85
- Always also draft a plain-title alternative for comparison.
86
-
87
- **Ask HN: prefix**
88
- Use when: the goal is discussion, not promotion. Avg engagement ratio > 1.0×.
89
- Best for "who is using X?" or "should I do Y?" posts.
90
-
91
- **Tell HN: prefix**
92
- Whistleblowing, accountability, or disclosure. One data point at 819 pts.
93
- Only use if the post is factual, verifiable, and the builder is named.
94
-
95
- ---
96
-
97
- ## Step 3: Draft the title
98
-
99
- **The title is the entire post.** Treat the body as optional.
100
-
101
- Rules derived from data:
102
- - Target under 40 characters. Every 20 chars over that costs roughly 30 avg points.
103
- - Write a story, not a category. Actor + action + stakes beats noun phrases.
104
- - First person ("I…") adds ~100 pts avg vs plain statement when builder perspective matters.
105
- - No marketing adjectives. Not "fast", "simple", "powerful", "lightweight" unless
106
- it is a literal spec (e.g. "35B-A3B" is a spec, "powerful" is not).
107
- - Specificity beats generality. "30 WordPress plugins" beats "popular CMS plugins".
108
- - Year in brackets signals classic worth reading: (2008), (1956). Use when linking
109
- older content that has aged well.
110
- - En dash (–) for subtitle format: "Product Name – what it does". Not a hyphen (-).
111
-
112
- Draft three variants:
113
- 1. Shortest possible (aim for under 35 chars) — strip everything non-essential
114
- 2. Story angle — actor + action + stakes
115
- 3. Technical angle — lead with the interesting engineering decision
116
-
117
- Then apply the length test: count chars on each. Flag any over 60.
118
-
119
- ---
120
-
121
- ## Step 4: Decide whether to write a body
122
-
123
- Ask yourself: does the technical implementation have a detail that cannot fit in
124
- the title and that HN engineers would find genuinely interesting?
125
-
126
- If yes: write a body (see Step 5).
127
- If no: stop at the title. No body is better than a padded body.
128
-
129
- The data shows bodies do not increase score. The only reason to write one is if
130
- the implementation is interesting enough that engineers will ask "how does this work?"
131
- and you want to pre-answer that.
132
-
133
- ---
134
-
135
- ## Step 5: Write the body (only if Step 4 said yes)
136
-
137
- Structure — keep it tight:
138
-
139
- **Line 1:** One sentence. What you built and why. First person.
140
- Not "Introducing X." Not "X is a tool that." Just: "I built X because Y."
141
-
142
- **Lines 2–4:** The real reason. Honest. Specific. Was it a problem you hit yourself?
143
- Something frustrating at work? A curiosity? "I was annoyed that..." is better than
144
- "Developers often struggle with...". The builder's voice is the point.
145
-
146
- **Lines 5–8:** How it actually works. This is what HN reads for.
147
- Name the specific technology choices. State the tradeoffs you made and why.
148
- One interesting engineering decision is worth more than a feature list.
149
-
150
- **Line 9:** Current state in one sentence. Open source? Free? Alpha? Solo?
151
- How long you've been working on it.
152
-
153
- **Line 10:** One closing sentence inviting feedback or questions.
154
- "Happy to answer questions about the implementation." / "Criticism welcome."
155
- Never ask for upvotes, shares, or sign-ups.
156
-
157
- Hard rules:
158
- - 150–300 words. Under 200 is usually better.
159
- - First person throughout.
160
- - No bullet points. No headers. No bold.
161
- - No links in body. URL goes in the submission field.
162
- - No marketing words: game-changing, revolutionary, powerful, robust, seamless,
163
- innovative, best-in-class, streamline, leverage, transform, cutting-edge.
164
-
165
- ---
166
-
167
- ## Step 6: Self-check before presenting
168
-
169
- Run through this list. Fix anything that fails before outputting.
170
-
171
- Title:
172
- - [ ] Under 60 characters (count them)
173
- - [ ] No marketing adjectives
174
- - [ ] Is it a story or a topic? (story = better)
175
- - [ ] First person if the builder's perspective adds something
176
- - [ ] No exclamation marks
177
-
178
- Body (if written):
179
- - [ ] Opens with "I built…" or "For the past N months…"
180
- - [ ] Contains at least one specific technology name or architecture decision
181
- - [ ] Under 300 words
182
- - [ ] No links
183
- - [ ] Closes with feedback invitation, not call to action
184
- - [ ] Zero marketing words (check the list in Step 5)
185
-
186
- Post type:
187
- - [ ] If using Show HN prefix: is a plain-title alternative also drafted?
188
- - [ ] If goal is comments: is it a question or divisive framing?
189
- - [ ] If goal is score: is it a statement, not a question?
190
-
191
- ---
192
-
193
- ## Step 7: Present output
194
-
195
- Format exactly as follows. No commentary before or after.
196
-
197
- ```
198
- ## HN Post
199
-
200
- ### Recommended title
201
- [title — the shortest, strongest variant]
202
-
203
- ### Alternative titles
204
- 1. [variant 2]
205
- 2. [variant 3]
206
-
207
- ---
208
-
209
- ### Body
210
- [body text, or "Not recommended — title is sufficient." if Step 4 said no body]
211
-
212
- ---
213
-
214
- ### Notes
215
- - Goal: [score / comments] — based on user's answer in Step 1
216
- - Post type used: [plain / Show HN / Ask HN / Tell HN]
217
- - Title length: [N chars]
218
- - Best time to post: Tuesday–Thursday, 8–10 AM US Eastern
219
- - After posting: respond to every comment in the first two hours
220
- - Do not share the link elsewhere for 24 hours — HN penalises vote rings
221
- ```
222
-
223
- ---
224
-
225
- ## Step 8: Optional — scrape current top HN posts for context
226
-
227
- If the user wants to check whether similar posts have been submitted recently,
228
- or wants to see what is performing in their category right now, run the scraper:
229
-
230
- ```python
231
- import requests
232
- from concurrent.futures import ThreadPoolExecutor
233
-
234
- HN_API = "https://hacker-news.firebaseio.com/v0"
235
-
236
- def fetch_item(id_):
237
- try:
238
- r = requests.get(f"{HN_API}/item/{id_}.json", timeout=10)
239
- return r.json() if r.ok else None
240
- except Exception:
241
- return None
242
-
243
- ids = requests.get(f"{HN_API}/topstories.json").json()[:250]
244
- with ThreadPoolExecutor(max_workers=20) as ex:
245
- items = [i for i in ex.map(fetch_item, ids) if i]
246
-
247
- # Filter by keyword relevant to the user's project
248
- keyword = "YOUR_KEYWORD_HERE"
249
- matches = [i for i in items if keyword.lower() in i.get("title","").lower()]
250
-
251
- for i, item in enumerate(matches, 1):
252
- score = item.get("score", 0)
253
- title = item.get("title", "")
254
- by = item.get("by", "")
255
- print(f"{i:>2}. [{score:>4}pts] {title} — {by}")
256
-
257
- print(f"\nTotal matching: {len(matches)}")
258
- ```
259
-
260
- Use the results to:
261
- - Check if a near-identical post was submitted in the last 48 hours (avoid duplication)
262
- - See which title patterns are landing in this category right now
263
- - Identify the score floor for this topic area
264
-
265
- Results are also appended to hn_log.csv automatically if the full scraper is used.
266
-
267
- ---
268
-
269
- ## Reference: observed top performers from dataset
270
-
271
- These are real posts from the top 250. Study the title patterns.
272
-
273
- Score | Title
274
- ------|-------
275
- 1941 | Claude Opus 4.7
276
- 1688 | Google broke its promise to me – now ICE has my data
277
- 1244 | Qwen3.6-35B-A3B: Agentic coding power, now open to all
278
- 1192 | Someone bought 30 WordPress plugins and planted a backdoor in all of them
279
- 1141 | DaVinci Resolve – Photo
280
- 990 | Codex for almost everything
281
- 982 | Stop Flock
282
- 909 | A new spam policy for "back button hijacking"
283
- 893 | GitHub Stacked PRs
284
- 819 | Tell HN: Fiverr left customer files public and searchable
285
- 668 | I wrote to Flock's privacy contact to opt out of their domestic spying program
286
- 619 | Measuring Claude 4.7's tokenizer costs
287
- 561 | God sleeps in the minerals
288
- 503 | Want to write a compiler? Just read these two papers (2008)
289
-
290
- Best Show HN titles (by score):
291
- 341 | Show HN: Smol machines – subsecond coldstart, portable virtual machines
292
- 199 | Show HN: PanicLock – Close your MacBook lid disable TouchID → password unlock
293
- 187 | Show HN: Every CEO and CFO change at US public companies, live from SEC
294
- 177 | Show HN: I made a calculator that works over disjoint sets of intervals
295
- 152 | Show HN: MacMind – A transformer neural network in HyperCard on a 1989 Macintosh
296
-
297
- Highest comment-to-score ratios (for discussion-optimised posts):
298
- 1.91× | Why is IPv6 so complicated?
299
- 1.43× | Ask HN: Building a solo business is impossible?
300
- 1.20× | Ohio prison inmates built computers and hid them in ceiling
301
- 1.13× | Ask HN: Who is using OpenClaw?
302
- 1.05× | The future of everything is lies, I guess: Where do we go from here?