Token导航 LogoToken导航

Agent Skill · 研究检索

self-improving-analytics(自我改进分析)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

self-improving-analytics 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 30,384。

总安装 2,889周安装 118GitHub Stars 公开资料未说明下载 925核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-analytics(自我改进分析)
来源仓库:https://github.com/jose-compu/self-improving-analytics
安装命令:
openclaw skills install self-improving-analytics
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-improving-analytics

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助数据整理、表格处理与指标计算,帮助 Agent 清洗字段、发现异常并生成统计说明。适用于 CSV/Excel 分析、数据质量检查与可视化准备等场景。通过捕获数据问题、指标漂移与管道故障,提升分析结果的可靠性与可读性。

安装命令:openclaw skills install self-improving-analytics,需确认数据来源与字段含义。使用时需注意样本不代表全量,涉及敏感数据时应先脱敏再处理。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install self-improving-analytics;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

self-improving-analytics 怎么安装?

在终端执行 openclaw skills install self-improving-analytics。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

self-improving-analytics 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

self-improving-analytics 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

self-improving-analytics 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

self-improving-analytics 用的人多吗?

公开数据是累计安装 2,889 次,近一周安装 118 次,下载 925 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

self-improving-analytics 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
self-improving-analytics

自我改进分析 · 本页

2,889—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
self-improving-analytics
description
Captures data quality issues, metric drift, pipeline failures, misleading visualizations, metric definition mismatches, and data freshness problems to enable continuous analytics improvement. Use when: (1) An ETL/ELT pipeline fails, (2) A metric value shows anomalous behavior, (3) Two teams define the same metric differently, (4) A dashboard shows wrong or misleading data, (5) A data freshness SLA is missed, (6) A schema change breaks downstream consumers.

Self-Improving Analytics Skill

Log analytics-specific learnings, data issues, and feature requests to markdown files for continuous improvement. Captures data quality problems, metric drift, pipeline failures, misleading visualizations, metric definition mismatches, and data freshness breaches. Important learnings get promoted to data dictionaries, metric definitions, pipeline runbooks, dashboard standards, or data quality SLAs.

First-Use Initialisation

Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:

mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Analytics Learnings\
\
Data quality patterns, metric drift insights, pipeline reliability findings, visualization best practices, and governance lessons.\
\
**Categories**: data_quality | metric_drift | pipeline_failure | visualization_mislead | definition_mismatch | freshness_issue\
**Areas**: ingestion | transformation | modeling | reporting | visualization | governance | data_catalog\
\
---\
" > .learnings/LEARNINGS.md
[ -f .learnings/DATA_ISSUES.md ] || printf "# Data Issues Log\
\
Pipeline failures, data quality problems, metric anomalies, visualization errors, and schema drift.\
\
---\
" > .learnings/DATA_ISSUES.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Feature Requests\
\
Analytics tools, BI capabilities, data quality automation, and governance improvements.\
\
---\
" > .learnings/FEATURE_REQUESTS.md

Never overwrite existing files. This is a no-op if .learnings/ is already initialised.

Do not log connection strings, database credentials, API keys, or PII. Prefer short summaries or redacted excerpts over raw query results or full table dumps.

If you want automatic reminders, use the opt-in hook workflow described in Hook Integration.

Quick Reference

SituationAction
ETL/ELT pipeline failsLog to .learnings/DATA_ISSUES.md with pipeline name and error
Metric value anomaly (spike/drop)Log to .learnings/DATA_ISSUES.md with statistical context
Two teams define metric differentlyLog to .learnings/LEARNINGS.md with category definition_mismatch
Dashboard shows wrong or misleading dataLog to .learnings/LEARNINGS.md with category visualization_mislead
Data freshness SLA missedLog to .learnings/DATA_ISSUES.md with SLA threshold and actual delay
Schema change breaks downstreamLog to .learnings/DATA_ISSUES.md with schema diff details
NULL rate spike in key columnLog to .learnings/DATA_ISSUES.md with column and threshold
Metric silently drifts (calculation change)Log to .learnings/LEARNINGS.md with category metric_drift
Recurring data quality patternLink with **See Also**, consider priority bump
Broadly applicable patternPromote to data dictionary, pipeline runbook, or dashboard standard
Reusable data quality checkPromote to data quality SLA or dbt test

OpenClaw Setup (Recommended)

OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.

Installation

Via ClawdHub (recommended):

clawdhub install self-improving-analytics

Manual:

git clone https://github.com/jose-compu/self-improving-analytics.git ~/.openclaw/skills/self-improving-analytics

Workspace Structure

OpenClaw injects these files into every session:

~/.openclaw/workspace/
├── AGENTS.md          # Multi-agent workflows, delegation patterns
├── SOUL.md            # Behavioral guidelines, personality, principles
├── TOOLS.md           # Tool capabilities, integration gotchas
├── MEMORY.md          # Long-term memory (main session only)
├── memory/            # Daily memory files
│   └── YYYY-MM-DD.md
└── .learnings/        # This skill's log files
    ├── LEARNINGS.md
    ├── DATA_ISSUES.md
    └── FEATURE_REQUESTS.md

Create Learning Files

mkdir -p ~/.openclaw/workspace/.learnings

Then create the log files (or copy from assets/):

  • LEARNINGS.md — metric drift, definition mismatches, visualization issues, data quality patterns
  • DATA_ISSUES.md — pipeline failures, freshness breaches, schema drift, metric anomalies
  • FEATURE_REQUESTS.md — analytics tools, BI capabilities, automation requests

Promotion Targets

When analytics learnings prove broadly applicable, promote them:

Learning TypePromote ToExample
Metric definitionsData dictionary"Active user = login within 7 days with feature interaction"
Pipeline failure patternsPipeline runbooks"DST partition handling: always use UTC-based keys"
Visualization standardsDashboard style guide"Absolute value charts must start Y-axis at zero"
Data quality rulesData quality SLAs"NULL rate in PK columns must be <0.01%"
Governance patternsAGENTS.md"New metrics require data dictionary entry before dashboard"
Tool configurationTOOLS.md"dbt source freshness checks required on all external sources"

Optional: Enable Hook

For automatic reminders at session start:

cp -r hooks/openclaw ~/.openclaw/hooks/self-improving-analytics
openclaw hooks enable self-improving-analytics

See references/openclaw-integration.md for complete details.


Generic Setup (Other Agents)

For Claude Code, Codex, Copilot, or other agents, create .learnings/ in the project or workspace root:

mkdir -p .learnings

Create the files inline using the headers shown above.

Add reference to agent files

Add to AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md:

Self-Improving Analytics Workflow

When data issues or analytics patterns are discovered:

  1. Log to .learnings/DATA_ISSUES.md, LEARNINGS.md, or FEATURE_REQUESTS.md
  2. Review and promote broadly applicable learnings to:

- Data dictionaries — canonical metric definitions - Pipeline runbooks — failure recovery procedures - Dashboard standards — visualization conventions - Data quality SLAs — monitoring thresholds and alerts

Logging Format

Learning Entry [LRN-YYYYMMDD-XXX]

Append to .learnings/LEARNINGS.md:

## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending
**Area**: ingestion | transformation | modeling | reporting | visualization | governance | data_catalog

### Summary
One-line description of the analytics insight

### Details
Full context: what data pattern was found, why it is problematic,
what the correct approach is. Include root cause analysis.

### SQL Example

**Before (problematic):**
\`\`\`sql
-- problematic query, pipeline config, or metric definition
\`\`\`

**After (correct):**
\`\`\`sql
-- corrected query, config, or definition
\`\`\`

### Suggested Action
Specific data dictionary update, pipeline fix, dashboard change, or governance rule to adopt

### Metadata
- Source: etl_failure | freshness_breach | metric_anomaly | definition_conflict | dashboard_review | reconciliation_failure | schema_drift
- Pipeline: Airflow DAG name, dbt model, Fivetran connector (if applicable)
- Warehouse: snowflake | bigquery | redshift | postgres | databricks
- Related Tables: schema.table_name
- Tags: tag1, tag2
- See Also: LRN-20250110-001 (if related to existing entry)
- Pattern-Key: metric_drift.revenue_source | data_quality.null_spike (optional)
- Recurrence-Count: 1 (optional)
- First-Seen: 2025-01-15 (optional)
- Last-Seen: 2025-01-15 (optional)

---

Categories for learnings:

CategoryUse When
data_qualityNULL spikes, duplicate records, invalid values, completeness issues
metric_driftMetric calculation silently changed due to new data source, schema change, or logic update
pipeline_failureETL/ELT job failure, timeout, resource exhaustion, dependency issue
visualization_misleadChart axis, scale, aggregation, or color choice that misrepresents data
definition_mismatchSame metric name with different definitions across teams or dashboards
freshness_issueData arriving later than SLA, stale dashboards, partition delays

Data Issue Entry [DAT-YYYYMMDD-XXX]

Append to .learnings/DATA_ISSUES.md:

## [DAT-YYYYMMDD-XXX] issue_type_or_name

**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending
**Area**: ingestion | transformation | modeling | reporting | visualization | governance | data_catalog

### Summary
Brief description of the data issue

### Error Output
\`\`\`
Actual error message, pipeline log, query error, or anomaly description (redacted/summarized)
\`\`\`

### Root Cause
What in the pipeline, data model, or source system caused this issue.
Include the problematic query or configuration.

### Fix
\`\`\`sql
-- corrected query, pipeline config, or data quality check
\`\`\`

### Prevention
How to avoid this issue in the future (data quality test, pipeline alert, schema validation, SLA monitor)

### Context
- Trigger: etl_failure | freshness_breach | metric_anomaly | null_spike | schema_drift | rendering_error
- Pipeline: Airflow DAG name, dbt model, Fivetran connector
- Warehouse: snowflake | bigquery | redshift | postgres | databricks
- Affected Tables: schema.table_name
- Downstream Impact: dashboards, reports, or teams affected

### Metadata
- Reproducible: yes | no | unknown
- Related Tables: schema.table_name
- See Also: DAT-20250110-001 (if recurring)

---

Feature Request Entry [FEAT-YYYYMMDD-XXX]

Append to .learnings/FEATURE_REQUESTS.md:

## [FEAT-YYYYMMDD-XXX] capability_name

**Logged**: ISO-8601 timestamp
**Priority**: medium
**Status**: pending
**Area**: ingestion | transformation | modeling | reporting | visualization | governance | data_catalog

### Requested Capability
What analytics tool, automation, or capability is needed

### User Context
Why it's needed, what workflow it improves, what data problem it solves

### Complexity Estimate
simple | medium | complex

### Suggested Implementation
How this could be built: dbt macro, Airflow operator, data quality check, Looker feature, governance workflow

### Metadata
- Frequency: first_time | recurring
- Related Features: existing_tool_or_capability

---

ID Generation

Format: TYPE-YYYYMMDD-XXX

  • TYPE: LRN (learning), DAT (data issue), FEAT (feature request)
  • YYYYMMDD: Current date
  • XXX: Sequential number or random 3 chars (e.g., 001, A7B)

Examples: LRN-20250415-001, DAT-20250415-A3F, FEAT-20250415-002

Resolving Entries

When an issue is fixed, update the entry:

  1. Change **Status**: pending → **Status**: resolved
  2. Add resolution block after Metadata:
### Resolution
- **Resolved**: 2025-01-16T09:00:00Z
- **Commit/PR**: abc123 or #42
- **Notes**: Added data quality test / updated pipeline runbook / fixed metric definition

Other status values:

  • in_progress — Actively being investigated or fixed
  • wont_fix — Decided not to address (add reason in Resolution notes)
  • promoted — Elevated to data dictionary, pipeline runbook, or dashboard standard
  • promoted_to_skill — Extracted as a reusable skill

Detection Triggers

Automatically log when you encounter:

ETL/ELT Pipeline Failures (→ data issue with etl_failure trigger):

  • Airflow DAG task failure or retry exhaustion
  • dbt model build error or test failure
  • Fivetran/Stitch sync failure or schema change warning
  • Spark/Databricks job timeout or OOM
  • CDC replication lag exceeding threshold

Data Freshness Breaches (→ data issue with freshness_breach trigger):

  • Source data >24h stale (no new rows for today's partition)
  • dbt source freshness check failure (warn_after, error_after)
  • Dashboard last-refresh timestamp exceeds SLA
  • Downstream model depends on stale upstream

Metric Value Anomalies (→ data issue with metric_anomaly trigger):

  • Metric value >3 standard deviations from 30-day rolling mean
  • Day-over-day change exceeds historical maximum
  • Metric drops to zero unexpectedly
  • Revenue, user count, or conversion rate shows sudden discontinuity

NULL Rate Spikes (→ data issue with null_spike trigger):

  • Key column NULL rate exceeds baseline by >1 percentage point
  • Primary key contains NULLs (should never happen)
  • Foreign key NULL rate spikes after source system change
  • Required business fields (email, amount, status) contain unexpected NULLs

Schema Changes (→ data issue with schema_drift trigger):

  • Column added, removed, or renamed in source system
  • Data type changed (VARCHAR length, NUMERIC precision)
  • Constraint added or removed (NOT NULL, UNIQUE, FK)
  • Table renamed or moved to different schema

Conflicting Definitions (→ learning with definition_mismatch category):

  • Same metric name in two dashboards with different values
  • Team A and Team B disagree on metric logic
  • Data dictionary entry contradicts actual implementation
  • Looker explore definition differs from dbt model documentation

Visualization Issues (→ learning with visualization_mislead category):

  • Y-axis not starting at zero for absolute value charts
  • Dual Y-axis with mismatched scales
  • Pie chart with too many slices (>6)
  • Time series with inconsistent intervals
  • Color coding that implies ranking where none exists

Priority Guidelines

PriorityWhen to UseAnalytics Examples
criticalWrong data in executive dashboard or regulatory reportRevenue under-reported to board, compliance data incorrect, PII exposure in dashboard
highPipeline down, metric definition conflict, SLA breachAirflow DAG failed for >4h, Marketing vs Product metric mismatch, daily report stale
mediumData quality degradation, visualization improvementNULL rate trending up, dashboard axis misleading, catalog entry outdated
lowCatalog update, documentation, minor improvementColumn description missing, unused dashboard cleanup, tag standardization

Area Tags

Use to filter learnings by analytics domain:

AreaScope
ingestionData extraction, loading, CDC replication, API pulls, file imports
transformationSQL transforms, dbt models, Spark jobs, data cleaning, deduplication
modelingDimensional modeling, entity relationships, slowly changing dimensions, grain
reportingScheduled reports, email digests, PDF generation, data exports
visualizationDashboards, charts, Looker explores, Tableau workbooks, Metabase questions
governanceMetric definitions, data ownership, access control, PII classification
data_catalogColumn descriptions, table documentation, lineage, tagging, search

Promoting to Permanent Analytics Standards

When a learning is broadly applicable (not a one-off data fix), promote it to permanent standards.

When to Promote

  • Same metric definition conflict surfaces across 2+ teams
  • Pipeline failure pattern recurs after different source system changes
  • Visualization anti-pattern found in 3+ dashboards
  • Data quality rule would have prevented multiple incidents
  • Freshness monitoring gap caused repeated SLA breaches

Promotion Targets

TargetWhat Belongs There
Data dictionaryCanonical metric definitions with owner, grain, and refresh cadence
Pipeline runbooksStep-by-step recovery for known failure patterns
Dashboard standardsVisualization conventions (axis, colors, aggregation rules)
Data quality SLAsMonitoring thresholds and alert configurations
CLAUDE.mdProject-specific analytics conventions for AI agents
AGENTS.mdAutomated analytics workflows, data validation steps

How to Promote

  1. Distill the learning into a concise definition, rule, or procedure
  2. Add to appropriate target (data dictionary entry, runbook step, SLA threshold)
  3. Update original entry:

- Change **Status**: pending → **Status**: promoted - Add **Promoted**: data dictionary (or pipeline runbook, dashboard standard, data quality SLA)

Promotion Examples

Learning → Data dictionary entry:

Marketing "active user" = 30-day login; Product = 7-day feature interaction → 420K vs 185K discrepancy.

Promoted as: active_users_30d (Marketing, login-based) and active_users_7d (Product, interaction-based) with governance note specifying which to use for board reports.

Learning → Pipeline runbook:

Pipeline fails every DST transition — partition key uses local time, hour 2 doesn't exist.

Promoted as: "DST Partition Recovery" runbook — rerun with UTC key, verify no duplicates, migrate all partitions to UTC.

Recurring Pattern Detection

If logging something similar to an existing entry:

  1. Search first: grep -r "keyword" .learnings/
  2. Link entries: Add **See Also**: DAT-20250110-001 in Metadata
  3. Bump priority if issue keeps recurring
  4. Consider systemic fix: Recurring analytics issues often indicate:

- Missing data quality test (→ add dbt test or Great Expectations suite) - Missing monitoring (→ add freshness check or anomaly detection) - Governance gap (→ add metric definition to data dictionary) - Pipeline design flaw (→ refactor ingestion or transformation logic)

Periodic Review

Review .learnings/ at natural breakpoints:

When to Review

  • Before building a new dashboard or metric
  • After a pipeline incident is resolved
  • When the same data quality issue appears again
  • Before quarterly business reviews
  • During data model refactoring

Quick Status Check

# Count pending analytics issues
grep -h "Status\*\*: pending" .learnings/*.md | wc -l

# List pending high-priority data issues
grep -B5 "Priority\*\*: high" .learnings/DATA_ISSUES.md | grep "^## \["

# Find learnings for a specific area
grep -l "Area\*\*: governance" .learnings/*.md

# Find all definition mismatches
grep -B2 "definition_mismatch" .learnings/LEARNINGS.md | grep "^## \["

Review Actions

  • Resolve fixed data issues
  • Promote recurring patterns to data dictionaries
  • Link related entries across files
  • Extract reusable data quality checks as skills

Simplify & Harden Feed

Ingest recurring analytics patterns from simplify-and-harden into data quality rules or governance standards.

  1. For each candidate, use pattern_key as the dedupe key.
  2. Search .learnings/LEARNINGS.md for existing entry: grep -n "Pattern-Key: <key>" .learnings/LEARNINGS.md
  3. If found: increment Recurrence-Count, update Last-Seen, add See Also links.
  4. If not found: create new LRN-... entry with Source: simplify-and-harden.

Promotion threshold: Recurrence-Count >= 3, seen in 2+ pipelines/dashboards, within 30-day window. Targets: data dictionary entries, pipeline runbooks, dashboard standards, CLAUDE.md / AGENTS.md.

Hook Integration

Enable automatic reminders through agent hooks. This is opt-in.

Quick Setup (Claude Code / Codex)

Create .claude/settings.json in your project:

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": "",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-analytics/scripts/activator.sh"
      }]
    }]
  }
}

This injects an analytics-focused learning evaluation reminder after each prompt (~50-100 tokens overhead).

Advanced Setup (With Error Detection)

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": "",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-analytics/scripts/activator.sh"
      }]
    }],
    "PostToolUse": [{
      "matcher": "Bash",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-analytics/scripts/error-detector.sh"
      }]
    }]
  }
}

Enable PostToolUse only if you want the hook to inspect command output for pipeline errors, query failures, and data quality issues.

Available Hook Scripts

ScriptHook TypePurpose
scripts/activator.shUserPromptSubmitReminds to evaluate analytics learnings after tasks
scripts/error-detector.shPostToolUse (Bash)Triggers on pipeline errors, query failures, data quality issues

See references/hooks-setup.md for detailed configuration and troubleshooting.

Automatic Skill Extraction

When an analytics learning is valuable enough to become a reusable skill, extract it.

Skill Extraction Criteria

CriterionDescription
RecurringSame data issue in 2+ pipelines or warehouses
VerifiedStatus is resolved with working fix and data quality test
Non-obviousRequired actual investigation or cross-team coordination
Broadly applicableNot project-specific; useful across data stacks
User-flaggedUser says "save this as a skill" or similar

Extraction Workflow

  1. Identify candidate: Learning meets extraction criteria
  2. Run helper (or create manually):
   ./skills/self-improving-analytics/scripts/extract-skill.sh skill-name --dry-run
   ./skills/self-improving-analytics/scripts/extract-skill.sh skill-name
  1. Customize SKILL.md: Fill in template with analytics-specific content
  2. Update learning: Set status to promoted_to_skill, add Skill-Path
  3. Verify: Read skill in fresh session to ensure it's self-contained

Extraction Detection Triggers

In conversation: "This pipeline keeps failing the same way", "Save this data quality check as a skill", "Every warehouse has this DST issue", "This metric definition problem happens everywhere".

In entries: Multiple See Also links, high priority + resolved, definition_mismatch or pipeline_failure with broad applicability, same Pattern-Key across projects.

Multi-Agent Support

AgentActivationDetection
Claude CodeHooks (UserPromptSubmit, PostToolUse)Automatic via error-detector.sh
Codex CLIHooks (same pattern)Automatic via hook scripts
GitHub CopilotManual (.github/copilot-instructions.md)Manual review
OpenClawWorkspace injection + inter-agent messagingVia session tools

Best Practices

  1. Define metrics before building — agree on definitions in the data dictionary before creating dashboards
  2. Validate at ingestion — catch data quality issues as early as possible in the pipeline
  3. Test transformations with known data — use static test fixtures, not just production samples
  4. Document lineage — every metric should trace back to source tables through explicit joins
  5. Alert on anomalies, not just failures — a pipeline that succeeds but produces wrong data is worse than one that fails
  6. Use UTC everywhere — local time in partitions, timestamps, or schedules causes DST and timezone bugs
  7. Version metric definitions — treat metric logic changes like code changes with review and approval
  8. Separate facts from interpretation — dashboards should present data; narrative belongs in annotations
  9. Review before building in same area — check .learnings/ for past issues with the same tables or metrics
  10. Reconcile against source of truth — compare warehouse aggregates against GL, CRM, or billing system totals

Gitignore Options

Keep learnings local (per-analyst): add .learnings/ to .gitignore.

Track learnings in repo (team-wide): don't add to .gitignore — learnings become shared knowledge.

Hybrid (track templates, ignore entries): ignore .learnings/*.md, keep .learnings/.gitkeep.

Stackability Contract (Standalone + Multi-Skill)

This skill is standalone-compatible and stackable with other self-improving skills.

Namespaced Logging (recommended for 2+ skills)

  • Namespace for this skill: .learnings/analytics/
  • Keep current standalone behavior if you prefer flat files.
  • Optional shared index for all skills: .learnings/INDEX.md

Required Metadata

Every new entry must include:

**Skill**: analytics

Hook Arbitration (when 2+ skills are enabled)

  • Use one dispatcher hook as the single entrypoint.
  • Dispatcher responsibilities: route by matcher, dedupe repeated events, and rate-limit reminders.
  • Suggested defaults: dedupe key = event + matcher + file + 5m_window; max 1 reminder per skill every 5 minutes.

Narrow Matcher Scope (analytics)

Only trigger this skill automatically for analytics signals such as:

  • pipeline|etl|schema drift|metric mismatch|dashboard
  • lineage|warehouse|bi|attribution|anomaly
  • explicit analytics intent in user prompt

Cross-Skill Precedence

When guidance conflicts, apply:

  1. security
  2. engineering
  3. coding
  4. ai
  5. user-explicit domain skill
  6. meta as tie-breaker

Ownership Rules

  • This skill writes only to .learnings/analytics/ in stackable mode.
  • It may read other skill folders for cross-linking, but should not rewrite their entries.

平台分布

OpenClaw

79.36%
按下载量换算734

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills