协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
)\n- Full URL like `https://www.overleaf.com/project/\u003cid>` — extract via regex\n- Project name in quotes — call:\n ```bash\n python3 ${CLAUDE_PLUGIN_ROOT}/scripts/overleaf_reviews.py --list-projects\n ```\n Each line is `\u003c24-hex> \u003caccessLevel> \u003cname>`. Fuzzy-match the name. If multiple match, AskUserQuestion to disambiguate.\n\nIf the user has not given a project ID at all, run `--list-projects` and show the user the table so they can pick one.\n\n## Step 2: Cookie precheck\n\nIf `~/.claude/overleaf-skills/cookie` does not exist, tell the user to \"set up overleaf\" (which triggers the `setup` skill) and stop.\n\nIf it exists but auth fails (the next script call returns a refresh hint), point at the same setup skill and stop.\n\n## Step 3: Access-level guard\n\nIf the project ID came from name resolution, check the matched entry's `accessLevel`. If `readOnly`, warn:\n\n> Project is read-only. You can edit local files but cannot sync them back to Overleaf via the web UI; you would need to copy-paste manually. Continue?\n\nFor `owner`, `readAndWrite`, or `review`, proceed silently.\n\n## Step 4: Fetch comments\n\n```bash\npython3 ${CLAUDE_PLUGIN_ROOT}/scripts/overleaf_reviews.py --json --repo . \u003c project-id > --unresolved-only\n```\n\nParses to a JSON array. Each record has: `thread_id`, `doc_id`, `snippet`, `offset`, `resolved`, `messages` (list of `{user, ts, content}`), `file`, `line`. The `file` and `line` are null when the snippet did not match any local `*.tex`.\n\n## Step 5: Edit loop\n\nFor each record where `file` is non-null:\n\n1. `Read` the file at `line` ± 5 lines for context.\n2. Summarize the comment thread in one sentence: who said what.\n3. Propose a concrete edit grounded in the comment text. If the comment is a question (e.g., \"did you mean X?\"), the edit should answer it in the prose; if it's a correction (e.g., \"wrong notation\"), the edit should make the correction.\n4. Apply via `Edit`. Do not batch — one comment, one edit, then move on.\n\nSkip records where `file` is null (snippet did not map). Collect them in an `\u003cunmapped>` list.\n\n## Step 6: Wrap up\n\nAfter the loop:\n\n1. Run `git diff` and show the user the full set of changes.\n2. List the `\u003cunmapped>` records (if any) with `doc_id` + snippet preview, so the user can hunt them manually.\n3. Suggest a commit message in the style: `address overleaf review: \u003cone-line summary of the changes>`. Do NOT auto-commit. The user can run `/github-dev:commit-staged` or commit by hand.\n4. Remind the user to mark the addressed threads as resolved in the Overleaf web UI once they verify the local diff.\n\n## Non-goals\n\n- No re-upload to Overleaf (no write API used).\n- No thread resolution in Overleaf (web UI only).\n- No `.bib` edits unless a comment specifically targets a citation.\n- No multi-line snippets that span paragraph breaks — those land in `\u003cunmapped>` for v1; the snippet matcher is line-anchored.\n\n## Pairs naturally with\n\n- `github-dev` — `/github-dev:commit-staged` after the edit loop, `/github-dev:create-pr` if the project is collaborative.\n","licenseDocuments":[]}}
review-overleaf【开发与工程】This skill should be used when user asks to "fetch overleaf review comments", "address overleaf reviews", "apply overleaf comments", "review my overleaf paper", "sync overleaf feedback to local", "what comments are on my overleaf doc", or wants to act on Overleaf reviewer feedback in a local git-tracked LaTeX repo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Pull unresolved review threads from an Overleaf project, locate each in the local repo, propose edits the user reviews, and apply them. Does not push back to Overleaf — the web UI is still the place to mark threads resolved after the user verifies the local change.
Accept any of:
^[0-9a-f]{24}$)https://www.overleaf.com/project/<id> — extract via regexpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/overleaf_reviews.py --list-projects
Each line is <24-hex> <accessLevel> <name>. Fuzzy-match the name. If multiple match, AskUserQuestion to disambiguate.If the user has not given a project ID at all, run --list-projects and show the user the table so they can pick one.
If ~/.claude/overleaf-skills/cookie does not exist, tell the user to "set up overleaf" (which triggers the setup skill) and stop.
If it exists but auth fails (the next script call returns a refresh hint), point at the same setup skill and stop.
If the project ID came from name resolution, check the matched entry's accessLevel. If readOnly, warn:
Project is read-only. You can edit local files but cannot sync them back to Overleaf via the web UI; you would need to copy-paste manually. Continue?
For owner, readAndWrite, or review, proceed silently.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/overleaf_reviews.py --json --repo . < project-id > --unresolved-only
Parses to a JSON array. Each record has: thread_id, doc_id, snippet, offset, resolved, messages (list of {user, ts, content}), file, line. The file and line are null when the snippet did not match any local *.tex.
For each record where file is non-null:
Read the file at line ± 5 lines for context.Edit. Do not batch — one comment, one edit, then move on.Skip records where file is null (snippet did not map). Collect them in an <unmapped> list.
After the loop:
git diff and show the user the full set of changes.<unmapped> records (if any) with doc_id + snippet preview, so the user can hunt them manually.address overleaf review: <one-line summary of the changes>. Do NOT auto-commit. The user can run /github-dev:commit-staged or commit by hand..bib edits unless a comment specifically targets a citation.<unmapped> for v1; the snippet matcher is line-anchored.github-dev — /github-dev:commit-staged after the edit loop, /github-dev:create-pr if the project is collaborative.