A skill your agent uses when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics).

MITAuto-check passed

Install Haptics

skills CLI
$ npx skills add johnrogers/claude-swift-engineering --skill haptics -a claude-code

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

GitHub CLI
$ gh skill install johnrogers/claude-swift-engineering haptics --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/johnrogers/claude-swift-engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/swift-engineering/skills/haptics .claude/skills/haptics && 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
haptics
GitHub stars
231
Token cost
~792 tokens
SKILL.md length
341 words
Files
5 (incl. references)
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics).

  • Works in 5 steps: Choose complexity level: Simple… → For simple haptics: Use… → For custom patterns: Create… → …
  • Adding haptic feedback for user confirmations (button presses
  • SKILL.md covers Overview, Reference Loading Guide, Core Workflow and System Requirements, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Haptics is an agent skill from johnrogers/claude-swift-engineering. Use when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics). Covers UIFeedbackGenerator and CHHapticEngine patterns.

Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/ahap-patterns.md`, `references/core-haptics.md` and `references/design-principles.md`).

The repository describes itself as: A collection of agents and skills to aid in the planning, implementation, documentation and testing of Swift/TCA code. The licence is MIT.

When your agent uses it

  • Adding haptic feedback for user confirmations (button presses
  • Error notifications
  • Custom tactile patterns (Core Haptics)

Example prompts

  • “/haptics”

Workflow steps

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

  1. Choose complexity level: Simple (UIFeedbackGenerator) vs Custom (Core Haptics)
  2. For simple haptics: Use UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, or UINotificationFeedbackGenerator
  3. For custom patterns: Create CHHapticEngine, define CHHapticEvents, build CHHapticPattern
  4. Prepare before triggering: Call prepare() to reduce latency
  5. Apply design principles: Ensure Causality (timing), Harmony (multimodal), Utility (meaningful)

What it can do on your machine

Read from SKILL.md and the folder at commit 1dc2cf4. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Haptics loads about 792 tokens when it runs, and up to ~4.7k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 341 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~792
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.7k

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 johnrogers/claude-swift-engineering at commit 1dc2cf4, republished under its MIT licence (© johnrogers). 341 words, ~792 tokens.

Download SKILL.mdSave it as .claude/skills/haptics/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
haptics
description
Use when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics). Covers UIFeedbackGenerator and CHHapticEngine patterns.

Haptics

Haptic feedback provides tactile confirmation of user actions and system events. When designed thoughtfully, haptics transform interfaces from functional to delightful.

Overview

Haptics should enhance interactions, not dominate them. The core principle: haptic feedback is like sound design—every haptic should have purpose (confirmation, error, warning), timing (immediate or delayed), and restraint (less is more).

Reference Loading Guide

ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.

ReferenceLoad When
UIFeedbackGeneratorUsing simple impact/selection/notification haptics
Core HapticsCreating custom patterns with CHHapticEngine
AHAP PatternsWorking with Apple Haptic Audio Pattern files
Design PrinciplesApplying Causality, Harmony, Utility framework

Core Workflow

  1. Choose complexity level: Simple (UIFeedbackGenerator) vs Custom (Core Haptics)
  2. For simple haptics: Use UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, or UINotificationFeedbackGenerator
  3. For custom patterns: Create CHHapticEngine, define CHHapticEvents, build CHHapticPattern
  4. Prepare before triggering: Call prepare() to reduce latency
  5. Apply design principles: Ensure Causality (timing), Harmony (multimodal), Utility (meaningful)

System Requirements

  • iOS 10+ for UIFeedbackGenerator
  • iOS 13+ for Core Haptics (CHHapticEngine)
  • iPhone 8+ for Core Haptics hardware support
  • Physical device required - haptics cannot be tested in Simulator

Common Mistakes

  1. Haptic feedback on every action — Every button doesn't need haptics. Reserve haptics for critical confirmations (purchase, delete, settings change). Over-haptics are annoying and drain battery.

  2. Triggering haptics on main thread blocks — Long haptic patterns can freeze UI briefly. Use background threads or async for Core Haptics prepare() calls to prevent jank.

  3. Haptic without audio/visual feedback — Relying ONLY on haptics means deaf or deaf-blind users miss feedback. Always pair haptics with sound or visual response.

  4. Ignoring haptic settings — Some users disable haptics system-wide. Check UIFeedbackGenerator.isHapticFeedbackEnabled before triggering. Graceful degradation is required.

  5. AHAP file errors silently — Invalid AHAP files fail silently without errors. Test with Xcode's haptic designer and validate file syntax before shipping.

  6. Forgetting battery impact — Continuous haptic patterns (progress bars, loading states) drain battery fast. Use haptics for state changes only, not ongoing feedback.

© johnrogers, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in plugins/swift-engineering/skills/haptics of johnrogers/claude-swift-engineering.

  • SKILL.md
  • references/ahap-patterns.md
  • references/core-haptics.md
  • references/design-principles.md
  • references/uifeedbackgenerator.md

Open the folder on GitHubat commit 1dc2cf4

Compare with similar skills

Haptics 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.

Haptics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Haptics this skilljohnrogers/claude-swift-engineering231—~792Automated safety check: PassMIT
Feedbackcodewhale-hq/Codewhale41k—~272Automated safety check: PassMIT
Feedbacknexu-io/nexu3.3k—~660Automated safety check: WarnMIT
Button Namethedaviddias/Front-End-Checklist74k—~488Automated safety check: PassMIT
Feedbacktinyfish-io/tinyfish-cookbook2.2k—~600Automated safety check: PassMIT
UX Feedbacksickn33/agentic-awesome-skills47k1 repos~994Automated safety check: PassMIT

Similar skills

  • Feedback

    codewhale-hq/Codewhale

    Report a Codewhale bug or idea as a GitHub issue. An agent skill from codewhale-hq/Codewhale.

    41k GitHub stars~272 tokensUpdated today
    Auto-check passed
  • Feedback

    nexu-io/nexu

    Send feedback to the Nexu team. An agent skill from nexu-io/nexu.

    3.3k GitHub stars~660 tokensUpdated 5 mo ago
    Productivity & AutomationAuto-check: warnings
  • Button Name

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for buttons.

    74k GitHub stars~488 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Feedback

    tinyfish-io/tinyfish-cookbook

    File structured feedback about TinyFish — bug reports, confusing setup steps, missing features, or a doctor diagnostic report.

    2.2k GitHub stars~600 tokensUpdated 7 days ago
    Testing & QAAuto-check passed
  • UX Feedback

    sickn33/agentic-awesome-skills

    Add appropriate user feedback states (loading, success, error, empty) to a component or page

    47k GitHub starsUsed in 1 repo~994 tokens
    Auto-check passed
  • Feedback Mastery

    davila7/claude-code-templates

    Navigate difficult conversations and deliver constructive feedback using structured frameworks.

    32k GitHub starsUsed in 2 repos~2.9k tokens
    Business, Finance & HRAuto-check passed

More from johnrogers/claude-swift-engineering

All 17 skills in this repo
  • Localization

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing internationalization (i18n), String Catalogs, pluralization, or right-to-left layout support.

    231 GitHub stars~749 tokensUpdated 8 mo ago
    Auto-check passed
  • Storekit

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing in-app purchases, StoreKit 2 subscriptions, consumables, non-consumables, or transaction handling.

    231 GitHub stars~799 tokensUpdated 8 mo ago
    Auto-check passed
  • Swift Style

    johnrogers/claude-swift-engineering

    Swift code style conventions for clean, readable code. An agent skill from johnrogers/claude-swift-engineering.

    231 GitHub stars~828 tokensUpdated 8 mo ago
    Auto-check passed
  • Composable Architecture

    johnrogers/claude-swift-engineering

    A skill your agent uses when building features with TCA (The Composable Architecture), structuring reducers, managing state, handling effects, navigation, or testing TCA features.

    231 GitHub stars~982 tokensUpdated 8 mo ago
    Auto-check passed
  • Foundation Models

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing on-device AI with Apple's Foundation Models framework (iOS 26+), building summarization/extraction/classification features, or using @Generable for…

    231 GitHub stars~869 tokensUpdated 8 mo ago
    Auto-check passed
  • Grdb

    johnrogers/claude-swift-engineering

    A skill your agent uses when writing raw SQL with GRDB, complex joins across 4+ tables, window functions, ValueObservation for reactive queries, or dropping down from SQLiteData for performance.

    231 GitHub stars~719 tokensUpdated 8 mo ago
    Auto-check passed

Questions about Haptics

What does Haptics do?

A skill your agent uses when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics). Haptics is an agent skill from johnrogers/claude-swift-engineering. Use when adding haptic feedback for user confirmations (button presses, toggles, purchases), error notifications, or custom tactile patterns (Core Haptics).

When should I use Haptics?

Haptics fits situations like: adding haptic feedback for user confirmations (button presses; error notifications; custom tactile patterns (Core Haptics).

How do I install Haptics in Claude Code?

Run `npx skills add johnrogers/claude-swift-engineering --skill haptics -a claude-code`. Or copy the skill folder (plugins/swift-engineering/skills/haptics in johnrogers/claude-swift-engineering) into .claude/skills/haptics in your project. Claude Code loads it when a task matches its description.

How do I install Haptics in Codex?

Run `npx skills add johnrogers/claude-swift-engineering --skill haptics -a codex`. Or copy the skill folder (plugins/swift-engineering/skills/haptics in johnrogers/claude-swift-engineering) into .agents/skills/haptics in your project. Codex loads it when a task matches its description.

Can I use Haptics 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 johnrogers/claude-swift-engineering --skill haptics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/haptics, .gemini/skills/haptics, .github/skills/haptics and .opencode/skills/haptics in your project.

What does Haptics need to run?

SKILL.md names no scripts, command-line tools or credentials: Haptics is instructions for the agent only.

Does Haptics access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Haptics 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 Haptics use?

Haptics is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Haptics use?

About 792 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.

What are the alternatives to Haptics?

Skills that share tags, products or a category with Haptics: Feedback (codewhale-hq/Codewhale, 41k stars), Feedback (nexu-io/nexu, 3.3k stars), Button Name (thedaviddias/Front-End-Checklist, 74k stars) and Feedback (tinyfish-io/tinyfish-cookbook, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Haptics?

johnrogers (a GitHub user) maintains it in johnrogers/claude-swift-engineering, which has 231 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on January 18, 2026.

Source: johnrogers/claude-swift-engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.