recap-integration
Integrates the Recap Swift package into SwiftUI apps, authors Recap-compatible releases markdown, and configures RecapDisplayPolicy and RecapScreen customization. Use when adding Recap into an app, updating Releases.md, or customizing the behavior of a Recap screen.
install
source · Clone the upstream repo
git clone https://github.com/mergesort/Recap
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mergesort/Recap "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.agents/skills/recap-integration" ~/.claude/skills/mergesort-recap-recap-integration && rm -rf "$T"
manifest:
.agents/skills/recap-integration/SKILL.mdsource content
Recap Integration
Use this skill when integrating, configuring, or using the Recap library.
What to read first
Start with these files:
README.mdSources/Recap/Public/RecapScreen.swiftSources/Recap/Public/View+Recap.swiftSources/Recap/Public/RecapDisplayPolicy.swiftSources/Recap/Public/RecapDisplayPolicy.Trigger.swiftDemo/Demo/Assets/Releases.mdDemo/Demo/DemoRecapScreen.swift
Read additional public API files in
Sources/Recap/Public/ only if the task touches a specific type.
Core workflow
- Identify whether the task is about integration, release authoring, display policy, or screen customization.
- Prefer Recap's public APIs over custom implementations.
- Match existing Recap naming and examples from the README and demo app.
- Keep examples and release content user-facing and concise.
Integration rules
- Prefer
for bundled release markdown.ReleasesParser(fileName:) - Prefer
as the entry point for presentation.RecapScreen(releases:) - Prefer
andRecapDisplayPolicy
over hand-rolled version gating.RecapDisplayPolicy.Trigger - Prefer
unless the user explicitly wants forced.recapScreenPaginationStyle(.automatic)
or.labeled
..compact - When customizing behavior, use
modifiers instead of editing internal implementation unless the task is explicitly a library change.View+Recap
Release markdown rules
When creating or editing a Recap releases markdown file:
- Keep the newest release first.
- Follow the schema documented in
.README.md - Use one release section per app version.
- Use user-facing feature titles and descriptions, not commit-style summaries.
- Choose the semantic change type (
,Major
,Minor
) based on product impact, not commit count.Patch - Reuse the style and structure of
.Demo/Demo/Assets/Releases.md
Mac Catalyst guidance
If the task touches Mac Catalyst:
- Preserve the distinction between automatic pagination, labeled buttons, and compact buttons.
- Be careful not to regress iPhone or iPad behavior while changing Catalyst presentation.
Avoid
- Do not invent a different release markdown format.
- Do not parse releases manually if
is sufficient.ReleasesParser - Do not replace
with custom version-comparison logic unless the user explicitly needs behavior outside the public API.RecapDisplayPolicy