linkedin-publish
Skill1 starsChanged 27 days agoMITView on GitHub
Use when publicar, editar ou conferir um post do Gabriel no LinkedIn pelo Mac ("publica no LinkedIn", "posta o diário", "edita o último post", "confere como ficou o post", "o post saiu grudado"). Dirige o Safari já logado com AppleScript + JavaScript pelo script `scripts/li.py` (compose, publish, edit-last, check). Só publica ou salva com pedido explícito do Gabriel naquele turno. Para a imagem do post é a `faceless-art`; para ler o LinkedIn de outras pessoas não é esta.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- liftli-ai/linkedin-agent-skillstheir own version, first seen Oct 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- liftli-ai/linkedin-agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- skills/agentsmd/templates/AGENTS.mdAGENTS.md
- advisorSkill
- agentsmdSkill
- authSkill
- backbriefSkill
- brainstormSkill
- choiceSkill
- copywritingSkill
- cost-trackSkill
- delegate-and-reviewSkill
- designSkill
- design-tasteSkill
- dev-consoleSkill
- devinSkill
- diff-reviewSkill
- diskySkill
- doctorSkill
- domain-modelSkill
- domain-planSkill
- dry-runSkill
- duplo-local-agentsSkill
- envlessSkill
- estudo-htmlSkill
- faceless-artSkill
- fluid-voice-auto-fixSkill
- handoffSkill
- herdr-canvasSkill
- hermesSkill
- hustlerSkill
- interviewSkill
- kanbanSkill
- keyword-ideasSkill
- linearSkill
- lp-draftSkill
- memorySkill
- modifier-hereSkill
- piSkill
- postmortemSkill
- prime-agentSkill
- project-stateSkill
- retroSkill
- search-consoleSkill
- seo-auditSkill
- setup-bilibossSkill
- shapeSkill
- skill-smithSkill
- syncSkill
- task-backbriefSkill
- tensionsSkill
- threadSkill
- tmuxSkill
- traceSkill
- wiki-smithSkill
The file
Files
linkedin-publish — o post sai pelo Safari do Mac
O Gabriel já está logado no Safari do Mac. Nada de senha, nada de browser novo. scripts/li.sh (que roda o li.py, uv PEP 723) gera o JavaScript e chama osascript; o Safari precisa estar aberto numa janela do LinkedIn (a aba da frente).
li.sh compose <texto.md> [--image arte.png] # abre o compositor, põe imagem e texto; NÃO publica
li.sh publish # clica 'Publicar'
li.sh edit-last <texto.md> [--save] # troca o texto do último post; --save clica 'Salvar'
li.sh check # só leitura: lê o último post e confere o formatoRegra de ouro
Publicar para fora é decisão do Gabriel. publish e edit-last --save só rodam com o pedido explícito dele neste turno ("pode publicar"). Sem isso, pare em compose/edit-last (o texto fica no compositor) e mostre o que ficaria. check é leitura e vale sempre.
Fluxo de um post novo
- Texto em
texto.md: parágrafos separados por linha em branco,**negrito**no gancho e no fecho,_itálico_onde couber. Imagem pelafaceless-art. li.sh compose texto.md --image arte.png. Confira na tela (screenshot do Safari) e mostre ao Gabriel.- Com o pedido explícito:
li.sh publish. li.sh check: deve darbralto (linhas em branco),strong3 e uma imagem.
Editar um post no ar: li.sh edit-last novo.md → conferir → com pedido, --save → check.
O que pega (e o script já resolve)
- O
computer_usenão enxerga o Safari (fica em outro Space: "no on-screen window") e o System Events não tem a janela; o seletor de arquivo nativo não dá para dirigir. Por isso AppleScriptdo JavaScript, com o JS lido de arquivo UTF-8 (read POSIX file ... as «class utf8»): sem problema de aspas nem de acento. Se o Safari recusar JavaScript, ligue Desenvolvedor > "Permitir JavaScript de Eventos da Apple". - Abrir o compositor: o 'Começar publicação' é um DIV; ache a folha com esse texto e clique em
closest('[tabindex],button'). O editor é tiptap/ProseMirror:.ProseMirror[contenteditable=true]. - Linha em branco: cole
text/htmlcom<p><br></p>entre os parágrafos (senão o LinkedIn publica tudo grudado), com<strong>;text/plainvai de reserva. É umClipboardEvent('paste')comDataTransfer. - Trocar o texto: limpe (
selectAll+delete) numa chamada e cole em outra; na mesma, o paste soma ao texto antigo e duplica. - Imagem apaga o texto: colar imagem no editor limpa o texto. Ponha a imagem primeiro e o texto depois. O que funciona é interceptar o input de arquivo: JPG (
sips -s format jpeg) como data URL →File, sobrescreveHTMLInputElement.prototype.clickpara setarthis.filese dispararinput/changequandotype==='file', e então clica 'Mídia'. Abre o editor de imagem: clique 'Avançar'. - Classes CSS são ofuscadas e mudam: ache elementos por texto e
aria-label(ex.: 'Abrir menu de controle da publicação de Gabriel Fonseca' → 'Editar'), nunca por classe. - Esperar a página: não há evento; o script sonda a cada 0,5 s com limite. Se esgotar, olhe a tela antes de repetir.
Conferência no ar
li.sh check abre https://www.linkedin.com/in/me/recent-activity/all/ e imprime: começo do texto, nº de <br> diretos (a linha em branco vira <br><br>), <strong>, imagens do card (~616x616 numa janela larga) e o veredito do formato. Se o formato vier suspeito, edit-last com o mesmo texto.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

