agentleFS
AgriciDanielAgriciDaniel/claude-repurpose/CLAUDE.md

claude-repurpose

CLAUDE.md156 starsChanged 8 months agoMITView on GitHub

Standalone Claude Code skill that transforms any content (YouTube videos, blog posts, podcasts, local files) into 10+ platform-optimized outputs. Follows the Agent Skills open standard and the 3-layer architecture (directive, orchestration, execution). 20 sub-skills, 6 parallel subagents, 8 reference files, and 3 Python scripts.

The file

We split this CLAUDE.md into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep SKILL.md files under 500 lines

    line 68
  2. Distinctive:

    No hardcoded credentials or secrets

    line 77
  3. Distinctive:

    No user credentials in output files

    line 79
  4. Very specific:

    Use os.path.dirname(os.path.abspath(__file__)) for paths

    line 80
  5. Distinctive:

    Platform-Native: Never cross-post verbatim.

    line 87
  6. Very specific:

    Mandatory Outputs: Every run MUST produce all-content.md (single consolidated file) and index.html (dark-themed viewer with Copy buttons).

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Repurpose: Content Repurposing Engine

Project Overview

Standalone Claude Code skill that transforms any content (YouTube videos, blog posts, podcasts, local files) into 10+ platform-optimized outputs. Follows the Agent Skills open standard and the 3-layer architecture (directive, orchestration, execution). 20 sub-skills, 6 parallel subagents, 8 reference files, and 3 Python scripts.

Architecture

claude-repurpose/
  .claude-plugin/plugin.json       # Plugin manifest
  skills/
    repurpose/                     # Main orchestrator
      SKILL.md                     # Entry point, routing table, core rules
      references/                  # 8 on-demand knowledge files
    repurpose-twitter/SKILL.md     # Twitter/X (threads, tweets, polls)
    repurpose-linkedin/SKILL.md    # LinkedIn (posts, PDF carousels, polls)
    repurpose-instagram/SKILL.md   # Instagram (carousels, captions, reels)
    repurpose-tiktok/SKILL.md      # TikTok (video scripts, carousels, stitch/duet)
    repurpose-threads/SKILL.md     # Threads (threads, standalone posts, image posts)
    repurpose-pinterest/SKILL.md   # Pinterest (pins, idea pins, boards)
    repurpose-snapchat/SKILL.md    # Snapchat (stories, Spotlight, AR concepts)
    repurpose-facebook/SKILL.md    # Facebook (posts, polls, stories)
    repurpose-youtube/SKILL.md     # YouTube Community (posts, polls)
    repurpose-skool/SKILL.md       # Skool (discussions, challenges, polls)
    repurpose-newsletter/SKILL.md  # Newsletter + email sequences
    repurpose-discord/SKILL.md     # Discord (announcements, threads, embeds)
    repurpose-reddit/SKILL.md      # Reddit (discussion posts)
    repurpose-quora/SKILL.md       # Quora (answers, Space posts, questions)
    repurpose-medium/SKILL.md      # Medium (articles, tags, publications)
    repurpose-whatsapp/SKILL.md    # WhatsApp (channel updates, polls, teasers)
    repurpose-telegram/SKILL.md    # Telegram (channel posts, deep dives, polls)
    repurpose-quotes/SKILL.md      # Quote graphics + /banana prompts
    repurpose-seo/SKILL.md         # Cross-platform SEO metadata
    repurpose-calendar/SKILL.md    # 7-day publishing calendar
  agents/                          # 5 parallel subagents
    repurpose-social.md            # Twitter + Threads + LinkedIn + Facebook
    repurpose-visual.md            # Instagram + TikTok + Pinterest + Snapchat + Quotes
    repurpose-longform.md          # Newsletter + Email + Reddit + Quora
    repurpose-community.md         # YouTube Community + Skool + Discord
    repurpose-seo.md               # SEO metadata across all
    repurpose-broadcast.md         # WhatsApp + Telegram + Medium
  scripts/
    extract_transcript.py          # YouTube -> transcript (yt-dlp)
    extract_article.py             # URL -> clean text (bs4)
    transcribe_audio.py            # Audio -> text (whisper/voxtype)
  hooks/hooks.json                 # PostToolUse validation
  extensions/banana/               # /banana image gen helper

Commands

CommandPurpose
/repurpose <url-or-file>Full repurposing to all platforms
/repurpose <url> --platforms twitter,linkedinSpecific platforms only
/repurpose <url> --voice casual|professional|wittyOverride brand voice
/repurpose <url> --briefQuick mode: top 3 platforms
/repurpose <url> --imagesGenerate images via /banana
/repurpose analyze <url>Content atomization only (no outputs)
/repurpose calendarGenerate 7-day publishing calendar

Development Rules

  • Keep SKILL.md files under 500 lines
  • Reference files under 200 lines
  • Scripts: CLI interface, JSON output, SSRF protection
  • Kebab-case naming for all directories
  • Agents invoked via Agent tool, never via Bash
  • Python deps install into ~/.claude/skills/repurpose/.venv/

Security Rules

  • No hardcoded credentials or secrets
  • URL validation in all scripts (block private IPs, loopback)
  • No user credentials in output files
  • Use os.path.dirname(os.path.abspath(__file__)) for paths

Key Principles

  1. Progressive Disclosure: Metadata loaded, instructions on activation, references on demand
  2. Content Detection: Auto-detect YouTube, blog URL, local file, audio, pasted text
  3. Parallel Execution: 5 subagents run simultaneously for maximum speed
  4. Platform-Native: Never cross-post verbatim; adapt message, tone, format per platform
  5. /banana Integration: Image generation is ENFORCED by default when /banana is available — quote cards, carousel covers, hero images generate automatically (no flag needed). Prompts always saved as fallback.
  6. Mandatory Outputs: Every run MUST produce all-content.md (single consolidated file) and index.html (dark-themed viewer with Copy buttons). Run scripts/generate_html.py as final step.

Ecosystem

Part of the Claude Code skill family:

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.