Loading...
Loading...
Observe the user's screen via screenpipe, detect repeated research workflows, match them against existing academic-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.
npx skill4agent add crazymsn/academic-skills autoskillRequires a running screenpipe daemon. This skill has no alternate data source — it reads exclusively from the local screenpipe HTTP API (default). If the daemon isn't running,http://localhost:3030raisesrun()with install instructions.ScreenpipeUnreachable
Network access & environment variables. This skill makes authenticated HTTP requests to (a) the user's local screenpipe daemon on loopback, and (b) the user-configured LLM backend — one of(LM Studio, default),http://localhost:1234/v1(opt-in Claude), or a user-supplied BYOK Foundry gateway. The skill reads three environment variables —https://api.anthropic.com,SCREENPIPE_TOKEN,ANTHROPIC_API_KEY— and uses each only to authenticate to the single endpoint its name implies. No other network destinations, no telemetry, no data egress to any third party.FOUNDRY_API_KEY
references/screenpipe-config.yamlscripts/fetch_window.pyscripts/cluster.pyscripts/redact.pylocalGemma-4-31B-itclaudefoundryconfig.yaml--planreferences/https-proxy.mdlocalhost:3030git clone --depth 1 https://github.com/mediar-ai/screenpipe.git
cd screenpipe
cargo build -p screenpipe-engine --release
# System deps (macOS): cmake + full Xcode.app (not just Command Line Tools).
# brew install cmake
# # if xcodebuild plug-ins error: sudo xcodebuild -runFirstLaunch
./target/release/screenpipe doctor # confirm permissions + ffmpeg
./target/release/screenpipe record --disable-audio --use-pii-removalexport SCREENPIPE_TOKEN=$(screenpipe auth token)screenpipe.tokenconfig.yamlpipenvpipenv install httpx pyyaml sentence-transformerssentence-transformers/all-MiniLM-L6-v2Gemma-4-31B-itlocal.modelconfig.yamllms load gemma-4-31b-it --context-length 131072 --gpu max -y
lms status # confirm server running on :1234claudeANTHROPIC_API_KEYbackend: claudeconfig.yamlfoundryFOUNDRY_API_KEYbackend: foundryfoundry.endpointscreenpipe daemon (user-installed)
│ HTTP on localhost:3030
▼
scripts/fetch_window.py → normalized timeline events
scripts/redact.py → regex scrub (defense-in-depth)
scripts/cluster.py → sessions + clusters (local only)
scripts/match_skills.py → top-k vs existing 135 skills (local embeddings)
scripts/synthesize.py → LLM judge: reuse / compose / novel
│
▼
~/.autoskill/proposed/<timestamp>/ (default; override with --out)
├── report.md
├── composition-recipes/<name>/SKILL.md
└── new-skills/<name>/SKILL.md
scripts/promote.py → user-approved proposal → academic-skills/<name>/scripts/autoskill.pypython scripts/autoskill.py doctor --config config.yaml --skills-dir ../
python scripts/autoskill.py run --start ... --end ... --config config.yaml
python scripts/autoskill.py promote --proposed ~/.autoskill/proposed/<ts> --skills-dir ../ --name <skill>doctorpython scripts/autoskill.py doctor \
--config academic-skills/autoskill/config.yaml \
--skills-dir academic-skillsconfigskills_dirscreenpipellmerrorexport SCREENPIPE_TOKEN=$(screenpipe auth token)
python scripts/autoskill.py run \
--start "2026-04-17T00:00:00Z" \
--end "2026-04-17T23:59:59Z" \
--config academic-skills/autoskill/config.yaml \
--skills-dir academic-skills~/.autoskill/proposed/<timestamp>/--out PATHfetch_window/search{ts, app, window_title, text, content_type}redactsegment_sessionscluster_sessionsmin_cluster_sizeload_skill_descriptionsSKILL.mdacademic-skills/top_k_matchessentence-transformerssynthesizereusecomposenovel<out_dir>/<ts>/report.mdnew-skills/<name>/SKILL.mdcomposition-recipes/<name>/SKILL.md--dry-runplan.md~/.autoskill/proposed/<ts>/report.mdpython scripts/autoskill.py promote \
--proposed ~/.autoskill/proposed/2026-04-17T14-30-00 \
--skills-dir academic-skills \
--name zotero-pubmed-helperpromoteacademic-skills/<name>/config.yamlbackend: local
local:
endpoint: http://localhost:1234/v1 # LM Studio's Developer server
model: Gemma-4-31B-it
screenpipe:
url: http://localhost:3030 # or https://screenpipe.local via Caddy
cluster:
min_session_minutes: 5
idle_gap_minutes: 10
min_cluster_size: 2backend: claude # or foundry
claude:
model: claude-opus-4-7tests/cd academic-skills/autoskill
python -m pytest tests/ -vscientific-writingliterature-reviewcitation-managementscientific-schematicsgenerate-imageinfographicsscientific-slidespptx