convez.ai
SkillAutomaçãoIntermediário
Constantine1916

Sun Skills

Constantine1916/sun-skills

Skills para produtividade diária: MD→XHS, relatórios, automações

Ver no GitHub
InicialPluginScore · de 0 a 100

Coleção de skills Python para aumentar eficiência no trabalho diário com Claude Code. Inclui ferramentas para conversão de Markdown em cards Xiaohongshu, geração de relatórios GitHub/GitLab e outras automações.

Instalação

$npx convez-ai Constantine1916/sun-skills

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
3
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
4

Casos de uso

  • Converter artigos Markdown em cards de mídia social (Xiaohongshu)
  • Gerar relatórios automáticos de GitHub e GitLab
  • Automatizar tarefas recorrentes de produtividade

Veredito

Pacote prático focado em automações e conversões de conteúdo para fluxos de trabalho específicos (especialmente Xiaohongshu). Utilidade real para quem trabalha com conteúdo em múltiplas plataformas, mas com escopo bastante nicho (forte viés China).

README

A tradução para o português deste README ainda está na fila.

sun-skills

English | 中文

Skills shared by Sun for improving daily work efficiency with Claude Code.

Prerequisites

  • Node.js environment installed
  • Ability to run bun commands for sun-md2xhs
  • Chrome or Chromium installed for sun-md2xhs PNG export
  • Python 3 installed for sun-report
  • gh for GitHub reports and glab for GitLab reports

Installation

Quick Install (Recommended)

npx skills add sun/sun-skills

Publish to ClawHub / OpenClaw

This repository now supports publishing each skills/sun-* directory as an individual ClawHub skill.

# Preview what would be published
./scripts/sync-clawhub.sh --dry-run

# Publish all changed skills from ./skills
./scripts/sync-clawhub.sh --all

ClawHub installs skills individually, not as one marketplace bundle. After publishing, users can install specific skills such as:

clawhub install sun-md2xhs
clawhub install sun-report

Publishing to ClawHub releases the published skill under MIT-0, per ClawHub's registry rules.

Register as Plugin Marketplace

Run the following command in Claude Code:

/plugin marketplace add Constantine1916/sun-skills

Install Skills

Option 1: Via Browse UI

  1. Select Browse and install plugins
  2. Select sun-skills
  3. Select the sun-skills plugin
  4. Select Install now

Option 2: Direct Install

# Install the marketplace's single plugin
/plugin install sun-skills@sun-skills

Option 3: Ask the Agent

Simply tell Claude Code:

Please install Skills from github.com/Constantine1916/sun-skills

Available Plugin

The marketplace now exposes a single plugin so each skill is registered exactly once.

PluginDescriptionIncludes
sun-skillsSkills for daily work efficiencyAll skills in this repository

Update Skills

To update skills to the latest version:

  1. Run /plugin in Claude Code
  2. Switch to Marketplaces tab (use arrow keys or Tab)
  3. Select sun-skills
  4. Choose Update marketplace

You can also Enable auto-update to get the latest versions automatically.

Available Skills

Content Generation Skills

sun-md2xhs

Convert Markdown articles into Xiaohongshu (Little Red Book) style long-form image card sequences. Each card features user avatar, blue verified badge, and date — mimicking Xiaohongshu's native post style (white background, PingFang font). Content is precisely cut by height with no blank space.

# Convert an MD file to XHS image cards
bun <skill-install-dir>/scripts/md2xhs.js ~/article.md \
  --name "Your Name" \
  --avatar /path/to/avatar.jpg \
  --out ~/Desktop/xhs-output/

Options:

OptionDescriptionRequired
--name <name>Display name, such as your Xiaohongshu usernameYes
--avatar <path>Avatar image path (jpg / png / webp / svg)Yes
--out <dir>Output directoryNo, default ./output
--date <date>Date string (e.g., 2026年03月25日)No, default today
--width <px>Card width in pxNo, default 1080
--chrome <path>Chrome / Chromium executable pathNo, auto-detected or CHROME_PATH
--debug-port <port>Chrome DevTools debugging portNo, auto-selected
--html-onlyGenerate render HTML only and skip PNG exportNo

Markdown Support:

ElementRendered As
# Heading / ## Heading / ### SubheadingBold title text
**Bold**Bold text
`code`Inline code
fenced code blockGray code block; long blocks are split across pages
- List itemBulleted list
> QuoteGray text paragraph
Markdown tableSimple table card
![alt](./image.png)Local image, resolved relative to the Markdown file
![alt](https://...)Remote image loaded by Chrome during export
--- dividerIgnored
EmojiPreserved as-is

Output Structure:

<out-dir>/
  <filename>-01.png   ← Page 1, with avatar/name/date
  <filename>-02.png   ← Page 2, body only
  ...
  .tmp-html/
    <filename>-render.html
    <filename>-payload.js
    md2xhs-renderer.js

The script first generates a self-contained render HTML file, then starts a temporary Chrome instance with DevTools Protocol enabled. It reads pagination metadata from the rendered page and captures each page as a PNG. Use --html-only when you only want to inspect the generated render HTML.

Report Generation Skills

sun-report

Generate developer daily or weekly reports from account-level remote commits on GitHub, GitLab, or both. The skill summarizes pushed work into module-level output instead of listing raw commits.

Installation:

Install the sun-skills marketplace/plugin using the instructions above. sun-report is included once the repository is installed.

Prerequisites:

  • GitHub usage requires gh
  • GitLab usage requires glab
  • Self-hosted GitLab is supported by passing the instance hostname

Usage in Claude Code / Codex:

$sun-report 帮我写一个日报
$sun-report 帮我写一个周报

Example prompts:

$sun-report 帮我按 GitHub 提交写一个日报
$sun-report 帮我按 GitHub 提交写一个周报
$sun-report 帮我按 GitLab 提交写一个周报

The skill will:

  • Ask whether your work is on GitHub, GitLab, or both
  • Check gh / glab login status before collecting data
  • Support self-hosted GitLab instances by hostname
  • Only count commits that have already been pushed to the remote platform
  • Use Beijing time for daily and weekly windows

Direct script usage:

python3 ~/.codex/skills/sun-report/scripts/sun_report.py \
  --report-type weekly \
  --providers github
python3 ~/.codex/skills/sun-report/scripts/sun_report.py \
  --report-type weekly \
  --providers gitlab \
  --gitlab-host gitlab.company.com

Environment Configuration

Some skills require API keys or custom configuration. Environment variables can be set in .env files:

  1. CLI environment variables (e.g., OPENAI_API_KEY=xxx /sun-skill ...)
  2. process.env (system environment)
  3. <cwd>/.sun-skills/.env (project-level)
  4. ~/.sun-skills/.env (user-level)

Disclaimer

This project is provided as-is for personal and educational use.

Ver o original no GitHub

Bom para

Relacionados