weekly-crm-report

GitHub

将原始CRM导出CSV清洗为区域销售汇总,执行去重、按区域统计收入并输出结构化JSON摘要,供后续代理叙述或接入仪表盘使用。

references/examples/weekly-crm-report/SKILL.md FrancyJGLisboa/agent-skill-creator

触发场景

clean this CRM export weekly sales report regional totals from this CSV

安装

npx skills add FrancyJGLisboa/agent-skill-creator --skill weekly-crm-report -g -y
更多选项

非标准路径

npx skills add https://github.com/FrancyJGLisboa/agent-skill-creator/tree/main/references/examples/weekly-crm-report -g -y

不安装直接使用

npx skills use FrancyJGLisboa/agent-skill-creator@weekly-crm-report

指定 Agent (Claude Code)

npx skills add FrancyJGLisboa/agent-skill-creator --skill weekly-crm-report -a claude-code -g -y

安装 repo 全部 skill

npx skills add FrancyJGLisboa/agent-skill-creator --all -g -y

预览 repo 内 skill

npx skills add FrancyJGLisboa/agent-skill-creator --list

SKILL.md

Frontmatter
{
    "name": "weekly-crm-report",
    "license": "MIT",
    "metadata": {
        "author": "agent-skill-creator",
        "created": 1782518400,
        "version": "1.0.0",
        "last_reviewed": 1784505600,
        "review_interval_days": 180
    },
    "description": "Cleans a weekly CRM export and produces a regional sales summary. Activates when the user asks to clean a CRM export, deduplicate sales rows, calculate regional totals, or generate a weekly sales report from a CSV."
}

Weekly CRM Report

Turn a raw weekly CRM export (CSV) into a clean regional sales summary: drop duplicate rows, total revenue per region, and emit a structured JSON summary an agent can narrate or hand to a PDF/dashboard step.

This is a bundled example skill — small but real, and used to demonstrate the creator's validation, pipeline, and eval-rollout machinery end to end.

Activation

Activates on requests like "clean this CRM export", "weekly sales report", "regional totals from this CSV". Do not activate on general spreadsheet or analytics questions that don't involve a CRM export.

Input

A CSV with at least region and amount columns (extra columns are ignored). Duplicate rows (identical across all columns) are removed before totalling.

Run

One command produces the summary:

python3 scripts/run_pipeline.py --input <export.csv> --output summary.json

Output JSON shape:

{
  "rows_in": 120,
  "rows_after_dedup": 118,
  "regions": {"West": 40210.5, "East": 38110.0},
  "grand_total": 78320.5
}

Gotchas

  • rows_after_dedup does not reconcile with grand_total. Rows with a blank or missing region are skipped when totalling but still counted in rows_after_dedup, so a CSV with unassigned rows reports more rows than it actually summed. Do not present the two numbers as if one explains the other — if they must reconcile, filter blank regions before running.
  • An unparseable amount silently becomes 0.0, it does not raise. A column of N/A or produces a region total of 0.0 that looks like a real zero. Check the input for non-numeric amounts before trusting a suspiciously low total.
  • Dedup compares every column, not just region and amount. Two rows with identical sales data but a differing timestamp or record-ID column are both kept. The "extra columns are ignored" note above applies to totalling, not to dedup.

Anti-goals

  • Not a general BI tool; it totals one numeric column per region.
  • Does not fetch from a live CRM API; it operates on an exported CSV.

版本历史

  • f4f7d35 当前 2026-08-20 03:13

    对齐五大Agent Skill最佳实践:移除不合理字数限制,新增Gotchas章节以记录非显而易见的数据陷阱(如去重与总计不一致问题),确保示例具备真实业务逻辑。

  • 006901a 2026-07-25 09:07

同 Skill 集合

.agents/skills/live-weather-briefing-skill/SKILL.md
references/examples/github-release-briefing-skill/SKILL.md
references/examples/live-weather-briefing-skill/SKILL.md
references/examples/pr-blocker-summarizer/SKILL.md
references/examples/stock-analyzer/SKILL.md

元信息

文件数
0
版本
7f6bae2
Hash
8d2b9228
收录时间
2026-07-25 09:07

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 13:24
浙ICP备14020137号-1 $访客地图$