Skip to content
Back to skills

Goodnotes Attachment Extractor

ASecurity

Extract embedded audio recordings, JPEG/PNG images, and PDF documents from GoodNotes .goodnotes exports, with optional metadata inspection and recursive batch processing. Use when the user provides a .goodnotes file or a folder of notes and asks to extract, export, recover, inspect, or organize its attachments. Triggers include .goodnotes, GoodNotes 附件, 提取录音/图片/PDF, 导出笔记附件, 附件全是 UUID, and batch extraction of note attachments.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 18, 2026
ai-agentspythongoshellbashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 18, 2026

npx -y skills add ou0826/goodnotes-attachment-extractor --skill goodnotes-attachment-extractor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Goodnotes Attachment Extractor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Goodnotes Attachment Extractor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ou0826-goodnotes-attachment-extractor/badge)](https://www.skillsdirectory.com/skills/ou0826-goodnotes-attachment-extractor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: goodnotes-attachment-extractor
description: Extract embedded audio recordings, JPEG/PNG images, and PDF documents from GoodNotes .goodnotes exports, with optional metadata inspection and recursive batch processing. Use when the user provides a .goodnotes file or a folder of notes and asks to extract, export, recover, inspect, or organize its attachments. Triggers include .goodnotes, GoodNotes 附件, 提取录音/图片/PDF, 导出笔记附件, 附件全是 UUID, and batch extraction of note attachments.
---

# GoodNotes Attachment Extractor

Extract M4A/AAC recordings, JPEG/PNG images, and PDF documents from a
GoodNotes <code>.goodnotes</code> export. The file is a ZIP container; this
skill reads it locally with the Python standard library, never modifies it,
and makes no network requests.

## Workflow

1. Confirm the path is a <code>.goodnotes</code> file or a directory containing them.
2. Run inspection first and report counts and types to the user.
3. Extract to an explicit output directory when possible; otherwise the script
   writes a sibling <code>&lt;name&gt;_提取/</code> folder.
4. Report the output path, per-type counts, and any errors.
5. Never modify, move, or delete the source file.

~~~bash
python scripts/gn_extract.py --info "笔记.goodnotes"
python scripts/gn_extract.py "笔记.goodnotes" -o "导出目录"
python scripts/gn_extract.py "笔记.goodnotes" --json
python scripts/gn_extract.py "笔记目录" -o "导出根目录"
~~~

When the working directory is not the skill folder, run the script by its
installed path, for example:

~~~bash
python "$HOME/.claude/skills/goodnotes-attachment-extractor/scripts/gn_extract.py" --info "笔记.goodnotes"
~~~

On Windows PowerShell, use the full path to the installed skill instead of $HOME.

## Output layout

Default output is organized by type:

~~~text
<name>_提取/
├── 音频/录音_11m26s.m4a
├── 图片/图片_2048x1536.png
└── 文档/文档_A08519D7.pdf
~~~

- Audio: <code>录音_&lt;minutes&gt;m&lt;seconds&gt;s.m4a</code>; fall back to the
  UUID prefix when duration cannot be parsed.
- Image: <code>图片_&lt;width&gt;x&lt;height&gt;.&lt;ext&gt;</code>; fall back to the
  UUID prefix when dimensions cannot be parsed.
- PDF: <code>文档_&lt;uuid8&gt;.pdf</code>.
- Duplicate filenames receive <code>_1</code>, <code>_2</code>; existing files are
  never overwritten.
- Batch mode writes one <code>&lt;name&gt;_提取/</code> folder per input under
  the output root.

## Options

- <code>--info</code> inspect only, do not extract.
- <code>--json</code> print a JSON array with counts, items, and output paths.
- <code>--no-organize</code> write all files to one flat folder.
- <code>--no-audio</code> / <code>--no-image</code> / <code>--no-pdf</code> filter types.
- Directories are scanned recursively for <code>*.goodnotes</code>.

## Failure handling

- A <code>BadZipFile</code> or non-ZIP input is not a valid export: ask the user
  to re-export from GoodNotes.
- Zero attachments means the export likely omitted them: check the GoodNotes
  export options before retrying.
- Permission denied: choose a writable output directory and rerun.
- Missing duration or dimensions only affects filenames; extraction still succeeds.
- The script reads one attachment into memory at a time. For very large
  containers, prefer the full desktop app or extract in smaller batches.

## Privacy

Keep everything local: do not upload note files, extracted media, or logs.
Do not echo note contents. When sharing results, avoid exposing the user's full
filesystem path.

## Related full project

The desktop GUI and CLI live at
https://github.com/ou0826/goodnotes-attachment-extractor (MIT).
Use the full app when the user wants a graphical interface; use this skill for
agent-driven extraction and inspection.

Files in this skill

  • SKILL.md3.7 KB
  • scripts/gn_extract.py11.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.