본문으로 건너뛰기
cccskills
무료GitHub에 공개

mdfind

Search PDF, PPTX, and image content in Attachments using macOS Spotlight

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구PowerPoint
설치 방법 보기

포함된 파일(1)

  • SKILL.md2.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/mdfind - Attachment Content Search

Search inside PDFs, PowerPoints, images, and other files in Attachments/ using macOS Spotlight (mdfind). This leverages the OS-level content index — no custom indexing needed.

Usage

/mdfind <search query>           # Search all attachment content
/mdfind --type pdf <query>       # Search only PDFs
/mdfind --type pptx <query>      # Search only PowerPoints
/mdfind --type image <query>     # Search only images (OCR-indexed)

Instructions

1. Run mdfind

Execute the appropriate search based on flags:

Default (all attachments)

mdfind -onlyin Attachments/ "<search_query>" 2>/dev/null

Filter by PDF

mdfind -onlyin Attachments/ "kMDItemContentType == 'com.adobe.pdf' && kMDItemTextContent == '*<query>*'" 2>/dev/null

If the above returns nothing, fall back to the simpler form:

mdfind -onlyin Attachments/ -name ".pdf" "<search_query>" 2>/dev/null

Filter by PPTX

mdfind -onlyin Attachments/ "kMDItemContentType == 'org.openxmlformats.presentationml.presentation'" "<search_query>" 2>/dev/null

Filter by Images

mdfind -onlyin Attachments/ "kMDItemContentType == 'public.image'" "<search_query>" 2>/dev/null

2. Present Results

Format results clearly:

## Attachment Search: <query>

Found **N** matching files

| # | File | Type | Size |
|---|------|------|------|
| 1 | [filename](path) | PDF | 2.4 MB |
| 2 | ... | ... | ... |

### Quick Actions

- Read a PDF: `/pdf-to-page <path>`
- Read a PPTX: `/pptx-to-page <path>`
- Full vault search: `/q <query>`

3. Get File Details (Optional)

For each result, get file size and type:

ls -lh "<file_path>" 2>/dev/null

Notes

  • mdfind uses macOS Spotlight — files must be indexed (most are by default)
  • Works best with text-based PDFs; scanned PDFs need OCR indexing
  • For vault note content search, use /q instead
  • Results are file paths relative to the vault root

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Batch populate summary fields using content analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

auto-tag

무료

Batch auto-tag untagged notes using content analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

Generate C4 architecture diagrams from system notes

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

canvas

무료

Create and edit Obsidian Canvas files for architecture visualization

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

Check Outlook inbox and update daily note with message summary

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

commit

무료

Stage and commit vault changes with UK English conventional commit messages

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DavidROliverBA/ArchitectKB532026년 3월 2일 업데이트

DavidROliverBA의 스킬 모두 보기

이 스킬의 문제 신고