Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

github-to-xhsGitHub TO XHS 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

4,772

周安装

205

GitHub Stars

公开资料未说明

下载量

1,673
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-to-xhs(GitHub TO XHS 搜索)
来源仓库:https://github.com/laojun509/github-to-xhs
安装命令:
openclaw skills install github-to-xhs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install github-to-xhs

简介

分析 GitHub 项目并生成小红书信息图帖子,突出技术价值点。

  • 适合开发者做个人 IP 推广或项目冷启动时使用。
  • 通过 clawhub 安装,输出包含标题、要点与配图建议的完整方案。
  • 不涉及图像合成,需用户自行准备视觉素材。
  • github-to-xhs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
github-to-xhs
description
Analyze a GitHub repository and generate Xiaohongshu (Little Red Book) infographic posts. Use when the user wants to create social media content about a GitHub project, including technical analysis, feature highlights, and promotional posts. Supports automatic content analysis, multiple outline strategies, and HTML-based visual output.

GitHub to Xiaohongshu Skill

Transform any GitHub repository into engaging Xiaohongshu (小红书) infographic content.

Usage

# Basic usage - analyze a GitHub repo and generate XHS content
/github-to-xhs https://github.com/user/repo

# With specific focus
/github-to-xhs https://github.com/user/repo --focus "AI features"

# After generation, files are in:
# /root/.openclaw/workspace/xhs-images/{repo-slug}/

Workflow

Step 1: Fetch GitHub Repository

Use web_fetch to get the repository's README and main content.

https://github.com/{owner}/{repo}

Step 2: Content Analysis

Analyze the repository and create analysis.md:

# {repo-name} Analysis

## Project Info
- Name: {name}
- Author: {author}
- Stars: {stars}
- Language: {language}
- Description: {description}

## Core Features
- Feature 1
- Feature 2
...

## Target Audience
- Audience 1
- Audience 2

## XHS Angles
- Hook ideas (max 20 characters for title)
- Visual opportunities

Step 3: Generate Outline Strategies

Create 6 different outline strategies with distinct visual styles:

Strategy A - Story-Driven (outline-strategy-a.md)

  • Personal discovery narrative
  • Problem → Solution → Result flow
  • 4 images, warm/cute style
  • Soft gradients, bookmarks, progress bars

Strategy B - Information-Dense (outline-strategy-b.md)

  • Feature highlights + technical details
  • Comparison tables + code blocks
  • 5 images, notion/minimal style
  • Grid background, geometric shapes

Strategy C - Visual-First (outline-strategy-c.md)

  • Bold visuals, minimal text
  • Showcase/demo focus
  • 3 images, bold/pop style
  • Large icons, big numbers, solid colors

Strategy D - Cyberpunk Tech (outline-strategy-d.md) ⭐ NEW

  • Neon colors, dark background
  • Perfect for developer tools, AI projects
  • 4-5 images, glowing accents
  • Dark theme (#0a0a0a), neon cyan/pink/purple

Strategy E - Warm Hand-drawn (outline-strategy-e.md) ⭐ NEW

  • Sketchy, organic, friendly
  • Great for beginner tutorials, educational content
  • 4-5 images, paper texture background
  • Earth tones, hand-drawn icons, doodles

Strategy F - Dark Professional (outline-strategy-f.md) ⭐ NEW

  • Sleek, premium, enterprise feel
  • Ideal for business tools, SaaS products
  • 5 images, dark navy background
  • Gold/amber accents, glassmorphism effects

Step 4: User Selection

Present all 6 strategies and ask user to choose:

📋 Select your preferred strategy:
- A: Story-Driven (4 images, emotional, warm)
- B: Information-Dense (5 images, technical, notion) ⭐ Default
- C: Visual-First (3 images, bold, minimal)
- D: Cyberpunk Tech (4-5 images, neon dark, dev tools)
- E: Warm Hand-drawn (4-5 images, sketchy, educational)
- F: Dark Professional (5 images, premium, enterprise)

Or specify a style: "Use cyberpunk style" / "Make it warm and friendly"

Step 5: Generate Content

Create final files:

  1. outline.md - Selected strategy
  2. prompts/NN-{type}-{slug}.md - Image generation prompts for each slide
  3. xiaohongshu-post.html - Complete HTML with all 5 slides styled for XHS

Step 6: Package Output

Create tar.gz archive with timestamp and version:

tar -czf {repo-slug}-xhs-{YYYYMMDD}-v{N}.tar.gz {repo-slug}/

Naming Convention: {repo-slug}-xhs-{date}-v{version}.tar.gz

  • Example: hermes-agent-xhs-20250413-v2.tar.gz

Output Structure

xhs-images/{repo-slug}/
├── source-{slug}.md              # Original GitHub content
├── analysis.md                   # Content analysis
├── outline-strategy-a.md         # Story-driven (warm)
├── outline-strategy-b.md         # Information-dense (notion)
├── outline-strategy-c.md         # Visual-first (bold)
├── outline-strategy-d.md         # Cyberpunk tech (NEW)
├── outline-strategy-e.md         # Warm hand-drawn (NEW)
├── outline-strategy-f.md         # Dark professional (NEW)
├── outline.md                    # Final selected outline
├── xiaohongshu-post.html         # Complete visual output
├── xiaohongshu-article.md        # Article content for XHS caption
├── prompts/                      # Image generation prompts
│   ├── 01-cover-{slug}.md
│   ├── 02-features-{slug}.md
│   └── ...
└── {repo-slug}-xhs-{YYYYMMDD}-v{N}.tar.gz  # Final package

HTML Output Features

The generated xiaohongshu-post.html includes multiple visual style templates:

Available Style Themes

ThemeBest ForColorsAesthetic
Notion (Default)Technical docs, toolsOff-white, gray, subtle accentsClean, minimal, grid background
CyberpunkAI tools, dev projectsDark bg, neon cyan/pink/purpleGlowing, futuristic, high contrast
WarmTutorials, educationCream, earth tones, warm accentsHand-drawn, friendly, organic
Dark ProEnterprise, SaaSNavy/black, gold/amber accentsPremium, sleek, glassmorphism
Bold PopVisual productsSolid vibrant colors, high contrastEye-catching, minimal text

CSS Features (All Themes)

  • 5 responsive cards (375×500px each)
  • Custom background patterns per theme
  • Animated accents (where appropriate)
  • Comparison tables with theme-appropriate styling
  • Code blocks with syntax highlighting
  • Mobile-first design

Image Generation Prompts

Each prompt file includes:

  • Canvas specifications (375×500px)
  • Visual style (see Available Style Themes above)
  • Content layout
  • Color palette specific to theme
  • Typography notes

Examples

Example 1: Tool/Library

User: /github-to-xhs https://github.com/mvanhorn/last30days-skill

Output: 5-card XHS post about multi-source research tool
- P1: Cover with 10 platform logos
- P2: 4 core features
- P3: Algorithm pie chart
- P4: Manual vs Auto comparison
- P5: Install commands

Example 2: Framework

User: /github-to-xhs https://github.com/vercel/next.js

Output: Technical introduction with:
- Key features highlight
- Performance metrics
- Code examples
- Getting started guide

File Naming Standards

When delivering files to users, always use the following format:

Archive File: {repo-slug}-xhs-{YYYYMMDD}-v{N}.tar.gz

  • repo-slug: Repository name (e.g., hermes-agent)
  • YYYYMMDD: Current date (e.g., 20250413)
  • v{N}: Version number starting from v1 (e.g., v2 for revisions)

Example: hermes-agent-xhs-20250413-v2.tar.gz

Delivery Message Template

When sending the file, include:

  1. Filename with date and version
  2. Brief description of contents
  3. Usage instructions
文件名: {repo-slug}-xhs-{YYYYMMDD}-v{N}.tar.gz
日期: {YYYY-MM-DD}
版本: v{N}

包含:
- xiaohongshu-post.html - 5页卡片
- xiaohongshu-article.md - 正文文案
- prompts/ - AI绘图提示词

Tips

  • Title limit: Keep titles under 20 characters (XHS display limit)
  • Style selection guide:

- Use A (Story-Driven) for: personal projects, beginner tutorials, emotional connection - Use B (Information-Dense) for: technical tools, libraries, frameworks - Use C (Visual-First) for: visual products, demos, screenshot-heavy content - Use D (Cyberpunk) for: AI tools, dev tools, futuristic/tech projects - Use E (Hand-drawn) for: education, tutorials, friendly/approachable tools - Use F (Dark Pro) for: enterprise SaaS, business tools, premium products

  • Always check if user has preferences for style/layout
  • The HTML output can be screenshot for XHS posting
  • Mix and match: You can combine elements from different styles

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.77%
按下载量换算1,318

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills