instances/xiaodazi/skills/elegant-reports/SKILL.md
Generate beautifully designed PDF reports with Nordic-style typography, charts, tables, and multi-page layouts using reportlab or fpdf2.
npx skillsauth add malue-ai/dazee-small elegant-reportsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
生成设计感强的专业 PDF 报告,支持图表、表格、多页排版,Nordic 简约风格。
首次使用时自动安装:
pip install fpdf2 matplotlib
通过 Python 脚本使用 fpdf2 生成 PDF,matplotlib 生成图表。
#2C3E50 + 白色为主,琥珀黄 #F39C12 作强调色from fpdf import FPDF
class ElegantReport(FPDF):
"""Nordic-style PDF report generator."""
def header(self):
self.set_font('Helvetica', 'B', 10)
self.set_text_color(44, 62, 80)
self.cell(0, 10, self.title, align='R')
self.ln(15)
def footer(self):
self.set_y(-15)
self.set_font('Helvetica', '', 8)
self.set_text_color(149, 165, 166)
self.cell(0, 10, f'Page {self.page_no()}/{{nb}}', align='C')
def chapter_title(self, title: str):
self.set_font('Helvetica', 'B', 18)
self.set_text_color(44, 62, 80)
self.cell(0, 15, title)
self.ln(20)
def body_text(self, text: str):
self.set_font('Helvetica', '', 11)
self.set_text_color(52, 73, 94)
self.multi_cell(0, 7, text)
self.ln(5)
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('Agg')
def create_chart(data: dict, output_path: str):
"""Generate chart image for embedding in PDF."""
fig, ax = plt.subplots(figsize=(8, 4))
# Nordic color palette
colors = ['#2C3E50', '#E74C3C', '#F39C12', '#27AE60', '#3498DB']
ax.bar(data.keys(), data.values(), color=colors[:len(data)])
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.tight_layout()
plt.savefig(output_path, dpi=150, bbox_inches='tight')
plt.close()
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.