Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

runstr-analytics运行分析

Agent Skill

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

总安装

8,007

周安装

337

GitHub Stars

公开资料未说明

下载量

2,804
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install runstr-analytics

简介

runstr-analytics 分析 RUNSTR 健身数据,提供趋势洞察与训练建议。

  • 适合追踪运动表现、发现异常模式或优化训练计划。
  • 支持相关性分析与个性化反馈生成。
  • 安装命令:openclaw skills install runstr-analytics;需导入 CSV 格式的锻炼历史。
  • 分析结果基于历史样本,不能替代专业医疗意见。

SKILL.md

name
runstr-analytics
description
Advanced RUNSTR fitness analytics with trend analysis, performance insights, training recommendations, and correlation tracking. Analyzes workout history, habits, mood, and steps to provide personalized coaching insights and identify patterns in training effectiveness.
metadata
{"openclaw":{"emoji":"📊","requires":{"bins":["nak","python3"],"python_packages":["pandas","numpy","scipy","requests"]},"install":[{"id":"go","kind":"go","package":"github.com/fiatjaf/nak@latest","bins":["nak"],"label":"Install nak via Go"},{"id":"python_deps","kind":"pip","packages":["pandas","numpy","scipy","requests"],"label":"Install Python analytics dependencies"}]}}

RUNSTR Analytics Skill

Advanced fitness analytics and coaching insights for RUNSTR data. Provides trend analysis, performance tracking, habit correlation, and personalized training recommendations.

Setup

Required: RUNSTR_NSEC environment variable

This skill requires your Nostr private key (nsec1...) to decrypt RUNSTR backup data.

Option 1 - For OpenClaw/chat usage: Tell your bot: "Here's my RUNSTR nsec: nsec1..."

Option 2 - For CLI/cron automation:

export RUNSTR_NSEC="nsec1..."

⚠️ Security note: The nsec is passed securely via stdin (not CLI arguments) to prevent exposure in process lists. Cache files use restrictive permissions (0700/0600).


Features

  • Advanced Trend Analysis: Pace trends by activity type, seasonal comparisons, training load tracking
  • Performance Insights: Personal records, weekly challenges, streak tracking
  • Correlation Analysis: Mood vs training, habits vs performance, sleep vs recovery
  • Training Recommendations: AI-driven tips for improvement, goal-based planning
  • Training Plan Integration: Sync with external training plans, track adherence

Quick Start

Extended version (recommended - with local cache):

# First run - fetch from Nostr and cache locally
python3 scripts/analyze_extended.py --nsec <NSEC> --days 60 --insights --force-refresh

# Subsequent runs - use cached data (no nsec needed!)
python3 scripts/analyze_extended.py --days 60 --insights

Lightweight version (basic analysis):

python3 scripts/analyze_light.py --nsec <NSEC> --days 30 --insights

Full version (requires pandas, numpy, scipy):

# Install dependencies first: pip3 install pandas numpy scipy
python3 scripts/analyze.py --nsec <NSEC> --days 60 --coaching-report

Commands

FlagDescription
--nsecYour Nostr private key (nsec1...)
--daysAnalysis period (default: 30)
--insightsGenerate improvement tips
--coaching-reportFull coaching analysis
--training-planPath to training plan markdown file
--trendsShow trend visualizations
--correlationsAnalyze habit/mood correlations
--pbShow personal records
--challengesGenerate weekly challenges

Data Sources

  1. Nostr Encrypted Backup (Kind 30078): Primary workout, habit, journal data
  2. Local Cache: SQLite database for fast re-analysis
  3. Training Plans: Markdown files with structured training schedules

Extended Features (analyze_extended.py)

Local Cache

  • SQLite database stores workouts locally
  • Fast subsequent analyses (no Nostr query needed)
  • Automatic PR tracking across sessions
  • Cache location: ~/.cache/runstr-analytics/

Week-to-Week Comparison

# Shows last 4 weeks with trends
python3 scripts/analyze_extended.py --insights

Personal Records

  • Automatically detects PRs for: 1K, 5K, 10K, Half Marathon
  • Stores historical PRs in cache
  • Shows date and pace for each PR

Visual Charts

  • ASCII bar charts for weekly stats
  • Sparkline trend indicators (📈 📉 ➡️)
  • Easy visual comparison between weeks

Automated Daily Updates

# Set up daily cron job (runs at 07:00)
./setup_cron.sh

# View latest automated report
./view_report.sh

# Check update logs
tail -f ~/.cache/runstr-analytics/daily_update.log

The automation will:

  • Check if cache is older than 12 hours
  • Fetch fresh data from Nostr if needed
  • Generate new report with charts
  • Save to ~/.cache/runstr-analytics/latest_report.txt

Usage Examples

# First time setup - fetch and cache
python3 scripts/analyze_extended.py --nsec nsec1... --force-refresh

# Daily check - uses cache
python3 scripts/analyze_extended.py --insights

# Analyze last 90 days
python3 scripts/analyze_extended.py --days 90 --insights

# Force re-fetch from Nostr (after new backup)
python3 scripts/analyze_extended.py --nsec nsec1... --force-refresh

# Set up automatic daily updates
./setup_cron.sh

# View today's automated report
./view_report.sh

Analytics Engine

Trend Calculations

  • Rolling averages (7-day, 30-day)
  • Week-over-week comparisons
  • Pace progression by distance bracket
  • Training load (acute vs chronic)

Correlation Analysis

  • Pearson correlation for numeric relationships
  • Mood distribution by activity type
  • Habit impact on performance metrics

Recommendation Engine

  • Rule-based coaching tips
  • Goal gap analysis
  • Recovery recommendations

Output Formats

  • Terminal tables (default)
  • JSON export (--format json)
  • Markdown reports (--format md)

Security Considerations

Private Key Handling

  • RUNSTR_NSEC is your Nostr private key — treat it like a password. Never share it.
  • This skill passes the key via stdin (not command-line arguments) to prevent exposure in process lists (ps)
  • For added security on multi-user systems, ensure your system is not configured to log environment variables

Local Data Protection

  • Decrypted workout/journal data is cached locally in ~/.cache/runstr-analytics/runstr_cache.db
  • Cache directory and database files are created with restrictive permissions (0700/0600) — only your user can access them
  • Ensure your disk is encrypted (full-disk encryption) for maximum protection

Recommended Installation

  • Install on a personal machine with restricted access (single user, disk encryption enabled)
  • Consider pinning the nak binary to a specific release rather than using @latest
  • Review the cron setup before enabling automatic daily updates

Privacy

  • NSEC is never stored or logged in skill output
  • All processing happens locally on your machine
  • Nostr queries use encrypted connections (WSS/WebSocket Secure)
  • No data is sent to external analytics services

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.06%
按下载量换算2,750

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills