li-publishlisted
Install: claude install-skill reportedguy/li-stack
# li-publish
Writes nothing creative. It moves approved text to LinkedIn on time, through
the official API only (`../../shared/rules.md` §5). Script: `publish.py` in
this skill's folder; standard library only. On Windows run it with `python`
(not `python3`) by full path from this skill's base directory.
## One-time setup (the user does the clicking; about 15 minutes)
1. The user goes to developer.linkedin.com → *Create app*. LinkedIn asks for
a company Page to attach the app to; any Page the user admins works
(they can create a simple one for their own brand).
2. In the app → *Products*: add **Share on LinkedIn** and **Sign In with
LinkedIn using OpenID Connect** (both self-serve, free).
3. In *Auth* → *Authorized redirect URLs*: add `http://localhost:8765/callback`.
4. The user runs, **in their own terminal** (it asks for the Client Secret,
which must never be typed into this chat):
```
python publish.py setup
```
It opens LinkedIn's own sign-in page; the user signs in and clicks Allow.
The token (valid about 60 days) is saved in `~/.claude/linkedin/secrets/`.
5. Ask before running `python publish.py schedule`: it creates a Windows
scheduled task (`li-stack-publish`, every 15 minutes) that runs
`publish.py run`. `unschedule` removes it.
Never ask for, print or copy the Client Secret or the token.
## Queueing (called by /li-post, /li-carousel, /li-comment)
Only after the user said "approve" for that exact text in this conversation:
```