Sun Skills
Constantine1916/sun-skills
Skills para produtividade diária: MD→XHS, relatórios, automações
Ver no GitHubColeçã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-skills1 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
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
buncommands forsun-md2xhs - Chrome or Chromium installed for
sun-md2xhsPNG export - Python 3 installed for
sun-report ghfor GitHub reports andglabfor 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
- Select Browse and install plugins
- Select sun-skills
- Select the sun-skills plugin
- 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.
| Plugin | Description | Includes |
|---|---|---|
| sun-skills | Skills for daily work efficiency | All skills in this repository |
Update Skills
To update skills to the latest version:
- Run
/pluginin Claude Code - Switch to Marketplaces tab (use arrow keys or Tab)
- Select sun-skills
- 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:
| Option | Description | Required |
|---|---|---|
--name <name> | Display name, such as your Xiaohongshu username | Yes |
--avatar <path> | Avatar image path (jpg / png / webp / svg) | Yes |
--out <dir> | Output directory | No, default ./output |
--date <date> | Date string (e.g., 2026年03月25日) | No, default today |
--width <px> | Card width in px | No, default 1080 |
--chrome <path> | Chrome / Chromium executable path | No, auto-detected or CHROME_PATH |
--debug-port <port> | Chrome DevTools debugging port | No, auto-selected |
--html-only | Generate render HTML only and skip PNG export | No |
Markdown Support:
| Element | Rendered As |
|---|---|
# Heading / ## Heading / ### Subheading | Bold title text |
**Bold** | Bold text |
`code` | Inline code |
| fenced code block | Gray code block; long blocks are split across pages |
- List item | Bulleted list |
> Quote | Gray text paragraph |
| Markdown table | Simple table card |
 | Local image, resolved relative to the Markdown file |
 | Remote image loaded by Chrome during export |
--- divider | Ignored |
| Emoji | Preserved 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/glablogin 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:
- CLI environment variables (e.g.,
OPENAI_API_KEY=xxx /sun-skill ...) process.env(system environment)<cwd>/.sun-skills/.env(project-level)~/.sun-skills/.env(user-level)
Disclaimer
This project is provided as-is for personal and educational use.