claude-handoff
MAmattpocock/skills288k10,178 new stars in the last 7 days
Generate code explanation cards with syntax highlighting for tutorials and education. Creates title cards and explanation cards with Korean descriptions and code examples.
코드 설명용 카드 뉴스를 생성하는 스킬입니다. 제목 카드와 함수/개념 설명 카드를 자동으로 만듭니다.
Use this skill when user requests:
Ask user for:
Example conversation:
Claude: 어떤 주제로 코드 카드를 만들까요?
User: React Router Hooks
Claude: 어떤 Hook들을 설명할까요?
User: useNavigate, useParams, useLocation
For each function/concept, create:
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.
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 explanationAfter 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)
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
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:
Description: - The main explanationCode: - Code example (starts on next line)Explanation: - Optional additional context#1a1a1a (Dark)#ffffff (White)#ff6b9d (Pink)#2d2d2d#ff6b9d (Pink)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
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
python3 generate_code_card.py title \
--title "React|Router|Hooks" \
--subtitle "Navigation Made Easy" \
--output ./title.png
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
If text overflows:
User request: "React Router Hooks 설명 카드 3개 만들어줘"
Claude response:
Total time: ~1 minute for 4-card series (1 title + 3 explanations)
MAmattpocock/skills288k10,178 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days