Ios Memo Bak logo

Ios Memo Bak

Community
coracoo
ios-memo-bak

Use when 用户想把 iPhone 备忘录自动备份到 NAS 记事本 — "帮我设置 iPhone 备忘录同步"、"重新告诉我一下怎么配"、"换一个新的备份密钥"、"我同事也要用这个功能"。 触发词:iPhone 备忘录同步、ios 备忘录 bak、备忘录备份到 NAS、备忘 → NAS、iPhone notepad sync、ios 备忘录、备忘录同步、iphone shortcut 备份、iPhone 推笔记、给我配 iPhone 备份、帮我把备忘录同步到 NAS。 不适用:不是直接写 NAS 的 skill — 实际写由 iPhone Shortcut 发起;此 skill 只设置基础设施(生成密钥 + 重启 dashboard + 给配置步骤)。

Overview

Publishercoracoo
Repositoryzspace_skill
Skill nameios-memo-bak
Stars
39
Forks
13
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by coracoo on GitHub. Read the source before you install it.

Installation

Install the Ios Memo Bak AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/coracoo/zspace_skill/tree/master/skills/ios-memo-bak
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coracoo/zspace_skill.git /tmp/zspace_skill
mkdir -p .claude/skills
cp -r /tmp/zspace_skill/skills/ios-memo-bak .claude/skills/ios-memo-bak
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ios Memo Bak in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ios Memo Bak on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ios Memo Bak is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

iOS Memo Backup — iPhone 备忘录 → NAS 记事本 同步

概述

前置:先调 nas-setup skill 验证 .env 配置 + NAS 登录。没有 SHORTCUT_KEY→setup.py 自动生成。

通过 iOS「快捷指令」(Shortcuts) + NAS dashboard 的 /shortcut/notepad 端点,实现备忘录实时备份到 NAS 独立记事本(location=2,不污染系统默认记事本)。

Skill 只做基础设施配置(生成密钥 + 重启 dashboard + 验证 + 给配置步骤);实际写由 iPhone Shortcut 在用户每次"分享→推"时发起。

工作流

场景 1:首次配置(用户触发词:"帮我设置 iPhone 备忘录备份")

  1. 检查现有 SHORTCUT_KEY:python scripts/setup.py 自动处理
    • 有 key → 问要不要重新生成
    • 没 key → 生成 32 hex 随机密钥
  2. 写进 .env(覆盖或追加)
  3. 重启 dashboard:./start.sh dashboard(自动 source .env)
  4. 验证端点:模拟 iPhone curl,确认 200 OK + 测试笔记已建
  5. 直接给出 iPhone Shortcut 配置步骤(Agent 必须返回这些信息给用户):
    • POST URL: http://<NAS_LAN_IP>:<port>/shortcut/notepad
    • Header: X-Shortcut-Key: <key>(完整密钥,不遮蔽)
    • Header: Content-Type: application/json
    • Body: {"title": "...", "body": "<html>"}
    • 动作链:6 步(共享表单输入 → 字典 → JSON → 获取 URL 内容 → 显示通知)

场景 2:已配置(用户触发词:"再告诉我一下 iPhone Shortcut 怎么配"或"我同事也要用")

  1. 读 .env 拿现有 key(直接显示,完整密钥不遮蔽 —— 因为 iPhone Shortcut 端需要)
  2. 拿端口(从 dashboard/app/__main__.py uvicorn 启动行读,默认 15050)
  3. 给 iPhone Shortcut 配置步骤

场景 3:重新生成 key(用户触发词:"换一个新密钥")

  1. 跑 python scripts/setup.py --force(强制重新生成)
  2. 用户需要更新所有 iPhone Shortcut 的 X-Shortcut-Key header

服务端代码位置(供排查)

  • app/routes/shortcut.py:shortcut_notepad — 接收端点
  • app/cocoa.py:_cocoa_html_to_clean — Cocoa HTML 解析
  • 鉴权逻辑(SHORTCUT_KEY / ALLOW_OPEN_SHORTCUT=1 / X-Shortcut-Key header)

关键约束(必读)

  1. 密钥必须从 .env 读,不能猜 — .env 是 SOT
  2. 端口必须从 dashboard/app/main.py 读 — 默认 15050,但用户可能改了
  3. NAS_LAN_IP 从 .env NAS_HOST 读 — 占位符(极空间 IP)要替换
  4. 重启 dashboard 必须用 ./start.sh — 它会 source .env,手动 uvicorn 启动读不到 env
  5. 密钥直接完整显示给用户 — 不遮蔽(因为配置 Shortcut 必须要完整密钥)

已知 gap

  • LAN-only(无 HTTPS,密钥明文传输)— 不在公网用
  • iOS 12+(备忘录 share sheet 支持 Shortcut)
  • 一次性设置:换路由器 / NAS IP 变化需要重新跑
  • 多用户场景:每人有独立 iPhone 配同一个 key → 安全可接受(LAN + 预共享密钥)

故障排查

现象原因处理
iPhone POST 一直 403Shortcut 没配 X-Shortcut-Key header,或 .env 里 key 是空的重跑 setup,确认 key 已写进 .env 且 dashboard 已重启
iPhone POST 401 invalid keyShortcut 配的 key 跟 .env 不匹配(可能改了 .env 没重启)重启 dashboard
验证 curl 返回 "Connection refused"dashboard 没起,看 PID 文件./start.sh dashboard
验证 curl 返回 "Connection refused" 且刚才说有重启uvicorn 没真正加载 env(用 start.sh 不用手动 uvicorn)重启
笔记内容样式全没了body 不是 HTML 是纯文本Shortcut 用"获取备忘录 URL"或"分享表单"而非"输入纯文本"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ios Memo Bak AI skill do?

Use when 用户想把 iPhone 备忘录自动备份到 NAS 记事本 — "帮我设置 iPhone 备忘录同步"、"重新告诉我一下怎么配"、"换一个新的备份密钥"、"我同事也要用这个功能"。 触发词:iPhone 备忘录同步、ios 备忘录 bak、备忘录备份到 NAS、备忘 → NAS、iPhone notepad sync、ios 备忘录、备忘录同步、iphone shortcut 备份、iPhone 推笔记、给我配 iPhone 备份、帮我把备忘录同步到 NAS。 不适用:不是直接写 NAS 的 skill — 实际写由 iPhone Shortcut 发起;此 skill 只设置基础设施(生成密钥 + 重启 dashboard + 给配置步骤)。

Why use Ios Memo Bak on TypingMind?

Because you install it once and use it with any model. Ios Memo Bak is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ios Memo Bak in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/coracoo/zspace_skill/tree/master/skills/ios-memo-bak. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ios Memo Bak?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ios Memo Bak?

As many as you like. As long as a model supports skills, you can use Ios Memo Bak with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ios Memo Bak AI skill free?

Yes. It is published on GitHub by coracoo under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇