← 返回 Skills 市场
caoyachao

GitHub to RedNote

作者 caoyachao · GitHub ↗ · v1.6.0 · MIT-0
cross-platform ⚠ suspicious
236
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install github-to-rednote
功能描述
Convert GitHub repositories into RedNote (小红书) style technical articles. Use when user wants to generate tech promotion content from GitHub repos - including...
使用说明 (SKILL.md)

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 \x3Cgithub-url>

# Specify article type
python3 scripts/generate_article.py \x3Cgithub-url> --type review

# Save to file
python3 scripts/generate_article.py \x3Cgithub-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
安全使用建议
Before installing or running this skill: 1) Inspect raw files: open SKILL.md, manifest.yaml, and scripts/llm_generator.py and image_generator.py in a text editor that can show invisible/control characters. The pre-scan flagged possible system-prompt override and unicode-control characters in SKILL.md — remove or investigate any unexpected control characters or instructions that attempt to change agent/system prompts. 2) Confirm environment variable expectation: manifest.yaml and the code require a GITHUB_TOKEN. Do NOT provide a token with wide write/admin scopes. For public repo reads use a token with minimal scopes (public_repo or no repo write scopes). If you only need public repository metadata, prefer a token limited to read-only access. 3) Review network behavior in llm_generator.py: README claims 'no external LLM API keys required' and the code uses an OpenClaw agent client, but inspect llm_generator.py to ensure it does not call external LLM services (OpenAI/Anthropic/etc.) or unexpected endpoints. If it makes outbound network requests beyond api.github.com, evaluate whether those are necessary. 4) Check subprocess usage: image_generator.py imports subprocess and may invoke external converters (cairosvg or system binaries). Ensure it doesn't construct shell commands from untrusted input (e.g., repo README content) that could lead to command injection. 5) Sandbox and least privilege: run the tool in a sandboxed account or container first. Clear or inspect cache files under ~/.cache/github-to-rednote if concerned. Do not run with elevated privileges. 6) If you plan to use this skill autonomously, be extra cautious: prompt-injection indicators combined with autonomous invocation increase risk. If you cannot verify the SKILL.md and llm_generator contents, avoid granting it autonomous execution. If you want, I can: (a) search the included files for suspicious function calls or remote endpoints, (b) display the raw SKILL.md with visible-control-character highlighting, or (c) summarize llm_generator.py and any subprocess calls found in image_generator.py to help you decide.
功能分析
Type: OpenClaw Skill Name: github-to-rednote Version: 1.6.0 The github-to-rednote skill bundle is a legitimate tool designed to convert GitHub repository information into formatted technical articles for the RedNote (Xiaohongshu) platform. It includes a robust GitHub API wrapper (github_api.py) with caching and rate-limit handling, a content generator (llm_generator.py) that utilizes OpenClaw's agent capabilities, and an image generation utility (image_generator.py) for creating cover images. The code follows safe practices, such as using list-based subprocess calls to avoid shell injection and properly encoding API parameters. No evidence of data exfiltration, malicious persistence, or harmful prompt injection was found; the skill operates entirely within its stated purpose.
能力评估
Purpose & Capability
The code and manifest show a coherent purpose: fetch GitHub repo data, use the OpenClaw built-in agent to generate content, and optionally render cover images. However the top-level registry metadata (in the evaluation header) claimed 'Required env vars: none / Primary credential: none' while manifest.yaml and README explicitly require GITHUB_TOKEN and the code (github_api.py) enforces it. This mismatch between declared requirements and actual requirements is incoherent and could mislead users.
Instruction Scope
SKILL.md and scripts instruct the agent to fetch repo data via the GitHub API, call an OpenClaw agent client, format text, and generate images. These actions are consistent with the described purpose. However the SKILL.md was flagged by the pre-scan for 'system-prompt-override' and 'unicode-control-chars' (prompt-injection patterns). That indicates the runtime instructions may contain hidden or manipulative content that could try to alter the agent's system prompt or behavior — this is outside the expected scope for a content-generator skill and is a red flag that should be investigated by inspecting the raw SKILL.md for control characters or embedded injection payloads.
Install Mechanism
There is no install spec (instruction-only from the registry perspective), which is low-risk because nothing is downloaded at install time. However the package includes multiple local Python scripts (github_api.py, llm_generator.py, image_generator.py, etc.) that will be executed by users/agents. No external installers or remote downloads are specified in the manifest, so install-time risk is limited — but you should still review the included scripts before running them.
Credentials
The only required secret in the manifest/README/code is GITHUB_TOKEN, which is appropriate for a tool that calls the GitHub API. That token requirement is proportionate. The inconsistency is that the registry metadata in the header claims 'no required env vars' while manifest.yaml and the code require GITHUB_TOKEN — this documentation mismatch reduces trust and should be resolved before use. Also the tool writes cache files to ~/.cache/github-to-rednote which is expected but worth noting.
Persistence & Privilege
The skill does not request 'always: true' and does not declare modifications to other skills or system-wide settings. It creates cache files under the user's home directory (~/.cache/github-to-rednote) and writes generated images/articles to user-specified output paths — these are expected behaviors and within the scope of the skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-to-rednote
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-to-rednote 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.6.0
Extract Chinese features from README 功能特点 sections, update changelog
v1.5.0
Add GitHub URL to cover image
v1.4.0
OpenClaw Skill branding, functional content extraction, light theme
v1.3.0
Light theme cover images, Chinese font support, full article content extraction
v1.2.2
Fixed fallback generator bug. Added dynamic content extraction from README.
元数据
Slug github-to-rednote
版本 1.6.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

GitHub to RedNote 是什么?

Convert GitHub repositories into RedNote (小红书) style technical articles. Use when user wants to generate tech promotion content from GitHub repos - including... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 236 次。

如何安装 GitHub to RedNote?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-to-rednote」即可一键安装,无需额外配置。

GitHub to RedNote 是免费的吗?

是的,GitHub to RedNote 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitHub to RedNote 支持哪些平台?

GitHub to RedNote 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitHub to RedNote?

由 caoyachao(@caoyachao)开发并维护,当前版本 v1.6.0。

💬 留言讨论