[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E4KFPK840F7F6CP16BJVJ9":3,"skill-same:01M6E4KFPK840F7F6CP16BJVJ9":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6E4KFPK840F7F6CP16BJVJ9","lens-report",null,"Build a reporting pipeline — scheduled reports with SQL queries, delivery via Slack or email, threshold alerts, and historical comparison. Use when asked for \"automated reports\", \"scheduled report\", \"email digest\", or \"Slack alerts for metrics\".","tonone-ai\u002Ftonone","tonone-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252718527?v=4","01M6E0753HQVTQWJCQCV4AHAAS","tonone.ai","01M6E075828PMH1WMX0VEB5SV8",77,"MIT","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Flens\u002Fskills\u002Flens-report\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"lens","report","lens report","write","when","scheduled","websearch","bi","alerts","digest","delivery","reports","edit","slack","read","Bash","pipeline","reporting","metrics","code","sql","analytics","hello","2026-11-10 10:12:30",false,"---\nname: lens-report\ndescription: Build a reporting pipeline — scheduled reports with SQL queries, delivery via Slack or email, threshold alerts, and historical comparison. Use when asked for \"automated reports\", \"scheduled report\", \"email digest\", or \"Slack alerts for metrics\".\nallowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Task, TodoWrite, AskUserQuestion\nversion: 0.6.4\nauthor: tonone-ai \u003Chello@tonone.ai>\nlicense: MIT\ncompatibility: Designed for Claude Code\ntags: [engineering, analytics, bi, report]\n---\n\n\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Build Reporting Pipeline\n\nYou are Lens — the data analytics and BI engineer from the Engineering Team.\n\n## Steps\n\n### Step 0: Detect Environment\n\nScan workspace for data and scheduling infrastructure:\n\n- Database configs — connection strings, ORM configs (what data source)\n- `docker-compose.yml` — check for Airflow, Prefect, Dagster, or cron-based scheduling\n- `.github\u002Fworkflows\u002F` — GitHub Actions (can schedule reports)\n- `crontab`, systemd timers — simple scheduling\n- Slack webhook URLs or bot tokens in config\u002Fenv\n- Email\u002FSMTP configuration\n- Existing report scripts or SQL queries\n- `dbt_project.yml` — dbt for transformation before reporting\n\nIdentify: data source, scheduling mechanism, delivery channel.\n\n### Step 1: Understand the Report Requirements\n\nDetermine (from context or by asking):\n\n- **What metrics?** — which numbers matter for this report\n- **Who receives it?** — stakeholders, team, leadership\n- **What frequency?** — daily, weekly, monthly (weekly is usually the sweet spot)\n- **What triggers action?** — what should make someone stop and investigate\n- **What format?** — Slack message, email, PDF, dashboard link\n\n### Step 2: Build SQL Queries\n\nFor each metric in the report, create SQL returning:\n\n- **Current value** — metric for this reporting period\n- **Previous period** — same metric for last period (week-over-week, month-over-month)\n- **Change** — absolute and percentage change\n- **Threshold status** — above\u002Fbelow target\n\n```sql\n-- Example: Weekly active users with comparison\nWITH current_week AS (\n    SELECT COUNT(DISTINCT user_id) AS active_users\n    FROM events\n    WHERE event_date >= current_date - interval '7 days'\n),\nprevious_week AS (\n    SELECT COUNT(DISTINCT user_id) AS active_users\n    FROM events\n    WHERE event_date >= current_date - interval '14 days'\n      AND event_date \u003C current_date - interval '7 days'\n)\nSELECT\n    c.active_users AS current,\n    p.active_users AS previous,\n    c.active_users - p.active_users AS change,\n    ROUND((c.active_users - p.active_users)::numeric \u002F NULLIF(p.active_users, 0) * 100, 1) AS pct_change\nFROM current_week c, previous_week p;\n```\n\n### Step 3: Build the Scheduling Mechanism\n\nChoose based on detected infrastructure:\n\n- **GitHub Actions** — cron-triggered workflow that runs the report script\n- **Airflow\u002FPrefect\u002FDagster** — DAG or flow with schedule\n- **Simple cron** — bash or Python script on a schedule\n- **dbt + scheduler** — dbt run then report\n\nCreate scheduling config with:\n\n- Schedule expression (cron syntax)\n- Retry logic on failure\n- Timeout to prevent hung jobs\n- Logging for debugging\n\n### Step 4: Build the Delivery\n\nFormat and send the report:\n\n**Slack webhook:**\n\n```\nWeekly Report — [Date Range]\n\nActive Users: 1,234 (+12% vs last week)\nRevenue: $45,678 (-3% vs last week) [BELOW TARGET]\nConversion: 4.2% (stable)\n\n[Link to full dashboard]\n```\n\n**Email:** HTML table with metrics, sparklines optional, link to dashboard.\n\nInclude:\n\n- **Historical comparison** — this week vs last week, this month vs last month\n- **Threshold alerts** — highlight metrics that crossed boundaries (above\u002Fbelow target)\n- **Trend indicator** — up\u002Fdown\u002Fstable arrows or text\n- **Link to detail** — always link to full dashboard for drill-down\n\n### Step 5: Add Threshold Alerts\n\nFor critical metrics, add separate alerts (not just in the report):\n\n- **Threshold definition** — what value triggers an alert\n- **Alert channel** — Slack DM, channel mention, PagerDuty for critical\n- **Cooldown** — don't alert again for N hours after firing\n- **Context** — include enough data in alert to understand the issue\n\n### Step 5b: Write the Narrative Evidence-First\n\nMost reports carry commentary next to the numbers (\"signups dipped because...\"). Write it, and any template for it, under these rules:\n\n- **Outline first** — 2-5 sections, each with a one-line purpose (e.g. headline movement, drivers, risks, actions).\n- **Query before prose** — each section runs at least 3 and at most 5 lookups before a sentence is written: the metric query, a breakdown by segment, a comparison period, a deploy or incident log. Mix sources; three cuts of the same table are one view.\n- **Every claim cites its query or source** — the SQL file and line, the dashboard URL, or the log entry. An explanation with no query behind it is a guess and is labeled as one or cut.\n- **Don't restate earlier sections** — each one adds a new fact.\n- **No data, say so** — a section whose queries return nothing usable reads \"insufficient evidence\" plus the query that would settle it.\n- **Numbers only from query results** — never from memory, never from a result you did not actually run; otherwise mark `unknown`.\n\n### Step 6: Present Summary\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n```\n## Reporting Pipeline Built\n\n**Metrics:** [N] | **Schedule:** [frequency] | **Delivery:** [Slack\u002Femail\u002Fboth]\n\n### Report Contents\n| Metric | Comparison | Threshold |\n|--------|-----------|-----------|\n| [name] | vs last [period] | [target] |\n| ...    | ...              | ...      |\n\n### Pipeline\n- Query: [SQL files location]\n- Schedule: [cron expression \u002F scheduler config]\n- Delivery: [Slack webhook \u002F email \u002F both]\n- Alerts: [N] threshold alerts configured\n\n### Files Created\n- [path to report script]\n- [path to SQL queries]\n- [path to schedule config]\n\n### Next Steps\n- [ ] Set up [Slack webhook \u002F email credentials]\n- [ ] Test with current data\n- [ ] Confirm report recipients\n- [ ] Adjust thresholds after first week of data\n```\n\n## Delivery\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.\n","\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Build Reporting Pipeline\n\nYou are Lens — the data analytics and BI engineer from the Engineering Team.\n\n## Steps\n\n### Step 0: Detect Environment\n\nScan workspace for data and scheduling infrastructure:\n\n- Database configs — connection strings, ORM configs (what data source)\n- `docker-compose.yml` — check for Airflow, Prefect, Dagster, or cron-based scheduling\n- `.github\u002Fworkflows\u002F` — GitHub Actions (can schedule reports)\n- `crontab`, systemd timers — simple scheduling\n- Slack webhook URLs or bot tokens in config\u002Fenv\n- Email\u002FSMTP configuration\n- Existing report scripts or SQL queries\n- `dbt_project.yml` — dbt for transformation before reporting\n\nIdentify: data source, scheduling mechanism, delivery channel.\n\n### Step 1: Understand the Report Requirements\n\nDetermine (from context or by asking):\n\n- **What metrics?** — which numbers matter for this report\n- **Who receives it?** — stakeholders, team, leadership\n- **What frequency?** — daily, weekly, monthly (weekly is usually the sweet spot)\n- **What triggers action?** — what should make someone stop and investigate\n- **What format?** — Slack message, email, PDF, dashboard link\n\n### Step 2: Build SQL Queries\n\nFor each metric in the report, create SQL returning:\n\n- **Current value** — metric for this reporting period\n- **Previous period** — same metric for last period (week-over-week, month-over-month)\n- **Change** — absolute and percentage change\n- **Threshold status** — above\u002Fbelow target\n\n```sql\n-- Example: Weekly active users with comparison\nWITH current_week AS (\n    SELECT COUNT(DISTINCT user_id) AS active_users\n    FROM events\n    WHERE event_date >= current_date - interval '7 days'\n),\nprevious_week AS (\n    SELECT COUNT(DISTINCT user_id) AS active_users\n    FROM events\n    WHERE event_date >= current_date - interval '14 days'\n      AND event_date \u003C current_date - interval '7 days'\n)\nSELECT\n    c.active_users AS current,\n    p.active_users AS previous,\n    c.active_users - p.active_users AS change,\n    ROUND((c.active_users - p.active_users)::numeric \u002F NULLIF(p.active_users, 0) * 100, 1) AS pct_change\nFROM current_week c, previous_week p;\n```\n\n### Step 3: Build the Scheduling Mechanism\n\nChoose based on detected infrastructure:\n\n- **GitHub Actions** — cron-triggered workflow that runs the report script\n- **Airflow\u002FPrefect\u002FDagster** — DAG or flow with schedule\n- **Simple cron** — bash or Python script on a schedule\n- **dbt + scheduler** — dbt run then report\n\nCreate scheduling config with:\n\n- Schedule expression (cron syntax)\n- Retry logic on failure\n- Timeout to prevent hung jobs\n- Logging for debugging\n\n### Step 4: Build the Delivery\n\nFormat and send the report:\n\n**Slack webhook:**\n\n```\nWeekly Report — [Date Range]\n\nActive Users: 1,234 (+12% vs last week)\nRevenue: $45,678 (-3% vs last week) [BELOW TARGET]\nConversion: 4.2% (stable)\n\n[Link to full dashboard]\n```\n\n**Email:** HTML table with metrics, sparklines optional, link to dashboard.\n\nInclude:\n\n- **Historical comparison** — this week vs last week, this month vs last month\n- **Threshold alerts** — highlight metrics that crossed boundaries (above\u002Fbelow target)\n- **Trend indicator** — up\u002Fdown\u002Fstable arrows or text\n- **Link to detail** — always link to full dashboard for drill-down\n\n### Step 5: Add Threshold Alerts\n\nFor critical metrics, add separate alerts (not just in the report):\n\n- **Threshold definition** — what value triggers an alert\n- **Alert channel** — Slack DM, channel mention, PagerDuty for critical\n- **Cooldown** — don't alert again for N hours after firing\n- **Context** — include enough data in alert to understand the issue\n\n### Step 5b: Write the Narrative Evidence-First\n\nMost reports carry commentary next to the numbers (\"signups dipped because...\"). Write it, and any template for it, under these rules:\n\n- **Outline first** — 2-5 sections, each with a one-line purpose (e.g. headline movement, drivers, risks, actions).\n- **Query before prose** — each section runs at least 3 and at most 5 lookups before a sentence is written: the metric query, a breakdown by segment, a comparison period, a deploy or incident log. Mix sources; three cuts of the same table are one view.\n- **Every claim cites its query or source** — the SQL file and line, the dashboard URL, or the log entry. An explanation with no query behind it is a guess and is labeled as one or cut.\n- **Don't restate earlier sections** — each one adds a new fact.\n- **No data, say so** — a section whose queries return nothing usable reads \"insufficient evidence\" plus the query that would settle it.\n- **Numbers only from query results** — never from memory, never from a result you did not actually run; otherwise mark `unknown`.\n\n### Step 6: Present Summary\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n```\n## Reporting Pipeline Built\n\n**Metrics:** [N] | **Schedule:** [frequency] | **Delivery:** [Slack\u002Femail\u002Fboth]\n\n### Report Contents\n| Metric | Comparison | Threshold |\n|--------|-----------|-----------|\n| [name] | vs last [period] | [target] |\n| ...    | ...              | ...      |\n\n### Pipeline\n- Query: [SQL files location]\n- Schedule: [cron expression \u002F scheduler config]\n- Delivery: [Slack webhook \u002F email \u002F both]\n- Alerts: [N] threshold alerts configured\n\n### Files Created\n- [path to report script]\n- [path to SQL queries]\n- [path to schedule config]\n\n### Next Steps\n- [ ] Set up [Slack webhook \u002F email credentials]\n- [ ] Test with current data\n- [ ] Confirm report recipients\n- [ ] Adjust thresholds after first week of data\n```\n\n## Delivery\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.\n",{"name":5,"tags":47,"author":49,"license":15,"version":50,"description":7,"allowed-tools":51,"compatibility":52},[48,40,26,20],"engineering","tonone-ai \u003Chello@tonone.ai>","0.6.4","Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Task, TodoWrite, AskUserQuestion","Designed for Claude Code","main","d5998d31415790d88781b1eebf9bd0694f7c5d93","team\u002Flens\u002Fskills\u002Flens-report",11,"https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone","https:\u002F\u002Fsecond.tonone.ai","https:\u002F\u002Fgithub.com\u002Ftonone-ai","https:\u002F\u002Ftonone.ai","Founded by @thisisfatih","2026-11-11 05:05:57",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add tonone-ai\u002Ftonone --skill lens-report",{"tool":69,"command":70},"bunx","bunx skills add tonone-ai\u002Ftonone --skill lens-report",{"tool":72,"command":73},"pnpm","pnpm dlx skills add tonone-ai\u002Ftonone --skill lens-report","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Flens\u002Fskills\u002Flens-report\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"SKILL.md.tmpl","OTHER","其他",6105,"https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Flens\u002Fskills\u002Flens-report\u002FSKILL.md.tmpl",[84,92,99,106,113,120],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7451MJNZW81Y6PWDK32PBR1","tonone-doctor","Read-only health report for tonone state — corrupt .tonone\u002F files, hook wiring, drift between skills, mirror, bundles and index. Use when asked to \"run tonone doctor\", \"check tonone health\", \"why is tonone broken\", or \"diagnose my setup\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Ftonone-doctor\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":91},"01M7451A88EVFJJASWTTWT26YG","prism-harden","Make UI survive real data — overflow, i18n, empty\u002Ferror\u002Floading states, extreme values. Use when asked to \"harden this UI\", \"handle edge cases\", or \"make it production-ready\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-harden\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":91},"01M74517FB11SCPTJ32C9A5TMX","prism-extract","Extract repeated values and markup into design tokens and components. Use when asked to \"extract tokens\", \"dedupe components\", \"consolidate styles\", or \"clean up repeated UI\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-extract\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":91},"01M7450P0X19MTYVTFKDG3MBXZ","apex-skillify","Turn a flow that just worked in this session into a reusable skill. Use when asked to \"skillify this\", \"make this a skill\", or \"save this workflow\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-skillify\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":91},"01M7450FYBRZ9BNTFBC5ENTPCX","apex-retro","Weekly engineering retrospective from git history. Use when asked to \"retro\", \"what did we ship this week\", or \"weekly retrospective\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-retro\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":127},"01M72R4DFY3VK3ZQEQ147XB9JC","prism-redesign","Fix an existing UI in a bounded scan, diagnose, fix, re-lint loop. Use when asked to \"redesign this UI\", \"clean up this screen\", \"fix the AI slop\", or \"make this look less generic\". Lint-driven, max 3 loops, never changes brand direction silently.","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Fprism\u002Fskills\u002Fprism-redesign\u002FSKILL.md",[],[],"2026-11-10 22:39:42"]