360 Secure SkillHub
360 安全技能中心

GitHub to RedNote

读取 GitHub 仓库地址,通过 GitHub API 获取仓库信息、README 与语言数据,再经 LLM 按 intro、review、tutorial、list、release 五种模板生成小红书风格技术推广文章,应用 emoji 与话题标签并输出为文本或 Markdown 文件。

caoyachao
caoyachao
热度 53.34
最近更新 2026-05-11 17:33:38
分类:营销依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:社交媒体 / 文案创作 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github-to-rednote
Metadata
name
github-to-rednote
description
Convert GitHub repositories into RedNote (小红书) style technical articles. Use when user wants to generate tech promotion content from GitHub repos - including project intros, reviews, tutorials, tool lists, or release notes. Supports 5 article templates with emoji formatting and hashtag tags.

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
  2. Review - Technical review and evaluation
  3. Tutorial - Usage guide and tutorial
  4. List - Tool collection/list
  5. Release - Version release notes

Quick Start

# Basic usage - generate intro article
python3 scripts/generate_article.py <github-url>

# Specify article type
python3 scripts/generate_article.py <github-url> --type review

# Save to file
python3 scripts/generate_article.py <github-url> --output article.md

Workflow

  1. Parse URL - Extract owner/repo from GitHub URL
  2. Fetch Data - Get repo info, README, languages via GitHub API
  3. Generate Content - Use LLM to create RedNote-style article
  4. 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
  • github_api.py - GitHub API wrapper
  • formatters.py - RedNote formatting utilities

references/

  • prompts.md - LLM prompt templates for each article type
  • rednote-style.md - RedNote formatting guidelines

assets/

  • Templates and example outputs