MCPcopy Create free account

hub / github.com/Yuan1z0825/nature-skills / functions

Functions474 in github.com/Yuan1z0825/nature-skills

↓ 83 callersFunctionsafe_attr
Read an optional pybliometrics property.
skills/nature-academic-search/mcp-server/sources/elsevier_common.py:60
↓ 51 callersFunctionadd
(findings: list[Finding], level: str, code: str, message: str)
skills/nature-paper-to-patent/scripts/validate_patent_draft.py:30
↓ 40 callersFunction_json_error
Serialize an error result to JSON string.
skills/nature-academic-search/mcp-server/academic_search_server.py:75
↓ 33 callersFunctionris_escape
Strip HTML tags and normalize whitespace for safe RIS field output.
skills/nature-academic-search/scripts/converters.py:12
↓ 29 callersFunction_element
(name: str)
skills/nature-paper-to-patent/scripts/math_to_omml.py:14
↓ 25 callersFunctionpoint
(value: float)
skills/nature-paper-to-patent/scripts/render_flowchart_svg.py:270
↓ 25 callersFunctionris_escape
(text: str)
skills/nature-citation/scripts/nature_citation.py:504
↓ 22 callersFunction_get_first
(fields, tag)
skills/nature-academic-search/scripts/converters.py:45
↓ 18 callersFunctionrecord_to_dict
Recursively convert pybliometrics records into JSON-safe structures.
skills/nature-academic-search/mcp-server/sources/elsevier_common.py:47
↓ 17 callersFunction_json_ok
Serialize a successful result to JSON string.
skills/nature-academic-search/mcp-server/academic_search_server.py:70
↓ 17 callersFunctionadd_heading
(document: Document, text: str, level: int = 1)
skills/nature-paper-to-patent/scripts/render_patent_docx.py:25
↓ 15 callersFunctionclassifyWall
(url, title, bodyHint = "")
skills/nature-downloader/scripts/lib/status-codes.mjs:70
↓ 13 callersMethodsearch
Search arXiv. Parameters ---------- query : str Free-text search query. rows : int Max number
skills/nature-academic-search/mcp-server/sources/arxiv.py:38
↓ 12 callersFunction_detect_id_type
Auto-detect identifier type. Returns one of: "doi", "pmid", "arxiv". Raises ValueError when detection fails.
skills/nature-academic-search/mcp-server/academic_search_server.py:40
↓ 12 callersFunctiondraw_geodesic
(ax, a2d, b2d, linestyle='-', draw_arrow=True, alpha=0.8, num_points_grid=300, color='blue',
skills/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py:65
↓ 12 callersFunctionevalJs
(proxy, target, js, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:94
↓ 10 callersMethod_run
(self, operation: str, callback)
skills/nature-academic-search/mcp-server/sources/scopus.py:334
↓ 10 callersFunctionisSuccess
(status)
skills/nature-downloader/scripts/lib/status-codes.mjs:135
↓ 10 callersFunctionmapLegacyStatus
(status)
skills/nature-downloader/scripts/lib/status-codes.mjs:113
↓ 9 callersFunctionadd_body
(document: Document, text: str, indent: bool = True)
skills/nature-paper-to-patent/scripts/render_patent_docx.py:32
↓ 9 callersFunctionwaitForComplete
(proxy, target, maxMs = 45000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:103
↓ 8 callersFunction_resolve_id_type
Resolve the effective ID type. If id_type is "auto", delegate to _detect_id_type. Otherwise normalise the explicit type string.
skills/nature-academic-search/mcp-server/academic_search_server.py:56
↓ 8 callersFunctionclean_text
(text: str)
skills/nature-citation/scripts/nature_citation.py:498
↓ 8 callersMethodformat
(self, record)
skills/nature-academic-search/mcp-server/utils/logging.py:10
↓ 8 callersFunctionisPdfHead
(bytes)
skills/nature-downloader/scripts/lib/pdf-utils.mjs:23
↓ 7 callersFunction_institution
(author: dict)
skills/nature-academic-search/scripts/academic_search.py:68
↓ 7 callersFunctionproxyGet
(proxy, endpoint, params = {}, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:67
↓ 7 callersFunctionproxyPostUrl
(proxy, endpoint, url, params = {}, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:78
↓ 7 callersMethodrun
()
skills/nature-academic-search/mcp-server/sources/scopus.py:49
↓ 6 callersFunction_append_children
(target, source)
skills/nature-paper-to-patent/scripts/math_to_omml.py:31
↓ 6 callersFunction_make_crossref_config
Return a mock Config object for CrossRef.
skills/nature-academic-search/mcp-server/tests/test_sources.py:20
↓ 6 callersMethod_normalize_id
Strip URL prefix and version suffix from an arXiv ID. http://arxiv.org/abs/2401.12345v1 -> 2401.12345
skills/nature-academic-search/mcp-server/sources/arxiv.py:299
↓ 6 callersMethodas_dict
(self)
skills/nature-citation/scripts/nature_citation.py:166
↓ 6 callersFunctiondedupe
(candidates: list[Candidate])
skills/nature-citation/scripts/nature_citation.py:670
↓ 6 callersFunctionget_config
()
skills/nature-academic-search/mcp-server/utils/config.py:48
↓ 6 callersFunctionnormalizeArxivId
(value = "")
skills/nature-downloader/scripts/lib/open-access.mjs:11
↓ 6 callersMethodsearch
Search PubMed and return structured results. Args: query: PubMed search query string. rows: Number of results to retu
skills/nature-academic-search/mcp-server/sources/pubmed.py:163
↓ 5 callersFunction_append_mathml
(target, node)
skills/nature-paper-to-patent/scripts/math_to_omml.py:60
↓ 5 callersFunction_as_list
(value: Any)
skills/nature-academic-search/mcp-server/sources/scopus.py:485
↓ 5 callersFunction_build_arxiv_xml
Build a minimal arXiv Atom XML response.
skills/nature-academic-search/mcp-server/tests/test_sources.py:488
↓ 5 callersFunction_get
Send GET request to NCBI E-utilities with throttling and error handling.
skills/nature-academic-search/mcp-server/sources/pubmed.py:37
↓ 5 callersFunction_int_or_none
(value: Any)
skills/nature-academic-search/mcp-server/sources/scopus.py:505
↓ 5 callersFunction_make_arxiv_config
Return a mock Config object for arXiv.
skills/nature-academic-search/mcp-server/tests/test_sources.py:37
↓ 5 callersFunction_make_pubmed_config
Return a mock Config object for PubMed.
skills/nature-academic-search/mcp-server/tests/test_sources.py:28
↓ 5 callersFunction_script
(target, node, kind: str)
skills/nature-paper-to-patent/scripts/math_to_omml.py:40
↓ 5 callersFunction_text
Return stripped text of a sub-element, or None.
skills/nature-academic-search/mcp-server/sources/arxiv.py:324
↓ 5 callersFunctionisUserHandoff
(status)
skills/nature-downloader/scripts/lib/status-codes.mjs:122
↓ 5 callersFunctionload_config
读取配置文件。 返回配置字典,文件不存在返回 None。 若 JSON 解析失败,自动备份旧文件并返回 None。
skills/nature-downloader/src/config.py:73
↓ 5 callersFunctionproxyEval
(proxy, target, js, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:87
↓ 5 callersFunctionset_run_font
(run, name: str, size: float, bold: bool = False)
skills/nature-paper-to-patent/scripts/render_patent_docx.py:18
↓ 5 callersFunctionslugify
(value: str)
skills/nature-citation/scripts/nature_citation.py:279
↓ 4 callersMethod_build_date_filter
Build submittedDate filter expression. The arXiv API requires the literal +TO+ syntax and 14-digit timestamps in the format YYYYMMDDH
skills/nature-academic-search/mcp-server/sources/arxiv.py:140
↓ 4 callersMethod_search_api
(api: str, params: dict[str, Any])
skills/nature-academic-search/mcp-server/sources/scopus.py:348
↓ 4 callersFunction_text_run
(text: str)
skills/nature-paper-to-patent/scripts/math_to_omml.py:18
↓ 4 callersFunctionanchor
(box: tuple[int, int, int, int], side: str)
skills/nature-paper-to-patent/scripts/render_flowchart_svg.py:174
↓ 4 callersFunctionconvert_from_crossref
Convert CrossRef JSON to RIS, BibTeX, or ENW.
skills/nature-academic-search/scripts/converters.py:570
↓ 4 callersFunctionconvert_from_medline
Convert MEDLINE/.nbib text to RIS, BibTeX, or ENW.
skills/nature-academic-search/scripts/converters.py:558
↓ 4 callersFunctiondiscoveryUrlFromConfig
(config)
skills/nature-downloader/scripts/lib/school-config.mjs:22
↓ 4 callersFunctionexactTitleMatch
(candidate, expected)
skills/nature-downloader/scripts/lib/open-access.mjs:7
↓ 4 callersMethodget_by_id
Retrieve a single paper by arXiv ID. Parameters ---------- arxiv_id : str arXiv identifier, e.g. "2401.12345" or
skills/nature-academic-search/mcp-server/sources/arxiv.py:87
↓ 4 callersFunctionsave_config
写入配置文件。 自动创建目录,补充 configured_at 时间戳。 返回配置文件路径。
skills/nature-downloader/src/config.py:97
↓ 4 callersMethodsearch
Search CrossRef works. Args: query: Keywords, author name, title, DOI prefix, etc. rows: Number of results (max 50).
skills/nature-academic-search/mcp-server/sources/crossref.py:30
↓ 4 callersMethodstart
返回首步提问。
skills/nature-downloader/src/wizard.py:110
↓ 4 callersFunctionyear_from_date
Extract a publication year from an ISO-like date string.
skills/nature-academic-search/mcp-server/sources/elsevier_common.py:75
↓ 3 callersFunction_as_list
(value: Any)
skills/nature-academic-search/mcp-server/sources/sciencedirect.py:162
↓ 3 callersMethod_build_config
从向导收集的数据构建配置字典。
skills/nature-downloader/src/wizard.py:543
↓ 3 callersFunction_cluster_summary
Collapse author records into (name, institution) clusters, most-prolific first. Lets callers see the *distinct* people behind a colliding name (e
skills/nature-academic-search/scripts/academic_search.py:96
↓ 3 callersFunction_extract_doi
(fields)
skills/nature-academic-search/scripts/converters.py:50
↓ 3 callersFunction_extract_year
(fields)
skills/nature-academic-search/scripts/converters.py:61
↓ 3 callersFunction_parse_scalar
(value: str)
skills/nature-downloader/src/schools_loader.py:16
↓ 3 callersFunction_search_entries
(data: dict[str, Any])
skills/nature-academic-search/mcp-server/sources/scopus.py:475
↓ 3 callersFunction_total_results
(data: dict[str, Any])
skills/nature-academic-search/mcp-server/sources/scopus.py:480
↓ 3 callersFunctionbp
(text, bold=False, size=12, italic=False, color=None)
skills/nature-proposal-writer/scripts/build_proposal_docx.py:56
↓ 3 callersFunctioncloseTab
(proxy, target)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:133
↓ 3 callersMethodconfigure_from_preset
预设学校一键配置(非交互式)。 成功返回保存后的配置字典,失败抛 ValueError。
skills/nature-downloader/src/wizard.py:484
↓ 3 callersFunctiondownloadPdfUrl
(proxy, pdfUrl, outDir, title = "")
skills/nature-downloader/scripts/batch_download.mjs:222
↓ 3 callersFunctionexport_label
(export_format: str)
skills/nature-citation/scripts/nature_citation.py:328
↓ 3 callersFunctionfilenameForPdfUrl
(url, title = "")
skills/nature-downloader/scripts/lib/open-access.mjs:58
↓ 3 callersFunctionfirst
(values: list[Any] | None, default: str = "")
skills/nature-citation/scripts/nature_citation.py:448
↓ 3 callersMethodget_by_pmid
Fetch a single article by PMID. Args: pmid: PubMed ID (numeric string). Returns: Unified result dict for the
skills/nature-academic-search/mcp-server/sources/pubmed.py:239
↓ 3 callersFunctionget_extension
(fmt)
skills/nature-academic-search/scripts/converters.py:592
↓ 3 callersFunctionhandle_list
(ids_str, handler, retries=1)
skills/nature-academic-search/scripts/format-converter.py:444
↓ 3 callersFunctionhealthCheck
(proxy = DEFAULT_PROXY, timeoutMs = 5000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:27
↓ 3 callersFunctionhealth_check
执行连通性自检。 参数: force: 是否跳过缓存强制检测 返回: { "ok": bool, "checked_at": str, "cached": bool,
skills/nature-downloader/src/health_check.py:68
↓ 3 callersFunctioninfer_access_from_url
Infer the likely library access route from a user-provided resource URL.
skills/nature-downloader/src/wizard.py:38
↓ 3 callersFunctionlimits_for_benchmark
(bench)
skills/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py:66
↓ 3 callersFunctionload_font
(size: int)
skills/nature-paper-to-patent/scripts/render_flowchart_svg.py:245
↓ 3 callersFunctionload_schools
加载预设学校库。优先用 PyYAML,缺失时使用内置简易解析器。
skills/nature-downloader/src/schools_loader.py:68
↓ 3 callersFunctionmatch_school
模糊匹配学校。 匹配顺序:精确名称 → 别名精确 → 包含匹配。 返回匹配到的学校字典,未匹配返回 None。
skills/nature-downloader/src/schools_loader.py:79
↓ 3 callersFunctionnavigate
(proxy, target, url, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:126
↓ 3 callersFunctionnewTab
(proxy, url, timeoutMs = 60000)
skills/nature-downloader/scripts/lib/cdp-utils.mjs:119
↓ 3 callersFunctionnormalize_title
(title: str)
skills/nature-citation/scripts/nature_citation.py:271
↓ 3 callersFunctionplot_ball_with_points
(ax, pts, facecolor)
skills/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py:15
↓ 3 callersFunctionsample_points_in_ball
(num_points, theta_range=2*np.pi)
skills/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py:8
↓ 3 callersFunctionsearch_pubmed
(query, output_dir, fmt, retries=1)
skills/nature-academic-search/scripts/format-converter.py:110
↓ 3 callersFunctionsetup_logging
(level: str = "INFO")
skills/nature-academic-search/mcp-server/utils/logging.py:26
↓ 3 callersFunctionvalid_draft
()
skills/nature-paper-to-patent/tests/test_validation.py:18
↓ 3 callersFunctionvalidate
校验配置是否符合 schema。 返回错误消息列表,空列表表示通过。 若 jsonschema 未安装则跳过 schema 校验,只做基本字段检查。
skills/nature-downloader/src/config.py:40
↓ 3 callersFunctionvalidate_carsi_entry
校验 CARSI 入口:HTTP GET 探测。 判断标准:返回 2xx/3xx,且页面内容含「CARSI」「Shibboleth」或 SSO 跳转特征。
skills/nature-downloader/src/validators.py:58
↓ 3 callersFunctionvalidate_sso_domain
校验 SSO 域名:DNS 解析 + TCP 443 + HTTPS 证书。 返回 (是否通过, 说明消息)。
skills/nature-downloader/src/validators.py:19
next →1–100 of 474, ranked by callers