Logo von Recipe Notes Ai

Recipe Notes Ai

Community
Kimeur
recipe-notes-ai

Creates a complete SwiftUI notes app for iPhone Duo, Apple's foldable, with summaries from Apple's on-device model (Foundation Models): a headline, key points and to-dos per note, streamed in. Closed, the note fills the screen and the summary is one line with Details; open, flat or like a book, the note takes the left page and the summary pane the right; in tabletop the note sits above the fold and the summary below it. Use when someone wants to start a new notes, journal or writing app with AI summaries from scratch, or runs /duo-new recipe-notes-ai. Covers a @Generable result streamed into a window-owned service so a fold never restarts it, a simple summary without AI whenever the model is unavailable or fails (it fails on the simulator), Stop and labels that say what is AI, a prompt budget for the 4,096-token context, notes that never leave the device (no network, no Private Cloud Compute) with a privacy manifest and Mac checks that say so, and UI tests on the iPhone Duo simulator.

Übersicht

HerausgeberKimeur
Repositoryduology
Skill-Namerecipe-notes-ai
Sterne
40
Forks
2
Mitgelieferte Dateien
35
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 35

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von Kimeur auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Recipe Notes Ai in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Kimeur/duology/tree/main/plugins/duology-recipes/skills/recipe-notes-ai
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kimeur/duology.git /tmp/duology
mkdir -p .claude/skills
cp -r /tmp/duology/plugins/duology-recipes/skills/recipe-notes-ai .claude/skills/recipe-notes-ai
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Recipe Notes Ai in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Recipe Notes Ai automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Recipe Notes Ai nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

recipe-notes-ai

This recipe makes a new Xcode project: a notes app for iPhone Duo in which each note can be summarized by Apple's on-device model. A summary is a one-line headline, up to four key points and the note's to-dos. Closed, the note fills the screen and the summary is one line at the bottom, with Details for the rest. Open, the note takes the left page and the summary pane the right, like a notebook with notes in the margin. Set the phone on a table half folded and the note sits above the fold with the summary below it, where the buttons are. A summary still streaming in keeps going through every fold.

Summaries come from Foundation Models on the device. When the model can't run (Apple Intelligence off or not supported, the model still downloading, the simulator) or a request fails, the app makes a simple summary from the note's own sentences instead, labelled as not from AI. The notes never leave the device: no network, no Private Cloud Compute, no tracking, and the privacy manifest says so.

The sample notes are placeholders. The value is the frame: a request that no fold can restart, a fallback for every failure, panes read from the fold and never from the device, privacy checks that fail the Mac tests if the note could leave the phone, and UI tests that pass on the Duo simulator.

Labels: measured means we ran it on the iPhone Duo simulator (iOS 27.1, 29 October 2026). Unverified means we could not check it. Everything else links to Apple. "Book" and "tabletop" are Duology's words for Apple's "partially folded, like a book" and "seated on a table like a laptop"; no API reports them. Full source list: reference/sources.md.

Use a different skill when:

  • the app already exists and needs an AI pane: use duo-intelligence (it also covers Private Cloud Compute, tools and images), with duo-continuity;
  • the app shows long text to read rather than write: start from recipe-reader;
  • the summary must come from a server: this recipe's privacy promise no longer holds; see duo-intelligence and App Review guideline 5.1.2(i) below.

1. Create the project

/duo-new recipe-notes-ai runs steps 1 to 5. Run every step yourself when there is no command.

  1. Get three values from the user, or propose them:

    • AppName: letters and digits, starting with a letter (it becomes a Swift type, <AppName>App). Not Tools, and not an Apple module name such as SwiftUI or FoundationModels;
    • a bundle id such as com.example.margins;
    • a new, empty folder.
  2. Run the script from this skill's folder (in the plugin: ${CLAUDE_PLUGIN_ROOT}/skills/recipe-notes-ai/scripts/new-project.sh):

    bash
    "${CLAUDE_PLUGIN_ROOT}/skills/recipe-notes-ai/scripts/new-project.sh" \
      Margins com.example.margins ~/Developer/Margins

    It copies template/, replaces __APP_NAME__ and __BUNDLE_ID__ in file contents and paths, checks none are left, and prints the next steps. It refuses a folder that exists and is not empty (exit 73), and bad or clashing names (exit 65), before it creates anything.

  3. Test the rules on the Mac. Expect 0 failed:

    bash
    cd ~/Developer/Margins && Tools/run-model-tests.sh
  4. Build for the Duo simulator (find its UDID with xcrun simctl list devices available | grep "iPhone Duo"):

    bash
    DEVELOPER_DIR=/Applications/Xcode-27.1.app/Contents/Developer \
    xcodebuild -project Margins.xcodeproj -scheme Margins \
      -destination "platform=iOS Simulator,id=<UDID>" \
      -derivedDataPath build/DerivedData build
  5. Install, launch straight into a note with its summary starting, and screenshot the display in use. Use the UDID, not booted. -summarizer standin streams a stand-in, because the real model fails on the simulator (section 5).

    bash
    DEV=/Applications/Xcode-27.1.app/Contents/Developer
    DEVELOPER_DIR=$DEV xcrun simctl install <UDID> build/DerivedData/Build/Products/Debug-iphonesimulator/Margins.app
    DEVELOPER_DIR=$DEV xcrun simctl launch --terminate-running-process <UDID> com.example.margins -open sample.offsite -summarize -summarizer standin
    DEVELOPER_DIR=$DEV xcrun simctl io <UDID> screenshot --display=primary build/outer.png     # closed
    DEVELOPER_DIR=$DEV xcrun simctl io <UDID> screenshot --display=primary-1 build/inner.png   # open

    Only the display in use has content. Look at the PNG before you report.

  6. Run the UI tests: DESTINATION="id=<UDID>" Tools/run-ui-tests.sh. A UI test brings the app to the front; tell the user first if they share the simulator.

  7. Tell the user what passed, that AI summaries need a device with Apple Intelligence to judge, and that poses change only in Device Hub.

Set DEVELOPER_DIR for every xcrun and xcodebuild call when the Mac has more than one Xcode. Never run xcode-select.

2. What you get

PathWhat it holds
<App>/Model/Note and Notebook (the saved file), Digest and DigestDraft, SimpleSummary (no AI), PromptBudget, SummaryEngine and the stand-in stream, NoteLayout and NoteColumns, fold geometry, sample notes, app facts (the model's instructions, the labels). Foundation and CoreGraphics only, every type nonisolated and Sendable.
<App>/AI/OnDeviceSummarizer: the @Generable result, availability in words, the streamed request. The only file that talks to the model. SummaryService: one summary at a time, Stop, and the fallback.
<App>/Notes/NotesListScreen and NoteCard, NoteScreen with EditorPane, and SummaryPane, SummaryBar, SummarySheet.
<App>/Shared/PaneSplit (the note and its summary) and ColumnsRow (the list), onFoldChange (from recipe-reader), test markers.
<App>/App/App entry, RootView (the stack and the sheet), NotesStore, launch switches.
<App>/PrivacyInfo.xcprivacyNo tracking, no domains, no data collected, no required-reason API.
<App>UITests/Eleven UI tests, pose-agnostic.
Tools/run-model-tests.sh, ModelTests/main.swift, run-ui-tests.sh.

Project settings match the other recipes: iOS 26.0 deployment (the first with Foundation Models), Swift 6, SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor, approachable concurrency, file-system synchronized groups, iPhone and iPad, public.app-category.productivity, and a scheme with parallel testing off.

Architecture, the request's life and test details: references/architecture.md.

3. How it behaves in each pose

PoseNote screen (inside the navigation stack)The noteThe summaryThe list
Closed (outer display)382 × 562 pt (measured)382 × 498 pt (measured)a 64 pt bar at the bottom; Details opens the full summary in a sheet (measured)one column of cards, 350 pt (measured)
Closed, held sidewayswider than tall, under 700 ptthe samethe same bartwo columns
Open, flat, held wide867 × 553 pt, fold's frame at x 455.5 to 495.5 (measured)left page, 455.5 pt wide (measured)right page, 371.5 pt; Summarize Again and Clear side by side, 198 × 51 and 105 × 50 pt (measured)two columns that meet at the fold's frame, 434 and 349 pt (measured)
Bookthe same pages; only the fold turns active (measured)the samethe samethe same
Tabletop669 × 835 pt, fold's frame at y 373.5 to 413.5 (measured)above the fold, 373.5 pt high (measured)below it, 421.5 pt, buttons at the bottom (measured)two columns; the list scrolls across the fold
Open, held tall, flatas tabletop; the fold is inactivethe samethe samethe same

Measured on 29 October 2026: each pose set with duo-pose, then testNoteLayoutInThisPose and testListInThisPose, which fail if a region crosses the fold or a summary button is under 44 pt or on the fold, and attach the real frames; all passed in each pose and the frames matched the table. The closed phone held sideways and the open phone held tall are unverified: their rows come from the Mac tests (NoteLayout, NoteColumns).

4. Where each Duo technique lives

TechniqueWhereWhy
A summary survives every foldSummaryService in NotesStore, @State in RootViewThe request's task lives above every layout switch, so a fold only changes where its text shows (duo-continuity). Never start a request in onAppear or .task below a layout switch. Measured: a stand-in summary went from closed to open, book and closed again while streaming; it only grew and never restarted (testStreamKeepsGoingThroughFolds); the result is saved once, when the task ends.
One layout in every posePaneSplit placing NoteLayout's two regionsNo if on the pose around the editor, so the text field, the cursor and the scroll position stay (Layout).
The pages meet at the fold, not the middleNoteLayout, fed by onFoldChangereservedRegions(kind:options:layoutDirectionBehavior:) with .division and .includeInactive, read on the PaneSplit itself. Flat and folded give the same regions.
Open adds the pane; closed keeps the featureSummaryPane in two-pane modes, SummaryBar and SummarySheet in single modeApple lets the open phone add one level of detail, and keeps the same features on both displays (HIG). The sheet closes by itself when the pane fits beside.
Tabletop: read above, touch belowNoteLayout mode foldTopBottomContent in the top region, controls in the stable bottom one (talk 111466). The keyboard covers the summary there instead of squeezing both regions (unverified with a software keyboard on a device).
No button on the foldEvery summary button lives in the summary's region; the fold's frame is the gapNothing interactive in an active fold (talk 111466). The list's columns meet at the fold for the same reason.
Headline firstGeneratedDigest declares headline firstThe model writes properties in the order declared (guided generation), so the closed phone's bar fills in before the points.
Width and fold, never the deviceNoteLayout(size:fold:barHeight:)Same rule as every Duology skill; duo-lint --strict finds nothing.
No size feedback.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) on each regionA region that grows to fit its content never shrinks back (measured in recipe-kids-learning).

5. The model, the fallback and privacy

  • Availability: OnDeviceSummarizer.unavailableReason turns SystemLanguageModel.default.availability and supportsLocale() into a sentence for the pane: device not eligible, Apple Intelligence off, model not ready, language not supported (generating content). When it isn't available the pane says why and Summarize makes the simple summary.
  • Failure: every request that throws ends in SimpleSummary, labelled, with the reason and Summarize Again. The final catch is untyped: measured, the simulator's failure arrives as a plain NSError (domain FoundationModels.LanguageModelError, code -1). The app logs the error's domain and code; its description stays private.
  • The simulator: measured on 29 October 2026, with the model forced (-summarizer ai), every request failed within seconds. The underlying error from the guardrail's text sanitizer reads "Simulator is not supported". So the simulator can't test summary quality; the stand-in engines test everything around it. Judge the summaries on a device with Apple Intelligence (unverified here).
  • Stop and Summarize Again: Stop cancels the task and keeps the note's previous summary. A new request replaces one still running. People can always stop, redo or clear a summary, and the pane says which summaries are AI (HIG: Generative AI).
  • The context window: the on-device model holds 4,096 tokens for instructions, schema, prompt and answer together (managing the context window). PromptBudget sends at most 6,000 characters, cut at a sentence end, and the summary then says it covers the start. A note in a script that uses more tokens per character can still overflow; that fails like any request and falls back.
  • Prompt injection: the note goes in the prompt; the instructions are the constant AppFacts.summaryInstructions. A Mac test fails if anything else reaches instructions: (safety).
  • The note never leaves the device: on-device requests stay on the phone. The Mac tests fail if PrivateCloudComputeLanguageModel, networking, CloudKit or tracking APIs appear in the app's sources, or if the manifest declares anything. The privacy manifest has no tracking, no domains, no collected data and no required-reason API: notes go to a JSON file in Application Support, and the app reads no file dates (privacy manifest files).

Only the app's owner can do these:

  1. App Privacy answers in App Store Connect: "Data Not Collected" stays true while nothing leaves the device (app privacy details).
  2. Before adding a server or a third-party model: guideline 5.1.2(i) asks apps to say clearly when personal data goes to third parties, "including with third-party AI", and to get explicit permission first (App Review Guidelines, checked 29 October 2026). Change the privacy line, the manifest, the Mac checks and the App Privacy answers together.
  3. Judge the summaries on a device with Apple Intelligence, in each language you support.

6. Customise

  • Your notes: edit Model/SampleNotes.swift, or return none. Keep the IDs if UI tests open them.
  • What a summary holds: change GeneratedDigest (the model's fields, with @Guide limits), Digest and DigestDraft (what's saved and shown), and SimpleSummary (the fallback) together. Put the field the closed phone shows first.
  • The instructions: AppFacts.summaryInstructions. Keep it a constant.
  • Looks: NoteCard, SummaryPane, SummaryBar. Keep the summary's buttons inside its region.
  • Add a model rule: write it in Model/, keep it nonisolated and Sendable, add a check in Tools/ModelTests/main.swift and a line to its off-main-actor check.

Keep these, whatever the app:

  1. The request in a service owned above the navigation stack; views only read it.
  2. One PaneSplit for every pose; regions from the fold's frame, never from half the width.
  3. A non-AI path for every failure, and a label on every summary saying where it came from.
  4. The note in the prompt, never in the instructions.
  5. The privacy checks in Tools/ModelTests/main.swift; if the note ever leaves the device, update the privacy line, the manifest and the App Store Connect answers together.

7. Test it

On the Mac: Tools/run-model-tests.sh builds Model/*.swift with the test program using swiftc -swift-version 6 -default-isolation MainActor, like the app target. It checks the sample notes, the notebook (edits, empty notes dropped, save and load, the current file format), fingerprints, tidying the model's lines, the simple summary, the prompt budget, the stand-in stream, the layouts and columns at sizes measured on the Duo simulator, the privacy scan of the app's sources and manifest, and that every model type works off the main actor. Measured: 119 checks pass in a few seconds, in the template and in a freshly generated project.

On the simulator: Tools/run-ui-tests.sh. The tests start from launch switches (-open, -summarizer, -standInPace, -resetState), find elements by identifier, and read the list.state and note.state markers. The summary's buttons have the same identifiers in the bar and in the pane, so the tests never depend on the pose. Measured: all eleven passed on the closed Duo simulator in about 210 s, in a freshly generated project. The first runs found three problems, now fixed and described in references/architecture.md. Open, book and tabletop: the pose tests in section 3.

bash
Tools/run-ui-tests.sh -only-testing:MarginsUITests/MarginsUITests/testNoteLayoutInThisPose

Set the pose in Device Hub (or with duo-pose), then run that test and testListInThisPose once per pose. Run testStreamKeepsGoingThroughFolds and press Open, Partially Open and Closed while it streams. With duo-pose-matrix (needs the user's Accessibility permission):

bash
duo-pose-matrix com.example.margins --case "note=-uiTesting -resetState -open sample.offsite -summarize -summarizer simple"

Checklist

  • Project created with scripts/new-project.sh; no __APP_NAME__ or __BUNDLE_ID__ left.
  • Tools/run-model-tests.sh prints 0 failed, privacy checks included.
  • xcodebuild … build succeeds for the iPhone Duo simulator with no warnings from your code.
  • python3 duo-lint.py --strict <project> reports no findings.
  • Tools/run-ui-tests.sh passes.
  • Closed: the note above a one-line summary bar; Details opens the full summary.
  • Open, flat and like a book: the note left of the fold, the summary right of it, nothing in the fold's frame.
  • Tabletop: the note above the fold; the summary and its buttons below it.
  • Start a summary, then close, open and fold: it keeps streaming, never restarts, and is saved once.
  • With the model unavailable or failing, a simple summary appears, labelled, with the reason.
  • Every summary says whether it is AI; Stop, Summarize Again and Clear work.
  • Summaries judged on a device with Apple Intelligence, in each language you support.
  • Privacy line, manifest and App Store Connect answers agree.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Recipe Notes Ai?

Creates a complete SwiftUI notes app for iPhone Duo, Apple's foldable, with summaries from Apple's on-device model (Foundation Models): a headline, key points and to-dos per note, streamed in. Closed, the note fills the screen and the summary is one line with Details; open, flat or like a book, the note takes the left page and the summary pane the right; in tabletop the note sits above the fold and the summary below it. Use when someone wants to start a new notes, journal or writing app with AI summaries from scratch, or runs /duo-new recipe-notes-ai. Covers a @Generable result streamed int...

Warum Recipe Notes Ai in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Recipe Notes Ai besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Recipe Notes Ai in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Kimeur/duology/tree/main/plugins/duology-recipes/skills/recipe-notes-ai ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Recipe Notes Ai nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Recipe Notes Ai verwenden?

So viele Sie möchten. In TypingMind können Sie Recipe Notes Ai mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Recipe Notes Ai kostenlos?

Ja. Der Skill wird von Kimeur auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇