code-card-news-generator
Generate code explanation cards with syntax highlighting for tutorials and education. Creates title cards and explanation cards with Korean descriptions and code examples.
Install
mkdir -p .claude/skills/code-card-news-generator && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7976" && unzip -o skill.zip -d .claude/skills/code-card-news-generator && rm skill.zipInstalls to .claude/skills/code-card-news-generator
About this skill
Code Card News Generator
코드 설명용 카드 뉴스를 생성하는 스킬입니다. 제목 카드와 함수/개념 설명 카드를 자동으로 만듭니다.
When to Use
Use this skill when user requests:
- "코드 설명 카드 만들어줘"
- "React Hook 설명 카드 생성해줘"
- "코드 튜토리얼 카드 뉴스 만들어줘"
- Any request for code tutorial/explanation cards
Core Workflow
Step 1: Get Topic and Content from User
Ask user for:
- Topic (주제): What library/framework/concept (e.g., "React Router Hooks")
- Functions/Concepts: List of items to explain (e.g., "useNavigate, useParams, useLocation")
Example conversation:
Claude: 어떤 주제로 코드 카드를 만들까요?
User: React Router Hooks
Claude: 어떤 Hook들을 설명할까요?
User: useNavigate, useParams, useLocation
Step 2: Generate Content
For each function/concept, create:
- Description (한국어 설명): Brief explanation in Korean/English
- Code Example: Working code snippet
- Explanation: What the code does
Example:
1. useNavigate
Description: It's used for programmatic navigation, allowing you to redirect users or change routes without needing to render a <Link> component.
Code:
const navigate = useNavigate();
const handleClick = () => {
navigate('/home');
};
Explanation: In this example, calling handleClick will navigate the user to the /home route.
Step 3: Auto-Generate Cards
Use this command:
python3 auto_code_generator.py \
--topic "React Router Hooks" \
--output-dir ./output \
--base-filename "react_router" << 'EOF'
TITLE: React|Router|Hooks
1. useNavigate
Description: It's used for programmatic navigation, allowing you to redirect users or change routes without needing to render a <Link> component.
Code:
const navigate = useNavigate();
const handleClick = () => {
navigate('/home');
};
Explanation: In this example, calling handleClick will navigate the user to the /home route.
2. useParams
Description: useParams is used to access dynamic parameters from the current URL.
Code:
const { id } = useParams();
console.log(id); // Outputs the 'id' from URL
Explanation: If the route is /user/:id and you visit /user/123, useParams will return { id: '123' }.
EOF
The script will generate:
react_router_00_title.png- Title cardreact_router_01.png- useNavigate explanationreact_router_02.png- useParams explanation
Step 4: Provide Download Links
After generation, show user:
✅ 코드 카드 3장이 생성되었습니다!
[View title card](computer:///path/to/react_router_00_title.png)
[View card 1](computer:///path/to/react_router_01.png)
[View card 2](computer:///path/to/react_router_02.png)
Input Format
Title Card
TITLE: Part1|Part2|Part3
Parts separated by | will alternate colors (white/pink). Example:
React|Router|Hooks→ "React" (white), "Router" (pink), "Hooks" (white)
Optional subtitle:
TITLE: React|Router|Hooks
SUBTITLE: Navigation Made Easy
Explanation Cards
1. functionName
Description: Korean or English description...
Code:
code line 1
code line 2
code line 3
Explanation: Additional explanation about what the code does...
2. nextFunction
Description: ...
Code:
...
Explanation: ...
Important:
- Each card starts with a number (1., 2., etc.)
Description:- The main explanationCode:- Code example (starts on next line)Explanation:- Optional additional context
Design Specifications
Colors
- Background:
#1a1a1a(Dark) - Text:
#ffffff(White) - Accent:
#ff6b9d(Pink) - Code Background:
#2d2d2d - Code Border:
#ff6b9d(Pink)
Canvas
- Size: 1080x1080 pixels (Instagram optimized)
- Padding: 60px
Fonts
- General Text: Cafe24Ssurround (bundled)
- Code: Menlo/Monaco (monospace, system font)
Layout
- Title Card: Large centered title with optional subtitle
- Explanation Card:
- Number + Function name (top, pink)
- Description (white)
- Code box (pink border, dark background)
- Explanation (white, with pink highlights)
Content Guidelines
Good Code Example
1. useState
Description: useState is a Hook that lets you add state to functional components.
Code:
const [count, setCount] = useState(0);
setCount(count + 1);
Explanation: This creates a state variable 'count' with initial value 0.
✓ Clear function name ✓ Concise description ✓ Simple, working code ✓ Helpful explanation
Bad Code Example
1. This is a very long function name that explains everything
Description: This is a very long description that goes on and on explaining every single detail about how this function works in various scenarios and edge cases...
Code:
// 50 lines of complex code
...
✗ Too verbose ✗ Code too long/complex ✗ Won't fit in 1080x1080 canvas
Manual Single Card Creation
Create Title Card Only
python3 generate_code_card.py title \
--title "React|Router|Hooks" \
--subtitle "Navigation Made Easy" \
--output ./title.png
Create Explanation Card Only
python3 generate_code_card.py explain \
--number "1" \
--function "useNavigate" \
--description "It's used for programmatic navigation..." \
--code "const navigate = useNavigate();" \
--explanation "This allows navigation without Link component." \
--output ./card_01.png
Example Topics
- React Hooks (useState, useEffect, useContext)
- React Router Hooks (useNavigate, useParams, useLocation)
- Array Methods (map, filter, reduce)
- Python Built-ins (enumerate, zip, lambda)
- CSS Flexbox (flex-direction, justify-content, align-items)
- Git Commands (commit, push, pull, merge)
Tips for Good Cards
- Keep It Simple: One concept per card
- Code Length: Max 5-7 lines of code
- Use Comments: Add helpful comments in code
- Highlight Keywords: Important terms will be auto-highlighted
- Test Code: Make sure code examples actually work
Error Handling
If text overflows:
- Shorten description
- Reduce code lines
- Simplify explanation
- Use more concise language
Example Workflow
User request: "React Router Hooks 설명 카드 3개 만들어줘"
Claude response:
- Confirm: "React Router Hooks에 대한 코드 카드를 만들겠습니다. useNavigate, useParams, useLocation을 설명하겠습니다."
- Generate content for 3 hooks
- Run auto_code_generator.py with heredoc
- Provide download links
Total time: ~1 minute for 4-card series (1 title + 3 explanations)
More by bear2u
View all skills by bear2u →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversConnect Blender to Claude AI for seamless 3D modeling. Use AI 3D model generator tools for faster, intuitive, interactiv
Create modern React UI components instantly with Magic AI Agent. Integrates with top IDEs for fast, stunning design and
Effortlessly create 25+ chart types with MCP Server Chart. Visualize complex datasets using TypeScript and AntV for powe
Unlock powerful text to speech and AI voice generator tools with ElevenLabs. Create, clone, and customize speech easily.
AI-driven CAD modeling with FreeCAD: control design workflows, generate logos, and edit objects using remote Python scri
Transform Figma designs into high-quality code with AI. Seamless figma to code and figma to html workflows for efficient
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.