Logo van 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.

Overzicht

UitgeverKimeur
Repositoryduology
Skillnaamrecipe-notes-ai
Sterren
40
Forks
2
Meegeleverde bestanden
35
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 35

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Kimeur op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Recipe Notes Ai in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Kimeur/duology/tree/main/plugins/duology-recipes/skills/recipe-notes-ai
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Recipe Notes Ai in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Recipe Notes Ai automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Recipe Notes Ai niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-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...

Waarom Recipe Notes Ai gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Recipe Notes Ai bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Recipe Notes Ai in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Kimeur/duology/tree/main/plugins/duology-recipes/skills/recipe-notes-ai. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Recipe Notes Ai gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Recipe Notes Ai gebruiken?

Zoveel als je wilt. Je kunt Recipe Notes Ai gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Recipe Notes Ai gratis?

Ja. Deze skill is door Kimeur op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇