claude-linkedin-post-creator: Command for Claude Code

.claude/commands/post/generate.md

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

A command that prepares a social-media post draft from your profile, style examples, research, and past performance data.

In plain words
What is it for?
Use it with `/post` and an optional topic hint to generate a post, using saved samples when available or collecting recent examples when they are not.
Why use it?
It combines your audience and goals with writing samples and performance history, so the result can match your style and avoid topics or formats that have worked poorly.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is tarunkorat/claude-linkedin-post-creator's own configuration. It tells Claude Code how to work on claude-linkedin-post-creator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-linkedin-post-creator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tarunkorat/claude-linkedin-post-creator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tarunkorat/claude-linkedin-post-creator/main/.claude/commands/post/generate.md
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 generate

README.md
[![agentmods](https://agentmods.dev/badge/commands/tarunkorat/claude-linkedin-post-creator/generate.svg)](https://agentmods.dev/commands/tarunkorat/claude-linkedin-post-creator/generate)
Your own site
<a href="https://agentmods.dev/commands/tarunkorat/claude-linkedin-post-creator/generate"><img src="https://agentmods.dev/badge/commands/tarunkorat/claude-linkedin-post-creator/generate.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 1,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01134
Opus 5 $0.00000 $0.00567
Sonnet 5 $0.00000 $0.00227
Haiku 4.5 $0.00000 $0.00113

Measured 7d ago against content hash 08f188a2f277, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

generate scanned grade A with 1 finding 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

If slack_enabled=true → run the curl command from _shared.md.
.claude/commands/post/generate.md · 110 lines

How it starts

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

GENERATE

Step 1 — Load context

Run Step 0 from _shared.md. Hold profile data in memory. topic_hint = any text passed after /post (empty if none).

Step 1B — Read performance history

Read posts/tracker.csv (silently, no output to user). If the file has 1+ rows with Posted=yes, extract:

  • avoid_topics: topics from the 3 lowest-engagement posts (fewest comments) — don't suggest these again
  • best_format: format with the highest average comments across all posted rows
  • insight: if 5+ rows exist, compute one sentence: e.g. "Story posts average 3x more comments than lists for you."

Hold these as performance_context. If tracker is empty or has no Posted=yes rows, performance_context = null.

Step 2 — Style samples

If SAMPLE_1 in config/profile.md is filled → use those. Skip Chrome navigation. If all samples are empty → navigate to https://www.linkedin.com/in/me/recent-activity/shares/, read page, extract last 3 post texts. Hold as style_samples.

3A. Web search — 1 query only: Query: top linkedin posts "<INDUSTRY>" "<primary NICHE_TOPIC>" 2025 OR 2026 Extract from results: hook/first line, post angle or format (story, list, tip, contrarian), engagement signals if shown. Take top 5 results.

3B. Chrome LinkedIn search — 1 query only: Navigate to: https://www.linkedin.com/search/results/content/?keywords=<primary_niche_topic_url_encoded>&datePosted=past-month&sortBy=relevance Read page. Extract: hook, author role, comment count (prefer posts with comments), format. Take 4-5 posts.

3C. Summarize research in 3 lines (internal, don't show user):

  • Top formats performing now
  • Top topics getting traction
  • Hook patterns that appear most

Step 4 — Suggest 3 topics

Using research summary + profile niche/goals + topic_hint + performance_context, generate 3 ideas. If topic_hint given → at least one idea expands it. Skip topics already covered in style_samples. If performance_context is set: skip any idea that overlaps with avoid_topics; prefer best_format for at least one idea.

Read the full file on GitHub · 110 lines

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. 7d ago First seen · 110 lines · 0 tokens per session scan A 08f188a2f277

Subscribe to this mod's changes

generate 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 1,134 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.