ktg-plugin-marketplace/plugins/linkedin-thought-leadership/CLAUDE.md
Kjell Tore Guttormsen 1a8cc1942c feat(linkedin-thought-leadership): v1.1.0 — Q2 2026 feature release
9 improvements across 3 tracks:

Onboarding: /linkedin:onboarding wizard, README Quick Start rewrite
Content Quality: voice drift scoring, industry angle variants,
  /linkedin:carousel, /linkedin:react multi-URL comparison
Analytics: automated week-rollover, day-of-week heatmap,
  month-over-month reports

25→27 commands. All Q2 ROADMAP items completed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 06:16:35 +02:00

5.2 KiB

LinkedIn Thought Leadership Plugin (v1.1.0)

Build LinkedIn thought leadership with algorithmic understanding, strategic consistency, and authentic engagement. January 2026 360Brew algorithm update integrated.

Architecture

  • State file: ~/.claude/linkedin-thought-leadership.local.md (YAML frontmatter, auto-initialized from config/state-file.template.md)
  • Post queue: assets/drafts/queue.json (managed by hooks/scripts/queue-manager.mjs)
  • Analytics CLI: scripts/analytics/ (TypeScript, requires tsx and npm install)
  • Analytics data: assets/analytics/ (gitignored)

Hooks

9 hooks across 7 events. All Node.js (.mjs). PreToolUse/PostToolUse hooks use parameterized content-gatekeeper.mjs with isLinkedInContent() check.

Event Purpose
SessionStart Load state, REMEMBER.md, milestone tracker
PreToolUse (Write|Edit) Content quality gate, voice guardian, topic rotation gate
Stop State update, pre-publish reminders, content history
UserPromptSubmit LinkedIn context enrichment (three-tier matching)
PostToolUse (Write) Post-creation automation (5x5x5, posting time)
PreCompact Preserve LinkedIn context during compaction
Notification Posting reminders (rate-limited 30min)

Session markers: /tmp/linkedin-hooks/session-active (Stop hook gating, 12h staleness). Shared modules: linkedin-content-filter.mjs, queue-manager.mjs, personalization-score.mjs.

Hook editing: Edit hooks/hooks.template.json + hooks/prompts/*.md, then run python3 hooks/scripts/compile-hooks.py. Do not edit hooks.json directly. Prompts are loaded at runtime by gatekeeper scripts; the compile step is only needed when adding type: prompt hooks.

Commands (27)

Command Purpose
/linkedin Router — status line + command menu
/linkedin:onboarding Multi-step onboarding wizard (profile → setup → first-post)
/linkedin:first-post First-post accelerator (10 min)
/linkedin:setup Guided personalization setup
/linkedin:react URL-to-post pipeline
/linkedin:post Full post creation (10-15 min)
/linkedin:quick 5-minute quick post (3-line formula)
/linkedin:templates Browse/apply post templates
/linkedin:pipeline Full end-to-end content pipeline
/linkedin:batch Create a full week of content
/linkedin:calendar View/manage post scheduling queue
/linkedin:publish Mark scheduled posts as published
/linkedin:carousel Structured multi-slide carousel generator
/linkedin:video Video script generator (30s-2min)
/linkedin:multiplatform Adapt content for other platforms
/linkedin:analyze Content/performance analysis
/linkedin:audit Periodic content strategy audit
/linkedin:import Import CSV export → structured JSON
/linkedin:report Generate weekly performance report
/linkedin:ab-test Design and manage A/B content tests
/linkedin:strategy Growth strategy planning
/linkedin:authority Systematic authority building
/linkedin:competitive Competitive analysis of niche
/linkedin:monetize Monetization strategy and funnels
/linkedin:speaking Speaking opportunity pipeline
/linkedin:collab Collaboration orchestration
/linkedin:profile 360Brew profile optimization

Agents (16)

Agent Model Color Responsibility
content-optimizer Sonnet Blue Optimize existing posts
strategy-advisor Sonnet Green Growth recommendations
analytics-interpreter Sonnet Yellow Audience pattern analysis
engagement-coach Haiku Magenta 5x5x5 + first-hour tactics
content-planner Sonnet Cyan Content audit + weekly/monthly plans
content-tracker Haiku Orange Plan vs. published tracking
performance-reporter Sonnet Amber Weekly/monthly performance reports
network-builder Sonnet Teal Strategic networking + outreach
content-repurposer Sonnet Purple Format conversion + evergreen refresh
comment-strategist Sonnet Red CEA commenting + target selection
trend-spotter Sonnet White Trending topics + opportunity scores
voice-trainer Sonnet Pink Voice profile building + drift detection
differentiation-checker Sonnet Gray Originality scoring + commodity detection
post-feedback-monitor Haiku Lime Post-publish 48h monitoring
personalization-scorer Haiku Indigo Asset completeness scoring
video-scripter Sonnet Violet Video script creation with pacing

Rule: Always read assets/voice-samples/ before generating content.

Content Quality Rules

  1. Hook: 110-140 characters (mobile cutoff)
  2. Post length: 1,200-1,800 chars (standard), 150-500 chars (quick)
  3. No external links in post body (40-50% reach suppression)
  4. No corporate buzzwords: leverage, synergy, paradigm shift, thought leader, disruptive, value proposition, ecosystem, holistic approach
  5. Topic must align with user's 5 core expertise areas (360Brew signal)
  6. Topic rotation: no back-to-back same pillar, no pillar >50% in 14 days (warn-only)