charlieviettq/awesome-agent-skill / .claude/skills/autoskill
autoskill
VerifiedObserve the user's screen via screenpipe, detect repeated research workflows, match them against existing scientific-agent-skills, and draft new skills (or composition recipes that chain existing ones) for the patterns not yet covered. Use when the user asks to analyze their recent work and propose skills based on what they actually do. Requires the screenpipe daemon (https://github.com/screenpipe/screenpipe) running locally on port 3030 — the skill has no other data source and will refuse to run if screenpipe is unreachable. All detection runs locally; only redacted cluster summaries reach the LLM.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.1 KB |
| config.yaml | config | 2.0 KB |
| references/https-proxy.md | markdown | 1.5 KB |
| references/screenpipe-config.yaml | config | 1.5 KB |
| scripts/autoskill.py | script | 1.1 KB |
| scripts/backends.py | script | 2.3 KB |
| scripts/cluster.py | script | 1.7 KB |
| scripts/doctor.py | script | 3.4 KB |
| scripts/fetch_window.py | script | 1.1 KB |
| scripts/match_skills.py | script | 1.3 KB |
| scripts/promote.py | script | 1.5 KB |
| scripts/redact.py | script | 1.6 KB |
| scripts/run.py | script | 7.2 KB |
| scripts/synthesize.py | script | 2.3 KB |
| tests/conftest.py | script | 113 B |
| tests/smoke_lmstudio.py | script | 2.0 KB |
| tests/test_backends.py | script | 4.2 KB |
| tests/test_cli.py | script | 1.5 KB |
| tests/test_cluster.py | script | 2.7 KB |
| tests/test_doctor.py | script | 3.0 KB |
| tests/test_e2e.py | script | 11.9 KB |
| tests/test_fetch_window.py | script | 3.7 KB |
| tests/test_match_skills.py | script | 2.5 KB |
| tests/test_promote.py | script | 3.5 KB |
| tests/test_redact.py | script | 4.5 KB |
| tests/test_run.py | script | 8.0 KB |
| tests/test_synthesize.py | script | 3.1 KB |
tests/test_cluster.py
View on GitHubfrom cluster import segment_sessions, cluster_sessions
def _evt(ts: int, app: str, title: str = "", text: str = "") -> dict:
return {"ts": ts, "app": app, "window_title": title, "text": text}
def test_contiguous_events_form_one_session():
events = [_evt(i * 30, "VSCode") for i in range(20)] # 10 minutes
sessions = segment_sessions(events, idle_gap_seconds=600, min_session_seconds=300)
assert len(sessions) == 1
assert sessions[0]["apps"] == ["VSCode"]
assert sessions[0]["duration_seconds"] == 19 * 30
def test_idle_gap_splits_sessions():
left = [_evt(i * 30, "Chrome") for i in range(20)] # 0..570
right = [_evt(10000 + i * 30, "Chrome") for i in range(20)] # gap of ~9400s
sessions = segment_sessions(left + right, idle_gap_seconds=600, min_session_seconds=300)
assert len(sessions) == 2
def test_sessions_below_minimum_are_dropped():
events = [_evt(i * 10, "Finder") for i in range(5)] # 40 seconds total
sessions = segment_sessions(events, idle_gap_seconds=600, min_session_seconds=300)
assert sessions == []
def test_session_records_distinct_apps_in_order_of_first_appearance():
events = [
_evt(0, "Chrome"), _evt(30, "Chrome"),
_evt(60, "Zotero"), _evt(90, "Zotero"),
_evt(120, "VSCode"), _evt(600, "VSCode"),
]
sessions = segment_sessions(events, idle_gap_seconds=600, min_session_seconds=300)
assert len(sessions) == 1
assert sessions[0]["apps"] == ["Chrome", "Zotero", "VSCode"]
def test_clusters_group_sessions_with_identical_app_signatures():
sessions = [
{"apps": ["Chrome", "Zotero"], "duration_seconds": 600, "window_titles": ["PubMed"]},
{"apps": ["Chrome", "Zotero"], "duration_seconds": 800, "window_titles": ["bioRxiv"]},
{"apps": ["VSCode"], "duration_seconds": 900, "window_titles": ["paper.tex"]},
]
clusters = cluster_sessions(sessions, min_cluster_size=2)
assert len(clusters) == 1
assert clusters[0]["apps"] == ["Chrome", "Zotero"]
assert clusters[0]["session_count"] == 2
def test_cluster_summary_exposes_total_duration_and_example_titles():
sessions = [
{"apps": ["Chrome"], "duration_seconds": 300, "window_titles": ["arXiv"]},
{"apps": ["Chrome"], "duration_seconds": 500, "window_titles": ["Nature"]},
]
clusters = cluster_sessions(sessions, min_cluster_size=2)
assert clusters[0]["total_duration_seconds"] == 800
assert set(clusters[0]["example_titles"]) == {"arXiv", "Nature"}
def test_singleton_clusters_are_dropped_when_below_min_cluster_size():
sessions = [
{"apps": ["Slack"], "duration_seconds": 400, "window_titles": ["general"]},
]
clusters = cluster_sessions(sessions, min_cluster_size=2)
assert clusters == []
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |