Agent skill

Yuedu iOS Design

by CHANG-JUI-LIN in CHANG-JUI-LIN/Yuedu-reader

A skill your agent uses when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI.

MPL-2.0Auto-check passedMobile

Install Yuedu iOS Design

skills CLI
$ npx skills add CHANG-JUI-LIN/Yuedu-reader --skill yuedu-ios-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install CHANG-JUI-LIN/Yuedu-reader yuedu-ios-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/CHANG-JUI-LIN/Yuedu-reader.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/yuedu-ios-design .claude/skills/yuedu-ios-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yuedu-ios-design
GitHub stars
162
Token cost
~2.3k tokens
SKILL.md length
1,114 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MPL-2.0

At a glance

A skill your agent uses when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI.

  • Works in 12 steps: Title mode: only the main root screens… → Route every user-visible string through… → Use DS* tokens for colors, semantic… → …
  • Modifying Yuedu user-facing SwiftUI views
  • SKILL.md covers Required Context, Decision Order, Hard Rules and Sheet Rules, plus 3 more sections
  • Calls ruby and git

What it does

Yuedu iOS Design is an agent skill from CHANG-JUI-LIN/Yuedu-reader. Use when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering iOS development. It works with iOS and SwiftUI. The repository describes itself as: Yuedu is a native iOS reader that supports multiple book formats, RSS subscriptions, and user-provided book sources. The licence is MPL-2.0.

When your agent uses it

  • Modifying Yuedu user-facing SwiftUI views
  • Reader overlays

Example prompts

  • “/yuedu-ios-design”

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Title mode: only the main root screens get a large title, always via rootTabTitle(_:onScroll:) — 探索, RSS, 設定 and 搜索 pass .minimizesBar, so…
  2. Route every user-visible string through localized("...") and keep every Resources/*.lproj synchronized: zh-Hant, zh-Hans, en, ja, ko. Text…
  3. Use DS* tokens for colors, semantic fonts, spacing, layout, radius, and animation. Add a missing token before use; avoid magic values…
  4. Use native components; do not re-implement them. Use NavigationStack, TabView, NavigationSplitView, List/Form with Section, Toggle…
  5. Prefer SF Symbols. Every icon-only control needs a localized accessibilityLabel.
  6. Use official size terms: 44×44pt is the default control size. A 28×28pt minimum is only for genuinely compact controls with sufficient…
  7. Support Dynamic Type through accessibility sizes, logical VoiceOver order and announced outcomes, Light/Dark and Increase Contrast, Reduce…
  8. Every data-backed screen needs empty, loading, and error states (prefer ContentUnavailableView for empty on iOS 17+); long-running tasks…
  9. Protect reading comfort: decoration, density, transparency, motion, and backgrounds must not reduce body-text legibility.
  10. Attach accessibility modifiers to the element itself, never to a container. .accessibilityLabel/.accessibilityHint on an HStack/VStack…
  11. Preserve background continuity in themed List/Form screens. .scrollContentBackground(.hidden) hides only the scroll container background…
  12. Ask permissions in context at the moment of need, never at launch, with an explanation screen first and a designed denied path. Use…

What it can do on your machine

Read from SKILL.md and the folder at commit b24d525. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ruby
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yuedu iOS Design loads about 2.3k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 1,114 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from CHANG-JUI-LIN/Yuedu-reader at commit b24d525, republished under its MPL-2.0 licence (© CHANG-JUI-LIN). 1,114 words, ~2,263 tokens.

Download SKILL.mdSave it as .claude/skills/yuedu-ios-design/SKILL.md (or your agent's skills folder).
name
yuedu-ios-design
description
Use when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI.

Yuedu iOS Design

Apply these guardrails to every user-facing SwiftUI change. Read the repo-root docs/design.md before substantial design work; it is the detailed source of rationale, examples, page archetypes, and review guidance.

Required Context

Consult only the context needed for the change:

  • docs/design.md: the matching section for substantial design work or an unresolved convention.
  • Modules/SharedUI/DesignSystem/DesignTokens.swift: the relevant token definitions when changing styling.
  • Resources/*.lproj/Localizable.strings (zh-Hant, zh-Hans, en, ja, ko): search the affected keys when changing user-visible text. Do not read any of these files in full.

Decision Order

Resolve conflicts in this order: Apple platform behavior and accessibility > explicit Yuedu conventions > contextual recommendations. Yuedu preferences are product conventions, not universal Apple HIG rules.

Hard Rules

  1. Title mode: only the main root screens get a large title, always via rootTabTitle(_:onScroll:) — 探索, RSS, 設定 and 搜索 pass .minimizesBar, so on iOS 27 the native bar — title and buttons together — slides away and the native search field rises into its place — (a leading toolbar-item title that looks the same from iOS 17 on; the system .inlineLarge is only a small centred title on an iOS 17 iPhone). Main roots = the tab roots: HomeView (書架), ExploreHomeView / PublicLibraryHomeView (探索), RSSListView (RSS), SettingsView (設定), and the 搜索 tab's SearchView(isTabRoot: true). Everything else — pushed details, sheets, overlays, reader surfaces — uses .inline. Never use .automatic, .large, or .inlineLarge.
  2. Route every user-visible string through localized("...") and keep every Resources/*.lproj synchronized: zh-Hant, zh-Hans, en, ja, ko. Text iOS shows from Info.plist, such as a permission prompt, goes in each language's InfoPlist.strings.
  3. Use DS* tokens for colors, semantic fonts, spacing, layout, radius, and animation. Add a missing token before use; avoid magic values. Only system-backed color and semantic font tokens adapt automatically. Validate fixed-size font and animation tokens with the Dynamic Type and Reduce Motion patterns in docs/design.md.
  4. Use native components; do not re-implement them. Use NavigationStack, TabView, NavigationSplitView, List/Form with Section, Toggle, Picker, Stepper, NavigationLink, .sheet, Menu, ToolbarItem, contextMenu, swipeActions, searchable, confirmationDialog, and alert. Never hand-roll List/Form rows with ScrollView + VStack/HStack, custom toolbars or button bars, custom switches, pickers, or dialogs. Exclusive choices use one selected value (Picker), not several independent toggles; a Toggle keeps its built-in label instead of .labelsHidden() on a hand-rolled HStack.
  5. Prefer SF Symbols. Every icon-only control needs a localized accessibilityLabel.
  6. Use official size terms: 44×44pt is the default control size. A 28×28pt minimum is only for genuinely compact controls with sufficient spacing; it does not relax the general hit region. Reader chrome and primary actions remain at least 44×44pt.
  7. Support Dynamic Type through accessibility sizes, logical VoiceOver order and announced outcomes, Light/Dark and Increase Contrast, Reduce Motion, and state cues that do not rely on color alone.
  8. Every data-backed screen needs empty, loading, and error states (prefer ContentUnavailableView for empty on iOS 17+); long-running tasks (TTS, downloads, sync) also handle offline, slow-network, permission-denied, and interruption/resume.
  9. Protect reading comfort: decoration, density, transparency, motion, and backgrounds must not reduce body-text legibility.
  10. Attach accessibility modifiers to the element itself, never to a container. .accessibilityLabel/.accessibilityHint on an HStack/VStack propagates to every child element, so a row of buttons ends up sharing one name; label each Button separately. Decorative Image(systemName:) needs .accessibilityHidden(true) — SF Symbols are focusable by default and speak their raw symbol name. A Slider needs its own .accessibilityLabel and .accessibilityValue, reusing the computed property behind the value shown on screen. See docs/design.md §7.1 for the shipped bugs behind each of these.
  11. Preserve background continuity in themed List/Form screens. .scrollContentBackground(.hidden) hides only the scroll container background, not row backgrounds. When a page background should remain continuous, give every row/section .listRowBackground(Color.clear); when rows intentionally need contrast, use an explicit DSColor.surface* token. Never leave accidental system-white rows against a themed page background. Check content, empty, loading, and error rows. Every surface must visibly differ from its background.
  12. Ask permissions in context at the moment of need, never at launch, with an explanation screen first and a designed denied path. Use alert/confirmationDialog only for critical decisions (2 buttons preferred, max 3). Every custom gesture needs a visible button/menu alternative; never intercept system gestures (edge-swipe back, notifications/Control Center pull-downs).
  13. Section footers: all section-level explanatory notes, hints, and limits must use native Section { ... } footer: { Text(...) } with .dsSectionFooter() (Apple HIG standard 13pt Footnote + DSColor.textSecondary). Never hand-roll explanatory notes as standard rows inside a Section, subtitle text inside a Toggle's VStack, or standalone empty-content Sections.
  14. A footer earns its place or it does not exist. Write one only for what the reader cannot work out from the control itself: a cost, a risk, a side effect, a non-obvious precondition, or where the data came from. If the label already says it, there is no footer — 「重新整理名單」 needs no paragraph explaining that it rebuilds the list. Aim for one sentence; two is the ceiling. Do not restate the button, narrate the implementation, or explain a feature's rationale. Before adding one, ask what the reader would get wrong without it; if the answer is "nothing", delete it.
  15. Settings rows use SettingsRows (Modules/SharedUI/Components/SettingsRows.swift): wrap native controls with SettingsRowLabel / SettingsValueLabel / SettingsSliderRow / SettingsLockedRow so every row on a page shares one icon size, colour and alignment. A pushed page's title matches its row's name. zh-Hant wording: 匯入/匯出, 自訂, 介面, 儲存, 重設, 閱讀背景, 頁首頁尾, 全域 — see docs/design.md §4.
Show full SKILL.md (234 more words)Show less

Sheet Rules

  • Put Cancel or Close leading; dismiss without saving unconfirmed changes.
  • Put Done, or a clearer task-specific alternative, trailing; save or complete the task.
  • Use Back only for internal sheet navigation; it must not dismiss the sheet.
  • Never show Back, Cancel/Close, and Done together at one hierarchy level.
  • Visible Yuedu modal chrome uses xmark and checkmark with localized accessibility labels.
  • Alerts and confirmation dialogs keep textual cancel actions.

Avoid

  • Dashboard, landing-page, Tailwind-like, dense web-form, or novelty-first UI.
  • Hard-coded styling, text, fixed font sizes, animation durations, or magic layout values.
  • Using rootTabTitle(_:onScroll:) outside the main root screens, or any .inlineLarge (an iOS 17 iPhone draws it as .inline).
  • Hand-rolled rows, toolbars, or controls (ScrollView + VStack lists, custom switches/pickers/dialogs) where a native component exists.
  • Over-decorated cards (22pt+ corner radii, decorative gradients/borders, custom dividers), full-screen blocking spinners, or minimumScaleFactor text-shrinking to save layout.
  • Visual effects or controls that harm reader legibility.

Verification

Run:

bash
ruby scripts/check_localizations.rb
git diff --check
grep -rn -E "toolbarTitleDisplayMode\(\.(automatic|large|inlineLarge)\)|navigationBarTitleDisplayMode\(\.(automatic|large)\)|rootTabTitle\(" Modules Targets --include="*.swift"

The grep flags every .automatic / .large / .inlineLarge use, and every rootTabTitle( use; only the whitelisted main roots (HomeView, ExploreHomeView, PublicLibraryHomeView, RSSListView, SettingsView, and BookSearchView's tab-root branch) and its own definition in RootTabTitle.swift may use rootTabTitle(_:onScroll:).

For code changes, run the directly relevant regression required by AGENTS.md. Reuse results for unchanged code and environment; the static checks above do not replace that regression.

Maintenance

Update .claude/skills/yuedu-ios-design/SKILL.md, .agents/skills/yuedu-ios-design/SKILL.md, and docs/design.md together. Keep detailed rationale and examples in docs/design.md; keep both skill files concise and byte-identical.

© CHANG-JUI-LIN, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/yuedu-ios-design of CHANG-JUI-LIN/Yuedu-reader.

Open the folder on GitHubat commit b24d525

Compare with similar skills

Yuedu iOS Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yuedu iOS Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yuedu iOS Design this skillCHANG-JUI-LIN/Yuedu-reader162—~2.3kAutomated safety check: PassMPL-2.0
Update Swiftui APIsAvdLee/SwiftUI-Agent-Skill3.7k—~1.2kAutomated safety check: PassMIT
Swiftui Liquid Glassharperreed/dotfiles3348 repos~941Automated safety check: PassNone
Swiftui Expert Skillomarshahine/HomeClaw1764 repos~2.8kAutomated safety check: PassMIT
Hig Project Contextraintree-technology/hig-doctor1445 repos~1.2kAutomated safety check: PassMIT
Liquid Glass DesignAstraFoundry/KumoApp2915 repos~2.3kAutomated safety check: PassAGPL-3.0

Similar skills

  • Update Swiftui APIs

    AvdLee/SwiftUI-Agent-Skill

    Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.

    3.7k GitHub stars~1.2k tokensUpdated 5 days ago
    MobileAuto-check passed
  • Swiftui Liquid Glass

    harperreed/dotfiles

    Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API.

    334 GitHub starsUsed in 8 repos~941 tokens
    MobileAuto-check passed
  • Swiftui Expert Skill

    omarshahine/HomeClaw

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management, view composition, performance, Liquid Glass adoption, or Instruments .trace…

    176 GitHub starsUsed in 4 repos~2.8k tokens
    MobileAuto-check passed
  • Hig Project Context

    raintree-technology/hig-doctor

    Create or update a shared Apple design context document that other HIG skills use to tailor guidance.

    144 GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Liquid Glass Design

    AstraFoundry/KumoApp

    iOS 26 Liquid Glass design system — dynamic glass material with blur, reflection, and interactive morphing for SwiftUI, UIKit, and WidgetKit.

    291 GitHub starsUsed in 5 repos~2.3k tokens
    MobileAuto-check passed
  • Swiftui Expert Skill

    ilyas-hallak/romm-ios-app

    Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, and iOS 26+ Liquid Glass adoption.

    173 GitHub starsUsed in 1 repo~2.9k tokens
    MobileAuto-check passed

More from CHANG-JUI-LIN/Yuedu-reader

  • Yuedu Tour

    CHANG-JUI-LIN/Yuedu-reader

    Locate Yuedu module ownership and cross-module data flows when the relevant entry points or boundaries are unclear.

    162 GitHub stars~497 tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Yuedu iOS Design

What does Yuedu iOS Design do?

A skill your agent uses when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI. Yuedu iOS Design is an agent skill from CHANG-JUI-LIN/Yuedu-reader. Use when creating, reviewing, or modifying Yuedu user-facing SwiftUI views, screens, sheets, toolbars, lists, settings, reader overlays, dialogs, or localized UI.

When should I use Yuedu iOS Design?

Yuedu iOS Design fits situations like: modifying Yuedu user-facing SwiftUI views; reader overlays.

How do I install Yuedu iOS Design in Claude Code?

Run `npx skills add CHANG-JUI-LIN/Yuedu-reader --skill yuedu-ios-design -a claude-code`. Or copy the skill folder (.agents/skills/yuedu-ios-design in CHANG-JUI-LIN/Yuedu-reader) into .claude/skills/yuedu-ios-design in your project. Claude Code loads it when a task matches its description.

How do I install Yuedu iOS Design in Codex?

Run `npx skills add CHANG-JUI-LIN/Yuedu-reader --skill yuedu-ios-design -a codex`. Or copy the skill folder (.agents/skills/yuedu-ios-design in CHANG-JUI-LIN/Yuedu-reader) into .agents/skills/yuedu-ios-design in your project. Codex loads it when a task matches its description.

Can I use Yuedu iOS Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CHANG-JUI-LIN/Yuedu-reader --skill yuedu-ios-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yuedu-ios-design, .gemini/skills/yuedu-ios-design, .github/skills/yuedu-ios-design and .opencode/skills/yuedu-ios-design in your project.

What does Yuedu iOS Design need to run?

Going by SKILL.md and its folder, Yuedu iOS Design needs the command-line tools its instructions call (ruby and git).

Does Yuedu iOS Design access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Yuedu iOS Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Yuedu iOS Design use?

Yuedu iOS Design is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yuedu iOS Design use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yuedu iOS Design?

Skills that share tags, products or a category with Yuedu iOS Design: Update Swiftui APIs (AvdLee/SwiftUI-Agent-Skill, 3.7k stars), Swiftui Liquid Glass (harperreed/dotfiles, 334 stars), Swiftui Expert Skill (omarshahine/HomeClaw, 176 stars) and Hig Project Context (raintree-technology/hig-doctor, 144 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yuedu iOS Design?

CHANG-JUI-LIN (a GitHub user) maintains it in CHANG-JUI-LIN/Yuedu-reader, which has 162 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 8, 2026.

Source: CHANG-JUI-LIN/Yuedu-reader on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.