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_backends.py
View on GitHubimport httpx
import pytest
from backends import ClaudeBackend, LocalBackend, make_backend
def _mock_client(handler, base_url=""):
return httpx.Client(transport=httpx.MockTransport(handler), base_url=base_url)
def test_claude_backend_posts_to_v1_messages_with_auth_headers():
calls = []
def handler(request):
calls.append(request)
return httpx.Response(200, json={"content": [{"type": "text", "text": "hello"}]})
backend = ClaudeBackend(api_key="sk-test", model="claude-opus-4-7",
client=_mock_client(handler, base_url="https://api.anthropic.com"))
result = backend("say hello")
assert result == "hello"
assert calls[0].url.path == "/v1/messages"
assert calls[0].headers["x-api-key"] == "sk-test"
assert calls[0].headers["anthropic-version"]
body = calls[0].read()
import json as _json
payload = _json.loads(body)
assert payload["model"] == "claude-opus-4-7"
assert payload["messages"][0]["role"] == "user"
assert payload["messages"][0]["content"] == "say hello"
def test_claude_backend_honors_custom_base_url_for_foundry():
calls = []
def handler(request):
calls.append(request)
return httpx.Response(200, json={"content": [{"type": "text", "text": "ok"}]})
backend = ClaudeBackend(api_key="k", model="claude-opus-4-7",
client=_mock_client(handler, base_url="https://foundry.example.com/anthropic"))
backend("hi")
assert str(calls[0].url).startswith("https://foundry.example.com/anthropic/v1/messages")
def test_claude_backend_raises_on_http_error():
def handler(request):
return httpx.Response(401, json={"error": "bad key"})
backend = ClaudeBackend(api_key="k", model="m",
client=_mock_client(handler, base_url="https://api.anthropic.com"))
with pytest.raises(httpx.HTTPStatusError):
backend("x")
def test_local_backend_posts_to_chat_completions():
calls = []
def handler(request):
calls.append(request)
return httpx.Response(200, json={
"choices": [{"message": {"content": "hi back"}}]
})
backend = LocalBackend(endpoint="http://localhost:11434/v1", model="qwen2.5:14b",
client=_mock_client(handler, base_url="http://localhost:11434/v1"))
result = backend("prompt")
assert result == "hi back"
assert calls[0].url.path.endswith("/chat/completions")
import json as _json
payload = _json.loads(calls[0].read())
assert payload["model"] == "qwen2.5:14b"
assert payload["messages"][0]["content"] == "prompt"
def test_make_backend_returns_claude_backend_for_claude_config(monkeypatch):
monkeypatch.setenv("ANTHROPIC_API_KEY", "sk-env")
backend = make_backend({
"backend": "claude",
"claude": {"model": "claude-opus-4-7"},
})
assert isinstance(backend, ClaudeBackend)
assert backend.api_key == "sk-env"
assert backend.model == "claude-opus-4-7"
def test_make_backend_returns_claude_backend_with_foundry_base_url(monkeypatch):
monkeypatch.setenv("FOUNDRY_API_KEY", "sk-foundry")
backend = make_backend({
"backend": "foundry",
"foundry": {
"endpoint": "https://foundry.example.com/anthropic",
"model": "claude-opus-4-7",
},
})
assert isinstance(backend, ClaudeBackend)
assert backend.api_key == "sk-foundry"
assert "foundry.example.com" in str(backend.client.base_url)
def test_make_backend_returns_local_backend_for_local_config():
backend = make_backend({
"backend": "local",
"local": {"endpoint": "http://localhost:11434/v1", "model": "qwen2.5:14b"},
})
assert isinstance(backend, LocalBackend)
assert backend.model == "qwen2.5:14b"
def test_make_backend_raises_on_unknown_backend():
with pytest.raises(ValueError, match="unknown backend"):
make_backend({"backend": "mystery"})
def test_make_backend_raises_when_anthropic_key_missing(monkeypatch):
monkeypatch.delenv("ANTHROPIC_API_KEY", raising=False)
with pytest.raises(RuntimeError, match="ANTHROPIC_API_KEY"):
make_backend({"backend": "claude", "claude": {"model": "m"}})
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 |