linkedin-archive

linkedin-archive is a skill for Claude Code from mishahanin/heading-os. It costs 68 tokens per session (1,208 once invoked), scanned A, original, Apache-2.0.

A filing workflow for recently published LinkedIn articles, posts, or comments and their attached images. LinkedIn is a professional social network used to publish updates and articles.

In plain words
What is it for?
Use it to archive a LinkedIn article, post, or comment after publication, including one or more related images.
Why use it?
It removes the manual work of moving published content from a temporary folder into a structured archive. It also checks the content type and image details before changing stored files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/linkedin-archive.py [--slug <slug>] [--type <type>] [--image <path>]....

Good fit Use it to archive a LinkedIn article, post, or comment after publication, including one or more related images.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mishahanin/heading-os
agentmods
npx agentmods add skills/mishahanin/heading-os/linkedin-archive

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linkedin-archive

README.md
[![agentmods](https://agentmods.dev/badge/skills/mishahanin/heading-os/linkedin-archive/github.svg)](https://agentmods.dev/skills/mishahanin/heading-os/linkedin-archive)
Your own site
<a href="https://agentmods.dev/skills/mishahanin/heading-os/linkedin-archive"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/linkedin-archive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linkedin-archive

Your own site · 80×15
<a href="https://agentmods.dev/skills/mishahanin/heading-os/linkedin-archive"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/linkedin-archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 114
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 6
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01208
Opus 5 $0.00034 $0.00604
Sonnet 5 $0.00014 $0.00242
Haiku 4.5 $0.00007 $0.00121

Measured 10d ago against content hash 624583ea12f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

linkedin-archive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/linkedin-archive/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LinkedIn Archive

Move a just-published LinkedIn piece from staging (outputs/content/linkedin/ plus optional explicit images) into the typed datastore archive (datastore/content/linkedin-archive/{articles|posts|comments}/{slug}/).

Script: scripts/linkedin-archive.py.

Workflow

1. Resolve type if needed

If the staged file's name does not contain _linkedin-(post|article|comment)_ and no type: frontmatter is set, ask the CEO via AskUserQuestion:

  • Post
  • Article
  • Comment

Pass the answer to the script as --type <choice>.

2. Resolve images if any

Ask the CEO via AskUserQuestion:

  • No image
  • One image
  • More than one

If "One image" or "More than one": send a follow-up plain-text turn, "Reply with the path(s) to the image(s)". Wait for the CEO's free-form reply, one path per line. AskUserQuestion is multiple-choice only, so path collection always happens in a separate text turn.

Pass each image as a separate --image <path> argument. Default is no image.

3. Dry-run

python scripts/linkedin-archive.py [--slug <slug>] [--type <type>] [--image <path>]...

Exit codes that need handling:

  • 2: nothing found - tell the CEO and stop.
  • 3: destination conflict - surface the existing folder, ask how to proceed.
  • 5: type still ambiguous - re-ask.
  • 6: image path does not exist - re-ask.
  • 7: source untracked - tell CEO to git add, then retry.

4. Confirm

Show the plan. Ask via AskUserQuestion:

  • Approve and execute (with auto-commit)
  • Approve and execute (no commit)
  • Cancel

Wait for explicit approval.

5. Execute

python scripts/linkedin-archive.py [...flags] --execute [--commit]

6. Confirm done

Report destination folder, files moved (count), and the commit hash if --commit was used.

Undo

The script does not provide an --undo flag. To revert a wrong move:

  • If --commit did NOT fire: git mv files back manually, then rmdir the empty destination folder.
  • If --commit fired and nothing else has been committed since: git reset --hard HEAD~1. Verify git status first; this is destructive.
  • If exit code 8 (--commit ran but auto-commit failed): files are moved and staged in the index, but no commit landed. Either inspect the failure (often a pre-commit hook), fix it, and run git commit manually; or git restore --staged <paths> to unstage and decide what to do next.
  • If exit code 9 (git command timed out): a timeout before any git mv leaves the disk untouched. If the timeout fires mid-sequence, run git status to see what was already moved, and git mv back as needed.

Read the full file on GitHub · 128 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 128 lines · 68 tokens per session scan A 624583ea12f0

Subscribe to this mod's changes

linkedin-archive is a skill published in the GitHub repository mishahanin/heading-os (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 1,208 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

shogun-bloom-config

An interactive wizard that creates model-routing settings from your AI subscription choices. Model routing decides which available model handles each kind of task.

yohey-w/multi-agent-shogun · 86 tokens

shogun-model-list

A reference table of AI command-line tools, their available models, subscription requirements, and maximum Bloom capability levels. Bloom's Taxonomy is a scale describing thinking tasks, from remembering information to creating new designs.

yohey-w/multi-agent-shogun · 73 tokens

shogun-model-switch

A live-switching tool for changing which command-line AI agent, model, and reasoning mode is running. It updates settings, restarts the agent, and refreshes the displayed session information.

yohey-w/multi-agent-shogun · 83 tokens

shogun-screenshot

A screenshot tool for getting images from a computer or web page and then cropping, resizing, or masking sensitive information. Playwright is a browser-automation tool used here to capture web pages.

yohey-w/multi-agent-shogun · 149 tokens

shogun-readme-sync

A skill that compares an English README with its Japanese counterpart and brings them back into alignment. A README is the project document that explains what the software is and how to use it.

yohey-w/multi-agent-shogun · 66 tokens

shogun-agent-status

A skill that shows whether the agents in a multi-agent Japanese feudal-themed team are working, waiting, missing, or assigned tasks. It combines terminal session status, task files, and unread messages.

yohey-w/multi-agent-shogun · 98 tokens