GitHub to RedNote
Convert GitHub repositories into RedNote-style technical articles.
Overview
This skill transforms GitHub repository information into engaging RedNote (小红书) formatted articles suitable for Chinese tech community promotion.
Supported Article Types:
- 1. Intro - Project recommendation/overview
- Review - Technical review and evaluation
- Tutorial - Usage guide and tutorial
- List - Tool collection/list
- Release - Version release notes
Quick Start
CODEBLOCK0
Workflow
- 1. Parse URL - Extract owner/repo from GitHub URL
- Fetch Data - Get repo info, README, languages via GitHub API
- Generate Content - Use LLM to create RedNote-style article
- Format Output - Apply emoji formatting and hashtags
Article Types
1. Intro (项目推荐)
Project introduction and recommendation
- - Focus: What it does, key features, why use it
- Style: Enthusiastic but technical
2. Review (项目测评)
Technical review and evaluation
- - Focus: Pros/cons, use cases, comparison
- Style: Objective analysis
3. Tutorial (使用教程)
Usage guide
- - Focus: Installation, quick start, examples
- Style: Step-by-step instructions
4. List (工具合集)
Tool collection
- - Focus: Multiple related tools, categorized
- Style: Curated list with brief descriptions
5. Release (版本发布)
Version release notes
- - Focus: New features, changes, migration
- Style: Changelog format
Output Format
RedNote style includes:
- - Emoji decorations (🔥💡⚡️🚀)
- Section dividers
- Topic hashtags (#技术分享 #开源项目 #程序员)
- Concise paragraphs (适合手机阅读)
Resources
scripts/
- -
generate_article.py - Main script for article generation - INLINECODE1 - GitHub API wrapper
- INLINECODE2 - RedNote formatting utilities
references/
- -
prompts.md - LLM prompt templates for each article type - INLINECODE4 - RedNote formatting guidelines
assets/
- - Templates and example outputs
GitHub 转小红书
将 GitHub 仓库转换为小红书风格的技术文章。
概述
本技能可将 GitHub 仓库信息转化为适合中文技术社区推广的、引人入胜的小红书格式文章。
支持的文章类型:
- 1. 介绍 - 项目推荐/概述
- 测评 - 技术评测与评估
- 教程 - 使用指南与教程
- 合集 - 工具集合/列表
- 发布 - 版本发布说明
快速开始
bash
基础用法 - 生成介绍文章
python3 scripts/generate_article.py
指定文章类型
python3 scripts/generate_article.py --type review
保存到文件
python3 scripts/generate_article.py --output article.md
工作流程
- 1. 解析 URL - 从 GitHub URL 提取所有者/仓库信息
- 获取数据 - 通过 GitHub API 获取仓库信息、README、语言等
- 生成内容 - 使用大语言模型创建小红书风格文章
- 格式化输出 - 应用表情符号格式和话题标签
文章类型
1. 介绍(项目推荐)
项目介绍与推荐
- - 重点:功能、核心特性、使用理由
- 风格:热情但保持技术性
2. 测评(项目测评)
技术评测与评估
- - 重点:优缺点、使用场景、对比分析
- 风格:客观分析
3. 教程(使用教程)
使用指南
4. 合集(工具合集)
工具集合
- - 重点:多个相关工具,分类整理
- 风格:精选列表配简要说明
5. 发布(版本发布)
版本发布说明
- - 重点:新功能、变更、迁移指南
- 风格:更新日志格式
输出格式
小红书风格包含:
- - 表情符号装饰(🔥💡⚡️🚀)
- 章节分隔符
- 话题标签(#技术分享 #开源项目 #程序员)
- 简洁段落(适合手机阅读)
资源
scripts/
- - generatearticle.py - 文章生成主脚本
- githubapi.py - GitHub API 封装
- formatters.py - 小红书格式工具
references/
- - prompts.md - 各文章类型的大语言模型提示词模板
- rednote-style.md - 小红书格式指南
assets/