aloth

Overleaf

開發程式設計v1.1.0
作者:aloth更新於 2026-05-11overleaf-skill@clawhub_aloth/overleaf-skill
指令碼工具#Arxiv#Sync

據 AlphaMoat 統計,截至 2026-09,Overleaf 累計下載 2,322 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 4,225 位,在「開發程式設計」分類(577 個)中排名第 519 位。

累計安裝
145
累計下載
2322
星標
1
全站排名
#4,225
全站前 84% · 「開發程式設計」前 90%
平台累計安裝累計下載星標評論
ClawHub ↗612022--
SkillHub ↗14523221—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

Overleaf 會話 Cookie 可訪問使用者專案,應像密碼一樣保管,避免進入 shell 歷史或提交到倉庫。同步和推送會更改專案檔案;執行前先檢查本地差異,能預覽時先使用 dry-run,並保留重要檔案的可恢復副本。 流程需要 olcli,安裝前應審查並固定第三方包版本。

資料釋出於 2026-10-29

可以用來做什麼

  • 將 Overleaf 專案拉取到本地進行編輯
  • 編譯專案並下載 PDF 或其他編譯輸出
  • 檢查本地改動後將其同步或推送回專案

什麼時候用

  • 需要透過 CLI 在本地編輯 Overleaf 專案時
  • 已安全配置憑證且不會將會話 Cookie 洩露時
  • 推送前可以審閱改動並保留恢復副本時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

為一個論文專案擬定 Overleaf 本地編輯與同步的安全流程,要求先審閱差異、保護會話 Cookie 並保留恢復副本;不要登入、同步或上傳檔案。

月度資料趨勢

累計下載2322
1130177024102026-03 · 累計下載 12182026-05 · 累計下載 15462026-06 · 累計下載 16772026-07 · 累計下載 19022026-08 · 累計下載 20312026-09 · 累計下載 232226-0326-09
星標1
0112026-03 · 星標 -2026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092322—1
2026-082031+6.8%1
2026-071902+13.4%1
2026-061677+8.5%1
2026-051546—1
2026-031218—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.9 KB · ClawHub v1.1.0
---
name: overleaf
description: Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.
license: MIT
metadata:
  author: aloth
  version: "1.1"
  cli: olcli
  install: brew tap aloth/tap && brew install olcli
---
展開全部(共 152 行)

# Overleaf Skill

Manage Overleaf LaTeX projects via the `olcli` CLI.

## Installation

```bash
# Homebrew (recommended)
brew tap aloth/tap && brew install olcli

# npm
npm install -g @aloth/olcli
```

## Authentication

Get your session cookie from Overleaf:

1. Log into [overleaf.com](https://www.overleaf.com)
2. Open DevTools (F12) → Application → Cookies
3. Copy the value of `overleaf_session2`

```bash
olcli auth --cookie "YOUR_SESSION_COOKIE"
```

Verify with:
```bash
olcli whoami
```

Debug authentication issues:
```bash
olcli check
```

Clear stored credentials:
```bash
olcli logout
```

## Common Workflows

### Pull a project to work locally

```bash
olcli pull "My Paper"
cd My_Paper/
```

### Edit and sync changes

```bash
# After editing files locally
olcli push              # Upload changes only
olcli sync              # Bidirectional sync (pull + push)
```

### Compile and download PDF

```bash
olcli pdf                      # Compile and download
olcli pdf -o paper.pdf         # Custom output name
olcli compile                  # Just compile (no download)
```

### Download .bbl for arXiv submission

```bash
olcli output bbl               # Download compiled .bbl
olcli output bbl -o main.bbl   # Custom filename
olcli output --list            # List all available outputs
```

### Upload figures or assets

```bash
olcli upload figure1.png "My Paper"          # Upload to project root
olcli upload diagram.pdf                      # Auto-detect project from .olcli.json
```

### Download specific files

```bash
olcli download main.tex "My Paper"           # Download single file
olcli zip "My Paper"                          # Download entire project as zip
```

## arXiv Submission Workflow

Complete workflow for preparing an arXiv submission:

```bash
# 1. Pull your project
olcli pull "Research Paper"
cd Research_Paper

# 2. Compile to ensure everything builds
olcli compile

# 3. Download the .bbl file (arXiv requires .bbl, not .bib)
olcli output bbl -o main.bbl

# 4. Download any other needed outputs
olcli output aux -o main.aux    # If needed

# 5. Package for submission
zip arxiv.zip *.tex main.bbl figures/*.pdf

# 6. Verify the package compiles locally (optional)
# Then upload arxiv.zip to arxiv.org
```

## Commands Reference

| Command | Description |
|---------|-------------|
| `olcli auth --cookie <value>` | Authenticate with session cookie |
| `olcli whoami` | Check authentication status |
| `olcli logout` | Clear stored credentials |
| `olcli check` | Show config paths and credential sources |
| `olcli list` | List all projects |
| `olcli info [project]` | Show project details |
| `olcli pull [project] [dir]` | Download project files |
| `olcli push [dir]` | Upload local changes |
| `olcli sync [dir]` | Bidirectional sync |
| `olcli upload <file> [project]` | Upload a single file |
| `olcli download <file> [project]` | Download a single file |
| `olcli zip [project]` | Download as zip archive |
| `olcli compile [project]` | Trigger compilation |
| `olcli pdf [project]` | Compile and download PDF |
| `olcli output [type]` | Download compile outputs |

## Tips

- **Auto-detect project**: Run commands from a synced directory (contains `.olcli.json`) to skip the project argument
- **Dry run**: Use `olcli push --dry-run` to preview changes before uploading
- **Force overwrite**: Use `olcli pull --force` to overwrite local changes
- **Project ID**: You can use project ID instead of name (24-char hex from URL)
- **Debug auth**: Run `olcli check` to see where credentials are loaded from

「開發程式設計」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。