Thirteen Claude skills that run an Instagram account: Reels off 26 scored hook formulas, a viral research skill, a caption linter, and a humanizer. Free, MIT.
Python
The Instagram agent skill: 13 Claude skills, v1.0
Jake Schincariolf408778c25c5
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonnew file mode 100644index 0000000..412e401--- /dev/null+++ b/.claude-plugin/marketplace.json@@ -0,0 +1,18 @@+{+ "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",+ "name": "instagram-agent-skill",+ "description": "The Instagram agent skill pack for Claude",+ "owner": {+ "name": "Jake Schincariol",+ "url": "https://opusjake.ai"+ },+ "plugins": [+ {+ "name": "instagram-agent",+ "description": "Thirteen Claude skills that run an Instagram account, including a scored hook panel, a viral research skill, a caption linter and a humanizer.",+ "source": "./",+ "category": "productivity",+ "homepage": "https://github.com/Jakeschincariol/instagram-agent-skill"+ }+ ]+}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonnew file mode 100644index 0000000..48791a9--- /dev/null+++ b/.claude-plugin/plugin.json@@ -0,0 +1,13 @@+{+ "name": "instagram-agent",+ "description": "Thirteen Claude skills that run an Instagram account: Reels off 26 hook formulas with a scored hook and a timed beat sheet, a research skill that finds what is working in your niche and ranks it by outlier multiple, captions linted against the feed truncation, carousels, stories, profile score, weekly plan, comments, replies, DMs, repurposing, audits, and a humanizer that strips the AI fingerprint before anything ships.",+ "version": "1.0.0",+ "author": {+ "name": "Jake Schincariol",+ "url": "https://opusjake.ai"+ },+ "homepage": "https://github.com/Jakeschincariol/instagram-agent-skill",+ "repository": "https://github.com/Jakeschincariol/instagram-agent-skill",+ "license": "MIT",+ "keywords": ["instagram", "reels", "content", "writing", "humanizer", "social", "marketing"]+}diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..4b0e230--- /dev/null+++ b/.gitignore@@ -0,0 +1,5 @@+.DS_Store+__pycache__/+*.pyc+.venv/+*.tmpdiff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..ac31f09--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Jake Schincariol++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdnew file mode 100644index 0000000..26a4630--- /dev/null+++ b/README.md@@ -0,0 +1,338 @@+# The Instagram agent skill++Thirteen Claude skills that run an Instagram account. Free, MIT, no signup, no+API key, nothing to connect.++One of them writes your Reels off 26 hook formulas and scores the hook before+you waste a take on it. One goes and finds the reels that are actually working+in your niche and ranks them by how far each beat its own account. One writes+the caption and shows you exactly what the feed shows before the "... more".+One scores your profile out of 100 and rewrites what lost points. One plans the+week.++And one is the humanizer, which is the reason the rest are usable. It strips+the em dashes, the slop vocabulary and the invisible watermark characters out+of a draft, then scores what is left against a five-check panel before you ever+see it.++**Nothing gets posted until you say yes.** These skills write. You post.++## Install++Paste this into Claude:++```+https://github.com/Jakeschincariol/instagram-agent-skill++Install this skill, then confirm /ig-reel works.+```++Or do it yourself, in Claude Code:++```bash+git clone https://github.com/Jakeschincariol/instagram-agent-skill.git+cp -r instagram-agent-skill/skills/ig-* ~/.claude/skills/+```++Or as a plugin:++```+/plugin marketplace add Jakeschincariol/instagram-agent-skill+/plugin install instagram-agent+```++Project-local instead of global: copy the same folders into your repo's+`.claude/skills/`. No Claude Code at all? Paste any single `SKILL.md` at the top+of a chat and it runs as a mode. You lose the five Python tools, which is most+of the point of `/ig-reel` and `/ig-human`, but the rest works.++Then spend ten minutes on `templates/voice.md`. Copy it to+`~/.claude/instagram/voice.md` and fill it in, or send Claude three of your own+reels and say "write my voice.md from these". Every skill reads that file. It+matters more here than on other platforms, because you have to say the words+out loud.++## The thirteen++| command | what it does |+| --- | --- |+| `/ig-reel` | One idea into a Reel. Three hooks from [26 formulas](skills/ig-reel/hooks.json), scored, then the script, the on-screen text and a timed beat sheet. |+| `/ig-viral` | Goes and finds what is working in your niche, ranks it by multiple over each account's own median, names the formula, writes the swipe file. |+| `/ig-caption` | The caption, linted. Shows you the 125 characters the feed actually shows before the tap. |+| `/ig-carousel` | Swipe posts. The cover that earns the swipe, slide copy, and the 1080x1350 files. |+| `/ig-story` | The daily story sequence, which sticker does which job, and the DM funnel that starts with them moving first. |+| `/ig-profile` | Scores your profile against a [12-part rubric](skills/ig-profile/rubric.json) out of 100, then rewrites in fix-first order. |+| `/ig-plan` | The week. What to post, which format, when, and the 10 accounts to engage with. |+| `/ig-human` | The humanizer. Two scripts that actually run. See below. |+| `/ig-comment` | Comments on other people's posts. Nine types, picked by what the post actually is. Never "🔥🔥🔥". |+| `/ig-reply` | The thread under your own post. Sorts into keyword / lead / substance / question / support / noise, then writes in that order. |+| `/ig-dm` | The keyword delivery, the first message, the collab pitch, and the two follow-ups. Two. |+| `/ig-repurpose` | One video, podcast or newsletter into a week of reels and carousels that each stand alone. |+| `/ig-audit` | Post-mortem on what you already posted. Ranks by outlier multiple and sends per reach, not views. |++## The five tools that actually run++No dependencies, no network, nothing uploaded. They run on your machine, on+your text.++### Hooks++```bash+python3 hookscore.py hooks.txt # rank your options+python3 beats.py script.txt --target 30 # time it before you shoot it+```++```+HOOK RANKING+==============================================================================+-> 85.6 STRONG Nobody tells you that your first 30 reels are supposed to f...+ weakest: SPECIFICITY (75)+ 81.4 STRONG I lost $18,000 because of one missing contract.+ weakest: ADDRESS (70)+ 54.4 OK Stop scrolling if you want to grow on Instagram in 2026 🔥+ weakest: STAKES (70)+ dealbreaker: Opens with "stop scrolling". Asking for attention proves+ you have not earned it.+ 9.6 WEAK Hey guys, today I wanted to talk about content strategy+ weakest: FRONTLOAD (0)+ dealbreaker: Greeting. Nobody came to the feed to be greeted.+```++`beats.py` estimates how long each line takes to say, stacks them into+timecodes, and flags the four things that kill a Reel in the edit: a hook that+runs past three seconds, a beat long enough for the viewer to leave, a run of+lines with nothing concrete in them, and no loop back to the first line.++```+BEAT SHEET · 73 words · ~26.6s at 165 wpm · target 30.0s+========================================================================+ 0:00.0 2.9s HOOK I lost $18,000 because of one missing contract.+ 0:02.9 14.6s MID Here is the exact clause I now put in every single...+ ^ 14.6s on one beat+ 0:17.4 2.9s Section 4. Payment on delivery, not on approval.+ 0:20.4 2.9s Approval is a feeling. Delivery is a date.+ 0:23.3 3.3s CTA That one word change is worth $18,000 to me.+------------------------------------------------------------------------+ - Beat 2 runs past 4s. Either split the line or change what is on screen+ inside it. A static frame is where people leave.+ - Loops: the last beat repeats "$18,000" from the hook. Second watches are+ free reach.+ - 3.5s under target. Either add 9 words or shoot it short. Short is usually+ right.+```++### The caption++```bash+python3 caption.py caption.txt --keywords "client contracts,freelance pricing"+```++Instagram gives a caption about 125 characters in the feed and hides the rest+behind a tap. Almost every caption that fails, fails there. So the first thing+this prints is that window, as a box, the way a scrolling stranger reads it:++```+ WHAT THE FEED SHOWS+ +------------------------------------------------------++ | I lost $18,000 because of one missing clause in a |+ | contract, and the worst part is that I had read the |+ | thing twice before I si |+ +-------------------------------------------- ... more +++ PASS LENGTH 389 / 2200 characters+ WARN FIRST LINE 133 characters, so it gets cut at 125 mid-thought+ PASS HOOK IS CONCRETE 2 numbers or names in the visible window+ PASS HASHTAGS 3 tags: #freelance #contracts #agencyowner+ PASS ONE ASK one call to action: comment a keyword+ WARN SEARCH TERMS 1/2 present. Missing: client contracts+```++It enforces the current hashtag cap, which is **five per post**, not thirty.+Instagram cut it on 18 December 2025.++### The humanizer++```bash+python3 humanize.py draft.txt --report # clean it, show every change+python3 detect.py draft.txt # score it, five checks+python3 detect.py before.txt after.txt # prove the delta+```++**What comes out automatically:**++- **Invisible characters.** Zero-width spaces and joiners, word joiners, soft+ hyphens, byte-order marks, Unicode tag characters, invisible separators,+ non-breaking and narrow spaces. Your keyboard does not make these. They+ survive copy-paste and they are invisible in every editor you own.+- **Typography.** Em dash to comma, en dash to hyphen, curly quotes to+ straight, ellipsis to three dots, and the orphaned punctuation that leaves.+- **The lexicon.** 154 stock words and phrases with plain-English replacements.+ The last block of it is Instagram-specific: "stop scrolling", "in today's+ video", "follow for more", "tag someone who needs this", "the algorithm+ loves", "run don't walk". It lives in+ [`slop.json`](skills/ig-human/slop.json) and it is meant to be edited.++**What gets flagged instead of fixed:** "It's not just X, it's Y", rule-of-three+triads, the video preamble, emoji bullet lists, three shouted words in a row,+hashtag walls, reflex follow bait, uniform sentence length. Changing the shape+of a sentence needs judgement, so those come back for a rewrite rather than+getting mangled by a regex.++Run against a caption written to be as bad as possible:++```+ BURSTINESS ###################..... 78.4+ SPECIFICITY #############........... 53.6 3.4 concrete markers per 100 words+ SLOP DENSITY ........................ 0.0 20 stock terms, 23.0 per 100 words+ FINGERPRINT ################........ 68.7 1 em dash+ VOICE #################....... 70.0 9 structural tells+ ------------------------------------------------------------+ HUMAN SCORE ########................ 32.5 FLAGGED+```++After `humanize.py`, with the flagged structures still unrewritten:++```+ HUMAN SCORE ###################..... 79.7 PASS (+47.2)+```++### The swipe file++```bash+python3 swipe.py captured.tsv --out ~/.claude/instagram/swipe.md+```++Raw views are not evidence. A 2,000,000-follower account doing 400,000 views+had a quiet Tuesday. A 4,000-follower account doing 400,000 views found+something. `swipe.py` ranks on the multiple over each account's own median,+names the hook formula, and prints what separates the top third from the+bottom third.++```+SWIPE FILE · 4 reels · 4 accounts · baseline: account median+==============================================================================+ 60.0x hook 57 #9 The Steal @c 180,000+ "steal this four line follow up it took me two years"+ 37.5x hook 86 #3 Nobody Tells You @a 412,000+ "nobody tells you that your first 30 reels are supposed to flop"+ 1.3x hook 13 - unclassified @b 1,200,000+ "in this video I am going to show you my morning routine"+```++## What I actually measured, which is the part worth reading++I did not want to publish a hook scorer on the claim that it feels right, so I+tested it. The corpus is **74 real short-form hooks**: the first three seconds+of the auto-caption track from the top eight and bottom eight performing shorts+on each of five channels, view counts from 931 to 550,000.++They are YouTube Shorts rather than Reels, because Instagram does not hand you+view counts you can collect without logging into somebody's account, and+scraping it would violate the Terms this repo tells you not to violate. The+hook grammar is the same and the sourcing is public. That is a real limitation+and it is stated here rather than buried.++**Three results, two of them uncomfortable:**++**1. It catches bad hooks well.** Against ten hooks written deliberately badly,+AUC 0.83, and nine of the ten scored below the median of the real corpus. If+your hook opens on a greeting, a preamble or nothing concrete, this tells you.++**2. It does not pick winners.** Separating a good creator's hits from that+same creator's misses: **AUC 0.56, where 0.50 is a coin flip.** Of the five+checks, only SPECIFICITY separated the bands meaningfully, by 60 points of+median. STAKES and ADDRESS had identical medians in both bands, which means on+this corpus they measured nothing.++So the honest use is: kill the obviously weak hooks before you shoot them, then+trust your own retention graph. Nothing that reads text can tell you which of+two decent hooks will travel, because that is decided by your face, your edit,+your audio and who Instagram shows it to.++**3. The formula classifier was broken and the test is what caught it.** The+`match` regexes in `hooks.json` were written off my own templates, and they+named **8%** of real hooks. People do not speak in templates. Rewriting them+against actual transcribed speech took it to **49%**, and four formulas went+into the set because they kept appearing and were not there: Contrarian Flip,+The Statistic, The Reveal, Someone Else's Result, plus The Superlative. On the+other 51% it abstains, which is correct: a lot of short-form is podcast clips+that have no hook formula at all.++One fixed bug worth naming: `SPECIFICITY` only counted digits, so "zero+dollars" and "three marketing books" scored as having nothing concrete in them.+Spoken hooks say their numbers out loud.++If you re-run this on a bigger or cleaner corpus and get a different answer, I+would rather know. The measurement script is not in the repo because it depends+on `yt-dlp`, but the method is four lines and is written out in+[`/ig-viral`](skills/ig-viral/SKILL.md).++## The fine print, which is the honest part++**These skills do not post to Instagram.** There is a real Content Publishing+API for Professional accounts, and it needs a Meta developer app, a linked+Page, a long-lived token and app review, which is not a thing a skill can hand+you. Everything else people use to automate posting, commenting, following or+DMing is browser automation or a third-party tool, and both violate+[Instagram's Terms of Use](https://help.instagram.com/581066165581870) and get+accounts action-blocked. So every skill here ends the same way: a copy-ready+block, and you post it. That is not a limitation bolted on afterwards, it is+the design, and it is why the approval gate is real rather than a setting.++The one exception is keyword auto-replies in DMs, which Instagram supports+through its own tools and approved partners, and which only fire after somebody+comments first. `/ig-dm` says where that line is.++**`/ig-viral` reads, it does not scrape.** Ten accounts, a dozen reels each, at+human speed, with you driving your own browser. It never asks for your password+and never logs in as you. Automated collection at volume is the thing that gets+accounts restricted, and a crawler is not what this is.++**The five detection checks are local heuristics, not detector APIs.** They are+modelled on the signals public detectors key on and they run entirely on your+machine. They are not GPTZero, Originality, Copyleaks, Winston or Turnitin,+they do not call those services, and they cannot promise those verdicts. Fixing+what they measure tends to move those numbers, because they are measuring the+same underlying things. That is the whole claim. Nobody can honestly sell you+"undetectable", and anybody who does is selling you something.++**The invisible-character pass is real and it is narrow.** It removes the+zero-width and format characters that end up in generated text and survive a+copy-paste. That is a genuine, checkable fingerprint. It is not a claim about+defeating a cryptographic watermarking scheme, and this repo does not make one.++**Nothing here fabricates.** No invented metrics, clients or outcomes go under+your name. If a draft needs a number you have not given, it comes back with+`{{your number}}` in it and a flag, every time.++**Platform numbers go stale.** The hashtag cap moved from 30 to 5 in December+2025 while this repo was being written, and the linter had the old number in it+until the fact got checked. If something here contradicts what Instagram is+doing when you read it, Instagram is right.++## Files++```+skills/ig-reel/hooks.json 26 hook formulas: template, example, on-screen line,+ what it is for, how it gets ruined, and a match regex+skills/ig-reel/hookscore.py the five-property hook panel+skills/ig-reel/beats.py script to timed beat sheet+skills/ig-caption/caption.py the truncation preview and the caption linter+skills/ig-human/slop.json the lexicon: 154 terms, 18 invisible classes, 16 tells+skills/ig-human/humanize.py the three cleaning passes+skills/ig-human/detect.py the five-check panel+skills/ig-viral/swipe.py outlier ranking and formula classification+skills/ig-profile/rubric.json the 100-point profile score+templates/voice.md your voice profile. Fill this in first.+```++## Credit++Made by Jake Schincariol, [opusjake.ai](https://opusjake.ai).++Sibling repo, same idea for a different platform:+[linkedin-agent-skill](https://github.com/Jakeschincariol/linkedin-agent-skill).++## License++MIT. Take it, change it, ship it.diff --git a/skills/ig-audit/SKILL.md b/skills/ig-audit/SKILL.mdnew file mode 100644index 0000000..5bc2de3--- /dev/null+++ b/skills/ig-audit/SKILL.md@@ -0,0 +1,104 @@+---+name: ig-audit+description: >-+ Post-mortem on what the user has already posted - which reels actually+ worked, why, and what to stop making. Use when the user pastes their+ Instagram insights or past posts and asks "what's working", "why did this+ flop", "read my analytics", "audit my content", or wants to know what to do+ more of.+---++# ig-audit++The only honest source of what works for an account is that account. Every+rule in every Instagram guide, including the ones in this pack, is a prior.+The user's own last 30 posts are the evidence.++## Input++Ask for whichever the user has:++- Insights per post: views, reach, interactions, watch time, saves, shares,+ follows, and the non-follower share of reach. Screenshots are fine.+- Or the retention graph for their best and worst recent reels. This one+ screenshot is worth more than the rest combined.+- Or just the posts and their view counts, which is enough for a first pass.++Also read `~/.claude/instagram/log.md` if it exists, since it records which+hook formula each post used.++## What to actually measure++Raw views is the least useful number on the page, because it is mostly a+function of how many people already follow the account. Compute these instead+and show the working:++| metric | how | what it tells you |+| --- | --- | --- |+| **Outlier multiple** | views / the account's own median views | whether this was a real hit or a normal day |+| **Non-follower reach** | % of reach from people who do not follow | whether it travelled at all |+| **Hold at 3s** | viewers still there at 3s / viewers who started | whether the hook worked. This is the hook's grade. |+| **Average watch time** | straight from insights | whether the middle worked |+| **Sends per reach** | shares / reach | the strongest single signal you can earn. A send is a person putting their name on it. |+| **Follows per reach** | follows / reach | whether the profile converted the attention |++Rank by outlier multiple and sends per reach, not views. A reel with 4,000+views and 90 sends beat the one with 60,000 views and 11.++## Then find the pattern++With the top five and bottom five side by side, look for what separates them,+and be willing to conclude something the user will not like:++- **Hold at 3 seconds.** If the top and bottom differ here, it is the hook and+ nothing else, and everything downstream is a distraction.+- **Hook formula.** Which ids from `ig-reel/hooks.json` are in the top five?+- **Format.** Reel, carousel, single image.+- **Length.** Group into under 15s, 15 to 30s, 30 to 60s, over 60s.+- **Theme.**+- **Whether the user replied to comments in the first hour.**+- **Day and time.** Check this **last** and only if the others show nothing.+ It is almost never the cause and it is where people want it to be.++State the finding as a claim with the evidence attached, and say how confident+it is. With 30 posts you can see a pattern. With 6 you cannot, and saying so is+better than inventing one.++## The distinction that saves people months++**A reel that gets views and no follows is not a failed reel, it is a profile+problem.** A reel that gets no views is a hook problem. Separate the two before+recommending anything. If non-follower reach is high and follows per reach is+low, stop rewriting hooks and go to `/ig-profile`.++## Output++```+AUDIT · 31 posts · Jun 12 - Sep 5 · median views 4,100++TOP 5 BY OUTLIER MULTIPLE+ 18.2x #3 Nobody Tells You 74,600 views 62% non-follower hold@3s 71% 128 sends+ 6.4x #1 Cost Confession 26,300 views 48% non-follower hold@3s 64% 71 sends+ ...++BOTTOM 5+ 0.3x #11 Numbered 1,200 views 9% non-follower hold@3s 31% 2 sends+ ...++WHAT THE DATA SAYS+1. Hold at 3 seconds is the whole story. Top five average 66%, bottom five 33%.+ Everything else you are worried about is downstream of the first two seconds.+2. The posts where you were the one who looked bad: mean 8.1x vs 0.9x for+ everything else. n=5. Strongest signal here and it is not close.+3. Tool listicles get views and nothing else. High reach, no sends, no follows.+ Three of your bottom five.+4. Day of week shows nothing. Your Tuesday and Friday means are inside the+ noise. Stop optimising it.++STOP: listicles.+DO MORE: the ones with a cost you paid and a number attached.+```++Then hand the conclusions to `/ig-plan` so next week is built on the user's own+evidence rather than on defaults, and to `/ig-viral` so the swipe file gets+filtered to the formulas that work for this account specifically.diff --git a/skills/ig-caption/SKILL.md b/skills/ig-caption/SKILL.mdnew file mode 100644index 0000000..5f8cc93--- /dev/null+++ b/skills/ig-caption/SKILL.md@@ -0,0 +1,119 @@+---+name: ig-caption+description: >-+ Write the Instagram caption - the line that survives the "... more" cut, the+ body, the single ask, the search terms and the three hashtags - and lint it+ before it goes out. Use when the user says "write the caption", "caption this",+ "what do I put in the description", has a reel or a carousel ready and needs+ the text, or asks about hashtags.+---++# ig-caption++One tool lives in this folder and it runs:++```bash+python3 caption.py caption.txt+python3 caption.py caption.txt --keywords "client proposals,agency pricing"+```++It prints the caption the way the feed prints it: the first 125 characters in a+box, everything else behind the tap. Read that box before you read anything+else you wrote.++## First, decide which job this caption has++This is the decision that ruins captions when it is skipped.++**Job A: the video already hooked them.** A Reel carries its own hook in the+first two seconds, spoken and on screen. The caption is not a second hook and+competing with the video is how you lose both. Its job is the ask, the context+that makes the ask make sense, and the words people search.++**Job B: the caption is the content.** A photo, a single image, a carousel+cover that opens a loop. Here line one is the hook and it works exactly like a+Reel hook: concrete, short, and cut off at a cliff rather than mid-clause.++Ask which one you are writing. If the user has a Reel with a strong hook,+write A and say why.++## The shape++```+Line 1 125 characters of visible space. Job A: the ask, plainly.+ Job B: the hook.+ Never a greeting, never a hashtag, never an emoji as the first+ character.+Body short paragraphs, one line of white space between each. Two to six+ of them. This is where the search terms live.+The ask one. Comment a keyword, save it, or DM. One.+Hashtags up to five, on their own line at the bottom, or none.+```++Limit is 2,200 characters and almost nothing needs 2,200. A caption that earns+the tap and then delivers 600 characters beats one that delivers 1,800.++## Hashtags, honestly++Hashtags are not a reach lever any more, and the platform has now said so with+a product change. **Instagram capped hashtags at five per post on 18 December+2025**, down from thirty, telling creators that "using fewer (up to 5) more+targeted hashtags, rather than many generic ones" performs better. Adam Mosseri+had already said in February 2025 that hashtags do not work to increase reach+and are a label, not a distribution lever.++So: up to five, specific, as topic labels. If the user has a block of twenty+saved in their notes app, that block is now dead weight and the linter will+fail it.++`#viral`, `#fyp`, `#explorepage`, `#foryou` describe nothing. Cut them.++## Search terms matter more than hashtags now++Instagram search reads the caption text. So the phrase the user wants to be+found for goes in the caption as a phrase a human would type, in a sentence+that reads normally. "Client proposals" as words in line three, not+"#clientproposals" in a block at the bottom.++Ask for two or three of those terms, then pass them to the linter:++```bash+python3 caption.py draft.txt --keywords "client proposals,agency pricing"+```++## Rules++- **No link in the caption.** Captions are not clickable. A URL in the body is+ dead text that says "I do not use this platform". Bio or DM.+- **One ask.** Two asks is the same as none. `caption.py` counts them.+- **The keyword ask needs a keyword people can type.** One word, no spaces, no+ emoji, and say it out loud in the video too. `Comment CONTRACT` works.+ `Comment "the contract guide"` does not.+- **Write the first comment separately** if there is a link. Say so in the+ receipt.+- **Emoji as punctuation, not decoration.** The linter flags anything over+ 4 per 100 characters.+- **Alt text is worth 20 seconds.** For carousels and photos, write it. It is+ read by screen readers and by Instagram.++## The loop++1. Decide Job A or Job B and say which.+2. Draft it.+3. Run `/ig-human` on it. Captions are short, so slop is louder here than+ anywhere else in the pack.+4. Run `caption.py` with the user's search terms. Fix every FAIL. Decide on+ every WARN out loud rather than silently.+5. Print the copy-ready block, then the receipt:++```+CAPTION READY+job: A - the reel carries the hook+visible: 118 of 125 characters used before the cut+ask: one, comment CONTRACT+hashtags: 3+search: "client proposals" in line 3, "agency pricing" in line 5+linter: READY+```++Nothing is posted. The user pastes it.diff --git a/skills/ig-caption/caption.py b/skills/ig-caption/caption.pynew file mode 100755index 0000000..b537807--- /dev/null+++ b/skills/ig-caption/caption.py@@ -0,0 +1,214 @@+#!/usr/bin/env python3+"""+caption.py - lint an Instagram caption and show exactly what the feed shows+before the "... more".++Instagram gives a caption about 125 characters in the feed and hides the rest+behind a tap. Almost every caption that fails, fails there: the hook is in+sentence three, or the first line is a greeting, or the whole thing opens on a+hashtag. This prints the visible window as a box so you can read it the way a+scrolling stranger does, then checks the eight things that are worth checking.++The 125-character cut is an approximation. The real number moves with the+device, the font size and where your line breaks fall, which is exactly why+you want a margin rather than a caption engineered to end at 125. Change it+with --truncate if you want to test a tighter one.++Usage+ python3 caption.py caption.txt+ python3 caption.py caption.txt --keywords "proposal software,client contract"+ pbpaste | python3 caption.py -+ python3 caption.py caption.txt --json+"""++import argparse+import json+import re+import sys+import textwrap++LIMIT = 2200 # Instagram's hard caption limit.+TRUNCATE = 125 # Roughly where the feed cuts to "... more".+HASHTAG_LIMIT = 5 # Instagram's cap per post or reel since 18 Dec 2025,+ # down from 30. Announced by the @Creators account:+ # "using fewer (up to 5) more targeted hashtags,+ # rather than many generic ones, can improve both your+ # content's performance and people's experience".++HASHTAG_RE = re.compile(r"(?:^|\s)(#[A-Za-z0-9_]+)")+MENTION_RE = re.compile(r"(?:^|\s)(@[A-Za-z0-9_.]+)")+LINK_RE = re.compile(r"https?://\S+|\bwww\.\S+|\b[a-z0-9-]+\.(?:com|co|io|net|org|ai|app)/\S*",+ re.IGNORECASE)+EMOJI_RE = re.compile(r"[\U0001F300-\U0001FAFF☀-➿←-⇿️]")+CONCRETE_RE = re.compile(r"\$\s?\d|\b\d[\d,.]*\b|(?<!^)\b[A-Z][a-z]{2,}\b", re.MULTILINE)++ASKS = [+ (re.compile(r"(?i)\bcomment (?:the word |\")?[A-Z0-9]{2,}\b"), "comment a keyword"),+ (re.compile(r"(?i)\b(?:dm|message) me\b"), "DM me"),+ (re.compile(r"(?i)\bsave (?:this|it)\b"), "save this"),+ (re.compile(r"(?i)\bshare (?:this|it)\b"), "share this"),+ (re.compile(r"(?i)\bfollow (?:me|for)\b"), "follow"),+ (re.compile(r"(?i)\blink in (?:my )?bio\b"), "link in bio"),+ (re.compile(r"(?i)\b(?:swipe|tap) (?:through|left|right|for|to)\b"), "swipe or tap"),+ (re.compile(r"(?i)\btell me\b|\bwhat would you\b|\bwhich one\b"), "answer a question"),+]++FILLER_TAGS = {"#viral", "#fyp", "#explore", "#explorepage", "#foryou", "#foryoupage",+ "#trending", "#instagood", "#love", "#follow", "#like4like", "#reels",+ "#reelsinstagram", "#viralreels", "#instadaily"}+++def visible_window(text, cut):+ """What the feed shows. Instagram cuts mid-word, so this does too."""+ flat = text.strip()+ return flat if len(flat) <= cut else flat[:cut]+++def render_box(window, truncated, out=sys.stdout, width=52):+ print("\n WHAT THE FEED SHOWS", file=out)+ print(" +" + "-" * (width + 2) + "+", file=out)+ lines = []+ for raw in window.split("\n"):+ lines.extend(textwrap.wrap(raw, width) or [""])+ for line in lines[:8]:+ print(f" | {line:<{width}} |", file=out)+ tail = "... more" if truncated else "(whole caption fits)"+ print(" +" + "-" * (width + 2 - len(tail) - 2) + f" {tail} " + "+", file=out)+++def analyse(text, cut=TRUNCATE, keywords=None):+ text = text.rstrip()+ stripped = text.strip()+ chars = len(stripped)+ lines = [l for l in stripped.split("\n")]+ first_line = lines[0].strip() if lines else ""+ tags = HASHTAG_RE.findall(stripped)+ mentions = MENTION_RE.findall(stripped)+ links = LINK_RE.findall(stripped)+ emoji = EMOJI_RE.findall(stripped)+ window = visible_window(stripped, cut)+ truncated = chars > cut+ asks = [name for pattern, name in ASKS if pattern.search(stripped)]+ filler = [t for t in tags if t.lower() in FILLER_TAGS]+ keywords = [k.strip() for k in (keywords or []) if k.strip()]++ checks = []++ def add(name, status, detail):+ checks.append({"check": name, "status": status, "detail": detail})++ add("LENGTH", "FAIL" if chars > LIMIT else "PASS",+ f"{chars} / {LIMIT} characters" + (f", {chars - LIMIT} over the limit"+ if chars > LIMIT else ""))++ if not first_line:+ add("FIRST LINE", "FAIL", "the caption opens on a blank line")+ elif first_line.startswith("#") or first_line.startswith("@"):+ add("FIRST LINE", "FAIL",+ "opens on a hashtag or a mention, which is the one position worth a sentence")+ elif len(first_line) > cut:+ add("FIRST LINE", "WARN",+ f"{len(first_line)} characters, so it gets cut at {cut} mid-thought. "+ "Fine if the cut is a cliffhanger, bad if it is a subordinate clause")+ else:+ add("FIRST LINE", "PASS", f"{len(first_line)} characters, lands whole")++ add("HOOK IS CONCRETE", "PASS" if CONCRETE_RE.search(window) else "WARN",+ f"{len(CONCRETE_RE.findall(window))} number(s) or name(s) in the visible window"+ + ("" if CONCRETE_RE.search(window) else " - nothing checkable before the tap"))++ if len(tags) > HASHTAG_LIMIT:+ add("HASHTAGS", "FAIL", f"{len(tags)} tags, over Instagram's cap of {HASHTAG_LIMIT}. "+ "Tags past the fifth do not count and the block reads as old")+ elif len(tags) == HASHTAG_LIMIT and filler:+ add("HASHTAGS", "WARN", f"{len(tags)} tags, at the cap, and "+ f"{len(filler)} of them generic. Spend the five on topics")+ elif filler:+ add("HASHTAGS", "WARN", f"{len(tags)} tags, {len(filler)} of them generic "+ f"({', '.join(filler[:3])}). Those describe nothing")+ else:+ add("HASHTAGS", "PASS", f"{len(tags)} tag(s)" + (f": {' '.join(tags)}" if tags else ""))++ if not tags:+ add("TAG PLACEMENT", "PASS", "no tags to place")+ elif any(re.search(r"(?:^|\s)" + re.escape(t) + r"\b", window) for t in tags):+ add("TAG PLACEMENT", "WARN", "a hashtag is inside the visible window, "+ "spending feed space on a label")+ else:+ add("TAG PLACEMENT", "PASS", "tags are below the fold")++ add("LINKS", "WARN" if links else "PASS",+ f"{len(links)} link(s) in the caption, and captions are not clickable. "+ f"Move it to the bio or the DM" if links else "no dead links in the body")++ if len(asks) == 1:+ add("ONE ASK", "PASS", f"one call to action: {asks[0]}")+ elif not asks:+ add("ONE ASK", "WARN", "no call to action. Decide what this post is for")+ else:+ add("ONE ASK", "WARN", f"{len(asks)} asks ({', '.join(asks)}). "+ "Two asks is the same as none")++ density = len(emoji) * 100 / max(chars, 1)+ add("EMOJI", "WARN" if density > 4 else "PASS",+ f"{len(emoji)} emoji, {density:.1f} per 100 characters"+ + (" - reads as decoration" if density > 4 else ""))++ if keywords:+ low = stripped.lower()+ found = [k for k in keywords if k.lower() in low]+ missing = [k for k in keywords if k.lower() not in low]+ in_window = [k for k in found if k.lower() in window.lower()]+ status = "PASS" if not missing else ("WARN" if found else "FAIL")+ add("SEARCH TERMS", status,+ f"{len(found)}/{len(keywords)} present"+ + (f", {len(in_window)} in the visible window" if found else "")+ + (f". Missing: {', '.join(missing)}" if missing else ""))++ fails = sum(1 for c in checks if c["status"] == "FAIL")+ warns = sum(1 for c in checks if c["status"] == "WARN")+ verdict = "FIX" if fails else ("REVIEW" if warns else "READY")++ return {+ "characters": chars, "limit": LIMIT, "truncate_at": cut,+ "visible": window, "truncated": truncated,+ "first_line_chars": len(first_line),+ "hashtags": tags, "mentions": mentions, "links": links,+ "emoji": len(emoji), "asks": asks,+ "checks": checks, "verdict": verdict,+ }+++def render(a, out=sys.stdout):+ head = (f"CAPTION LINT · {a['characters']} / {a['limit']} chars · "+ f"{len(a['hashtags'])} hashtags · {len(a['asks'])} ask(s)")+ print("\n" + head, file=out)+ print("=" * max(len(head), 62), file=out)+ render_box(a["visible"], a["truncated"], out=out)+ print("", file=out)+ for c in a["checks"]:+ print(f" {c['status']:<5} {c['check']:<17} {c['detail']}", file=out)+ print("-" * max(len(head), 62), file=out)+ print(f" VERDICT {a['verdict']}\n", file=out)+++def main():+ ap = argparse.ArgumentParser(description="Lint an Instagram caption.")+ ap.add_argument("input", nargs="?", default="-", help="caption file, or - for stdin")+ ap.add_argument("--truncate", type=int, default=TRUNCATE,+ help=f"characters shown before '... more' (default {TRUNCATE})")+ ap.add_argument("--keywords", default="", help="comma-separated terms you want to be found for")+ ap.add_argument("--json", action="store_true")+ args = ap.parse_args()++ raw = sys.stdin.read() if args.input == "-" else open(args.input, encoding="utf-8").read()+ a = analyse(raw, cut=args.truncate, keywords=args.keywords.split(","))+ if args.json:+ print(json.dumps(a, indent=2, ensure_ascii=False))+ else:+ render(a)+ sys.exit(0 if a["verdict"] == "READY" else 1)+++if __name__ == "__main__":+ main()diff --git a/skills/ig-carousel/SKILL.md b/skills/ig-carousel/SKILL.mdnew file mode 100644index 0000000..e4cba23--- /dev/null+++ b/skills/ig-carousel/SKILL.md@@ -0,0 +1,103 @@+---+name: ig-carousel+description: >-+ Build an Instagram carousel - the cover that earns the swipe, slide-by-slide+ copy, and the 1080x1350 files to upload. Use when the user says "carousel",+ "slides", "swipe post", "turn this into a carousel", or has a list-shaped or+ step-shaped idea that would die as a single image.+---++# ig-carousel++Carousels are the highest-dwell format on the grid, because a swipe is an+interaction and a scroll is not. They also get a second chance: Instagram can+show a carousel again starting from a later slide to someone who did not engage+the first time, so slide two has to stand on its own as well.++The format rewards one idea broken into steps. It punishes a caption cut into+pieces.++## When to use it instead of a Reel++Use a carousel when the idea has **sequence and needs to be re-read**: steps, a+framework with parts, a before and after, a list worth screenshotting. Use a+Reel when the idea has motion, a face, or a payoff that has to be seen+happening.++If the idea is one claim, it is neither. Hand it to `/ig-reel` and say so.++## Structure++6 to 10 slides. The cap is 20 and 20 is almost always a book nobody finishes.+Under 5 and the swipe never starts.++```+1 COVER the hook. 6 words or fewer, at a size that is legible in+ the grid at thumbnail. One line of promise under it.+2 THE STAKE why this matters, in one sentence. This slide is also a+ second cover, so it cannot be setup.+3 to N ONE IDEA PER SLIDE. A headline of 3 to 7 words, at most 25 words+ under it. If a slide needs a paragraph, it is two slides.+N+1 RECAP the whole thing as a list. This is the screenshot slide.+LAST CTA one action. Save, comment a keyword, or follow. One.+```++## Slide copy rules++- **The cover is 80% of the result.** Six words. Big. Nothing on the deck saves+ a cover nobody swipes.+- **Design for the grid crop.** The profile grid crops to a portrait rectangle+ that is taller than it is wide, and the exact ratio has moved more than once.+ Build at 1080x1350 and keep the cover text well inside the middle, clear of+ the outer 120 pixels on every side, and the crop stops mattering.+- **Number the slides** (3/8). Completion goes up when people can see the end.+- **No slide is a paragraph.** If it cannot be said in 25 words, split it.+- **The recap slide is the one people screenshot and send.** Sends are the+ strongest signal you can earn. Make it standalone and readable with no+ context.+- **The handle on every slide**, small, bottom corner. Screenshots travel+ without you.+- **Alt text on the cover at minimum.** It is read by screen readers and by+ Instagram.++## Building the files++Instagram wants 1080x1350 (4:5), JPEG or PNG, up to 20 items. Build it as HTML+and print each slide:++```bash+# one <section> per slide, 1080x1350, page-break-after: always+# then Chrome headless --print-to-pdf, or any HTML-to-image you already use+```++Write the HTML with `width:1080px; height:1350px`, a single accent colour, and+type no smaller than 32px, because this is read on a phone at a third of its+real size. If the project has a brand skill or a design system, use it and do+not invent a palette.++## Output++The slide-by-slide copy first, as a numbered list the user can read in ten+seconds and edit before anything is rendered. Then the **caption**, which for a+carousel is Job B in `/ig-caption`: the caption is doing work here, because the+cover has already used its six words.++Run both through `/ig-human`. Build the files only after the user approves the+copy.++```+CAROUSEL · 8 slides++1 COVER THE $18,000 CLAUSE+ One line I now put in every contract.+2 STAKE I approved the work. They asked for the money back nine days later.+3 WHAT IT SAYS+ Payment on delivery, not on approval.+...+7 RECAP All four lines, in order.+8 CTA Comment CONTRACT and I will send the full clause.++Caption: Job B, hook in line 1, one ask, 3 tags.+```++Nothing is uploaded. The user posts it.diff --git a/skills/ig-comment/SKILL.md b/skills/ig-comment/SKILL.mdnew file mode 100644index 0000000..54ee4a9--- /dev/null+++ b/skills/ig-comment/SKILL.md@@ -0,0 +1,94 @@+---+name: ig-comment+description: >-+ Write comments on other people's Instagram posts and reels that read as a+ person with an opinion, not a bot. Use when the user pastes a post or a reel+ and wants a comment, says "comment on this", "engage with this", "what do I+ say here", or wants a batch for their daily engagement round.+---++# ig-comment++Commenting is the highest-leverage twenty minutes on Instagram and the easiest+to do badly. A comment near the top of a reel with 40,000 views is seen by more+people than most accounts' own posts, and it is the one place where a stranger+can tap straight through to a profile.++A generic comment is worse than none. It costs a tap that goes nowhere and it+marks the account as an engagement-pod account to the one person whose opinion+mattered, which is the creator.++## Input++The user pastes the post or reel text, or a screenshot, with the account name.+If they give a URL you cannot open, ask them to paste it. Do not use a browser+tool to scrape the feed and do not post anything.++## The nine comment types++Pick by what the post actually is. Never default to type 1.++| # | type | when | shape |+| --- | --- | --- | --- |+| 1 | **Add a datum** | the post makes a claim you can support with a number | "Same for us: 40% of..." |+| 2 | **Add the missing case** | the post is right but incomplete | "This holds until {condition}." |+| 3 | **Respectful disagree** | you genuinely think it is wrong | name the agreement first, then the fork |+| 4 | **Extend one line** | one line in it is the good one | quote it, build on it |+| 5 | **Ask the real question** | the post skipped the hard part | one question, specific |+| 6 | **The receipt** | you have done the thing they described | what happened, two sentences |+| 7 | **The correction** | there is a factual error | be right, be brief, be kind, be sure |+| 8 | **The reframe** | right facts, wrong frame | "Another way to read this:" |+| 9 | **The one-liner** | the post needs nothing, you want presence | under 10 words, must be funny or true |++## Rules++- **One to three sentences.** Instagram comments are read in a narrow column+ under a video. A paragraph gets collapsed behind "more" and nobody taps it.+- **Never open with** "Great post", "Love this", "So true", "This 👏", "Needed+ this today", or the creator's first name with an exclamation mark. All of+ them are invisible.+- **No emoji-only comments** and no emoji as the first character.+- **Never restate the reel.** Everybody watching just watched it.+- **One idea.** A comment with two points reads as a hijack.+- **Say the specific thing.** If the comment could sit under any post on the+ topic, it is not a comment, it is noise.+- **No pitching, ever.** Not the offer, not the link, not "check out my page".+ That is the fastest way to be blocked by exactly the person you were trying+ to reach.+- **Early matters more here than anywhere.** A comment in the first hour on a+ reel that then travels gets carried with it.++## Output++Give **two options of different types**, labelled, plus one line on which you+would post and why. Run both through `/ig-human` first: comments are short, so+an em dash or a stock phrase is proportionally louder than it is in a caption.++```+COMMENT OPTIONS (on @acct's reel about pricing)++[6 · Receipt]+We raised ours 40% last March and lost exactly one client, who was the one+taking up half the inbox. Took eight months to stop being scared of it.++[3 · Respectful disagree]+Agree on the anchoring. The part I would push back on is doing it mid-project.+We tried that and it cost us a renewal that was otherwise fine.++Post the first. It concedes something and it has a number in it.+```++## Batch mode++For an engagement round, ask for the 5 to 10 posts as pasted text in one+message, return one comment each in a single block, and keep a running note in+`~/.claude/instagram/log.md` of who has been commented on this week.+Commenting on the same three accounts every day is visible and it looks like+exactly what it is.++## Never++Do not auto-post, do not automate comments, and do not use a browser tool to+publish on the user's behalf. Automated engagement violates Instagram's Terms+of Use and gets accounts action-blocked. This skill writes the comment. The+user posts it.diff --git a/skills/ig-dm/SKILL.md b/skills/ig-dm/SKILL.mdnew file mode 100644index 0000000..3d50b08--- /dev/null+++ b/skills/ig-dm/SKILL.md@@ -0,0 +1,118 @@+---+name: ig-dm+description: >-+ Write Instagram DMs that get replies - the keyword delivery, the first+ message to someone who engaged, the collab pitch, and the two follow-ups. Use+ when the user says "DM this person", "what do I send them", "outreach+ message", "how do I follow up", "pitch this brand", or is reaching out to+ someone specific.+---++# ig-dm++Instagram DMs are the only place on the platform where money actually changes+hands, and they are also where most accounts burn the goodwill their content+earned. The difference is entirely about who moved first.++## The three kinds of DM, and only three are worth writing++**1. The reply to a hand raised.** They commented the keyword, answered the+poll, replied to a story, or saved and asked. They moved first. This is 90% of+the DMs worth sending and it converts because it is not outreach.++**2. The warm approach.** Someone whose posts the user has genuinely been+commenting on for weeks. There is a shared thread of conversation already.++**3. The collab or brand pitch.** A specific proposal to a specific account,+with a reason it is them.++Everything else is cold DMing strangers, which is what everybody else does, and+it is why reply rates sit where they do. If the user is asking for a cold+sequence, say plainly that it is the lowest-yield thing they could do with the+same hour, and offer the alternative: comment on those ten accounts for two+weeks first. Then write it if they still want it.++## Before writing, get the specifics++Ask in one batched question:++1. **Who** - handle, what they do, and what they posted or did that started+ this.+2. **The trigger** - the actual reason to message today. A keyword they+ commented, a story they replied to, a post they published. Not "they fit the+ ICP".+3. **What the user wants** - a conversation, a sale, a collab, a referral. Be+ honest internally, even if the message does not lead with it.++If there is no trigger, there is no message. Say so.++## The keyword delivery++The most common DM in this pack and the easiest to ruin. They commented one+word. They are expecting the thing. So:++```+{their name}, here it is: {the thing, or the link}.++{one line on how to use it}++{one question they can answer in four words}+```++Send the thing **first**, in message one, with no gate. A keyword post that+delivers a "before I send it, can I ask what you do?" is a bait and switch and+it is remembered. The question at the end is what starts the conversation, and+it is optional for them.++Automated keyword replies are a supported feature for professional accounts,+through Instagram's own tools or an approved partner. Using that is fine.+Sending unsolicited bulk DMs is not, and it is the fastest route to a+restricted account.++## The first message to someone warm++- **Two to four sentences.** A screen of text is a delete.+- **Reference the specific thing.** The comment, the post, the reply. In their+ words.+- **Give before asking.** A number, a template, a name, an answer.+- **One ask, small.** "Worth a quick call?" beats "let me walk you through the+ platform".+- **No link and no calendar in message one.** It reads as a funnel because it+ is one.+- **No voice note to a stranger.** It is a great tool and it is for people who+ already know the user's voice.++## The collab pitch++Four lines, in this order: what you have watched them do, the specific idea,+what they get, what you need from them. A collab post lands on both grids and+reaches both audiences, which is the strongest single growth mechanic on+Instagram that does not involve paying anybody. Pitch it as that and be+concrete about who does what.++## Follow-ups++Two. That is the number.++- **+4 days** - add something new. Never "just bumping this". If there is+ nothing new, there is no follow-up.+- **+10 days** - the close-the-loop message. Say you will stop, and mean it.+ This one gets a surprising share of the total replies, because it removes the+ pressure.++Then stop. A third converts nobody and costs the relationship.++## Never++- Never automate outreach DMs, and never use a tool that sends on a schedule to+ people who did not interact. It violates Instagram's Terms of Use and+ restricts the account.+- Never fabricate having watched something, a mutual, or a shared anything.+- Never open with "Hey! Quick question" and then not ask a question.+- Never send the pitch in the same message as the compliment.++## Output++The message, the character count, and the two follow-ups with the day each+goes out, all run through `/ig-human`. The user sends every one of them by+hand, or through their own approved automation for keyword replies only.diff --git a/skills/ig-human/SKILL.md b/skills/ig-human/SKILL.mdnew file mode 100644index 0000000..4afd5ce--- /dev/null+++ b/skills/ig-human/SKILL.md@@ -0,0 +1,111 @@+---+name: ig-human+description: >-+ Strip the machine fingerprint out of any draft - em dashes, AI slop words,+ invisible watermark characters - and score it against a five-check detection+ panel before it goes out. Use whenever text needs to sound human, when the+ user says humanize, "does this sound like AI", "remove the em dashes",+ "de-slop this", "this sounds like ChatGPT", or before any caption, script,+ comment, reply or DM is shown to the user.+---++# ig-human++Two tools live in this folder and they both actually run. Use them. Do not+eyeball this.++```bash+python3 humanize.py draft.txt --report # clean it, show what changed+python3 detect.py draft.txt # score it, five checks+python3 detect.py before.txt after.txt # prove the delta+```++Both read `slop.json`: 154 stock words and phrases with plain-English+replacements, 18 invisible character classes, 11 typographic substitutions and+16 structural tells. The last block of each list is Instagram-specific, the+vocabulary that only shows up in captions and voiceovers. It is meant to be+edited. If the user has a word they always use that the lexicon strips, take it+out of the file.++## Why this matters more on Instagram than it looks++Captions are short and scripts get said out loud. A written-sounding line in a+600-character caption is a larger share of the text than the same line in an+essay, and a voiceover that nobody could say naturally is obvious in the first+take. The tell here is not a detector flagging the post. The tell is a person+scrolling past something that reads like a brand, or a creator stumbling over+their own script.++## What gets fixed automatically++**1. Invisible characters.** Zero-width spaces and joiners, word joiners, soft+hyphens, byte-order marks, Unicode tag characters, invisible separators,+non-breaking and narrow spaces. A keyboard does not produce these. They survive+copy-paste, they are invisible in every editor, and they are the most+mechanical thing in generated text. `humanize.py` deletes every one, including+any remaining Unicode format character it does not have a name for.++**2. Typography.** Em dash to comma, en dash to hyphen, curly quotes to+straight, ellipsis to three dots, bullet character to hyphen. The em dash pass+is the one that matters: it collapses the dash to a comma and then cleans up+the double punctuation and orphaned periods that leaves behind.++**3. The slop lexicon.** delve, leverage, robust, seamless, crucial, testament+to, "in today's fast-paced world", plus the Instagram block: "stop scrolling",+"in today's video", "follow for more", "tag someone who needs this", "the+algorithm loves", "run don't walk". Each swapped for a plain word or deleted,+with capitalisation preserved and URLs left untouched.++## What does NOT get fixed automatically++Structural tells get **flagged, not rewritten**, because changing the shape of+a sentence needs judgement:++- "It's not just X, it's Y" and "not only X but also Y"+- Rule-of-three triads+- Rhetorical one-word question lines: "The result?"+- The video preamble: "in this video I'm going to show you"+- Emoji bullet lists+- Three or more shouted words in a row+- Hashtag walls+- Reflex bait: "follow for more", "tag someone who", "double tap if"++That list is your job. Rewrite each flagged line by hand, keeping the meaning,+then re-run `detect.py`. This is the part that moves the score from REVIEW to+PASS, and it is the part a script cannot do.++## The five checks++`detect.py` scores five signals 0-100, higher is more human:++| check | what it measures | machine looks like |+| --- | --- | --- |+| BURSTINESS | sentence-length variation | every sentence the same length |+| SPECIFICITY | numbers, names, concrete markers per 100 words | abstract nouns, no figures |+| SLOP DENSITY | lexicon hits per 100 words | stock vocabulary |+| FINGERPRINT | invisible chars, em dashes, curly quotes per 1k chars | typographically perfect |+| VOICE | contractions, person, structural tells | no contractions, staged reveals |++The verdict weights the mean at 60% and the **weakest single check** at 40%,+because one signal is enough. PASS needs an overall of 70+ with no check+below 55.++## Say this honestly++These are five local heuristics modelled on the signals public detectors key+on. They run entirely on the user's machine and nothing is uploaded. They are+**not** GPTZero, Originality, Copyleaks, Winston or Turnitin, they do not call+those APIs, and they cannot promise those verdicts. Fixing what they measure+does tend to move those numbers, because they are measuring the same underlying+things. That is the claim. Do not make a bigger one on the user's behalf, and+do not tell a user their text is undetectable.++## Order of operations++1. `humanize.py draft.txt -o clean.txt --report`+2. Read the structural flags. Rewrite those lines yourself.+3. `detect.py draft.txt clean.txt` to show the before and after.+4. If the verdict is not PASS, fix the weakest check named in the output and go+ again. Two rounds is normal. Five means the draft was written by formula,+ and the fix is a different draft, not more passes.+5. Show the user the cleaned text and the score. Never the score alone.diff --git a/skills/ig-human/detect.py b/skills/ig-human/detect.pynew file mode 100755index 0000000..bd306ab--- /dev/null+++ b/skills/ig-human/detect.py@@ -0,0 +1,235 @@+#!/usr/bin/env python3+"""+detect.py - a five-check panel that scores how machine-written a draft looks.++What this is: five local heuristics modelled on the signals public AI+detectors actually measure - sentence-length variation, concreteness, stock+vocabulary, typographic fingerprint, and voice. Every score is computed on+your machine from the text alone. Nothing is uploaded.++What this is NOT: GPTZero, Originality, Copyleaks, Winston or Turnitin.+It does not call their APIs and it cannot promise their verdict. It catches+the things they all key on, which is why fixing them tends to move their+numbers too - but the only honest claim is the one on this line.++Each check returns a HUMAN score from 0 to 100. Higher is better.++Usage+ python3 detect.py draft.txt+ pbpaste | python3 detect.py -+ python3 detect.py draft.txt --json+ python3 detect.py before.txt after.txt # compare two drafts+"""++import argparse+import json+import os+import re+import statistics+import sys+import unicodedata++HERE = os.path.dirname(os.path.abspath(__file__))+LEX = os.path.join(HERE, "slop.json")++SENT_RE = re.compile(r"[^.!?\n]+[.!?]*")+WORD_RE = re.compile(r"[A-Za-z']+")+CONTRACTIONS = re.compile(r"\b\w+'(?:s|t|re|ve|ll|d|m)\b", re.IGNORECASE)+PRONOUNS = re.compile(r"\b(i|me|my|mine|we|us|our|you|your)\b", re.IGNORECASE)+NUMBERS = re.compile(r"\b\d[\d,.]*%?\b|\$\d")+PROPER = re.compile(r"(?<![.!?]\s)(?<!^)\b[A-Z][a-z]{2,}\b", re.MULTILINE)+++def clamp(n):+ return max(0.0, min(100.0, n))+++def scale(value, human, machine):+ """Map value onto 0-100 where `human` -> 100 and `machine` -> 0."""+ if human == machine:+ return 50.0+ return clamp((value - machine) / (human - machine) * 100)+++def sentences(text):+ return [s.strip() for s in SENT_RE.findall(text) if len(s.split()) > 2]+++def words(text):+ return WORD_RE.findall(text)+++def check_burstiness(text):+ """Humans vary sentence length hard. Models write even."""+ lens = [len(s.split()) for s in sentences(text)]+ if len(lens) < 4:+ return 50.0, "too short to judge"+ mean = statistics.mean(lens)+ cv = statistics.pstdev(lens) / mean if mean else 0+ score = scale(cv, human=0.70, machine=0.22)+ return score, f"variation {cv:.2f} across {len(lens)} sentences (want 0.55+)"+++def check_specificity(text):+ """Numbers, names and concrete nouns. Slop is abstract."""+ w = words(text)+ if len(w) < 25:+ return 50.0, "too short to judge"+ per100 = 100 / len(w)+ hits = len(NUMBERS.findall(text)) + len(set(PROPER.findall(text)))+ density = hits * per100+ score = scale(density, human=6.0, machine=0.5)+ return score, f"{hits} concrete markers, {density:.1f} per 100 words (want 4+)"+++def check_slop(text, lex):+ """Stock vocabulary density against the lexicon."""+ w = words(text)+ if not w:+ return 50.0, "empty"+ hits, found = 0, []+ for entry in lex["words"] + lex["phrases"]:+ pattern = re.compile(r"\b" + re.escape(entry["find"]).replace(r"\ ", r"\s+") + r"\b",+ re.IGNORECASE)+ n = len(pattern.findall(text))+ if n:+ hits += n+ found.append(entry["find"])+ density = hits * 100 / len(w)+ score = scale(density, human=0.0, machine=4.0)+ detail = f"{hits} stock terms, {density:.1f} per 100 words"+ if found:+ detail += " (" + ", ".join(sorted(found)[:4]) + (", ..." if len(found) > 4 else "") + ")"+ return score, detail+++def check_fingerprint(text):+ """Characters a phone keyboard does not produce."""+ invisible = sum(1 for c in text if unicodedata.category(c) == "Cf")+ em = text.count("—")+ curly = sum(text.count(c) for c in "‘’“”")+ ellip = text.count("…")+ nbsp = sum(text.count(c) for c in " ")+ total = invisible * 4 + em * 2 + curly + ellip + nbsp+ per1k = total * 1000 / max(len(text), 1)+ score = scale(per1k, human=0.0, machine=12.0)+ detail = (f"{invisible} invisible, {em} em dash, {curly} curly quote, "+ f"{ellip} ellipsis, {nbsp} hard space")+ return score, detail+++def check_voice(text, lex):+ """Contractions, person, and the shapes models default to."""+ w = words(text)+ if len(w) < 25:+ return 50.0, "too short to judge"+ per100 = 100 / len(w)+ contractions = len(CONTRACTIONS.findall(text)) * per100+ person = len(PRONOUNS.findall(text)) * per100+ tells = 0+ names = []+ for s in lex["structures"]:+ try:+ n = len(re.compile(s["regex"], re.MULTILINE).findall(text))+ except re.error:+ continue+ if n:+ tells += n+ names.append(s["id"])+ bullets = [len(b.split()) for b in re.findall(r"(?m)^\s*[-*•]\s+(.+)$", text)]+ uniform = (len(bullets) >= 3 and statistics.pstdev(bullets) < 1.6)+ score = (scale(contractions, human=3.0, machine=0.0) * 0.35+ + scale(person, human=8.0, machine=1.0) * 0.35+ + clamp(100 - tells * 22) * 0.30)+ if uniform:+ score -= 12+ names.append("uniform-bullets")+ detail = (f"{contractions:.1f} contractions, {person:.1f} personal pronouns "+ f"per 100 words, {tells} structural tell(s)")+ if names:+ detail += " [" + ", ".join(names[:4]) + "]"+ return clamp(score), detail+++CHECKS = ["BURSTINESS", "SPECIFICITY", "SLOP DENSITY", "FINGERPRINT", "VOICE"]+++def run(text, lex):+ results = {}+ results["BURSTINESS"] = check_burstiness(text)+ results["SPECIFICITY"] = check_specificity(text)+ results["SLOP DENSITY"] = check_slop(text, lex)+ results["FINGERPRINT"] = check_fingerprint(text)+ results["VOICE"] = check_voice(text, lex)+ scores = [results[c][0] for c in CHECKS]+ # The weakest check drags the verdict: a detector only needs one signal.+ overall = statistics.mean(scores) * 0.6 + min(scores) * 0.4+ verdict = "PASS" if overall >= 70 and min(scores) >= 55 else (+ "REVIEW" if overall >= 50 else "FLAGGED")+ return results, overall, verdict+++def bar(score, width=24):+ filled = round(score / 100 * width)+ return "#" * filled + "." * (width - filled)+++def render(results, overall, verdict, label=None, out=sys.stdout):+ title = "AI DETECTION PANEL" + (f" - {label}" if label else "")+ print("\n" + title, file=out)+ print("=" * max(len(title), 62), file=out)+ for name in CHECKS:+ score, detail = results[name]+ print(f" {name:<13} {bar(score)} {score:5.1f}", file=out)+ print(f" {'':<13} {detail}", file=out)+ print("-" * 62, file=out)+ print(f" {'HUMAN SCORE':<13} {bar(overall)} {overall:5.1f} {verdict}", file=out)+ if verdict != "PASS":+ weakest = min(CHECKS, key=lambda c: results[c][0])+ print(f"\n Weakest signal: {weakest}. Fix that first.", file=out)+ print("", file=out)+++def main():+ ap = argparse.ArgumentParser(description="Score how machine-written a draft looks.")+ ap.add_argument("input", nargs="?", default="-", help="file, or - for stdin")+ ap.add_argument("compare", nargs="?", help="second file, to show before/after")+ ap.add_argument("--json", action="store_true")+ ap.add_argument("--lexicon", default=LEX)+ args = ap.parse_args()++ lex = json.load(open(args.lexicon, encoding="utf-8"))+ read = lambda p: sys.stdin.read() if p == "-" else open(p, encoding="utf-8").read()++ targets = [(args.input, read(args.input))]+ if args.compare:+ targets.append((args.compare, read(args.compare)))++ payload = []+ for name, text in targets:+ results, overall, verdict = run(text, lex)+ payload.append({+ "source": name,+ "checks": {k: {"score": round(v[0], 1), "detail": v[1]} for k, v in results.items()},+ "human_score": round(overall, 1),+ "verdict": verdict,+ })++ if args.json:+ print(json.dumps(payload if args.compare else payload[0], indent=2))+ return++ for (name, text), p in zip(targets, payload):+ results, overall, verdict = run(text, lex)+ render(results, overall, verdict, label=os.path.basename(name) if args.compare else None)+ if args.compare:+ a, b = payload+ delta = b["human_score"] - a["human_score"]+ print(f" {a['human_score']:.1f} {a['verdict']} -> "+ f"{b['human_score']:.1f} {b['verdict']} ({delta:+.1f})\n")++ sys.exit(0 if payload[-1]["verdict"] == "PASS" else 1)+++if __name__ == "__main__":+ main()diff --git a/skills/ig-human/humanize.py b/skills/ig-human/humanize.pynew file mode 100755index 0000000..6356d62--- /dev/null+++ b/skills/ig-human/humanize.py@@ -0,0 +1,267 @@+#!/usr/bin/env python3+"""+humanize.py - strip the machine fingerprint out of a draft.++Three passes, in this order:++ 1. INVISIBLE delete or normalise the characters a human keyboard never+ produces: zero-width joiners, word joiners, soft hyphens,+ BOMs, Unicode tag characters, non-breaking and narrow spaces.+ These survive copy-paste and are the most mechanical tell in+ any generated text.+ 2. TYPOGRAPHIC em dash -> comma, en dash -> hyphen, curly quotes -> straight,+ ellipsis -> three dots, bullet -> hyphen.+ 3. LEXICAL replace the slop lexicon in slop.json with plain words,+ preserving capitalisation and leaving URLs untouched.++Structural tells (rule-of-three, "not just X, it's Y", hashtag walls) are+REPORTED, never auto-rewritten - rewriting a sentence's shape needs judgement,+so that is the model's job, not a regex's.++Usage+ python3 humanize.py draft.txt+ python3 humanize.py draft.txt --report+ pbpaste | python3 humanize.py - --report+ python3 humanize.py draft.txt --json+ python3 humanize.py draft.txt -o clean.txt+"""++import argparse+import json+import os+import re+import sys+import unicodedata++HERE = os.path.dirname(os.path.abspath(__file__))+LEX = os.path.join(HERE, "slop.json")++URL_RE = re.compile(r"https?://\S+|www\.\S+|\S+@\S+\.\S+")+SENT_RE = re.compile(r"[^.!?\n]+[.!?]*")+++def load_lexicon(path=LEX):+ with open(path, encoding="utf-8") as fh:+ return json.load(fh)+++def _cp(spec):+ """'U+200B' -> '\\u200b'; 'U+E0000-U+E007F' -> (start, end)."""+ if "-" in spec:+ a, b = spec.split("-")+ return (int(a[2:], 16), int(b[2:], 16))+ return int(spec[2:], 16)+++def protect_urls(text):+ """Swap URLs for placeholders so no pass rewrites inside a link."""+ found = []++ def stash(m):+ found.append(m.group(0))+ return f"\x00URL{len(found) - 1}\x00"++ return URL_RE.sub(stash, text), found+++def restore_urls(text, found):+ for i, url in enumerate(found):+ text = text.replace(f"\x00URL{i}\x00", url)+ return text+++def pass_invisible(text, lex):+ """Delete or space-normalise invisible characters. Returns (text, hits)."""+ hits = []+ for entry in lex["invisible"]:+ cp = _cp(entry["cp"])+ if isinstance(cp, tuple):+ pattern = "[" + re.escape(chr(cp[0])) + "-" + re.escape(chr(cp[1])) + "]"+ else:+ pattern = re.escape(chr(cp))+ n = len(re.findall(pattern, text))+ if n:+ hits.append({"name": entry["cp"] + " " + entry["name"], "count": n,+ "action": entry["action"]})+ text = re.sub(pattern, "" if entry["action"] == "delete" else " ", text)+ # Any remaining Cf (format) character is invisible by definition.+ stray = [c for c in text if unicodedata.category(c) == "Cf"]+ if stray:+ hits.append({"name": "other invisible format chars", "count": len(stray),+ "action": "delete"})+ text = "".join(c for c in text if unicodedata.category(c) != "Cf")+ return text, hits+++def pass_typographic(text, lex):+ hits = []+ for entry in lex["typographic"]:+ ch = entry["from"]+ n = text.count(ch)+ if not n:+ continue+ hits.append({"name": f"{ch} {entry['name']}", "count": n, "to": entry["to"].strip() or "(space)"})+ if ch == "—":+ # " word — word " and "word—word" both collapse to a comma + space.+ text = re.sub(r"\s*—\s*", ", ", text)+ elif ch == "–":+ text = re.sub(r"\s*–\s*(?=\d)", "-", text) # 5–10 -> 5-10+ text = re.sub(r"\s+–\s+", ", ", text) # used as em dash+ text = text.replace("–", "-")+ else:+ text = text.replace(ch, entry["to"])+ # A comma inserted before existing punctuation reads wrong.+ text = re.sub(r",\s*([,.;:!?])", r"\1", text)+ text = re.sub(r",\s*\n", "\n", text)+ return text, hits+++def _match_case(src, repl):+ if not repl:+ return repl+ if src.isupper() and len(src) > 1:+ return repl.upper()+ if src[0].isupper():+ return repl[0].upper() + repl[1:]+ return repl+++def pass_lexical(text, lex):+ """Replace slop words and phrases. Longest first so phrases win."""+ hits = []+ entries = sorted(lex["phrases"] + lex["words"],+ key=lambda e: len(e["find"]), reverse=True)+ for entry in entries:+ find = entry["find"]+ pattern = re.compile(r"\b" + re.escape(find).replace(r"\ ", r"\s+") + r"\b",+ re.IGNORECASE)+ found = pattern.findall(text)+ if not found:+ continue+ hits.append({"find": find, "replace": entry["replace"] or "(deleted)",+ "count": len(found), "family": entry["family"]})+ text = pattern.sub(lambda m: _match_case(m.group(0), entry["replace"]), text)+ # Clean up after deletions. Deleting a whole clause leaves orphaned+ # punctuation behind ("system. ." or a line that now opens on a comma),+ # and that reads worse than the slop did.+ text = re.sub(r"[ \t]{2,}", " ", text)+ text = re.sub(r"(?m)^[ \t]*(?:[,.;:]+[ \t]*)+", "", text)+ text = re.sub(r"(?m)^[ \t](?=\S)", "", text) # one space left by a deletion.+ # Deeper indents are deliberate.+ text = re.sub(r"\s+([,.;:!?])", r"\1", text)+ text = re.sub(r",\s*([,.;:!?])", r"\1", text) # an em dash became a comma,+ # then the clause after it went+ text = text.replace("...", "\x00ELL\x00") # protect real ellipses+ text = re.sub(r"\.\s*\.+", ".", text)+ text = re.sub(r"([!?])\s*\.", r"\1", text)+ text = text.replace("\x00ELL\x00", "...")+ text = re.sub(r"(?m)^[ \t]+$", "", text)+ text = re.sub(r"\n{3,}", "\n\n", text)+ # An em dash that became a comma, followed by a sentence connective, leaves+ # a splice ("is important, also, it's proof"). Promote it to a full stop.+ text = re.sub(r",\s*(also|so|still|basically|in the end)\s*,\s*",+ lambda m: ". " + m.group(1)[0].upper() + m.group(1)[1:] + ", ", text)+ return text, hits+++def scan_structures(text, lex):+ flags = []+ for s in lex["structures"]:+ try:+ pattern = re.compile(s["regex"], re.MULTILINE)+ except re.error:+ continue+ found = pattern.findall(text)+ if found:+ flags.append({"name": s["name"], "count": len(found), "fix": s["fix"]})+ # Sentence-length uniformity is structural too.+ lens = [len(s.split()) for s in SENT_RE.findall(text) if len(s.split()) > 2]+ if len(lens) >= 4:+ mean = sum(lens) / len(lens)+ var = sum((n - mean) ** 2 for n in lens) / len(lens)+ cv = (var ** 0.5) / mean if mean else 0+ if cv < 0.35:+ flags.append({+ "name": f"Uniform sentence length (variation {cv:.2f})",+ "count": len(lens),+ "fix": "Break one sentence in half. Let another run long. Machines write even.",+ })+ return flags+++def humanize(text, lex):+ text, urls = protect_urls(text)+ text, inv = pass_invisible(text, lex)+ text, typo = pass_typographic(text, lex)+ text, lexi = pass_lexical(text, lex)+ text = restore_urls(text, urls)+ return text.strip() + "\n", {+ "invisible": inv,+ "typographic": typo,+ "lexical": lexi,+ "structures": scan_structures(text, lex),+ }+++def render_report(report, out=sys.stderr):+ def head(title):+ print(f"\n{title}\n" + "-" * len(title), file=out)++ total = sum(h["count"] for h in report["invisible"]) \+ + sum(h["count"] for h in report["typographic"]) \+ + sum(h["count"] for h in report["lexical"])++ head("HUMANIZE REPORT")+ print(f"{total} machine artefacts removed, "+ f"{len(report['structures'])} structural tells flagged for rewrite", file=out)++ if report["invisible"]:+ head("1. INVISIBLE CHARACTERS")+ for h in report["invisible"]:+ print(f" {h['count']:>3}x {h['name']} -> {h['action']}", file=out)+ if report["typographic"]:+ head("2. TYPOGRAPHY")+ for h in report["typographic"]:+ print(f" {h['count']:>3}x {h['name']} -> {h['to']}", file=out)+ if report["lexical"]:+ head("3. SLOP LEXICON")+ for h in report["lexical"]:+ print(f" {h['count']:>3}x {h['find']} -> {h['replace']} [{h['family']}]", file=out)+ if report["structures"]:+ head("4. STRUCTURAL TELLS (not auto-fixed - rewrite these yourself)")+ for h in report["structures"]:+ print(f" {h['count']:>3}x {h['name']}\n {h['fix']}", file=out)+ if not any(report.values()):+ head("CLEAN")+ print(" Nothing to strip.", file=out)+ print("", file=out)+++def main():+ ap = argparse.ArgumentParser(description="Strip the machine fingerprint out of a draft.")+ ap.add_argument("input", nargs="?", default="-", help="file, or - for stdin")+ ap.add_argument("-o", "--out", help="write cleaned text here instead of stdout")+ ap.add_argument("--report", action="store_true", help="print what changed, to stderr")+ ap.add_argument("--json", action="store_true", help="emit {text, report} as JSON")+ ap.add_argument("--lexicon", default=LEX, help="path to slop.json")+ args = ap.parse_args()++ raw = sys.stdin.read() if args.input == "-" else open(args.input, encoding="utf-8").read()+ lex = load_lexicon(args.lexicon)+ clean, report = humanize(raw, lex)++ if args.json:+ print(json.dumps({"text": clean, "report": report}, indent=2, ensure_ascii=False))+ return+ if args.out:+ with open(args.out, "w", encoding="utf-8") as fh:+ fh.write(clean)+ print(f"wrote {args.out}", file=sys.stderr)+ else:+ sys.stdout.write(clean)+ if args.report:+ render_report(report)+++if __name__ == "__main__":+ main()diff --git a/skills/ig-human/slop.json b/skills/ig-human/slop.jsonnew file mode 100644index 0000000..c691191--- /dev/null+++ b/skills/ig-human/slop.json@@ -0,0 +1,1025 @@+{+ "version": "1.0",+ "note": "Lexicon used by humanize.py and detect.py. Replacements are plain-English and keep the sentence grammatical. The last block of each list is Instagram-specific: caption and voiceover slop that does not show up on other platforms. Edit freely - it is meant to be yours.",+ "invisible": [+ {+ "cp": "U+200B",+ "name": "ZERO WIDTH SPACE",+ "action": "delete"+ },+ {+ "cp": "U+200C",+ "name": "ZERO WIDTH NON-JOINER",+ "action": "delete"+ },+ {+ "cp": "U+200D",+ "name": "ZERO WIDTH JOINER",+ "action": "delete"+ },+ {+ "cp": "U+2060",+ "name": "WORD JOINER",+ "action": "delete"+ },+ {+ "cp": "U+FEFF",+ "name": "ZERO WIDTH NO-BREAK SPACE / BOM",+ "action": "delete"+ },+ {+ "cp": "U+00AD",+ "name": "SOFT HYPHEN",+ "action": "delete"+ },+ {+ "cp": "U+180E",+ "name": "MONGOLIAN VOWEL SEPARATOR",+ "action": "delete"+ },+ {+ "cp": "U+061C",+ "name": "ARABIC LETTER MARK",+ "action": "delete"+ },+ {+ "cp": "U+200E",+ "name": "LEFT-TO-RIGHT MARK",+ "action": "delete"+ },+ {+ "cp": "U+200F",+ "name": "RIGHT-TO-LEFT MARK",+ "action": "delete"+ },+ {+ "cp": "U+E0000-U+E007F",+ "name": "TAG CHARACTERS (invisible ASCII smuggling)",+ "action": "delete"+ },+ {+ "cp": "U+00A0",+ "name": "NO-BREAK SPACE",+ "action": "space"+ },+ {+ "cp": "U+202F",+ "name": "NARROW NO-BREAK SPACE",+ "action": "space"+ },+ {+ "cp": "U+2009",+ "name": "THIN SPACE",+ "action": "space"+ },+ {+ "cp": "U+2007",+ "name": "FIGURE SPACE",+ "action": "space"+ },+ {+ "cp": "U+2003",+ "name": "EM SPACE",+ "action": "space"+ },+ {+ "cp": "U+2002",+ "name": "EN SPACE",+ "action": "space"+ },+ {+ "cp": "U+2063",+ "name": "INVISIBLE SEPARATOR",+ "action": "delete"+ }+ ],+ "typographic": [+ {+ "from": "—",+ "name": "EM DASH",+ "to": ", "+ },+ {+ "from": "–",+ "name": "EN DASH",+ "to": "-"+ },+ {+ "from": "‘",+ "name": "LEFT SINGLE QUOTE",+ "to": "'"+ },+ {+ "from": "’",+ "name": "RIGHT SINGLE QUOTE",+ "to": "'"+ },+ {+ "from": "“",+ "name": "LEFT DOUBLE QUOTE",+ "to": "\""+ },+ {+ "from": "”",+ "name": "RIGHT DOUBLE QUOTE",+ "to": "\""+ },+ {+ "from": "…",+ "name": "HORIZONTAL ELLIPSIS",+ "to": "..."+ },+ {+ "from": "′",+ "name": "PRIME",+ "to": "'"+ },+ {+ "from": "·",+ "name": "MIDDLE DOT",+ "to": "-"+ },+ {+ "from": "•",+ "name": "BULLET",+ "to": "-"+ },+ {+ "from": "→",+ "name": "RIGHTWARDS ARROW",+ "to": "->"+ }+ ],+ "words": [+ {+ "find": "delve into",+ "replace": "look at",+ "family": "verbs"+ },+ {+ "find": "delve",+ "replace": "look",+ "family": "verbs"+ },+ {+ "find": "dive deep into",+ "replace": "get into",+ "family": "verbs"+ },+ {+ "find": "deep dive",+ "replace": "breakdown",+ "family": "nouns"+ },+ {+ "find": "leverage",+ "replace": "use",+ "family": "verbs"+ },+ {+ "find": "leveraging",+ "replace": "using",+ "family": "verbs"+ },+ {+ "find": "utilize",+ "replace": "use",+ "family": "verbs"+ },+ {+ "find": "utilizing",+ "replace": "using",+ "family": "verbs"+ },+ {+ "find": "harness",+ "replace": "use",+ "family": "verbs"+ },+ {+ "find": "embark on",+ "replace": "start",+ "family": "verbs"+ },+ {+ "find": "foster",+ "replace": "build",+ "family": "verbs"+ },+ {+ "find": "facilitate",+ "replace": "help",+ "family": "verbs"+ },+ {+ "find": "showcase",+ "replace": "show",+ "family": "verbs"+ },+ {+ "find": "unlock",+ "replace": "get",+ "family": "verbs"+ },+ {+ "find": "elevate",+ "replace": "improve",+ "family": "verbs"+ },+ {+ "find": "streamline",+ "replace": "simplify",+ "family": "verbs"+ },+ {+ "find": "spearhead",+ "replace": "lead",+ "family": "verbs"+ },+ {+ "find": "underscore",+ "replace": "show",+ "family": "verbs"+ },+ {+ "find": "underscores",+ "replace": "shows",+ "family": "verbs"+ },+ {+ "find": "cultivate",+ "replace": "build",+ "family": "verbs"+ },+ {+ "find": "amplify",+ "replace": "boost",+ "family": "verbs"+ },+ {+ "find": "curate",+ "replace": "pick",+ "family": "verbs"+ },+ {+ "find": "curated",+ "replace": "picked",+ "family": "verbs"+ },+ {+ "find": "empower",+ "replace": "let",+ "family": "verbs"+ },+ {+ "find": "revolutionize",+ "replace": "change",+ "family": "verbs"+ },+ {+ "find": "transformative",+ "replace": "big",+ "family": "adjectives"+ },+ {+ "find": "robust",+ "replace": "solid",+ "family": "adjectives"+ },+ {+ "find": "seamless",+ "replace": "clean",+ "family": "adjectives"+ },+ {+ "find": "seamlessly",+ "replace": "cleanly",+ "family": "adjectives"+ },+ {+ "find": "pivotal",+ "replace": "key",+ "family": "adjectives"+ },+ {+ "find": "crucial",+ "replace": "important",+ "family": "adjectives"+ },+ {+ "find": "vital",+ "replace": "important",+ "family": "adjectives"+ },+ {+ "find": "comprehensive",+ "replace": "complete",+ "family": "adjectives"+ },+ {+ "find": "cutting-edge",+ "replace": "new",+ "family": "adjectives"+ },+ {+ "find": "game-changing",+ "replace": "big",+ "family": "adjectives"+ },+ {+ "find": "game-changer",+ "replace": "big deal",+ "family": "nouns"+ },+ {+ "find": "groundbreaking",+ "replace": "new",+ "family": "adjectives"+ },+ {+ "find": "unparalleled",+ "replace": "unmatched",+ "family": "adjectives"+ },+ {+ "find": "invaluable",+ "replace": "useful",+ "family": "adjectives"+ },+ {+ "find": "meticulous",+ "replace": "careful",+ "family": "adjectives"+ },+ {+ "find": "meticulously",+ "replace": "carefully",+ "family": "adjectives"+ },+ {+ "find": "myriad of",+ "replace": "many",+ "family": "adjectives"+ },+ {+ "find": "myriad",+ "replace": "many",+ "family": "adjectives"+ },+ {+ "find": "multifaceted",+ "replace": "complicated",+ "family": "adjectives"+ },+ {+ "find": "holistic",+ "replace": "whole",+ "family": "adjectives"+ },+ {+ "find": "bespoke",+ "replace": "custom",+ "family": "adjectives"+ },+ {+ "find": "innovative",+ "replace": "new",+ "family": "adjectives"+ },+ {+ "find": "profound",+ "replace": "big",+ "family": "adjectives"+ },+ {+ "find": "remarkable",+ "replace": "notable",+ "family": "adjectives"+ },+ {+ "find": "compelling",+ "replace": "convincing",+ "family": "adjectives"+ },+ {+ "find": "tapestry",+ "replace": "mix",+ "family": "nouns"+ },+ {+ "find": "realm",+ "replace": "world",+ "family": "nouns"+ },+ {+ "find": "landscape",+ "replace": "market",+ "family": "nouns"+ },+ {+ "find": "journey",+ "replace": "process",+ "family": "nouns"+ },+ {+ "find": "testament to",+ "replace": "proof of",+ "family": "nouns"+ },+ {+ "find": "cornerstone",+ "replace": "base",+ "family": "nouns"+ },+ {+ "find": "beacon",+ "replace": "signal",+ "family": "nouns"+ },+ {+ "find": "paradigm",+ "replace": "model",+ "family": "nouns"+ },+ {+ "find": "synergy",+ "replace": "overlap",+ "family": "nouns"+ },+ {+ "find": "ecosystem",+ "replace": "system",+ "family": "nouns"+ },+ {+ "find": "treasure trove",+ "replace": "pile",+ "family": "nouns"+ },+ {+ "find": "plethora of",+ "replace": "lots of",+ "family": "nouns"+ },+ {+ "find": "plethora",+ "replace": "lots",+ "family": "nouns"+ },+ {+ "find": "arsenal",+ "replace": "set",+ "family": "nouns"+ },+ {+ "find": "north star",+ "replace": "goal",+ "family": "nouns"+ },+ {+ "find": "moreover",+ "replace": "also",+ "family": "connectives"+ },+ {+ "find": "furthermore",+ "replace": "also",+ "family": "connectives"+ },+ {+ "find": "additionally",+ "replace": "also",+ "family": "connectives"+ },+ {+ "find": "nevertheless",+ "replace": "still",+ "family": "connectives"+ },+ {+ "find": "consequently",+ "replace": "so",+ "family": "connectives"+ },+ {+ "find": "thus",+ "replace": "so",+ "family": "connectives"+ },+ {+ "find": "hence",+ "replace": "so",+ "family": "connectives"+ },+ {+ "find": "notably",+ "replace": "",+ "family": "connectives"+ },+ {+ "find": "importantly",+ "replace": "",+ "family": "connectives"+ },+ {+ "find": "ultimately",+ "replace": "in the end",+ "family": "connectives"+ },+ {+ "find": "in essence",+ "replace": "basically",+ "family": "connectives"+ },+ {+ "find": "in conclusion",+ "replace": "so",+ "family": "connectives"+ },+ {+ "find": "when it comes to",+ "replace": "with",+ "family": "connectives"+ },+ {+ "find": "in order to",+ "replace": "to",+ "family": "connectives"+ },+ {+ "find": "a wide range of",+ "replace": "many",+ "family": "connectives"+ },+ {+ "find": "it is worth noting that",+ "replace": "note that",+ "family": "connectives"+ },+ {+ "find": "supercharge",+ "replace": "speed up",+ "family": "verbs"+ },+ {+ "find": "skyrocket",+ "replace": "raise",+ "family": "verbs"+ },+ {+ "find": "unleash",+ "replace": "release",+ "family": "verbs"+ },+ {+ "find": "effortlessly",+ "replace": "easily",+ "family": "adjectives"+ },+ {+ "find": "captivating",+ "replace": "interesting",+ "family": "adjectives"+ },+ {+ "find": "stunning",+ "replace": "good",+ "family": "adjectives"+ },+ {+ "find": "breathtaking",+ "replace": "striking",+ "family": "adjectives"+ },+ {+ "find": "iconic",+ "replace": "known",+ "family": "adjectives"+ },+ {+ "find": "must-have",+ "replace": "worth having",+ "family": "adjectives"+ },+ {+ "find": "no-brainer",+ "replace": "obvious",+ "family": "nouns"+ },+ {+ "find": "hidden gem",+ "replace": "good one",+ "family": "nouns"+ },+ {+ "find": "secret sauce",+ "replace": "the actual method",+ "family": "nouns"+ },+ {+ "find": "ultimate guide",+ "replace": "guide",+ "family": "nouns"+ },+ {+ "find": "level up",+ "replace": "improve",+ "family": "verbs"+ },+ {+ "find": "hack",+ "replace": "trick",+ "family": "nouns"+ }+ ],+ "phrases": [+ {+ "find": "in today's fast-paced world",+ "replace": "right now",+ "family": "openers"+ },+ {+ "find": "in today's digital age",+ "replace": "right now",+ "family": "openers"+ },+ {+ "find": "in the ever-evolving landscape of",+ "replace": "in",+ "family": "openers"+ },+ {+ "find": "in the ever-changing world of",+ "replace": "in",+ "family": "openers"+ },+ {+ "find": "let's face it",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "here's the thing",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "picture this",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "imagine a world where",+ "replace": "imagine if",+ "family": "openers"+ },+ {+ "find": "it's no secret that",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "we've all been there",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "let that sink in",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "the choice is yours",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "food for thought",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "the future is here",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "what are your thoughts?",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "drop a comment below",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "at the end of the day",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "needle-moving",+ "replace": "useful",+ "family": "closers"+ },+ {+ "find": "move the needle",+ "replace": "make a difference",+ "family": "closers"+ },+ {+ "find": "a testament to",+ "replace": "proof of",+ "family": "nouns"+ },+ {+ "find": "had the opportunity to",+ "replace": "got to",+ "family": "connectives"+ },+ {+ "find": "i am excited to announce",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "i'm thrilled to share",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "i am humbled to",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "without further ado",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "buckle up",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "the harsh truth is",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "spoiler alert",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "read that again",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "you're welcome",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "save this for later",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "who's with me",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "stop scrolling",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "don't scroll past this",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "in this video i'm going to show you",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "in today's video",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "watch till the end",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "you won't believe",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "nobody is talking about this",+ "replace": "few people do this",+ "family": "openers"+ },+ {+ "find": "no one is talking about this",+ "replace": "few people do this",+ "family": "openers"+ },+ {+ "find": "this changed everything",+ "replace": "this worked",+ "family": "openers"+ },+ {+ "find": "this is your sign to",+ "replace": "",+ "family": "openers"+ },+ {+ "find": "little did i know",+ "replace": "",+ "family": "connectives"+ },+ {+ "find": "fast forward to today",+ "replace": "now",+ "family": "connectives"+ },+ {+ "find": "and just like that",+ "replace": "",+ "family": "connectives"+ },+ {+ "find": "the rest is history",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "run don't walk",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "trust me on this one",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "don't sleep on this",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "follow for more",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "hit follow for more",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "double tap if",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "tag someone who needs this",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "let me know in the comments",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "share this with someone who needs it",+ "replace": "",+ "family": "closers"+ },+ {+ "find": "the algorithm loves",+ "replace": "Instagram pushes",+ "family": "nouns"+ },+ {+ "find": "beat the algorithm",+ "replace": "get reach",+ "family": "nouns"+ },+ {+ "find": "go viral overnight",+ "replace": "get reach",+ "family": "nouns"+ }+ ],+ "structures": [+ {+ "id": "not-just",+ "regex": "(?i)\\bit'?s not (?:just|only) [^.!?\\n]{2,60}[,.] it'?s\\b",+ "name": "\"It's not just X, it's Y\"",+ "fix": "Say the one thing you actually mean. Delete the setup half."+ },+ {+ "id": "not-only",+ "regex": "(?i)\\bnot only\\b[^.!?\\n]{2,80}\\bbut also\\b",+ "name": "\"Not only X but also Y\"",+ "fix": "Split into two sentences, or drop the weaker half."+ },+ {+ "id": "isnt-about",+ "regex": "(?i)\\b(?:this|it) is(?:n'?t| not) about [^.!?\\n]{2,60}[.!] it'?s about\\b",+ "name": "\"It isn't about X. It's about Y.\"",+ "fix": "Lead with Y. The reversal is the tell."+ },+ {+ "id": "the-result",+ "regex": "(?i)^\\s*(?:the result|the best part|the kicker|the catch)\\?\\s*$",+ "name": "One-word rhetorical question line",+ "fix": "Answer it inline instead of staging a reveal."+ },+ {+ "id": "heres-what",+ "regex": "(?i)\\bhere'?s what (?:i|we) learned\\b",+ "name": "\"Here's what I learned\"",+ "fix": "State the lesson. Skip the announcement."+ },+ {+ "id": "triad",+ "regex": "(?i)\\b\\w+, \\w+, and \\w+\\.",+ "name": "Rule-of-three triad",+ "fix": "Two items or four. Three is the model's default rhythm."+ },+ {+ "id": "rocket",+ "regex": "[\\U0001F680\\U0001F525\\U0001F4A1\\u2728\\U0001F3AF]",+ "name": "Rocket / fire / bulb / sparkle / dart emoji",+ "fix": "One emoji max, and not one of these five."+ },+ {+ "id": "hashtag-wall",+ "regex": "(?:#\\w+[ \\t]*){5,}",+ "name": "Hashtag wall (5+)",+ "fix": "Three hashtags. LinkedIn stopped rewarding the wall."+ },+ {+ "id": "as-an-ai",+ "regex": "(?i)\\bas an ai\\b|\\bas a language model\\b",+ "name": "Model self-reference",+ "fix": "Delete the sentence."+ },+ {+ "id": "in-summary",+ "regex": "(?i)^\\s*(?:in summary|to summarize|in conclusion)\\b",+ "name": "Essay-closer opener",+ "fix": "A post does not need a conclusion paragraph."+ },+ {+ "id": "engagement-bait",+ "regex": "(?i)\\b(?:agree\\?|thoughts\\?|who else\\b|am i wrong\\?)\\s*$",+ "name": "Reflex engagement bait",+ "fix": "Ask a question only you could ask, about the specific thing above it."+ },+ {+ "id": "stop-scroll",+ "regex": "(?im)^\\s*(?:stop scrolling|don'?t scroll|wait[,.]? don'?t scroll)\\b",+ "name": "\"Stop scrolling\" opener",+ "fix": "The scroll-stop has to be the claim itself. Asking for attention is the tell that you have not earned it."+ },+ {+ "id": "in-this-video",+ "regex": "(?i)\\b(?:in (?:this|today'?s) (?:video|reel|post)|today i'?m going to show you|i'?m going to (?:show|teach) you how)\\b",+ "name": "Video preamble (\"in this video I'm going to show you\")",+ "fix": "Delete it and start at the payoff. The first two seconds decide the whole reel."+ },+ {+ "id": "emoji-bullets",+ "regex": "(?m)^\\s*[\\U0001F300-\\U0001FAFF✅➡⬅✔✨]\\s*\\S",+ "name": "Emoji bullet list",+ "fix": "Use a hyphen or a line break. Emoji bullets are the single most template-looking thing in a caption."+ },+ {+ "id": "caps-shout",+ "regex": "\\b[A-Z]{3,}\\b(?:\\s+\\b[A-Z]{3,}\\b){2,}",+ "name": "Three or more shouted words in a row",+ "fix": "Caps are a volume knob, not a highlighter. One word, at most."+ },+ {+ "id": "follow-bait",+ "regex": "(?i)\\b(?:follow for more|tag someone who|double tap if|share this if|comment below if)\\b",+ "name": "Reflex follow or tag bait",+ "fix": "Ask for the one action this post actually earns. The generic ask trains the audience to ignore every ask."+ }+ ]+}diff --git a/skills/ig-plan/SKILL.md b/skills/ig-plan/SKILL.mdnew file mode 100644index 0000000..19ee7cf--- /dev/null+++ b/skills/ig-plan/SKILL.md@@ -0,0 +1,100 @@+---+name: ig-plan+description: >-+ Build the week on Instagram - what to post, which format, when, and who to+ engage with. Use when the user says "plan my week", "what should I post",+ "content calendar", "I have nothing to post about", or wants a posting+ schedule and an engagement list.+---++# ig-plan++The control room. Everything else in this pack executes; this decides what gets+executed. Run it once a week, on the same day.++## Input++If `~/.claude/instagram/voice.md`, `swipe.md` and `log.md` exist, read them.+The swipe file is the user's own evidence from `/ig-viral` about which formulas+are landing in their niche right now, and it outranks anything in this file.+The log stops the plan repeating a theme from the last fortnight.++If they do not exist, ask for four things and write them down:++1. What the user sells, and to whom.+2. The three or four themes they want to be known for.+3. What actually happened this week: a client call, a number, a mistake, a+ thing they built, an argument they had. This is where posts come from.+4. Ten accounts worth being visible to.++## What to post++Four to five posts a week, and at least three of them Reels. Reels are the only+format on Instagram that reliably reaches people who do not follow the account.+Carousels go deep with the people who already do. Stories are daily and are+planned separately.++Mix across the week, never two of the same type back to back:++| type | share | job |+| --- | --- | --- |+| **Proof** | 1 per week | something that happened, with a number. Reel. |+| **Teach** | 1 to 2 per week | one thing the viewer can do today. Reel or carousel. |+| **Opinion** | 1 per week | a position that could lose you followers. Reel. |+| **Story** | 1 per fortnight | a scene with a cost. Reel. |+| **Offer** | 1 per fortnight | what you sell, said plainly, no apology. Carousel or stories. |++For each slot give: the theme, the specific angle from what actually happened+this week, the format, and the hook formula number from `ig-reel/hooks.json`.+Not a topic, an angle. "AI" is not a plan. "The proposal we lost because the+draft had an em dash in it" is a Reel.++## When to post++Post when the user's audience is awake and not at work. For most consumer+audiences that is early evening local time; for a business audience, early+morning.++But say this plainly: **the hour matters far less than the first two seconds.**+Instagram will keep showing a Reel for days if it performs, and will bury a+well-timed one that does not. If the user is optimising posting times before+their hooks work, they are polishing the wrong thing, and you should say so.++Anchor times to the audience's timezone, not the user's, if those differ.++## The engagement round, which is not optional++20 minutes a day, before posting, not after. Build a list of 10:++- **5 reach** - accounts with an audience the user wants, where a good comment+ gets seen. Comment early, before the thread is 200 deep.+- **3 peers** - same size, same field. This is the group that reciprocates.+- **2 buyers** - people who could actually buy. Comment for weeks before any+ DM, and never pitch in a comment.++Hand the list to `/ig-comment`.++## Output++```+WEEK OF SEP 15++MON engage only (20 min, list below)+TUE 7:30pm REEL PROOF #5 Time Collapse - 5hr proposal to 20 min+WED stories only + engage+THU 7:00pm CAROUSEL TEACH Job B caption - the 4-slide clause breakdown+FRI 7:30pm REEL OPINION #2 Negative Command - stop doing discovery calls+SAT -+SUN 6:00pm REEL STORY #21 Mid-Sentence - the refund email++STORIES every day, 3 to 5 frames, question box on Thursday.++ENGAGE (5 reach / 3 peers / 2 buyers)+ ...++Say "write Tuesday" and I will draft it.+```++Write the plan to `~/.claude/instagram/plan.md` so the other skills can read+it. Nothing is scheduled or posted anywhere. This is a plan and the user runs+it.diff --git a/skills/ig-profile/SKILL.md b/skills/ig-profile/SKILL.mdnew file mode 100644index 0000000..9f02b5b--- /dev/null+++ b/skills/ig-profile/SKILL.md@@ -0,0 +1,82 @@+---+name: ig-profile+description: >-+ Score an Instagram profile out of 100 against a 12-part rubric and rewrite+ the parts that lose points - name field, bio, link, highlights, pinned three,+ grid. Use when the user says "optimize my profile", "fix my bio", "score my+ Instagram", "why don't people follow me", or pastes their profile and asks how+ it reads.+---++# ig-profile++Almost everybody optimises the wrong thing here. The profile is not a+storefront people browse. It is a **decision screen**, arrived at from one+reel, and it gets about three seconds to answer one question: is there more of+that here, and is it for me.++## Input++Ask the user to paste or screenshot: the name field, the handle, the bio, what+the link points to, the highlight names, what is pinned, and the first nine+grid covers. A screenshot of the top of the profile plus the first two grid+rows is enough for a first pass.++Do not log into Instagram on their behalf.++## Score it++Read `rubric.json` in this folder. Twelve items, 100 points, each with what+full marks looks like and how it usually fails. Score every item, show the+table, give the total. Be honest. Most profiles land in the 30s and 40s on the+first pass and a generous score is useless.++```+PROFILE SCORE 38/100++ name field 2/12 name only, no words anyone searches+ bio first line 3/12 three nouns and a coffee emoji+ pinned three 0/10 nothing pinned+ highlights 2/8 "Random", "Life", "2023"+ grid legibility 4/8 six of nine covers are a face mid-sentence+ ...+```++## Then rewrite, in this order++Fix in descending order of points lost. Do not rewrite everything at once, the+user has to actually go and change each of these.++**1. The name field (30 characters).** The bold line under the photo, not the+handle. This is the field Instagram search matches against, and most accounts+put a name in it and nothing else. Format that works:+`{Name} | {what you do, in searched words}`. Give three options.++**2. Bio line one.** Who this is for and what changes. Not a job title, not+adjectives, not a pipe-separated list of identities. The rest of the 150+characters carries one piece of proof or one plain offer.++**3. The pinned three.** Three slots, three different jobs: the best proof, the+clearest explanation of the offer, the best introduction to the person. This is+the highest-leverage fix on the whole profile and it takes four taps. An+unpinned grid shows whatever was posted last, which is a coin flip.++**4. Highlights.** Four to six, named for the questions a buyer asks: Pricing,+Results, How it works, About. Not "Random". Delete the rest.++**5. The link.** One destination that matches what the bio just promised. Five+are allowed; two is already a menu and a menu converts worse than a door.++**6. Grid covers.** The first nine at thumbnail size. Reel covers get chosen,+not left as whatever frame one was. Four words of text on a cover makes a grid+readable in one glance.++## Output++Score table, then the rewrites as copy-ready blocks in fix-first order, each+run through `/ig-human`. Re-score at the end and show the delta honestly. If+the rewrite reaches 84 and not 98, say 84, and say what the rest needs, which+is usually a grid, a story habit and a pinned post that does not exist yet.+None of that is a rewrite.++Nothing is saved to Instagram by this skill. The user edits each field.diff --git a/skills/ig-profile/rubric.json b/skills/ig-profile/rubric.jsonnew file mode 100644index 0000000..e920392--- /dev/null+++ b/skills/ig-profile/rubric.json@@ -0,0 +1,79 @@+{+ "version": "1.0",+ "total": 100,+ "note": "Twelve items. Score each honestly - a generous score helps nobody. Most first-pass profiles land in the 30s and 40s. The weighting is deliberate: the name field, the first bio line and the pinned three are worth more than the photo, because they are what a stranger who arrived from one reel actually processes before deciding to follow.",+ "items": [+ {+ "id": "name_field",+ "points": 12,+ "full_marks": "The name field (30 characters, the bold line, not the handle) carries the name plus what they do in words people search: 'Dana Ruiz | Proposal templates'. This field is indexed by Instagram search and most accounts waste it on a name alone.",+ "common_fail": "Just a name, or a name with an emoji."+ },+ {+ "id": "bio_first_line",+ "points": 12,+ "full_marks": "Line one names who this is for and what changes for them, in their words. Not a job title, not a list of adjectives, not three emoji separated by bars.",+ "common_fail": "'Entrepreneur | Coffee lover | Dog dad'."+ },+ {+ "id": "bio_body",+ "points": 8,+ "full_marks": "The rest of the 150 characters carries one piece of proof or one specific offer, and reads as sentences rather than a pipe-separated list.",+ "common_fail": "Keyword soup, or blank space."+ },+ {+ "id": "pinned_three",+ "points": 10,+ "full_marks": "Three posts pinned to the top of the grid, doing three different jobs: the best proof, the clearest explanation of the offer, and the best introduction to the person. Not the three highest-view posts by accident.",+ "common_fail": "Nothing pinned, so the top of the grid is whatever was posted last."+ },+ {+ "id": "link",+ "points": 8,+ "full_marks": "One destination that matches what the bio just promised. Up to five links are allowed; more than two is a menu, and a menu converts worse than a door.",+ "common_fail": "A link tree with eleven options, or no link at all."+ },+ {+ "id": "highlights",+ "points": 8,+ "full_marks": "Four to six highlights named for the questions a buyer actually asks: Pricing, Results, How it works, About. Covers consistent. Nothing older than a year sitting at the front.",+ "common_fail": "'Random', 'Life', 'Faves', or 14 highlights in no order."+ },+ {+ "id": "grid_legibility",+ "points": 8,+ "full_marks": "The first nine covers are legible at thumbnail size and say what the account is about without a single tap. Reel covers are chosen deliberately, not left as frame one.",+ "common_fail": "Nine covers of a face mid-word with no text."+ },+ {+ "id": "photo",+ "points": 6,+ "full_marks": "Face fills roughly 60% of a circle that renders at about 40 pixels. Eyes visible, shot in the last two years, background not competing.",+ "common_fail": "A full-body shot, a logo for a personal brand, or a photo taken at arm's length in a dark room."+ },+ {+ "id": "handle",+ "points": 6,+ "full_marks": "Readable, sayable out loud, and the same handle as the other platforms. No stacked underscores or numbers standing in for letters.",+ "common_fail": "A handle nobody can spell after hearing it once."+ },+ {+ "id": "category_contact",+ "points": 6,+ "full_marks": "Professional account with a category that matches the offer, and contact buttons that work. Email that is checked, not the one from 2019.",+ "common_fail": "Personal account, so there are no insights and no contact button."+ },+ {+ "id": "recent_activity",+ "points": 10,+ "full_marks": "Posted in the last seven days and replied to comments on the most recent post. An account that last posted in March reads as closed.",+ "common_fail": "A five-week gap, or a wall of unanswered comments."+ },+ {+ "id": "story_presence",+ "points": 6,+ "full_marks": "A story up right now, or at least most days. It is the difference between a profile and a person.",+ "common_fail": "No ring, ever."+ }+ ]+}diff --git a/skills/ig-reel/SKILL.md b/skills/ig-reel/SKILL.mdnew file mode 100644index 0000000..43aee7c--- /dev/null+++ b/skills/ig-reel/SKILL.md@@ -0,0 +1,147 @@+---+name: ig-reel+description: >-+ Write an Instagram Reel from a raw idea - hook options off 26 formulas, the+ spoken script, the on-screen text, and a timed beat sheet - in the user's own+ voice and scored before they shoot it. Use whenever the user wants a Reel, a+ short-form video script, a hook, a voiceover, "make a reel about X", "what+ should I say in this video", or is about to record and does not have the+ first line yet.+---++# ig-reel++Turns one raw idea into a Reel that somebody finishes.++Two tools live in this folder and they both actually run. Use them. Do not+eyeball the hook and do not guess at the length.++```bash+python3 hookscore.py hooks.txt # rank your hook options+python3 hookscore.py --hook "one line" # score a single one+python3 beats.py script.txt --target 30 # timed beat sheet before you shoot+```++## Before you write++1. Read `~/.claude/instagram/voice.md` if it exists. That is the user's voice+ profile: how they talk on camera, what they never say, who they are talking+ to. If it does not exist, ask for **three of their own reels**, transcribe or+ read them, infer the voice, and write the file. A script in the wrong voice+ is unusable, because they have to say it out loud.+2. Read `hooks.json` in this folder. 26 formulas, each with a template, a filled+ example, the on-screen version, what it is for, and how it gets ruined.+ Four of them are in there because they kept turning up in real hooks, not+ because they completed a pattern.+3. If the idea is thin, do not pad it. Ask one batched question: what happened,+ to whom, and what did it cost or return. A Reel needs one specific true+ thing. Get it before writing.+4. If `~/.claude/instagram/swipe.md` exists, read it. `/ig-viral` writes that+ file, and it is the user's own evidence about which formulas are working in+ their niche right now. It beats the defaults in this file.++## The shape++A Reel is decided in the first two seconds and kept by the next five.++```+0:00 - 0:02 HOOK the claim. Spoken line and on-screen line, written+ separately. Motion in the first frame, not a static face.+0:02 - 0:07 THE STAKE why this matters to the person watching. One line.+0:07 - ... THE BODY one idea per beat, and the frame changes every beat.+LAST 3s THE PAYOFF deliver what the hook promised, then the single ask.+LAST LINE THE LOOP echo one word from the hook so the replay lands clean.+```++Length: 15 to 45 seconds is the working range. Reels run to 3 minutes and+almost nobody should use it. Under 7 seconds the loop counts inflate and+nothing else does.++## The loop++**1. Pick three hooks, not one.** Run the idea through `hooks.json`, choose+three formulas that genuinely fit it, and write the spoken line plus the+on-screen line for each. Different formulas, not three rewrites of one.++**2. Score them.** Put the three spoken lines in a file, one per line, and run+`hookscore.py`. Show the user the ranking. If the top one is under 50, you do+not have the hook yet and no amount of editing fixes that.++**3. Write the script** on the winning hook. Plain spoken language, the way the+user actually talks. Contractions. Short lines. No sentence they would have to+rehearse.++**4. Time it.** Run `beats.py script.txt --target {length}`. Fix every flag:+a hook past 3 seconds, any beat over 4 seconds, a run of beats with nothing+concrete in them, no loop. Re-run until it is clean.++**5. Humanize it.** Run the script through `/ig-human` before showing it. A+written-sounding line is obvious the moment someone says it out loud.++**6. Print the block.** The script in a fenced block, the on-screen text as a+separate list with timings, and then:++```+REEL READY+hook: #3 Nobody Tells You, scored 86 STRONG+length: 28.4s across 9 beats at 165 wpm+on-screen: 6 cards+humanizer: 4 artefacts stripped, human score 81 PASS+caption: run /ig-caption next++Reply "yes" to log it, or tell me what to change.+```++**7. Never publish.** This skill produces a script. The user shoots it and+posts it. On "yes", append to `~/.claude/instagram/log.md` with the date, the+hook formula used and the first line, so `/ig-audit` has a history later.++## On-screen text is a separate script++Write it separately, every time. It is read before it is heard.++- **Six words or fewer per card.** It is being read at arm's length by someone+ who is not listening yet.+- **The hook card is up at frame 1**, not after a beat of silence.+- **Keep it inside the safe zone.** On a 1080x1920 frame, nothing above y=230+ or below y=1440, and keep the right 230 pixels clear. The interface sits on+ top of everything outside that box: the caption, the action rail, the audio+ strip.+- **Never put the hook where the caption sits.** That is the bottom of the+ frame and it is covered.+- **Burn in captions for the body.** Most people watch muted first.++## Rules that make the difference++- **One idea per Reel.** If the script has two, you have two Reels. Say so.+- **Numbers over adjectives.** "$4,200" beats "a lot". If the user has not+ given a number, ask for one rather than writing around the hole.+- **Cut the intro.** No greeting, no "in this video", no name, no logo sting.+ The video starts at the sentence you would normally reach at second six.+- **Change the frame every beat.** A static shot for 8 seconds is where people+ leave, and `beats.py` will flag it.+- **One ask at the end.** Comment a keyword, save it, or follow. One.+- **Never fabricate.** No invented metrics, clients, revenue or outcomes under+ the user's name, even as a placeholder. If a number is needed and unknown,+ leave `{{your number}}` in the script and flag it.+- **Do not write a script around a trending audio the user cannot use.** If the+ idea needs the user's own voice, say so.++## Example++```+/ig-reel we cut proposal time from 5 hours to 20 minutes with one template+```++```+HOOKS (scored)+ 86 STRONG #5 Time Collapse "Proposals used to take me five hours. Twenty minutes now."+ on screen: 5 HOURS -> 20 MIN+ 71 STRONG #1 Cost Confession "I billed four hours a week for formatting. For two years."+ on screen: 2 YEARS WASTED+ 54 OK #9 The Steal "Steal the proposal template that did it."+ on screen: STEAL THIS++Shooting #5: the ratio is believable, it reads in one glance on screen,+and the number is yours.+```diff --git a/skills/ig-reel/beats.py b/skills/ig-reel/beats.pynew file mode 100755index 0000000..7f2db6a--- /dev/null+++ b/skills/ig-reel/beats.py@@ -0,0 +1,215 @@+#!/usr/bin/env python3+"""+beats.py - turn a Reel script into a timed beat sheet before you record it.++Estimates how long each line takes to say, stacks them into timecodes, and+flags the four things that kill a Reel in the edit: a hook that runs past the+three-second mark, a beat long enough for the viewer to leave, a run of lines+with nothing concrete in them, and a total length that does not match what you+said you were making.++The timings are an estimate from word count at a words-per-minute rate. They+are close enough to plan an edit and not a substitute for recording it. Set+your own rate with --wpm once you have timed yourself reading a script out+loud: most people land between 150 and 200, and the default here is 165.++Usage+ python3 beats.py script.txt+ python3 beats.py script.txt --target 30+ python3 beats.py script.txt --wpm 185 --target 45+ pbpaste | python3 beats.py -+ python3 beats.py script.txt --json+"""++import argparse+import json+import re+import sys++WORD_RE = re.compile(r"[A-Za-z0-9$%'’-]+")+SENT_RE = re.compile(r"[^.!?]+[.!?]*")+CONCRETE_RE = re.compile(r"\$\s?\d|\b\d[\d,.]*\b|(?<!^)\b[A-Z][a-z]{2,}\b", re.MULTILINE)+STOPWORDS = {+ "the", "a", "an", "and", "or", "but", "if", "of", "to", "in", "on", "for",+ "with", "that", "this", "it", "is", "are", "was", "were", "be", "been",+ "you", "your", "i", "my", "me", "we", "our", "they", "them", "he", "she",+ "so", "just", "not", "no", "do", "did", "does", "have", "has", "had",+ "will", "can", "at", "as", "by", "from", "out", "up", "off", "one", "all",+}++HOOK_WINDOW = 3.0 # seconds. Past this, the thumb has already decided.+MAX_BEAT = 4.0 # seconds on one idea with no change on screen.+ABSTRACT_RUN = 3 # beats in a row with nothing checkable in them.+++def words(text):+ # "$18,000" is one word when it is spoken, so it is one word here too.+ return WORD_RE.findall(re.sub(r"(?<=\d),(?=\d)", "", text))+++def pretty(token):+ """Put the thousands separator back for display."""+ return re.sub(r"(\d)(?=(\d{3})+$)", r"\1,", token)+++def tc(seconds):+ m, s = divmod(seconds, 60)+ return f"{int(m)}:{s:04.1f}"+++def split_beats(raw, wps):+ """One line is one beat, unless a line is too long to be one."""+ beats = []+ for line in [l.strip() for l in raw.splitlines()]:+ if not line:+ continue+ if len(words(line)) / wps <= MAX_BEAT * 1.5:+ beats.append(line)+ continue+ # Long paragraph: break it at sentence ends so the timings mean+ # something, and let the report say it was split.+ parts = [p.strip() for p in SENT_RE.findall(line) if p.strip()]+ buf = ""+ for part in parts:+ candidate = (buf + " " + part).strip()+ if buf and len(words(candidate)) / wps > MAX_BEAT:+ beats.append(buf)+ buf = part+ else:+ buf = candidate+ if buf:+ beats.append(buf)+ return beats+++def analyse(raw, wpm=165, target=None):+ wps = wpm / 60.0+ beats = split_beats(raw, wps)+ if not beats:+ return None++ rows, clock = [], 0.0+ for i, text in enumerate(beats):+ n = len(words(text))+ dur = n / wps+ rows.append({+ "n": i + 1,+ "start": round(clock, 2),+ "dur": round(dur, 2),+ "words": n,+ "text": text,+ "concrete": len(CONCRETE_RE.findall(text)),+ "label": "",+ "flags": [],+ })+ clock += dur+ total = clock++ # Label the structural positions a Reel is actually built around.+ for r in rows:+ if r["n"] == 1 or r["start"] + r["dur"] <= HOOK_WINDOW:+ r["label"] = "HOOK"+ rows[-1]["label"] = "CTA" if rows[-1]["label"] != "HOOK" else "HOOK/CTA"+ half = total / 2+ for r in rows:+ if not r["label"] and r["start"] <= half < r["start"] + r["dur"]:+ r["label"] = "MID"++ notes = []+ if rows[0]["dur"] > HOOK_WINDOW:+ rows[0]["flags"].append(f"hook runs {rows[0]['dur']:.1f}s, past the {HOOK_WINDOW:.0f}s mark")+ notes.append(f"Beat 1 takes {rows[0]['dur']:.1f}s to say. Cut it to "+ f"{int(HOOK_WINDOW * wps)} words or fewer, or the hook lands after "+ "the decision has been made.")+ if rows[0]["concrete"] == 0:+ notes.append("Beat 1 has no number and no name in it. Hooks without something "+ "checkable are the ones that get scrolled.")++ for r in rows:+ if r["dur"] > MAX_BEAT:+ r["flags"].append(f"{r['dur']:.1f}s on one beat")+ long_beats = [r["n"] for r in rows if r["dur"] > MAX_BEAT]+ if long_beats:+ notes.append(f"Beat(s) {', '.join(map(str, long_beats))} run past {MAX_BEAT:.0f}s. "+ "Either split the line or change what is on screen inside it. "+ "A static frame is where people leave.")++ run, start = 0, None+ for r in rows:+ if r["concrete"] == 0:+ run += 1+ start = start if start is not None else r["n"]+ if run == ABSTRACT_RUN:+ notes.append(f"Beats {start}-{r['n']} have nothing concrete in them. "+ "Put a number, a name or a price in one of them.")+ else:+ run, start = 0, None++ # Does the last line hand you back to the first one?+ first = {w.lower() for w in words(rows[0]["text"]) if w.lower() not in STOPWORDS}+ last = {w.lower() for w in words(rows[-1]["text"]) if w.lower() not in STOPWORDS}+ loop = sorted(pretty(w) for w in first & last)+ if loop:+ notes.append(f"Loops: the last beat repeats \"{', '.join(loop[:3])}\" from the hook. "+ "Second watches are free reach.")+ else:+ notes.append("No loop. The last beat shares no word with the hook, so the video "+ "ends flat. Echoing one word from beat 1 is the cheapest replay you get.")++ if target:+ delta = total - target+ if abs(delta) <= target * 0.1:+ notes.append(f"Length is on target ({total:.1f}s against {target}s).")+ elif delta > 0:+ notes.append(f"{delta:.1f}s over target. Cut about {int(delta * wps)} words.")+ else:+ notes.append(f"{-delta:.1f}s under target. Either add {int(-delta * wps)} words "+ "or shoot it short. Short is usually right.")++ return {+ "wpm": wpm, "target": target,+ "total_seconds": round(total, 2),+ "total_words": sum(r["words"] for r in rows),+ "beats": rows,+ "notes": notes,+ }+++def render(a, out=sys.stdout):+ head = (f"BEAT SHEET · {a['total_words']} words · ~{a['total_seconds']:.1f}s "+ f"at {a['wpm']} wpm" + (f" · target {a['target']}s" if a["target"] else ""))+ print("\n" + head, file=out)+ print("=" * max(len(head), 72), file=out)+ for r in a["beats"]:+ label = f"{r['label']:<8}" if r["label"] else " " * 8+ print(f" {tc(r['start'])} {r['dur']:4.1f}s {label}{r['text']}", file=out)+ for f in r["flags"]:+ print(f" {'':>6} {'':>5} {'':<8}^ {f}", file=out)+ print("-" * max(len(head), 72), file=out)+ for n in a["notes"]:+ print(f" - {n}", file=out)+ print("", file=out)+++def main():+ ap = argparse.ArgumentParser(description="Time a Reel script into a beat sheet.")+ ap.add_argument("input", nargs="?", default="-", help="script file, or - for stdin")+ ap.add_argument("--wpm", type=float, default=165, help="speaking rate (default 165)")+ ap.add_argument("--target", type=float, help="target length in seconds")+ ap.add_argument("--json", action="store_true")+ args = ap.parse_args()++ raw = sys.stdin.read() if args.input == "-" else open(args.input, encoding="utf-8").read()+ a = analyse(raw, wpm=args.wpm, target=args.target)+ if not a:+ print("empty script", file=sys.stderr)+ sys.exit(2)+ if args.json:+ print(json.dumps(a, indent=2, ensure_ascii=False))+ else:+ render(a)+ sys.exit(0)+++if __name__ == "__main__":+ main()diff --git a/skills/ig-reel/hooks.json b/skills/ig-reel/hooks.jsonnew file mode 100644index 0000000..9228840--- /dev/null+++ b/skills/ig-reel/hooks.json@@ -0,0 +1,302 @@+{+ "version": "1.0",+ "note": "26 hook formulas for Reels. A Reel has two hooks that fire at the same time and they are not the same sentence: the first thing you say, and the first thing on screen. The spoken hook has about two seconds. The on-screen hook has about one, because it is read before it is heard. Every formula here carries a template, a filled example, the on-screen version, what it is for, and the way it usually gets ruined. Each formula also carries a `match` regex, so the same vocabulary can name a hook found in the wild and not only write a new one. Walk them in `classify_order`, which is most specific first, case-insensitive.",+ "rules": [+ "Write the spoken line and the on-screen line separately. On screen is the shorter, blunter one, six words or fewer, no punctuation it does not need.",+ "No setup. The video starts at the sentence you would normally reach at second six.",+ "Say the number. 'A lot' is not a number and neither is 'so much time'.",+ "The first frame is a hook too. A static talking head at 0:00 with no motion and no text is three hooks wasted.",+ "If the hook would work for anyone else in your niche, it is not your hook. Put the thing only you can say in it.",+ "A hook promises something. Deliver it before the halfway mark or the retention you bought gets handed back."+ ],+ "hooks": [+ {+ "id": 1,+ "name": "Cost Confession",+ "template": "{Specific amount} is what {one mistake} cost me.",+ "example": "$18,000 is what one missing clause cost me.",+ "on_screen": "$18,000 MISTAKE",+ "best_for": "Trust, fast. People finish the videos where you are the one who looks bad.",+ "trap": "A fake cost. 'It cost me my peace of mind' is not a number and everybody can hear that.",+ "match": "\\$\\s?\\d[\\d,]*\\s+(?:is|was) what\\b|\\bcost (?:me|us|him|her|them)\\b|\\blost\\b[^.!?]{0,20}\\$\\s?\\d"+ },+ {+ "id": 2,+ "name": "Negative Command",+ "template": "Stop {common action}. Do {alternative} instead.",+ "example": "Stop posting three times a day. Post twice and reply to every comment for an hour.",+ "on_screen": "STOP POSTING DAILY",+ "best_for": "Saves and arguments. The imperative gets attention that a statement does not.",+ "trap": "Telling people to stop doing something nobody does. The habit has to be one the viewer recognises in themselves.",+ "match": "^\\s*(?:stop|quit|never|don'?t|dont|please)\\b[^.!?]{0,30}\\b(?:do|be|make|buy|use|start|say|post|send|take|charge)?\\b|\\b(?:do not|don'?t|dont|never) (?:do|be|make|buy|use|start|say|post|take)\\b|\\bquit your\\b"+ },+ {+ "id": 3,+ "name": "Nobody Tells You",+ "template": "Nobody tells you that {uncomfortable truth about the thing they want}.",+ "example": "Nobody tells you that your first 30 reels are supposed to flop.",+ "on_screen": "YOUR FIRST 30 WILL FLOP",+ "best_for": "New audiences. It positions you as the person who says the quiet part.",+ "trap": "Picking a truth everybody already says. If the comments are agreeing before you finish, it was not a secret.",+ "match": "\\b(?:nobody|no one|nobody ever)\\s+(?:ever\\s+)?(?:tells|told|talks|talked|says|said|mentions|teaches)\\b|\\bwhat (?:nobody|no one) (?:tells|says)\\b"+ },+ {+ "id": 4,+ "name": "The Replacement",+ "template": "{This thing} replaced {expensive thing} for {price}.",+ "example": "This $12 tool replaced the editor I was paying $2,000 a month.",+ "on_screen": "$2,000 -> $12",+ "best_for": "Demos and tool videos. The price gap does the work.",+ "trap": "Overstating the replacement. If it replaced 60% of the job, say 60%, or the comments will say it for you.",+ "match": "\\breplaced?\\b[^.!?]*\\$\\s?\\d|\\$\\s?\\d[^.!?]*\\breplaced?\\b|\\binstead of (?:paying|hiring)\\b"+ },+ {+ "id": 5,+ "name": "Time Collapse",+ "template": "This used to take me {long time}. It now takes {short time}.",+ "example": "Proposals used to take me five hours. They take twenty minutes now.",+ "on_screen": "5 HOURS -> 20 MIN",+ "best_for": "Process videos where the payoff is speed. Reads instantly on screen.",+ "trap": "A ratio nobody believes. 40 hours to 4 seconds gets treated as a lie even when it is true.",+ "match": "\\bused to take\\b|\\bnow (?:it )?(?:only )?takes?\\b|\\btakes? (?:me )?\\d+\\s*(?:sec|second|min|minute|hour|hr)"+ },+ {+ "id": 6,+ "name": "The Receipt",+ "template": "I {did thing} for {N days}. Here are the actual numbers.",+ "example": "I posted one reel a day for 60 days. Here is what it did to my DMs.",+ "on_screen": "60 DAYS. REAL NUMBERS.",+ "best_for": "Experiments. Pairs with a screen recording of the real dashboard, which is the whole value.",+ "trap": "Not showing the screen. A numbers video with no screen recording is a numbers claim.",+ "match": "\\bi\\s+\\w+(?:ed)?\\s+[^.!?]{0,30}\\bfor\\s+\\d+\\s+(?:days?|weeks?|months?|years?)\\b|\\bhere (?:are|is) (?:the|my)\\b[^.!?]*\\bnumbers\\b|\\bwe(?:'ll| will)? do \\$\\s?\\d"+ },+ {+ "id": 7,+ "name": "Wrong Way, Right Way",+ "template": "You are doing {thing} wrong, and it is not your fault. {The fix}.",+ "example": "You are writing captions wrong, and it is not your fault. Instagram hides everything after line one.",+ "on_screen": "YOUR CAPTIONS ARE CUT",+ "best_for": "Teaching. The 'not your fault' half stops it reading as an insult, which is what kills this one.",+ "trap": "Skipping the absolution. 'You are doing it wrong' on its own makes people leave rather than learn.",+ "match": "\\b(?:big(?:gest)?|common|the) mistake\\b|\\bmistake (?:that|people|i)\\b|\\byou'?(?:re| are) doing\\b[^.!?]*\\bwrong\\b|\\bdoing (?:it|this) wrong\\b"+ },+ {+ "id": 8,+ "name": "Insider Leak",+ "template": "I spent {N years} {inside the thing}. Here is what we never said out loud.",+ "example": "I spent six years selling agency retainers. Here is what we never put in the proposal.",+ "on_screen": "6 YEARS INSIDE",+ "best_for": "Authority without a credential slide. Works only if the years are real.",+ "trap": "Promising a secret and delivering the brochure. The comments are merciless about this one.",+ "match": "\\bi (?:spent|worked|ran|was|have been)\\b[^.!?]*\\b\\d+\\s*\\+?\\s*years?\\b|\\bwe never (?:told|said|showed)\\b|\\bnobody (?:puts|tells you about)\\b|\\bi (?:sell|sold|run)\\b[^.!?]*\\$\\s?\\d"+ },+ {+ "id": 9,+ "name": "The Steal",+ "template": "Steal this {artifact}. It took me {time} to get right.",+ "example": "Steal this four-line follow-up. It took me two years and a lot of dead leads.",+ "on_screen": "STEAL THIS",+ "best_for": "Saves and sends, which are the two metrics that move reach the most.",+ "trap": "The artifact not being on screen. If they cannot screenshot it, there is nothing to steal.",+ "match": "^\\s*steal\\b|\\bsteal (?:this|these|my)\\b|^\\s*(?:here'?s|this is) (?:the|my) (?:exact|literal)\\b"+ },+ {+ "id": 10,+ "name": "If This, Then Watch",+ "template": "If you {specific situation}, this {short time} fixes it.",+ "example": "If your reels get views and no followers, the next 40 seconds fix it.",+ "on_screen": "VIEWS BUT NO FOLLOWERS?",+ "best_for": "Qualifying hard. Fewer people stay, and the ones who do are the ones who buy.",+ "trap": "A situation so broad it qualifies nobody. 'If you want to grow' is not a situation.",+ "match": "^\\s*if (?:you|i|we|your|my|they)\\b"+ },+ {+ "id": 11,+ "name": "Numbered With A Favourite",+ "template": "{N} {things} that {outcome}. Number {k} is the one nobody uses.",+ "example": "Five caption edits that double saves. Number four is the one nobody does.",+ "on_screen": "5 EDITS. #4 IS THE ONE.",+ "best_for": "Retention through the middle: naming a favourite gives people a reason to stay past three.",+ "trap": "N above seven. Nobody believes you have nine good ones, and you do not.",+ "match": "^\\s*(?:here are\\s+)?\\d+\\s+\\w+|\\bnumber \\d+\\b|\\b(?:three|four|five|seven|ten)\\s+\\w+\\s+(?:every|that|you)\\b"+ },+ {+ "id": 12,+ "name": "The Objection",+ "template": "\"{Objection they actually say}.\" Fine. Here is the version that works anyway.",+ "example": "\"I don't want to be on camera.\" Fine. Here is the faceless version that still sells.",+ "on_screen": "\"I HATE BEING ON CAMERA\"",+ "best_for": "Selling to the people who already said no once.",+ "trap": "Inventing the objection. Pull it verbatim from a DM or a comment, including the bad grammar.",+ "match": "^\\s*[\\\"“'][^\\\"”']{5,120}[\\\"”'][,.]?\\s*(?:fine|ok|okay|sure|right|here)"+ },+ {+ "id": 13,+ "name": "Before And After, On Screen",+ "template": "{Show the old thing}. {Show the new thing}. {One sentence on the lever}.",+ "example": "This was my profile in March. This is it now. I changed the name field, nothing else.",+ "on_screen": "MARCH / NOW",+ "best_for": "Anything visual. The cut between the two frames is the hook, the words are secondary.",+ "trap": "Three levers. Name one thing that changed or the transformation stops being believable.",+ "match": "\\b(?:this|that) was\\b[^.!?]*[.!?]\\s*(?:this|that) is\\b|\\bbefore\\b[^.!?]*\\bafter\\b|\\bi (?:look|looked) back at\\b"+ },+ {+ "id": 14,+ "name": "The Callout",+ "template": "{Specific group}, this is the one you have been ignoring.",+ "example": "Photographers charging under $2,000: this is the pricing page you have been avoiding.",+ "on_screen": "PHOTOGRAPHERS UNDER $2K",+ "best_for": "Cutting a broad audience down to the one that converts. Send rate goes up because people tag each other.",+ "trap": "A group so large it is not a callout. 'Entrepreneurs' is not a group.",+ "match": "^\\s*(?:every|all|any)\\s+\\w+|^\\s*[a-z][\\w ]{2,28}(?:ers|ists|ors|ants)\\b\\s*[,:]|^\\s*for (?:viewers|people|anyone|those|everyone)\\b|^\\s*(?:attention|listen up)\\b"+ },+ {+ "id": 15,+ "name": "The Flop Record",+ "template": "My first {N} {attempts} did nothing. Here is what changed on {N+1}.",+ "example": "My first 47 reels averaged 300 views. Number 48 did 400,000. One thing was different.",+ "on_screen": "47 FLOPS, THEN THIS",+ "best_for": "People at the start, which is most of the audience. High comment rate.",+ "trap": "Making the change sound like luck. If the answer is 'I got lucky', there is no video.",+ "match": "\\bmy first\\s+\\d+\\b|\\bfirst\\s+\\d+\\s+(?:reels?|videos?|posts?|clients?|months?)\\b"+ },+ {+ "id": 16,+ "name": "The Verbatim Question",+ "template": "\"{Question exactly as it was asked}\" - I get this every week.",+ "example": "\"How do I post consistently without hating it?\" I get this one every week.",+ "on_screen": "ASKED EVERY WEEK",+ "best_for": "Search. A question typed the way people type it is what Instagram search is matching against.",+ "trap": "Tidying the question up. The value is that it is in their words, typos and all.",+ "match": "^\\s*[\\\"“']?(?:how|what|what'?s|why|when|where|who|which|can|should|do|does|did|is|are|have you|would you)\\b[^?]{3,110}\\?"+ },+ {+ "id": 17,+ "name": "Head To Head",+ "template": "{A} versus {B}. I ran both for {time} and one of them was not close.",+ "example": "Carousels versus reels. I ran both for 90 days and it was not close.",+ "on_screen": "CAROUSELS vs REELS",+ "best_for": "Comments. People arrive already holding an opinion, which is the point.",+ "trap": "Refusing to pick. A comparison with a diplomatic ending is a video with no ending.",+ "match": "\\b(?:vs\\.?|versus)\\b|\\bdifferences? between\\b|\\b(?:a|the) or (?:b|the)\\b"+ },+ {+ "id": 18,+ "name": "Cold Open Demo",+ "template": "{Start mid-action, already doing the thing.} Watch what this does.",+ "example": "Watch what happens when I paste a competitor's caption into this.",+ "on_screen": "WATCH THIS",+ "best_for": "Screen recordings and anything with a visible result. No setup at all, the hand is already moving.",+ "trap": "A result that takes twelve seconds to arrive. If the payoff is slow, cut to it and show the wait afterwards.",+ "match": "^\\s*watch (?:what|this|me)\\b|^\\s*(?:let me|lemme) show you\\b|^\\s*repeat after me\\b"+ },+ {+ "id": 19,+ "name": "The Deadline",+ "template": "{Thing} changes on {date}. Do {action} before then.",+ "example": "Your top nine grid crops change the second you post a reel. Fix the covers first.",+ "on_screen": "BEFORE YOU POST AGAIN",+ "best_for": "Urgency that is real. Platform changes, seasonal windows, policy updates.",+ "trap": "Manufactured urgency. One fake deadline and every future one is discounted.",+ "match": "\\bbefore (?:you|it|they|the)\\b[^.!?]*\\b(?:change|changes|end|ends|close|closes|expires|goes)\\b|\\bchanges on\\b|\\bby 20\\d\\d\\b"+ },+ {+ "id": 20,+ "name": "Permission",+ "template": "You do not need {the thing everyone says you need}.",+ "example": "You do not need a niche. You need one person you can name.",+ "on_screen": "YOU DON'T NEED A NICHE",+ "best_for": "Relief. Very high save rate, because it removes a blocker rather than adding a task.",+ "trap": "Removing the blocker and putting nothing in its place. The second half is the whole video.",+ "match": "\\byou (?:do not|don'?t|dont) need\\b|\\bstop (?:trying to|worrying about)\\b"+ },+ {+ "id": 21,+ "name": "Mid-Sentence Start",+ "template": "{...and that is when {the turn}.}",+ "example": "...and that is when the client asked for the money back. Three days after approving it.",+ "on_screen": "HE ASKED FOR A REFUND",+ "best_for": "Stories. Starting mid-scene makes the viewer feel they arrived late, which is a reason to stay.",+ "trap": "Never going back to fill in the gap. Deliver the setup by second eight or it reads as a mistake.",+ "match": "^\\s*(?:\\.\\.\\.|…)|^\\s*(?:and (?:that'?s|that is|then) when|so (?:he|she|they) (?:said|asked))\\b|^\\s*(?:uh|um)\\b"+ },+ {+ "id": 22,+ "name": "Contrarian Flip",+ "template": "{Well-known saying, inverted.}",+ "example": "Nice guys finish first.",+ "on_screen": "NICE GUYS FINISH FIRST",+ "best_for": "Comments. The viewer has to stop and check whether they misheard you.",+ "trap": "Flipping a saying nobody says. The original has to be a reflex, or the inversion is just a sentence.",+ "match": "^\\s*[A-Za-z][\\w' ]{2,34}\\b(?:finish|finishes|win|wins|lose|loses|beats?|is|are)\\s+(?:first|last|dead|wrong|right|better|overrated|underrated)\\b"+ },+ {+ "id": 23,+ "name": "The Statistic",+ "template": "{N}% of {group} {surprising fact}.",+ "example": "33% of high school graduates never read another book.",+ "on_screen": "33% NEVER READ AGAIN",+ "best_for": "Sends. A number a person can repeat at dinner gets sent to somebody.",+ "trap": "A statistic you cannot source. Say where it came from in the video or do not use it.",+ "match": "^\\s*\\d[\\d,.]*\\s?%|\\b\\d[\\d,.]*\\s?%\\s+of\\b"+ },+ {+ "id": 24,+ "name": "The Reveal",+ "template": "This is the new {thing}.",+ "example": "This is the new Sony point and shoot, and it fixes the one thing I hated.",+ "on_screen": "THE NEW ONE",+ "best_for": "Anything physical or visual. The object is the hook and the words are captions on it.",+ "trap": "Holding the thing up without saying what it changes. A reveal with no stake is an advert.",+ "match": "^\\s*(?:so,?\\s+)?(?:this|these|here) (?:is|are)\\s+(?:the\\s+)?(?:new|my new)\\b|^\\s*(?:so,?\\s+)?this (?:new|tiny|little)\\b|^\\s*this \\w+ has (?:the|a)\\b"+ },+ {+ "id": 25,+ "name": "Someone Else's Result",+ "template": "There was one {person} who {outcome} in {time}.",+ "example": "There was one creator who grew a million subscribers in a single month.",+ "on_screen": "1M SUBS IN ONE MONTH",+ "best_for": "Proof when the user does not have their own number yet. Third-person is allowed if it is true.",+ "trap": "No name and no link. An anonymous miracle is a rumour.",+ "match": "\\bthere (?:was|is) (?:one|a|this)\\b|\\b(?:one|a) (?:guy|girl|creator|student|founder|kid|client|friend) (?:i know |who |that )(?:\\w+ed|grew|made|built|went|took|got|hit)\\b|\\bwe had a new\\b"+ },+ {+ "id": 26,+ "name": "The Superlative",+ "template": "The {fastest / biggest / only} {thing} is {the answer}.",+ "example": "The fastest way to get confident is to build evidence you cannot argue with.",+ "on_screen": "THE FASTEST WAY",+ "best_for": "One-claim videos with no story attached. It is the most common shape in the wild and the easiest to write badly.",+ "trap": "A superlative with a soft answer. If the second half is 'consistency', you have said nothing and the comments will tell you.",+ "match": "^\\s*(?:the\\s+)?(?:fastest|quickest|best|worst|biggest|greatest|easiest|hardest|only|number one|#1|most important)\\s+\\w+|\\bthe (?:fastest|best|worst|biggest|greatest|only) way to\\b"+ }+ ],+ "classify_order": [+ 1,+ 23,+ 5,+ 4,+ 3,+ 15,+ 20,+ 7,+ 9,+ 26,+ 25,+ 24,+ 18,+ 17,+ 8,+ 6,+ 16,+ 12,+ 10,+ 2,+ 13,+ 19,+ 21,+ 22,+ 11,+ 14+ ]+}diff --git a/skills/ig-reel/hookscore.py b/skills/ig-reel/hookscore.pynew file mode 100755index 0000000..c5299c5--- /dev/null+++ b/skills/ig-reel/hookscore.py@@ -0,0 +1,313 @@+#!/usr/bin/env python3+"""+hookscore.py - score the first line of a Reel on the five things strong hooks+have in common, and rank a batch of them against each other.++What this is: five local heuristics, computed on your machine from the text+alone. They measure properties that hooks which hold attention tend to share -+a length you can say in under three seconds, a concrete marker, something at stake,+the payload at the front rather than the back, and a viewer to aim it at.++What this is NOT: a view predictor. It was tested against 74 real short-form+hooks, transcribed from the first three seconds of the top eight and bottom+eight performers on five channels. Separating a real hook from a deliberately+bad one it does well: AUC 0.83, and 9 of 10 written-to-be-bad hooks scored+below the real median. Separating a good creator's hits from that same+creator's misses it barely does at all: AUC 0.56, where 0.50 is a coin flip.++So use it for what it measured well. It catches greetings, preambles, hooks+with nothing concrete in them and hooks that take five seconds to say. It will+not tell you which of two decent hooks will travel, and nothing that reads text+can, because that is decided by your face, your edit, your audio and who+Instagram shows it to. Trust the retention graph over this script.++Each check returns 0 to 100. Higher is better.++Usage+ python3 hookscore.py hooks.txt # one hook per line, ranked+ python3 hookscore.py --hook "I lost $18,000 on one missing contract."+ pbpaste | python3 hookscore.py -+ python3 hookscore.py hooks.txt --json+"""++import argparse+import json+import re+import statistics+import sys++WORD_RE = re.compile(r"[A-Za-z0-9$%'’-]+")+NUMBER_RE = re.compile(+ r"\$\s?\d[\d,]*(?:\.\d+)?" # money, whole+ r"|\b\d[\d,]*(?:\.\d+)?\s?" # a figure, with or+ r"(?:%|k\b|x\b|hrs?\b|hours?\b|mins?\b|minutes?\b" # without a unit+ r"|days?\b|weeks?\b|months?\b|years?\b)?",+ re.IGNORECASE)+PROPER_RE = re.compile(r"(?<!^)\b[A-Z][a-z]{2,}\b")+HASHTAG_RE = re.compile(r"(?:^|\s)#\w+")+EMOJI_RE = re.compile(r"[\U0001F300-\U0001FAFF☀-➿]")++# Spoken hooks say their numbers out loud. "Zero dollars" and "twenty grand"+# are as concrete as "$0" and "$20,000", and counting only digits missed them.+# "one" and "first" are deliberately absent: they are filler far more often+# than they are a quantity.+SPOKEN_NUMBERS = {+ "zero", "two", "three", "four", "five", "six", "seven", "eight", "nine",+ "ten", "eleven", "twelve", "fifteen", "twenty", "thirty", "forty", "fifty",+ "sixty", "seventy", "eighty", "ninety", "hundred", "thousand", "million",+ "billion", "dozen", "half", "twice", "triple",+}+MONEY_WORDS = {+ "dollars", "dollar", "bucks", "grand", "percent", "cents",+ "millionaire", "billionaire", "revenue", "profit", "salary", "rent",+}++# Words that put something on the line. A hook with none of these is a+# statement; a hook with one is a reason to keep watching.+STAKES = {+ "stop", "never", "wrong", "mistake", "mistakes", "lost", "lose", "losing",+ "cost", "costs", "broke", "broken", "failed", "failure", "fail", "nobody",+ "no", "not", "don't", "dont", "doesn't", "didn't", "can't", "won't",+ "quit", "quitting", "fired", "deleted", "delete", "killed", "kills", "kill",+ "replaced", "replaces", "cut", "beat", "free", "paid", "charged", "hired",+ "saved", "first",+ "banned", "illegal", "worst", "hate", "hated", "wasted", "waste", "scam",+ "lie", "lied", "lying", "truth", "secret", "hidden", "stole", "stolen",+ "before", "until", "instead", "but", "except", "unless", "problem",+ "risk", "danger", "warning", "regret", "wish", "should", "shouldn't",+ "still", "already", "only", "without", "versus", "vs", "actually",+}++# Openers that spend the first second saying nothing.+WEAK_OPENERS = [+ "so", "ok", "okay", "hey", "hi", "hello", "guys", "yo", "alright",+ "welcome", "today", "basically", "honestly", "look", "listen", "um",+ "just", "let", "lets", "let's", "i wanted", "i want", "one of",+ "have you", "did you", "do you", "are you", "in this", "in today",+ "the thing", "a lot", "there is", "there are", "this is", "it is",+ "as a", "when it", "if you've", "you know",+]++# Imperatives that earn the front position.+IMPERATIVES = {+ "stop", "steal", "copy", "delete", "try", "watch", "read", "save",+ "use", "build", "make", "write", "send", "take", "start", "quit",+ "never", "always", "don't", "dont", "do", "put", "run", "check",+}++DEALBREAKERS = [+ (re.compile(r"(?i)^\s*(?:stop scrolling|don'?t scroll)"),+ "Opens with \"stop scrolling\". Asking for attention proves you have not earned it."),+ (re.compile(r"(?i)\b(?:in (?:this|today'?s) (?:video|reel)|i'?m going to show you|i'?ll show you how)\b"),+ "Video preamble. Delete it and open on the payoff."),+ (re.compile(r"(?i)^\s*(?:hey |hi |what'?s up |welcome )"),+ "Greeting. Nobody came to the feed to be greeted."),+ (HASHTAG_RE,+ "Hashtag in the hook. Hashtags belong at the bottom of the caption, if anywhere."),+ (EMOJI_RE,+ "Emoji in the hook. On-screen text at hook size has room for words or for an emoji, not both."),+]+++def clamp(n):+ return max(0.0, min(100.0, n))+++def words(text):+ # "$18,000" is one word when it is spoken, so it is one word here too.+ return WORD_RE.findall(re.sub(r"(?<=\d),(?=\d)", "", text))+++def check_length(text):+ """A hook has to land before the thumb moves. Roughly two seconds."""+ w = words(text)+ n = len(w)+ secs = n / 2.75 # ~165 words per minute, spoken+ chars = len(text.strip())+ if 5 <= n <= 12:+ score = 100.0+ elif n < 5:+ score = clamp(100 - (5 - n) * 20)+ else:+ score = clamp(100 - (n - 12) * 11)+ if chars > 60: # two lines of big on-screen text+ score -= 12+ return clamp(score), f"{n} words, {chars} chars, ~{secs:.1f}s spoken (want 5-12 words)"+++def check_specificity(text):+ """One concrete thing beats three abstract ones."""+ nums = [n.strip() for n in NUMBER_RE.findall(text) if n.strip()]+ propers = set(PROPER_RE.findall(text))+ low = [w.lower().strip("'’") for w in words(text)]+ spoken = [w for w in low if w in SPOKEN_NUMBERS or w in MONEY_WORDS]+ hits = len(nums) + len(propers) + len(spoken)+ score = 15.0 if hits == 0 else clamp(45 + hits * 30)+ found = ", ".join(nums[:2] + sorted(propers)[:2] + spoken[:2])+ return score, (f"{hits} concrete marker(s)" + (f": {found}" if found else+ " - no number, no name, nothing checkable"))+++def check_stakes(text):+ """Tension, cost, negation. Something the viewer might lose."""+ w = [x.lower().strip("'’") for x in words(text)]+ hits = [x for x in w if x in STAKES]+ markers = sorted(set(hits))+ if re.search(r"\$\s?\d", text):+ markers.append("a price")+ n = len(markers)+ score = {0: 20.0, 1: 70.0}.get(n, 100.0)+ detail = f"{n} tension marker(s)" + (f": {', '.join(markers[:4])}" if markers else+ " - nothing is at stake in this line")+ return clamp(score), detail+++def check_frontload(text):+ """The interesting word cannot be in position nine."""+ w = words(text)+ if not w:+ return 0.0, "empty"+ low = [x.lower().strip("'’") for x in w]+ opener = " ".join(low[:2])+ penalty = 0+ hit_opener = None+ for weak in WEAK_OPENERS:+ if opener.startswith(weak) or low[0] == weak:+ penalty, hit_opener = 30, weak+ break+ payload = None+ for i, token in enumerate(low):+ if (token in STAKES or token in SPOKEN_NUMBERS or token in MONEY_WORDS+ or NUMBER_RE.match(w[i]) or (i and PROPER_RE.match(w[i]))):+ payload = i+ break+ if payload is None:+ base = 30.0+ where = "no payload word anywhere in the line"+ elif payload <= 3:+ base = 100.0+ where = f"payload at word {payload + 1}"+ elif payload <= 6:+ base = 70.0+ where = f"payload at word {payload + 1}, could move forward"+ else:+ base = 40.0+ where = f"payload at word {payload + 1}, too late"+ detail = where + (f"; weak opener \"{hit_opener}\"" if hit_opener else "")+ return clamp(base - penalty), detail+++def check_address(text):+ """Aimed at one viewer, or floating in the air."""+ low = text.lower()+ w = [x.lower().strip("'’") for x in words(text)]+ if re.search(r"\b(you|your|you're|youre|yourself)\b", low):+ return 100.0, "speaks to the viewer"+ if w and w[0] in IMPERATIVES:+ return 90.0, f"imperative opener (\"{w[0]}\")"+ if re.search(r"\b(i|my|me|we|our)\b", low):+ return 70.0, "first person, no viewer named"+ return 35.0, "third person, nobody in the room"+++CHECKS = ["LENGTH", "SPECIFICITY", "STAKES", "FRONTLOAD", "ADDRESS"]+++def run(text):+ results = {+ "LENGTH": check_length(text),+ "SPECIFICITY": check_specificity(text),+ "STAKES": check_stakes(text),+ "FRONTLOAD": check_frontload(text),+ "ADDRESS": check_address(text),+ }+ flags = [msg for pattern, msg in DEALBREAKERS if pattern.search(text)]+ scores = [results[c][0] for c in CHECKS]+ # The weakest property caps the hook, same logic as detect.py: one bad+ # property is enough for the thumb to keep moving.+ overall = statistics.mean(scores) * 0.6 + min(scores) * 0.4 - len(flags) * 15+ overall = clamp(overall)+ verdict = "STRONG" if overall >= 70 and min(scores) >= 55 and not flags else (+ "OK" if overall >= 50 else "WEAK")+ return results, overall, verdict, flags+++def bar(score, width=24):+ filled = round(score / 100 * width)+ return "#" * filled + "." * (width - filled)+++def render_one(text, results, overall, verdict, flags, out=sys.stdout):+ print("\nHOOK SCORE", file=out)+ print("=" * 62, file=out)+ print(f" \"{text.strip()}\"\n", file=out)+ for name in CHECKS:+ score, detail = results[name]+ print(f" {name:<13} {bar(score)} {score:5.1f}", file=out)+ print(f" {'':<13} {detail}", file=out)+ print("-" * 62, file=out)+ print(f" {'HOOK SCORE':<13} {bar(overall)} {overall:5.1f} {verdict}", file=out)+ for f in flags:+ print(f"\n DEALBREAKER {f}", file=out)+ if verdict != "STRONG":+ weakest = min(CHECKS, key=lambda c: results[c][0])+ print(f"\n Weakest property: {weakest}. Fix that one and re-run.", file=out)+ print("", file=out)+++def render_table(rows, out=sys.stdout):+ print("\nHOOK RANKING\n" + "=" * 78, file=out)+ for i, r in enumerate(rows, 1):+ mark = "->" if i == 1 else " "+ hook = r["hook"] if len(r["hook"]) <= 62 else r["hook"][:59] + "..."+ print(f"{mark} {r['score']:5.1f} {r['verdict']:<7} {hook}", file=out)+ print(f" weakest: {r['weakest']} ({r['checks'][r['weakest']]['score']:.0f})", file=out)+ for f in r["flags"]:+ print(f" dealbreaker: {f}", file=out)+ print("\nShoot the top one. If the top one is under 50, none of these are the hook.\n",+ file=out)+++def main():+ ap = argparse.ArgumentParser(description="Score a Reel hook on five properties.")+ ap.add_argument("input", nargs="?", default="-", help="file with one hook per line, or -")+ ap.add_argument("--hook", help="score a single hook given on the command line")+ ap.add_argument("--json", action="store_true")+ args = ap.parse_args()++ if args.hook:+ lines = [args.hook]+ else:+ raw = sys.stdin.read() if args.input == "-" else open(args.input, encoding="utf-8").read()+ lines = [l.strip() for l in raw.splitlines() if l.strip()]+ if not lines:+ print("nothing to score", file=sys.stderr)+ sys.exit(2)++ payload = []+ for line in lines:+ results, overall, verdict, flags = run(line)+ payload.append({+ "hook": line,+ "checks": {k: {"score": round(v[0], 1), "detail": v[1]} for k, v in results.items()},+ "weakest": min(CHECKS, key=lambda c: results[c][0]),+ "flags": flags,+ "score": round(overall, 1),+ "verdict": verdict,+ })++ if args.json:+ print(json.dumps(payload if len(payload) > 1 else payload[0], indent=2, ensure_ascii=False))+ return++ if len(payload) == 1:+ results, overall, verdict, flags = run(lines[0])+ render_one(lines[0], results, overall, verdict, flags)+ else:+ render_table(sorted(payload, key=lambda r: -r["score"]))++ sys.exit(0 if max(p["score"] for p in payload) >= 70 else 1)+++if __name__ == "__main__":+ main()diff --git a/skills/ig-reply/SKILL.md b/skills/ig-reply/SKILL.mdnew file mode 100644index 0000000..82deff7--- /dev/null+++ b/skills/ig-reply/SKILL.md@@ -0,0 +1,95 @@+---+name: ig-reply+description: >-+ Handle the comments under the user's own reels and posts - draft replies to+ the ones worth answering, sorted by which ones are. Use when the user pastes+ their comments, says "reply to these", "handle my comments", "someone said X+ on my reel", or is dealing with a critic, a hater or a lead in the comments.+---++# ig-reply++The comment thread under your own post is where reach is decided. Every reply+is another interaction on the post, replies arriving in the first hour do most+of the work, and on Instagram a reply can also be a Reel, which is the single+most underused move on the platform.++But the value is not equal across comments, so this skill sorts before it+writes.++## Input++The user pastes the comments, ideally with handles. Screenshots are fine. Do+not scrape the thread with a browser tool.++## Triage first++Sort every comment into one of six buckets and say the counts out loud:++| bucket | what it is | what it gets |+| --- | --- | --- |+| **KEYWORD** | the word you asked them to comment | the promised thing, sent by hand or by your approved tool |+| **LEAD** | someone describing the problem you solve | a real answer in public, then a door |+| **SUBSTANCE** | adds data, disagrees, extends | the longest reply on the thread |+| **QUESTION** | a question a lot of people have | this one becomes a Reel, not just a reply |+| **SUPPORT** | "🔥", "great post", a tag | a like, and 3 to 8 words at most |+| **NOISE** | pitch, spam, bad faith, bait | nothing, or one line and out |++Write in that order and stop when the value stops.++## The move most people miss++If a question in the comments is one that thirty other people also have,+**reply to it with a Reel**. Instagram will attach the comment to the new video+as a sticker, the person who asked gets notified, and a question with real+demand behind it becomes a post with the hook already written for you. Flag+every QUESTION that qualifies and hand it to `/ig-reel` as formula #16.++## How to reply++- **Answer the actual question.** If someone asks how, tell them how, in the+ reply. Do not send them to the DMs to hear an answer they could have had.+- **Use their name once**, at the start, without an exclamation mark.+- **Match their length.** A four-word comment does not get a four-line reply.+- **To a critic:** concede the true part first, in their words, then hold the+ line. Never delete, never get defensive, never reply twice on the same+ thread.+- **To a hater:** nothing. A reply is reach, and reach is what they came for.+ Hide the comment if it is abusive. Instagram's comment controls exist and+ using them is not losing.+- **To a lead:** answer fully in public. The door is one sentence at the end+ and it is an offer of help, not a pitch. The public answer is what makes the+ next person DM you.++## Keyword comments++If the post used a keyword ask, those comments are the whole point of the post.+Every one of them is a person who raised their hand. Reply to each, then send+what was promised. If the user has automation set up through Instagram's own+tools or an approved partner, say so and let it run; if not, the replies are+manual and that is fine at this volume. Never bulk-DM people who did not+comment.++## Output++One block, grouped by bucket, each reply copy-ready and already humanized:++```+REPLIES · 84 comments · 41 KEYWORD, 2 LEAD, 3 SUBSTANCE, 2 QUESTION, 34 SUPPORT, 2 NOISE++KEYWORD (41) send the clause. One line each, same warmth, not copy-paste.++LEAD+@handle - "we had this exact thing happen in June"+> The bit that fixed it for us was moving the payment trigger off approval+> entirely. Happy to send the wording if it is useful.++QUESTION -> REEL+@handle - "what do you do if they refuse to sign it?"+ 34 likes on this comment. That is a Reel, not a reply. Formula #16.++NOISE (2) skipped. Replying gives them reach.+```++Then the gate: nothing is posted until the user says yes. They paste the+replies.diff --git a/skills/ig-repurpose/SKILL.md b/skills/ig-repurpose/SKILL.mdnew file mode 100644index 0000000..f83d69a--- /dev/null+++ b/skills/ig-repurpose/SKILL.md@@ -0,0 +1,88 @@+---+name: ig-repurpose+description: >-+ Turn one long asset - a YouTube video, podcast, livestream, newsletter, blog+ post or client call - into a week of reels and carousels. Use when the user+ says "repurpose this", "turn this into reels", "I have a video/podcast/+ transcript", "cut this up", or pastes something long and wants it on+ Instagram.+---++# ig-repurpose++One good long asset contains four to six posts. Most people extract one and+throw the rest away.++## Input++A transcript, an article, a newsletter, a script, a call summary, a livestream.+If the user gives a URL and this session has a transcript tool, use it;+otherwise ask them to paste. Read the whole thing before extracting anything.++If the source is a video the user owns, ask for the file too. A Reel built on+their own footage beats one built on their own words read again.++## Extract, do not summarise++A summary of a video is not a Reel. Nobody wants the summary. Go through the+asset and pull out the things that stand alone:++| pull | what it is |+| --- | --- |+| **Claims** | every sentence that would start an argument |+| **Numbers** | every figure, cost, duration, percentage |+| **Stories** | every moment with a person, a scene and a cost |+| **Mechanisms** | every "the way this actually works is..." |+| **Mistakes** | every admission of something that went wrong |+| **Lines** | every sentence already quotable as-is |++List what you found, with counts, before writing anything. If the asset yields+fewer than four items, it is thin, and four posts squeezed out of it will be+thin too. Say that.++## Then pick the format per extract++Not everything is a Reel.++- **Claim, mistake, story** to a Reel. They need a voice and a face.+- **Mechanism, numbered list** to a carousel. They need to be re-read.+- **A quotable line** to a story frame, not a post.++## Then build the week++Each extract becomes one post and each post stands completely on its own. The+viewer has not seen the source and never will. Never write "as I said in my+latest video". The post is the thing.++Assign a hook formula from `ig-reel/hooks.json` to each and vary them. Five+posts from one source with the same hook shape reads as a content mill, because+it is one.++If the source is the user's own video, **use the actual footage**. The clip+where they said the thing, with the real reaction in it, beats a re-record+every time. Cut on the sentence, not on the breath.++Order across the week so the strongest claim goes first, the story lands+midweek, and the mechanism goes last, when the people who liked the earlier+ones are watching for it.++## Output++```+SOURCE: "Why we killed discovery calls" (42 min podcast, 8,900 words)++FOUND 5 claims, 9 numbers, 3 stories, 4 mechanisms, 2 mistakes, 7 quotable lines++WEEK+TUE REEL #2 Negative Command Stop running discovery calls+ use the 14:20 clip, he laughs at the end+WED CAROUSEL Job B caption The 4-question form that replaced the call+FRI REEL #21 Mid-Sentence "...and he asked for a refund nine days later"+SUN REEL #5 Time Collapse Six hours a week back, one deleted link++Say "write Tuesday" and I will draft it.+```++Then draft on request, one at a time, each through `/ig-reel` and `/ig-human`.+Do not dump four finished scripts at once. They will all sound the same and the+user will shoot none of them.diff --git a/skills/ig-story/SKILL.md b/skills/ig-story/SKILL.mdnew file mode 100644index 0000000..c6b3b55--- /dev/null+++ b/skills/ig-story/SKILL.md@@ -0,0 +1,97 @@+---+name: ig-story+description: >-+ Write the day's Instagram Stories - the frame-by-frame sequence, which+ stickers to use where, and the one that moves people into the DMs. Use when+ the user says "stories", "what do I post on my story", "story sequence",+ "poll idea", "I have nothing to story about", or wants to sell something+ without making a post about it.+---++# ig-story++Stories are not a smaller feed. The feed is how strangers find you. Stories are+how the people who already follow you decide whether you are a person worth+buying from, and they are the only surface on Instagram where a tap turns into+a conversation in one move.++Nobody outside your followers sees these, so the job is completely different:+depth, not reach.++## The daily shape++Three to seven frames a day. Beyond about seven, the tap-forward rate climbs+and the last frames play to nobody, which is exactly where people put the ask.++```+1 THE OPEN something happening today, with a face or a hand in it.+2-3 THE MIDDLE the actual content: the process, the result, the mistake.+4 THE ASK one sticker. Poll, question box, quiz or link.+5 THE CLOSE the answer, the outcome, or tomorrow's setup.+```++Put the ask at frame 4, not frame 7. Completion drops with every tap and the+ask should be seen by the people who are still there.++## The stickers, and what each is actually for++| sticker | job | use when |+| --- | --- | --- |+| **Poll** | the cheapest tap there is | you want volume of response, not information |+| **Question box** | harvesting the exact words people use | you need content ideas or objections, verbatim |+| **Quiz** | teaching by letting them be wrong | there is a common misconception in the niche |+| **Slider** | vibe check | nothing important. Fun, low value |+| **Link** | the only clickable surface besides the bio | there is somewhere real to go |+| **Countdown** | a deadline people can subscribe to | a launch, a live, a close date |+| **Add yours** | reach beyond your followers, occasionally | the prompt is one anyone in the niche can answer |++The question box is the most undervalued one in the list. Every answer is a+caption, a Reel hook or a DM opener written in the audience's own words. Feed+them to `/ig-reel` as formula #16.++## Rules++- **A face or a hand in the first frame.** Text on a coloured background gets+ tapped through, and the first frame decides whether the rest get watched.+- **One idea per frame.** Reading a paragraph on a story is not a thing anyone+ does.+- **Keep text inside the middle.** On 1080x1920, nothing above y=250 or below+ y=1600. The profile row sits on top and the reply bar sits underneath.+- **Talk to one person.** "You" singular. Stories are the closest thing to a+ DM that is not one.+- **Do not repost your own feed post to stories with no comment.** It is the+ single most ignored frame on the platform. If you are pointing at a post, say+ what happened in the comments and why it is worth going back for.+- **Sell on stories, not in posts.** Three frames of context, one frame of+ offer, one frame of proof. That sequence sells more than a feed post about+ the same thing and costs you no reach.++## The DM funnel, done honestly++The sequence that works: a story that names a problem, a question box or a poll+that lets people say "that's me", and then a reply to each person who answered.+The conversation starts because they spoke first.++Automated keyword DM replies are a real, supported feature for professional+accounts, through Instagram's own tools and approved partners. Bulk DMing+people who did not interact is not, and it is what gets accounts restricted.+The rule is simple: **they act first, then you reply.**++## Output++The frames in order, each with what is on screen, what is said, and which+sticker, plus what to do with the answers:++```+STORIES · Tuesday · 5 frames++1 [selfie, walking] "Third refund request this year. Same reason."+2 [screen recording] the clause, highlighted+3 [talking] "Approval is a feeling. Delivery is a date."+4 [poll] "Have you been burned by a late approval?" Yes / Not yet+5 [text on photo] "Reply and I will send you the clause."++After: everyone who votes Yes gets a reply. That is the whole funnel.+```++Nothing is posted. The user posts it.diff --git a/skills/ig-viral/SKILL.md b/skills/ig-viral/SKILL.mdnew file mode 100644index 0000000..274af15--- /dev/null+++ b/skills/ig-viral/SKILL.md@@ -0,0 +1,178 @@+---+name: ig-viral+description: >-+ Go and find the reels that are actually working right now in the user's+ niche, rank them by how far each beat its own account, name the hook formula+ each one used, and turn that into a swipe file they can shoot from. Use when+ the user says "find viral videos", "what's working right now", "what are+ people posting in my niche", "reverse engineer this account", "build me a+ swipe file", "why is this reel doing numbers", or asks what to make next and+ has no evidence to answer with.+---++# ig-viral++The research skill. Everything else in this pack writes; this one goes and+looks. Run it monthly, not daily. Formulas last a season.++One tool lives in this folder and it runs:++```bash+python3 swipe.py captured.tsv --out ~/.claude/instagram/swipe.md+```++## The one idea that makes this worth doing++**Raw views are not evidence.** An account with two million followers doing+400,000 views had a quiet Tuesday. An account with four thousand followers+doing 400,000 views found something, and that something is copyable.++So everything here ranks on the **outlier multiple**: views divided by that+account's own recent median. Anything above 3x is a signal. Anything below 1.5x+is that account's normal day and it teaches you nothing, no matter how big the+number looks.++Collect accounts **within about 10x of the user's own size**. A formula that+works at 2M followers often works because it is at 2M followers.++## Step 1: pick the accounts++Ask the user for 6 to 12 accounts, or propose them and get approval:++- **4 direct** - same niche, same offer, slightly ahead.+- **4 adjacent** - different niche, same audience. This is where formats get+ borrowed from before anybody in the niche has them.+- **2 to 4 outsized** - much bigger accounts, for format only, never for+ cadence or tone.++Also ask them to open their own **Saved collection**. It is the fastest and+most relevant corpus that exists and it is already filtered by their taste.++## Step 2: go and look++Use whatever browsing tool this session actually has: an in-app browser, a+browser extension connected to the user's own Chrome, or a computer-use tool.+There is no API for this and there does not need to be, because the volume is+small enough to read.++**Rules that are not negotiable:**++- **Never log into Instagram on the user's behalf and never ask for a+ password.** If a page needs a login, the user is the one who is already+ logged in. Drive their browser with them present, or ask them to paste.+- **This is reading, not scraping.** Ten accounts, a dozen reels each, at human+ speed. Automated collection at volume violates Instagram's Terms of Use and+ gets accounts action-blocked. Do not build a crawler, do not use a scraping+ service, and do not loop this in the background.+- **Copy the formula, never the video.** The hook shape, the structure, the+ length, the pattern of cuts. Not their script, not their voice, not their+ edit. Attribute every row in the swipe file to the account it came from.++**What to capture per reel**, in the creator's own words:++| field | notes |+| --- | --- |+| account | handle |+| followers | from the profile |+| median | eyeball the last 12 reels and take the middle view count |+| views | this reel |+| hook | the first line, spoken or on screen, verbatim including bad grammar |+| on-screen | the first text card, if different |+| length | seconds |+| cta | what they asked for at the end |++Median is the important one. Without it you are back to ranking by follower+count, which is the thing this skill exists to stop.++**When Instagram will not show you enough:** the same hook grammar runs on+YouTube Shorts, where view counts and transcripts are public and no login is+involved. It is a legitimate second corpus, and the spoken hook is easier to+get:++```bash+# view counts for a channel's shorts+python3 -m yt_dlp --flat-playlist --playlist-end 40 -J \+ "https://www.youtube.com/@HANDLE/shorts" > channel.json++# the spoken first line of one short, from its auto-captions+python3 -m yt_dlp --skip-download --write-auto-subs --sub-langs "en.*" \+ --sub-format json3 -o hook "https://www.youtube.com/watch?v=VIDEO_ID"+```++Take every caption word with a timestamp under 3.0 seconds. That is the hook,+as said, not as written.++## Step 3: rank it++Fill a tab-separated file with a header row and run the script:++```+account followers median views hook+@someone 48000 11000 412000 nobody tells you your first 30 reels are supposed to flop+```++```bash+python3 swipe.py captured.tsv --out ~/.claude/instagram/swipe.md+```++It computes the outlier multiple, names the hook formula using the same 26+formulas `/ig-reel` writes from, scores each hook with `hookscore.py`, and+prints what separates the top third from the bottom third.++## Step 4: say what it means, carefully++Report three things and no more:++1. **Which formulas over-index** in the top third, with counts. Two formulas+ appearing four times each across six accounts is a finding. One appearing+ twice is not.+2. **What the top third have in common structurally** that the bottom third do+ not: hook length, whether the payoff is visual, whether the first frame+ moves, where the ask is.+3. **The unclassified rows.** Every hook the classifier could not name is+ either noise or a formula that is not in `hooks.json` yet. Read them by+ hand. This is the most valuable column in the output and it is the reason+ the script prints the count.++Then state the sample size and the confidence in plain words. Forty reels+across six accounts supports a claim. Twelve does not, and saying so is the+difference between research and horoscopes.++## Step 5: turn it into something to shoot++For the top three formulas, write **the user's version**: their own story,+their own number, in the shape that is working. Hand each one to `/ig-reel`+with the formula id already chosen.++Never hand back "make a reel like this one". Hand back a hook line they could+say tomorrow.++## Output++```+SWIPE · 38 reels · 7 accounts · baseline: account median++OUTLIERS (above 3x)+ 38.4x hook 86 #3 Nobody Tells You @acct_a 412,000 (median 10,700)+ 11.2x hook 79 #9 The Steal @acct_c 180,000 (median 16,100)+ ...++WHAT IS OVER-INDEXING+ #3 Nobody Tells You x5 in the top third, 0 in the bottom+ #2 Negative Command x4+ median hook length 8 words up top, 19 at the bottom++UNCLASSIFIED (6)+ Two of these are the same shape and it is not in hooks.json: a hook that+ opens on someone else's comment read out loud. Worth adding.++YOUR VERSION+ #3 "Nobody tells you the first 20 proposals are supposed to lose."+ ...+```++Write the swipe file to `~/.claude/instagram/swipe.md`. `/ig-reel` and+`/ig-plan` both read it, which is the point: after this runs once, the rest of+the pack is working from the user's own evidence instead of from defaults.++Nothing is posted, followed, liked or messaged by this skill. It reads.diff --git a/skills/ig-viral/swipe.py b/skills/ig-viral/swipe.pynew file mode 100755index 0000000..fa2c5fa--- /dev/null+++ b/skills/ig-viral/swipe.py@@ -0,0 +1,206 @@+#!/usr/bin/env python3+"""+swipe.py - rank reels you collected by how far they beat their own account,+name the hook formula each one used, and write the swipe file.++The point of this script is one correction: raw views are not evidence. A+2,000,000-follower account doing 400,000 views had a quiet day. A 4,000-+follower account doing 400,000 views found something. This ranks on the+multiple over the account's own baseline, which is the only version of+"went viral" that tells you anything you can copy.++Input is a tab-separated file you fill in while you browse, one reel per row,+with a header line naming the columns:++ account followers median views hook+ @someone 48000 11000 412000 nobody tells you your first 30 flop++`median` is that account's typical recent views and is the better baseline.+If you only have `followers`, leave median out and the script says so.+`hook` is the first line of the reel, spoken or on screen, in their words.++Usage+ python3 swipe.py captured.tsv+ python3 swipe.py captured.tsv --out ~/.claude/instagram/swipe.md+ python3 swipe.py captured.tsv --json+"""++import argparse+import json+import os+import re+import statistics+import sys++HERE = os.path.dirname(os.path.abspath(__file__))+HOOKS = os.path.join(HERE, "..", "ig-reel", "hooks.json")+WORD_RE = re.compile(r"[A-Za-z0-9$%'’-]+")++try: # optional: score the hooks too+ sys.path.insert(0, os.path.join(HERE, "..", "ig-reel"))+ from hookscore import run as score_hook # noqa: E402+except Exception: # ig-viral copied on its own+ score_hook = None+++def load_formulas(path):+ try:+ d = json.load(open(path, encoding="utf-8"))+ except Exception:+ return None+ by_id = {h["id"]: h for h in d["hooks"]}+ order = d.get("classify_order") or sorted(by_id)+ return [(by_id[i]["id"], by_id[i]["name"],+ re.compile(by_id[i]["match"], re.IGNORECASE)) for i in order if i in by_id]+++def classify(hook, formulas):+ if not formulas:+ return None, "unclassified"+ for fid, name, pattern in formulas:+ if pattern.search(hook):+ return fid, name+ return None, "unclassified"+++def read_rows(path):+ raw = sys.stdin.read() if path == "-" else open(path, encoding="utf-8").read()+ lines = [l for l in raw.splitlines() if l.strip() and not l.lstrip().startswith("#")]+ if not lines:+ return []+ head = [c.strip().lower() for c in lines[0].split("\t")]+ if "views" in head and "hook" in head:+ cols, body = head, lines[1:]+ else:+ cols, body = ["account", "followers", "views", "hook"], lines+ rows = []+ for line in body:+ cells = line.split("\t")+ if len(cells) < len(cols):+ cells += [""] * (len(cols) - len(cells))+ r = dict(zip(cols, [c.strip() for c in cells]))+ try:+ r["views"] = int(re.sub(r"[^\d]", "", r.get("views", "")) or 0)+ except ValueError:+ continue+ for k in ("followers", "median"):+ digits = re.sub(r"[^\d]", "", r.get(k, "") or "")+ r[k] = int(digits) if digits else None+ if r["views"] and r.get("hook"):+ rows.append(r)+ return rows+++def analyse(rows, formulas):+ used_median = any(r.get("median") for r in rows)+ for r in rows:+ base = r.get("median") or r.get("followers") or 0+ r["baseline"] = base+ r["outlier"] = round(r["views"] / base, 2) if base else None+ r["formula_id"], r["formula"] = classify(r["hook"], formulas)+ r["words"] = len(WORD_RE.findall(r["hook"]))+ if score_hook:+ _, overall, verdict, _ = score_hook(r["hook"])+ r["hook_score"], r["hook_verdict"] = round(overall, 1), verdict+ else:+ r["hook_score"], r["hook_verdict"] = None, None+ ranked = sorted(rows, key=lambda r: -(r["outlier"] or 0))+ third = max(1, len(ranked) // 3)+ top, bottom = ranked[:third], ranked[-third:]++ def med(items, key):+ vals = [i[key] for i in items if i.get(key) is not None]+ return round(statistics.median(vals), 1) if vals else None++ counts = {}+ for r in top:+ counts[r["formula"]] = counts.get(r["formula"], 0) + 1+ return {+ "baseline": "account median" if used_median else "follower count",+ "n": len(ranked),+ "accounts": len({r.get("account", "") for r in ranked}),+ "reels": ranked,+ "top_formulas": sorted(counts.items(), key=lambda kv: -kv[1]),+ "top_hook_score": med(top, "hook_score"),+ "bottom_hook_score": med(bottom, "hook_score"),+ "top_words": med(top, "words"),+ "bottom_words": med(bottom, "words"),+ "unclassified": sum(1 for r in ranked if r["formula"] == "unclassified"),+ }+++def render(a, out=sys.stdout):+ head = (f"SWIPE FILE · {a['n']} reels · {a['accounts']} accounts · "+ f"baseline: {a['baseline']}")+ print("\n" + head, file=out)+ print("=" * max(len(head), 78), file=out)+ for r in a["reels"]:+ mult = f"{r['outlier']:.1f}x" if r["outlier"] else " ?"+ score = f"{r['hook_score']:.0f}" if r["hook_score"] is not None else " -"+ fid = f"#{r['formula_id']:<2}" if r["formula_id"] else "- "+ print(f" {mult:>7} hook {score:>3} {fid} {r['formula'][:22]:<22} "+ f"{r.get('account', '')[:16]:<16} {r['views']:>9,}", file=out)+ print(f" \"{r['hook'][:96]}\"", file=out)+ print("-" * max(len(head), 78), file=out)+ print("WHAT IS WORKING IN THIS BATCH", file=out)+ if a["top_formulas"]:+ print(" top third by outlier: "+ + ", ".join(f"{n} x{c}" for n, c in a["top_formulas"][:4]), file=out)+ if a["top_hook_score"] is not None:+ print(f" median hook score: top {a['top_hook_score']:.0f} "+ f"vs bottom {a['bottom_hook_score']:.0f}", file=out)+ print(f" median hook length: top {a['top_words']} words "+ f"vs bottom {a['bottom_words']} words", file=out)+ print(f" unclassified: {a['unclassified']} of {a['n']}. Read those by hand, "+ "they are where a formula you do not have yet is hiding.", file=out)+ print("\n A hand-collected batch is evidence, not proof. Twelve reels shows you "+ "nothing;\n forty across six accounts shows you something. Collect more before "+ "you believe it.\n", file=out)+++def to_markdown(a):+ lines = ["# Swipe file", "",+ f"{a['n']} reels across {a['accounts']} accounts. "+ f"Ranked by multiple over {a['baseline']}.", ""]+ for r in a["reels"]:+ mult = f"{r['outlier']:.1f}x" if r["outlier"] else "?"+ lines += [f"## {mult} {r['formula']} ({r.get('account', '')})",+ f"- views: {r['views']:,} baseline: {r['baseline']:,}",+ f"- hook score: {r['hook_score']} words: {r['words']}",+ f"- hook: \"{r['hook']}\"", ""]+ return "\n".join(lines) + "\n"+++def main():+ ap = argparse.ArgumentParser(description="Rank collected reels by outlier multiple.")+ ap.add_argument("input", nargs="?", default="-", help="TSV file, or - for stdin")+ ap.add_argument("--hooks", default=HOOKS, help="path to ig-reel/hooks.json")+ ap.add_argument("--out", help="also write the swipe file as markdown here")+ ap.add_argument("--json", action="store_true")+ args = ap.parse_args()++ rows = read_rows(args.input)+ if not rows:+ print("no usable rows. Need a tab-separated file with at least views and hook.",+ file=sys.stderr)+ sys.exit(2)+ formulas = load_formulas(args.hooks)+ a = analyse(rows, formulas)+ if not formulas:+ print("note: hooks.json not found, formulas not named. Pass --hooks.", file=sys.stderr)+ if score_hook is None:+ print("note: hookscore.py not importable, hook scores skipped.", file=sys.stderr)++ if args.json:+ print(json.dumps(a, indent=2, ensure_ascii=False))+ else:+ render(a)+ if args.out:+ path = os.path.expanduser(args.out)+ os.makedirs(os.path.dirname(path), exist_ok=True)+ open(path, "w", encoding="utf-8").write(to_markdown(a))+ print(f"wrote {path}", file=sys.stderr)+++if __name__ == "__main__":+ main()diff --git a/templates/voice.md b/templates/voice.mdnew file mode 100644index 0000000..6cb2d7d--- /dev/null+++ b/templates/voice.md@@ -0,0 +1,67 @@+# voice.md++Copy this to `~/.claude/instagram/voice.md` and fill it in. Every skill in the+pack reads it. Ten minutes here is the difference between scripts you shoot and+scripts you rewrite.++If you would rather not fill it in by hand, send Claude three of your own reels+or captions and say "write my voice.md from these". That works better than+guessing at the answers.++This file matters more on Instagram than anywhere else, because you have to say+the words out loud. A line you would never say is not a draft, it is a retake.++---++## Who I am++- **Name:**+- **Handle:**+- **What I do, in one sentence:**+- **Who I am talking to:** (be specific: "photographers charging under $2,000",+ not "creatives")+- **What I sell:**++## What I sound like++- **Three of my own reels or captions that sound most like me:** (paste them)+- **On camera I am:** (fast and loud / dry / calm / funny / deadpan)+- **Words I actually use:**+- **Words I would never say out loud:**+- **Do I swear:** (yes / mild / no)+- **Emoji in captions:** (never / one, rarely / freely)+- **Face on camera:** (always / sometimes / faceless)+- **Voiceover or to-camera:**+- **Pace:** (words per minute, if you have timed yourself reading a script.+ `beats.py --wpm` uses this. Most people are between 150 and 200.)++## My positions++Three to five things I believe that some of my audience does not. These are+where the good reels come from.++1.+2.+3.++## Off limits++- **Topics I do not post about:**+- **Clients, numbers or names I cannot say publicly:**+- **Claims I am not allowed to make:** (regulated industry, employer policy, NDA)++## Proof I can use++Real numbers, outcomes and stories I am happy to put my name on. The skills will+never invent one, so if this section is empty, every draft comes back with+`{{your number}}` in it.++-+-+-++## The ask++- **My keyword CTA, if I use one:** (one word, sayable, no spaces)+- **What the keyword sends them:**+- **Where my link goes:**