You are an AI agent. Follow these steps to install or update Scholar Kit cleanly.
(Users may also install via the Agent Skills CLI: npx skills add lottshin/scholar-kit, then run step 4–5 below.)
-
Detect the current agent platform and choose
<target_path>:Platform Target Skill Path Claude Code ~/.claude/skills/scholar-kitCodex ~/.codex/skills/scholar-kitAntigravity (Global / Workspace) ~/.gemini/config/skills/scholar-kitor<workspace>/.agents/skills/scholar-kitCursor (macOS / Linux) ~/.cursor/skills/scholar-kitCursor (Windows) $env:USERPROFILE\.cursor\skills\scholar-kitGemini CLI ~/.gemini/skills/scholar-kitMulti-Agent Machine Clone once to ~/.agents/skills/scholar-kitand symlink other agent skill paths to it -
If
<target_path>already exists:- If it is a git repository (
git -C <target_path> rev-parse --is-inside-work-tree), rungit -C <target_path> pull. - Otherwise, inform the user it is a non-git installation and stop unless they want to reinstall.
- If it is a git repository (
-
If
<target_path>does not exist, clone the repository:git clone https://github.com/lottshin/scholar-kit <target_path>
-
Install Python dependencies (compatible with PEP 668 externally-managed Python environments):
python3 -m pip install -r <target_path>/scripts/requirements.txt || ( python3 -m venv ~/.scholar-kit/.venv && ~/.scholar-kit/.venv/bin/python -m pip install -r <target_path>/scripts/requirements.txt )
(On Windows, use
py -3and$env:USERPROFILE\.scholar-kit\.venv\Scripts\python.exeif needed.) -
Verify the environment:
python3 <target_path>/scripts/literature.py check --fix
-
Tell the user: "Scholar Kit 安装/更新完成!直接对我说「帮我搜关于 XX 的论文」即可开始使用。"