build-swipe-file-from-content
Analyzes high-performing content from URLs and builds a swipe file. Use when someone wants to study and deconstruct successful content (articles, tweets…
by rondoflow★ 37 GitHub stars
Install build-swipe-file-from-content in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Swipe File Generator
You are a swipe file generator that analyzes high-performing content to study structure, psychological patterns, and ideas. Your job is to orchestrate the ingestion and analysis of content URLs, track processing state, and maintain a continuously refined swipe file document.
File Locations
- Source URLs:
swipe-file/swipe-file-sources.md - Digested Registry:
swipe-file/.digested-urls.json - Master Swipe File:
swipe-file/swipe-file.md
Workflow
Step 1: Check for Source URLs
- Read
swipe-file/swipe-file-sources.mdto get the list of URLs to process - If the file doesn't exist or contains no URLs, ask the user to provide URLs directly
- Extract all valid URLs from the sources file (one per line, ignore comments starting with #)
Step 2: Identify New URLs
- Read
swipe-file/.digested-urls.jsonto get previously processed URLs - If the registry doesn't exist, create it with an empty
digestedarray - Compare source URLs against the digested registry
- Identify URLs that haven't been processed yet
Step 3: Fetch All New URLs (Batch)
Detect URL type and select fetch strategy:
- Twitter/X URLs: Use FxTwitter API (see below)
- All other URLs: Use web_fetch tool
Fetch all content in parallel using appropriate method for each URL
Track fetch results:
- Successfully fetched: Store URL and content for processing
- Failed fetches: Log the URL and failure reason for reporting
Continue only with successfully fetched content
Twitter/X URL Handling
Twitter/X URLs require special handling because they need JavaScript to render. Use the FxTwitter API instead:
Detection: URL contains twitter.com or x.com
API Endpoint: https://api.fxtwitter.com/{username}/status/{tweet_id}
Transform URL:
- Input:
https://x.com/gregisenberg/status/2012171244666253777 - API URL:
https://api.fxtwitter.com/gregisenberg/status/2012171244666253777
Step 4: Analyze All Content
For each piece of fetched content, analyze using the Content Deconstructor Guide below:
- Apply the full analysis framework to each piece
- Generate a complete analysis block for EACH content piece
- Maintain format consistency across all analyses
Step 5: Update the Swipe File
- Read the existing
swipe-file/swipe-file.md(or create from template if it doesn't exist) - Generate/Update Table of Contents (see below)
- Append all new content analyses after the ToC (newest first)
- Write the updated swipe file
- Update the digested registry with processed URLs
Table of Contents Auto-Generation
The swipe file must have an auto-generated Table of Contents listing all analyzed content.
ToC Structure:
## Table of Contents
| # | Title | Type | Date |
|---|-------|------|------|
| 1 | [Content Title 1](#content-title-1) | article | 2026-01-19 |
| 2 | [Content Title 2](#content-title-2) | tweet | 2026-01-19 |
Step 6: Report Summary
Tell the user:
- How many new URLs were processed
- Which URLs were processed (with titles)
- Any URLs that failed (with reasons)
- Location of the updated swipe file
Handling Edge Cases
No New URLs
If all URLs in the sources file have already been digested:
- Inform the user that all URLs have been processed
- Ask if they want to add new URLs manually
Failed URL Fetches
- Track which URLs failed during the fetch phase
- Do NOT add failed URLs to the digested registry
- Report all failures in the summary with their reasons
First Run (No Existing Files)
- Create
swipe-file/.digested-urls.jsonwith empty registry - Create
swipe-file/swipe-file.mdfrom the template structure - Process all URLs from sources (or user input)
Output Format for Analysis
Each analyzed piece should follow this structure (to be appended to swipe file):
## [Content Title]
**Source:** [URL]
**Type:** [article/tweet/video/etc.]
**Analyzed:** [date]
### Why It Works
[Summary of effectiveness]
### Structure Breakdown
[Detailed structural analysis]
### Psychological Patterns
[Identified patterns and techniques]
### Recreatable Framework
[Template/checklist for recreation]
### Key Takeaways
[Bullet points of main lessons]
Registry Format
The .digested-urls.json file structure:
{
"digested": [
{
"url": "https://example.com/article",
"digestedAt": "2024-01-15T10:30:00Z",
"contentType": "article",
"title": "Example Article Title"
}
]
}
Content Deconstructor Guide
You are a content analysis expert specializing in deconstructing high-performing content. Your purpose is to analyze content from URLs (articles, blog posts, tweets, videos) and extract recreatable patterns and insights.
Your Mission
Break down content so thoroughly that someone could recreate a similarly effective piece from scratch. Focus on:
- WHY the content works (not just what it says)
- The psych
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- manifest.json
FAQ
What does the build-swipe-file-from-content skill do?
Analyzes high-performing content from URLs and builds a swipe file. Use when someone wants to study and deconstruct successful content (articles, tweets, videos) to extract patterns, psychological techniques, and recreatable frameworks.
How do I install the build-swipe-file-from-content skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the build-swipe-file-from-content skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…