Sd Search logo

Sd Search

Community
YuanyuanMa03
sd-search

ScienceDirect 全流程技能:关键词检索、高级检索、论文详情解析、结果页解析、翻页、期刊浏览。Use when the user wants to search ScienceDirect, browse its journals, or open/parse ScienceDirect paper pages.

Overview

PublisherYuanyuanMa03
Repositoryacademic-research-skills
Skill namesd-search
Stars
76
Forks
7
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by YuanyuanMa03 on GitHub. Read the source before you install it.

Installation

Install the Sd Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/YuanyuanMa03/academic-research-skills/tree/main/plugins/sd-search/skills/sd-search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/YuanyuanMa03/academic-research-skills.git /tmp/academic-research-skills
mkdir -p .claude/skills
cp -r /tmp/academic-research-skills/plugins/sd-search/skills/sd-search .claude/skills/sd-search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sd Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sd Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sd Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ScienceDirect Search — 全流程技能

一个技能覆盖 ScienceDirect 站内全部动作。基础检索在本文件;其余场景按路由表进入对应子流程文档。

场景路由

用户想做什么进入哪个流程
关键词检索(本文件主流程)下文 Steps
高级检索(多字段过滤)references/advanced-search.md
打开/解析某篇论文详情页references/paper-detail.md
解析当前结果页references/parse-results.md
结果翻页references/navigate-pages.md
浏览某期刊的卷期与文章references/journal-browse.md
下载/导出/推送 Zotero条目交给 scansci-pdf 技能

Important: Determine the ScienceDirect base URL

Before the first operation, check the current browser page URL to determine which ScienceDirect domain the user is accessing. Store it as BASE_URL. Common patterns:

  • Direct access: https://www.sciencedirect.com
  • Institutional proxy: URL containing sciencedirect in the hostname (e.g. WebVPN or EZProxy)

Use whatever origin the user's browser is currently on. If no ScienceDirect page is open, ask the user which URL to use.

Anti-bot wall signature (verified 2026-10-29)

If the page title is Just a moment... with heading Are you a robot?, Elsevier's Cloudflare wall has fingerprinted the browser context. Automated/embedded webviews (Electron in-app browsers, headless) hit this immediately; the user's daily Chrome driven via chrome-devtools (bundled .mcp.json already passes --disable-blink-features=AutomationControlled) usually does not. Do NOT retry the same context: either hand the visible browser to the user to pass the challenge once, or switch to chrome-devtools on the user's Chrome. Full signature table: docs/PLAYBOOK.md.

Steps

Step 1: Navigate to search results

Use navigate_page to go to:

{BASE_URL}/search?qs={QUERY}&show=25

Where {QUERY} is the URL-encoded search keywords from $ARGUMENTS.

Important: Always include initScript to prevent bot detection:

initScript: "Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"

Step 2: Check access

After navigation, verify the page loaded correctly:

  • If the page shows "Are you a robot" or captcha: auto-click the Cloudflare Turnstile checkbox using the procedure below. If auto-click fails after 2 attempts, tell the user "请在浏览器中完成验证后告知我。"
  • If the URL no longer contains sciencedirect or search, the user may have been redirected to a login/authentication page. Tell the user: "页面被重定向,请在浏览器中完成登录或认证后告知我。" Then wait.
  • Otherwise, proceed.
Cloudflare Turnstile auto-click procedure

When a captcha page is detected (title "请稍候…" or body contains "Are you a robot"):

  1. Wait for the Turnstile iframe to load — use evaluate_script to poll for #captcha-box (up to 8s).
  2. Take a snapshot — use take_snapshot to get the a11y tree. The checkbox is inside a cross-origin iframe but Chrome DevTools MCP can see it:
    Iframe "包含 Cloudflare 安全质询的小组件"
      checkbox "确认您是真人"   ← target uid
  3. Click the checkbox — use click(uid) on the checkbox element.
  4. Wait and verify — wait 3-5s, then check if document.contentType changed or the page URL changed (indicating success). If still on captcha, retry once or fall back to asking the user.

Step 3: Extract search results

Use evaluate_script with built-in waiting. Do NOT use wait_for — it returns the full page snapshot which can exceed token limits (250K+ chars) on ScienceDirect pages.

javascript
async () => {
  // Wait for results to load (up to 10s)
  for (let i = 0; i < 20; i++) {
    if (document.querySelector('li.ResultItem') || document.querySelector('.search-body-results-text')) break;
    await new Promise(r => setTimeout(r, 500));
  }

  const items = document.querySelectorAll('li.ResultItem');
  const papers = [];

  for (let i = 0; i < items.length; i++) {
    const item = items[i];
    const titleLink = item.querySelector('a.result-list-title-link');
    const journal = item.querySelector('a.subtype-srctitle-link');
    const dateSpans = item.querySelectorAll('.srctitle-date-fields > span');
    const date = dateSpans.length > 1 ? dateSpans[dateSpans.length - 1].textContent.trim() : '';
    const authors = [...item.querySelectorAll('.Authors .author')].map(a => a.textContent.trim());
    const doi = item.getAttribute('data-doi');
    const pii = titleLink?.href?.match(/pii\/(\w+)/)?.[1] || '';
    const articleType = item.querySelector('.article-type')?.textContent?.trim() || '';
    const isOpenAccess = !!item.querySelector('.access-label');

    papers.push({
      rank: i + 1,
      title: titleLink?.textContent?.trim() || '',
      pii,
      doi: doi || '',
      journal: journal?.textContent?.trim() || '',
      date,
      authors,
      articleType,
      openAccess: isOpenAccess,
    });
  }

  const totalText = document.querySelector('.search-body-results-text')?.textContent?.trim() || '';
  const pageInfo = document.querySelector('.Pagination li:first-child')?.textContent?.trim() || '';

  return { papers, totalResults: totalText, pageInfo };
}

Step 4: Present results

Format results as a numbered list:

Found {totalResults}. {pageInfo}

1. {title}
   Authors: {authors}
   Journal: {journal} | {date}
   DOI: {doi} | PII: {pii}
   Type: {articleType} | Open Access: {yes/no}

2. ...

Key CSS Selectors

ElementSelector
Result itemsli.ResultItem
Title linka.result-list-title-link
Journal linka.subtype-srctitle-link
Authors.Authors .author
Date.srctitle-date-fields > span (last span)
DOIdata-doi attribute on li.ResultItem
Article type.article-type
Open access indicator.access-label
Total results.search-body-results-text
Checkbox (for batch ops).checkbox-input (id = PII)
Next page link.next-link a

URL Parameters

ParamDescriptionExample
qsQuery stringdeep learning
showResults per page25, 50, 100
offsetPagination offset0, 25, 50
sortBySort orderdate (omit for relevance)

Notes

  • Results include PII identifiers needed for detail extraction, PDF download, and citation export.
  • Each result checkbox id equals the PII, used for batch export/download.
  • This skill performs at most 2 tool calls: navigate_page + evaluate_script.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sd Search AI skill do?

ScienceDirect 全流程技能:关键词检索、高级检索、论文详情解析、结果页解析、翻页、期刊浏览。Use when the user wants to search ScienceDirect, browse its journals, or open/parse ScienceDirect paper pages.

Why use Sd Search on TypingMind?

Because you install it once and use it with any model. Sd Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sd Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/YuanyuanMa03/academic-research-skills/tree/main/plugins/sd-search/skills/sd-search. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sd Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sd Search?

As many as you like. As long as a model supports skills, you can use Sd Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sd Search AI skill free?

Yes. It is published on GitHub by YuanyuanMa03 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇