analyze
Skill17 starsChanged 9 months agoApache-2.0View on GitHub
Track biometric impact of any life event — with dose-escalation support, SpO2 monitoring, and cycle-phase awareness. Use when the user started/stopped something and wants to see the data. Arguments: event name and event date(s).
39 other projects use a version of this.
Adopted by
Most recently taken up by
- amit-nayar/skillstheir own version, first seen Oct 5, 2026
- nwiizo/tfmcptheir own version, first seen Oct 2, 2026
- bloxy-studios/shorts-studiotheir own version, first seen Oct 1, 2026
- eddmann/agent-toolkittheir own version, first seen Sep 22, 2026
- atelier-fashion/adlc-toolkittheir own version, first seen Sep 9, 2026
- unclejobs-ai/second-claude-codetheir own version, first seen Sep 6, 2026
Used with
Projects with it also use ralplan, ultrawork and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
an8079Skillralplan
Also in 3 projects that use this
zephyrpersonalSkillultrawork
Obsessive task completion mode (Sisyphus Mode) - activates maximum intensity work with todo continuation enforcement
Also in 3 projects that use this
DockerSkillwrite
Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.
Also in 4 projects that use this
ElliotJLTSkillpipeline
Orchestration pattern for sequential, dependent tasks. When work must flow through stages where each stage depends on the previous (design → implement → test → review), structure as a pipeline with explicit handoffs. Each stage completes before the next begins.
Also in 4 projects that use this
yunseo-kimSkillgit-master
MUST USE for ANY git operations. Atomic commits, rebase/squash, cherry-pick, worktree, reflog recovery, and history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'cherry-pick', 'worktree', 'reflog', 'who wrote', 'when was X added', 'find the commit that'.
Also in 3 projects that use this
aviz85Skilldeep-interview
Conduct deep adaptive interviews to extract and organize knowledge into structured files and folders. Use when user says "interview me about X", "deep interview", "extract my knowledge", "build knowledge base from interview", "ask me questions about X", or wants to systematically capture expertise on any topic through guided questioning.
Also in 3 projects that use this
Other versions39 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 39
- anthropics/knowledge-work-plugins★ 26ksame name
- H-mmer/pentest-agents★ 984same name
- nwiizo/tfmcp★ 373same name
- akseolabs-seo/AK-Threads-booster★ 274same name
- atelier-fashion/adlc-toolkit★ 171same name
- KumarSashank/motiscope★ 121same name
- ArvorCo/Relentless★ 98same name
- assafkip/huntkit★ 52same name
- unclejobs-ai/second-claude-code★ 40same name
- rainday/smart-blog-skills★ 35same name
29 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- connectSkill
- dailySkill
- discoverSkill
- gutSkill
- pullSkill
- smart-modeSkill
- weekly-reportSkill
The file
Files
Analyze — Event Impact & Dose Tracking
Compare biometric data before and after a life event. Supports multiple event dates for dose escalation tracking.
Arguments
- First argument: event name (e.g., "Quit alcohol", "Started creatine", "New job")
- Second argument: event date(s) — single date (YYYY-MM-DD) or comma-separated for dose changes (e.g., "2026-02-02,2026-03-02,2026-03-30")
Steps
EVENT_NAME="${1:-Event}"
EVENT_DATES="${2:-$(date +%Y-%m-%d)}"
python3 << PYEOF
import sys, os
sys.path.insert(0, os.path.join(os.environ.get('CLAUDE_PLUGIN_ROOT', '.'), 'lib'))
from fetch import fetch_biometrics
from cycle import detect_cycle_phases
from dataclasses import asdict
from datetime import datetime, timedelta
from statistics import mean, stdev
from collections import defaultdict
from metrics import compute_disruption_classification, compute_glucose_variability
event_name = "$EVENT_NAME"
event_dates_str = "$EVENT_DATES"
event_dates = [d.strip() for d in event_dates_str.split(",")]
first_event = datetime.strptime(event_dates[0], "%Y-%m-%d")
pre_start = (first_event - timedelta(days=28)).strftime("%Y-%m-%d")
post_end = datetime.now().strftime("%Y-%m-%d")
print(f"Analyzing: {event_name}")
print(f"Event date(s): {', '.join(event_dates)}")
print(f"Pre-period: {pre_start} to {event_dates[0]}")
print(f"Post-period: {event_dates[0]} to {post_end}")
data = fetch_biometrics(start_date=pre_start, end_date=post_end)
d = asdict(data)
sleep = [s for s in d['sleep'] if s.get('sleep_type') in ('long_sleep', None)] or d['sleep']
def safe_mean(vals): return mean(vals) if vals else 0
def safe_stdev(vals): return stdev(vals) if len(vals) > 1 else 0
# --- PRE/POST COMPARISON ---
def split_pre_post(records, event_date, date_key="day"):
pre = [r for r in records if r.get(date_key, "") < event_date]
post = [r for r in records if r.get(date_key, "") >= event_date]
return pre, post
def compare(pre_vals, post_vals, label, unit="", higher_is_better=True):
if not pre_vals or not post_vals: return None
pre_mean = safe_mean(pre_vals)
post_mean = safe_mean(post_vals)
if pre_mean == 0: return None
pct = ((post_mean - pre_mean) / abs(pre_mean)) * 100
pre_sd = safe_stdev(pre_vals)
significant = abs(post_mean - pre_mean) > pre_sd if pre_sd > 0 else abs(pct) > 10
direction = "up" if pct > 0 else "down"
good = (direction == "up" and higher_is_better) or (direction == "down" and not higher_is_better)
return {"label": label, "pre": f"{pre_mean:.1f}{unit}", "post": f"{post_mean:.1f}{unit}",
"change": f"{pct:+.1f}%", "significant": significant,
"flag": "GOOD" if good and significant else ("FLAG" if not good and significant else ""),
"pre_mean": pre_mean, "post_mean": post_mean}
# Main comparison against first event date
pre_sleep, post_sleep = split_pre_post(sleep, event_dates[0])
pre_ready, post_ready = split_pre_post(d['readiness'], event_dates[0])
results = []
if sleep:
results.append(compare([s['score'] for s in pre_sleep if s.get('score')], [s['score'] for s in post_sleep if s.get('score')], "Sleep Score", "", True))
for field, label, unit, hib in [
("deep_sleep_seconds", "Deep Sleep", " min", True),
("rem_sleep_seconds", "REM Sleep", " min", True),
("total_sleep_seconds", "Total Sleep", " min", True),
("efficiency", "Efficiency", "%", True),
("avg_hrv_ms", "HRV", " ms", True),
("avg_resting_hr_bpm", "Resting HR", " bpm", False),
]:
div = 60 if "seconds" in field else 1
results.append(compare([s[field]/div for s in pre_sleep if s.get(field)], [s[field]/div for s in post_sleep if s.get(field)], label, unit, hib))
if d['readiness']:
results.append(compare([r['score'] for r in pre_ready if r.get('score')], [r['score'] for r in post_ready if r.get('score')], "Readiness", "", True))
results.append(compare([r['temp_deviation_c'] for r in pre_ready if r.get('temp_deviation_c') is not None], [r['temp_deviation_c'] for r in post_ready if r.get('temp_deviation_c') is not None], "Temp Deviation", "°C", False))
results = [r for r in results if r is not None]
print(f"\n{'='*70}")
print(f"BEFORE / AFTER: {event_name}")
print(f"{'='*70}\n")
print(f"{'Metric':<20} {'Pre':>10} {'Post':>10} {'Change':>10} {'Signal':>8}")
print("-" * 62)
for r in results:
sig = " ***" if r["significant"] else ""
flag = f" {r['flag']}" if r["flag"] else ""
print(f"{r['label']:<20} {r['pre']:>10} {r['post']:>10} {r['change']:>10}{flag}{sig}")
significant = [r for r in results if r["significant"]]
if significant:
print(f"\nKEY FINDINGS:")
for f in significant:
tag = f["flag"] or "NOTE"
print(f" [{tag}] {f['label']}: {f['pre']} → {f['post']} ({f['change']})")
# --- DOSE ESCALATION TRACKING ---
if len(event_dates) > 1:
print(f"\n{'='*70}")
print(f"DOSE ESCALATION TIMELINE")
print(f"{'='*70}")
for i, date in enumerate(event_dates):
label = f"Dose {i+1}" if i > 0 else "Start"
next_date = event_dates[i+1] if i+1 < len(event_dates) else post_end
period_sleep = [s for s in sleep if date <= s.get('day', '') < next_date]
hrv_vals = [s['avg_hrv_ms'] for s in period_sleep if s.get('avg_hrv_ms')]
rhr_vals = [s['avg_resting_hr_bpm'] for s in period_sleep if s.get('avg_resting_hr_bpm')]
eff_vals = [s['efficiency'] for s in period_sleep if s.get('efficiency')]
days_in_period = (datetime.strptime(next_date, "%Y-%m-%d") - datetime.strptime(date, "%Y-%m-%d")).days
print(f"\n {label} ({date}, {days_in_period} days):")
if hrv_vals: print(f" HRV: {safe_mean(hrv_vals):.0f}ms")
if rhr_vals: print(f" RHR: {safe_mean(rhr_vals):.1f}bpm")
if eff_vals: print(f" Efficiency: {safe_mean(eff_vals):.0f}%")
# --- CYCLE PHASE CONTEXT ---
tags = d.get('tags', [])
cycle = detect_cycle_phases(d['readiness'], sleep, period_tags=tags or None)
if cycle['current_phase'] != 'unknown':
print(f"\n Cycle detection ({cycle['source']}, confidence: {cycle['confidence']}):")
print(f" Current phase: {cycle['current_phase']} (day {cycle['estimated_cycle_day']})")
print(f" Cycle length: ~{cycle['cycle_length']} days")
if cycle['detected_periods']:
print(f" Detected periods: {', '.join(cycle['detected_periods'])}")
# Check if any event dates fall in luteal phase
for ed in event_dates:
for period_start in cycle['detected_periods']:
gap = (datetime.strptime(ed, "%Y-%m-%d") - datetime.strptime(period_start, "%Y-%m-%d")).days
if 14 <= gap <= cycle.get('cycle_length', 28):
print(f" Note: {ed} falls in estimated luteal phase — biometric shifts may overlap")
# --- HR ZONES COMPARISON ---
heartrate = d.get('heartrate', [])
if heartrate:
from metrics import compute_hr_zones, compute_intensity_minutes
user = d.get('user') or {}
pre_hr = [h for h in heartrate if h.get('timestamp', '')[:10] < event_dates[0]]
post_hr = [h for h in heartrate if h.get('timestamp', '')[:10] >= event_dates[0]]
if pre_hr and post_hr:
pre_im = compute_intensity_minutes(pre_hr, user)
post_im = compute_intensity_minutes(post_hr, user)
if pre_im['combined_minutes'] or post_im['combined_minutes']:
print(f"\n Intensity minutes (combined):")
print(f" Pre: {pre_im['combined_minutes']} min")
print(f" Post: {post_im['combined_minutes']} min")
# --- Personal Baseline Context (NEW) ---
from metrics import compute_personal_baselines
bl = compute_personal_baselines(sleep, readiness)
if bl.get('status') == 'ok':
print(f"\n BASELINE CONTEXT:")
for mk in ['hrv', 'rhr', 'sleep_score', 'efficiency']:
m = bl['metrics'].get(mk, {})
b30 = m.get('baselines', {}).get('30d', {})
if b30.get('mean') is not None:
# Where does post-period sit vs full baseline?
post_vals = [s.get({'hrv': 'avg_hrv_ms', 'rhr': 'avg_resting_hr_bpm',
'sleep_score': 'score', 'efficiency': 'efficiency'}[mk])
for s in post_sleep
if s.get({'hrv': 'avg_hrv_ms', 'rhr': 'avg_resting_hr_bpm',
'sleep_score': 'score', 'efficiency': 'efficiency'}[mk]) is not None]
if post_vals:
post_mean = mean(post_vals)
z = round((post_mean - b30['mean']) / max(b30['sd'], 0.001), 2)
print(f" {mk}: post-period {round(post_mean, 1)} vs 30d baseline {b30['mean']} (z={'+' if z>0 else ''}{z})")
# --- Gut Score Context (NEW, if Suna connected) ---
gut_scores = d.get('gut_scores', [])
if gut_scores:
pre_gs = [g['score'] for g in gut_scores if g.get('day', '') < event_dates[0] and g.get('score')]
post_gs = [g['score'] for g in gut_scores if g.get('day', '') >= event_dates[0] and g.get('score')]
if pre_gs and post_gs:
print(f"\n GUT SCORE:")
print(f" Pre: {round(mean(pre_gs))} avg (n={len(pre_gs)})")
print(f" Post: {round(mean(post_gs))} avg (n={len(post_gs)})")
diff = round(mean(post_gs) - mean(pre_gs))
print(f" Change: {'+' if diff>0 else ''}{diff}")
# Disruption events in the analysis window
disrupt = compute_disruption_classification(d.get('sleep', []), d.get('readiness', []), d.get('spo2', []))
events_in_window = [e for e in disrupt.get('events', []) if e.get('day', '') >= event_dates[0]]
if events_in_window:
print(f"\nDISRUPTION EVENTS (post-event):")
for e in events_in_window:
print(f" {e['day']}: {e['classification'].replace('probable_', '')} ({e['recovery_shape']}-shape)")
# Glucose context if CGM connected
glucose = d.get('glucose', [])
if glucose:
gv = compute_glucose_variability(glucose)
if gv.get('mean'):
print(f"\nGLUCOSE:")
print(f" Mean: {gv['mean']} mg/dL | CV: {gv['cv']}% | TIR: {gv['time_in_range_pct']}%")
print()
PYEOFOutput Format
Present as:
- Before/after table with significance markers
- Key findings — only statistically significant changes
- Dose escalation (if multiple dates) — per-period adaptation metrics
- Cycle context — flag if event coincides with luteal phase
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

