sync

sync is a command for Claude Code from tarunkorat/claude-linkedin-post-creator. It costs 0 tokens per session (395 once invoked), scanned A, original, MIT.

A setup command that reads a user’s LinkedIn profile and recent posts, then records their role, topics, and writing style in a configuration file.

In plain words
What is it for?
Initializing or refreshing profile data from LinkedIn, including name, role, industry, experience, recurring topics, tone, format, and example posts.
Why use it?
The agent may not know the user’s professional background or preferred writing style. This command gathers that information once so later work can use a more suitable profile.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/tarunkorat/claude-linkedin-post-creator/sync
Clone the repo
git clone --depth 1 https://github.com/tarunkorat/claude-linkedin-post-creator

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 sync

README.md
[![agentmods](https://agentmods.dev/badge/commands/tarunkorat/claude-linkedin-post-creator/sync.svg)](https://agentmods.dev/commands/tarunkorat/claude-linkedin-post-creator/sync)
Your own site
<a href="https://agentmods.dev/commands/tarunkorat/claude-linkedin-post-creator/sync"><img src="https://agentmods.dev/badge/commands/tarunkorat/claude-linkedin-post-creator/sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 395 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00395
Opus 5 $0.00000 $0.00198
Sonnet 5 $0.00000 $0.00079
Haiku 4.5 $0.00000 $0.00040

Measured 5d ago against content hash 533a591d0882, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync 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 5d 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/commands/post/sync.md · 40 lines

What it actually says

SYNC — Pull profile from LinkedIn into config/profile.md

Run once on setup. Re-run when your focus or style changes.

Step 1

Run Step 0B and 0C from _shared.md (skip 0A profile check — that's what we're fixing). Print: Syncing from LinkedIn...

Step 2 — Read profile page

Navigate to https://www.linkedin.com/in/me/. Read page text. Extract: full name, headline, about section (click "see more" if collapsed), current company/title, location.

Step 3 — Read recent posts

Navigate to https://www.linkedin.com/in/me/recent-activity/shares/. Read page. Extract last 5 posts: full text + reaction/comment counts if visible.

Step 4 — Analyze style (internal, don't show user)

From the 5 posts, note: avg word count, tone, format patterns, hook types, emoji usage, hashtag count/style, recurring topics, highest-engagement post.

Step 5 — Write config/profile.md

Read current config/profile.md. Fill in or update:

  • NAME, ROLE (from headline), INDUSTRY (infer from about + posts), EXPERIENCE_YEARS (estimate)
  • NICHE_TOPICS (from recurring post topics + about section)
  • TONE, FORMAT, VOICE (from Step 4 analysis)
  • SAMPLE_1, SAMPLE_2, SAMPLE_3 (3 best posts — highest engagement, or most recent)

Preserve any fields the user already filled in. Only overwrite empty or placeholder fields.

Step 6 — Confirm

Print a short summary:

✓ Synced

Updated: NAME, ROLE, NICHE_TOPICS, style fields, 3 post samples
Kept: <any fields already filled>

Review config/profile.md if anything looks off.
Run /post to generate your first post.
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. 5d ago First seen · 40 lines · 0 tokens per session scan A 533a591d0882

Subscribe to this mod's changes

sync is a command published in the GitHub repository tarunkorat/claude-linkedin-post-creator (6 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 395 tokens. 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-31.