grep-with-context
Research with Attached Files
Uploads one or more user-supplied files (PDFs, CSVs, text, images) to Grep as attachments, then submits a research job that mounts them in the workspace alongside web research. Use when the user has documents that should be the input to the research, not just inline context.
When to use this skill vs the others
| User wants | Use |
|---|---|
| Research a topic, model picks sources | /research, /grep-domain-expert |
| Pass small inline context (file contents pasted) | /research --context-file=... (existing inline path) |
| Upload files as research inputs (PDFs, CSVs, datasets, images) | /grep-with-context (you are here) |
| Continue an existing job with a follow-up | /grep-continue |
Concrete signals: "research using these documents", "fact-check this PDF", "summarise this report and find related work", "use this CSV as input", "analyse the attached spreadsheet". Especially when the user attached files in the Claude Code conversation, or named explicit file paths.
The difference from --context-file=: that path inlines the file contents into the research prompt (good for small text), while attachments are uploaded once and mounted in the workspace (better for PDFs, large CSVs, images, or files reused across multiple jobs).