AGENT SKILL
code
暂无简介
适用职业开发工程师
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 557
- Forks
- 62
02 资源文件 4
- 参考文档compose-commit.md2.2 KB
- 参考文档draft-pr-procedure.md810 B
- 参考文档pre-pr-adversarial-review.md4.9 KB
- 脚本skill.py—
03 SKILL.md 正文
1. High-level Skill Pattern Extraction
Skill Name: Themed KPI Doughnut Card
- Tier: component
- Core Mechanism: Builds a modular KPI card containing a title, raw metric, and a minimalist doughnut chart showing percentage completion. Uses
openpyxl.chart.marker.DataPointto explicitly color individual "actual" and "remaining" chart slices, removes standard chart furniture (legends/titles), and setsholeSizeto 65% for a modern dashboard aesthetic. - Applicability: Ideal for high-level executive dashboards to show metrics against targets (e.g., Sales vs Target, Budget Utilized, Quota Attainment). Fits well in a grid layout across the top of a report.
2. Structural Breakdown
- Data Layout: Places the visible Title and Value at the anchor cell, and writes the background percentage calculations (
actual/targetand1 - actual/target) far off-screen (e.g., 20 columns to the right) to keep the dashboard sheet clean. - Formula Logic: Calculates
pct_completeandpct_remainin Python before injecting them into the hidden data columns. - Visual Design: Uses a distinct theme color for the title, value, and the "actual" chart slice, while using a muted gray for the "remaining" slice to draw the eye to the completion rate.
- Charts/Tables:
DoughnutChartsized down to 4.5x4.5 cm withholeSize=65,legend=None, andtitle=None. - Theme Hooks: Consumes
primary_color(for the metric and filled slice),muted_color(for the empty slice), andtext_color(for the label).