autoskill▌
K-Dense-AI/scientific-agent-skills · updated Jun 4, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
### Autoskill
- ›name: "autoskill"
- ›description: "Observe 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..."
- ›allowed-tools: "Read Write Edit Bash"
| name | autoskill |
| description | Observe 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. |
| allowed-tools | Read Write Edit Bash |
| license | MIT license |
| metadata | version: "1.0" skill-author: K-Dense Inc. requires: screenpipe |
autoskill
Requires a running screenpipe daemon. This skill has no alternate data source — it reads exclusively from the local screenpipe HTTP API (default
http://localhost:3030). If the daemon isn't running,run()raisesScreenpipeUnreachablewith install instructions.
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
http://localhost:1234/v1(LM Studio, default),https://api.anthropic.com(opt-in Claude), or a user-supplied BYOK Foundry gateway. The skill reads three environment variables —SCREENPIPE_TOKEN,ANTHROPIC_API_KEY,FOUNDRY_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.
Overview
Turn the user's own workflow history — captured passively by the local screenpipe daemon — into new skills. This skill is on-demand: the user invokes it with a time window, it queries screenpipe's local HTTP API, clusters repeated workflow patterns, compares each pattern against the existing skills in this repo, and produces a staged folder of proposals the user can review, edit, and promote.
When to Use This Skill
Invoke this skill when the user asks to:
- "Analyze my last 4 hours / day / week and propose new skills."
- "Look at what I've been doing and tell me what's not covered yet."
- "Draft a skill from my recent workflow."
- "Find composition recipes for workflows I repeat."
Do not invoke it for one-off questions about screenpipe itself, for real-time screen queries, or without an explicit user request — the skill analyzes sensitive local content and must stay explicitly user-triggered.
Privacy Posture
- Screenpipe handles app/window filtering at capture time. Install a starter deny-list by copying
references/screenpipe-config.yamlinto the user's screenpipe config. Sensitive apps (password managers, messaging, banking) are never OCR'd in the first place. - Raw OCR never leaves the machine.
scripts/fetch_window.pypulls data over localhost HTTP.scripts/cluster.pyreduces the timeline to app/duration/title summaries.scripts/redact.pystrips emails, API keys, bearer tokens, and phone numbers as defense-in-depth before any cluster summary reaches the LLM. - LLM backend defaults to
local. The recommended setup is LM Studio runningGemma-4-31B-it— strong reasoning at a size that fits on most workstation GPUs, and no data ever leaves your machine. Cloud backends (claude,foundry) are opt-in and documented inconfig.yamlfor users who explicitly want them. Detection and embeddings always run locally regardless of backend choice. - Dry-run mode (
--plan) prints the exact timeline that will be analyzed before any LLM call. - TLS for localhost (optional, for corporate policy): see
references/https-proxy.mdfor the Caddy pattern.
Prerequisites
1. Screenpipe daemon
Either install the official release or build from source. Either way the daemon binds HTTP on localhost:3030 by default.
From source (recommended if you want the CLI daemon without the desktop GUI):
git 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-removal
First run will prompt for macOS Screen Recording permission. Grant it and relaunch.
2. Screenpipe API token
The local API now requires bearer auth. Retrieve your token and export it:
export SCREENPIPE_TOKEN=$(screenpipe auth token)
(Or set screenpipe.token directly in config.yaml — env var is preferred since it keeps secrets out of version control.)
3. Python environment
Via pipenv from the repo root:
pipenv install httpx pyyaml sentence-transformers
The embedding model (sentence-transformers/all-MiniLM-L6-v2, ~80 MB) downloads on first run.
4. Local LLM (default path) — LM Studio
- Install LM Studio.
- Download
Gemma-4-31B-it(or another strong reasoning model; adjustlocal.modelinconfig.yaml). - Load it via the CLI for headless use (no GUI required):
lms load gemma-4-31b-it --context-length 131072 --gpu max -y
lms status # confirm server running on :1234
5. Cloud LLM backends (optional, opt-in)
Only if you explicitly opt out of local:
claude: setANTHROPIC_API_KEY, flipbackend: claudeinconfig.yaml.foundry: setFOUNDRY_API_KEY, flipbackend: foundry, setfoundry.endpointto your corporate gateway URL.
Architecture
screenpipe 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 → skills/<name>/
Workflow
The skill ships a unified CLI at scripts/autoskill.py with three subcommands:
python 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>
0. Preflight with doctor
Before a full run, verify every dependency in one shot:
python scripts/autoskill.py doctor \
--config skills/autoskill/config.yaml \
--skills-dir skills
The report covers config (backend choice valid), skills_dir (exists), screenpipe (reachable + authed), and llm (LM Studio serving or API key present). Non-zero exit on any failure, with the offending line marked error.
1. Run the pipeline
export SCREENPIPE_TOKEN=$(screenpipe auth token)
python scripts/autoskill.py run \
--start "2026-04-17T00:00:00Z" \
--end "2026-04-17T23:59:59Z" \
--config skills/autoskill/config.yaml \
--skills-dir skills
Proposals land in ~/.autoskill/proposed/<timestamp>/ by default, keeping experimental output out of the skills repo. Pass --out PATH to override.
Internally:
- Fetch —
fetch_windowpaginates screenpipe's/searchendpoint, normalizes events to{ts, app, window_title, text, content_type}. - Redact —
redactscrubs emails, API keys, bearer tokens, phones from OCR text and window titles as defense-in-depth over screenpipe's own PII removal. - Cluster —
segment_sessionssplits on idle gaps (default 10 min) and drops short sessions;cluster_sessionsgroups sessions by app-signature and keeps clusters of sizemin_cluster_size(default 2). - Match —
load_skill_descriptionsreads frontmatter from everySKILL.mdinskills/;top_k_matchesranks each cluster against all skills using localsentence-transformersembeddings (cosine similarity). - Synthesize —
synthesizeprompts the configured LLM backend to classify each cluster asreuse,compose, ornoveland emit a SKILL.md body where appropriate. - Report — writes
<out_dir>/<ts>/report.md, plusnew-skills/<name>/SKILL.mdorcomposition-recipes/<name>/SKILL.mdfor each proposal.
Add --dry-run to stop after clustering; this skips the LLM (and the sentence-transformers load), writing only plan.md for inspection.
2. Review and promote
Open ~/.autoskill/proposed/<ts>/report.md, edit drafts in place, delete anything you don't want. Then:
python scripts/autoskill.py promote \
--proposed ~/.autoskill/proposed/2026-04-17T14-30-00 \
--skills-dir skills \
--name zotero-pubmed-helper
promote moves the directory into skills/<name>/, refusing to overwrite an existing skill. Exits non-zero with a friendly error if the proposal isn't found or the target already exists.
Configuration
See config.yaml for the full shape. Default values (local-first):
backend: 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: 2
To opt into a cloud backend:
backend: claude # or foundry
claude:
model: claude-opus-4-7
Composition recipes vs new skills
- compose: the LLM judged that chaining existing skills covers the workflow. The emitted SKILL.md is intentionally thin — frontmatter + a "Workflow" section that invokes existing skills in order. The same agent runtime that discovered the skill can then invoke it end-to-end.
- novel: no combination of existing skills covers it. A fuller SKILL.md is drafted, still following repo conventions (frontmatter, Overview, When to Use, Workflow). The user should always review new-skill drafts before promoting.
Testing
The skill is covered by a small pytest suite at tests/. Each script is unit-tested in isolation with dependency injection (mock HTTP transport, stub backend, stub embedder):
cd skills/autoskill
python -m pytest tests/ -v
Composition with other skills in this repo
The autoskill's embedding index covers all 135 sibling skills. Workflows that look like scientific writing will match scientific-writing / literature-review / citation-management; figure work will match scientific-schematics / generate-image / infographics; slide prep matches scientific-slides / pptx; etc. When a cluster scores high against two or three sibling skills the emitted composition recipe names them explicitly, so the user's future agent invocations use the optimized paths already documented in this repo.
How to use autoskill on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add autoskill
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches autoskill from GitHub repository K-Dense-AI/scientific-agent-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate autoskill. Access the skill through slash commands (e.g., /autoskill) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★53 reviews- ★★★★★Amina Anderson· Dec 28, 2024
autoskill reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Chaitanya Patil· Dec 24, 2024
autoskill fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kabir Chen· Dec 12, 2024
We added autoskill from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Evelyn Reddy· Dec 12, 2024
I recommend autoskill for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Anaya Choi· Dec 8, 2024
autoskill fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yusuf Torres· Nov 27, 2024
Registry listing for autoskill matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Ishan Torres· Nov 19, 2024
We added autoskill from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Piyush G· Nov 15, 2024
Registry listing for autoskill matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Anaya Park· Nov 3, 2024
autoskill reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Evelyn Shah· Oct 22, 2024
Registry listing for autoskill matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 53