# Audio and haptics feedback

> Audio and haptics feedback is an open-source agent skill for developer tools. Adds sound effects, music and haptic pulses to an Expo app behind swappable ports. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/audio-and-haptics-feedback
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** audio-and-haptics-feedback
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up a feedback layer for React Native apps built with Expo. Sounds are synthesised from literal recipes and played through a single ambient audio context, so they respect the iOS silent switch and mix with music the user already has playing. Haptic pulses come from a fixed cue table covering iOS feedback generators and Android haptic constants, gated by a user preference and throttled so bursts do not buzz.

The workflow has the agent build the audio and haptics ports and adapters, organise sounds into per-feature banks composed in the root layout, and write cue tables that tie events in the model to sounds and pulses. Two checker scripts then verify the rules: one renders every sound and reports clipping, click-prone edges and id mismatches, and the other inspects engine imports, dependency pins, the Expo config plugin, lifecycle wiring and call sites. Optional WAV previews can be rendered for a human to listen to.

It expects an Expo project with Jest for tests, npm or npx for installing expo-haptics and an exact-pinned react-native-audio-api, and a settings feature for the sound and haptics preferences. Recorded audio files are optional and must be listed with their licence in a contract file.

## When your agent uses it

> Builds SFX and haptics behind ports. Use when adding or tuning sounds, SFX, music or haptics, or sound ignores the silent switch, stops the user's music or a pulse fails on Android. Not for settings (settings-and-preferences).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/audio-and-haptics-feedback)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/audio-and-haptics-feedback)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/audio-and-haptics-feedback)

## Features

- **Synthesised sound recipes:** Each sound is a literal recipe rendered to audio, checked for clicks, clipping and length before use.
- **Audio and haptics ports:** Engine libraries sit behind ports with fakes for tests, so only one adapter file imports each engine.
- **Voice and throttle policy:** Category gains, voice limits and repeat intervals keep loudness even and prevent sound pile-ups.
- **Haptic cue tables:** Fixed haptic cues for iOS and Android, with a preference gate and a minimum spacing between pulses.
- **Lifecycle and reload safety:** Audio runs only while the app is active and is disposed before a JavaScript reload.
- **Static checkers:** Two scripts validate sound banks and feedback wiring and render WAV previews for review.

## Good for

- Add a success chime and a light haptic when a form is saved
- Tune the sound effects for a game's coin pickup and level-up events
- Stop background music from being interrupted by app sounds on Android
- Set up haptic feedback for switches and pickers in an Expo app
- Check that every sound id in a feature bank is actually cued

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/audio-and-haptics-feedback`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/audio-and-haptics-feedback &&
cp -R "$tmp/skills/audio-and-haptics-feedback" ~/.claude/skills/audio-and-haptics-feedback &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/audio-and-haptics-feedback` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/audio-and-haptics-feedback` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/audio-and-haptics-feedback &&
cp -R "$tmp/skills/audio-and-haptics-feedback" ~/.agents/skills/audio-and-haptics-feedback &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/audio-and-haptics-feedback` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/audio-and-haptics-feedback` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/audio-and-haptics-feedback &&
cp -R "$tmp/skills/audio-and-haptics-feedback" ~/.cursor/skills/audio-and-haptics-feedback &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/audio-and-haptics-feedback` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/audio-and-haptics-feedback
```

Or copy the folder to `~/.gemini/skills/audio-and-haptics-feedback` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/audio-and-haptics-feedback`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/audio-and-haptics-feedback &&
cp -R "$tmp/skills/audio-and-haptics-feedback" ~/.copilot/skills/audio-and-haptics-feedback &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/audio-and-haptics-feedback` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/audio-and-haptics-feedback` into your agent's skills folder as `audio-and-haptics-feedback`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need from the project?

It targets Expo apps and installs expo-haptics and react-native-audio-api, pinned to an exact version. It also expects a settings feature that provides the haptics preference and Jest for tests.

### Does Audio and haptics feedback play music by default?

No. Music is off by default and its controls are hidden unless the app has a music bank.

### When does the feedback trigger?

Sounds and pulses fire from events in the model layer, such as a cue table row or a UI moment, never from a view's own handler.

### Can Audio and haptics feedback use downloaded sound files?

Sounds are normally synthesised. Recorded files are allowed only when listed with their licence and source in the contract file.

### How do I install Audio and haptics feedback in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/audio-and-haptics-feedback to use it in all your projects, or to .claude/skills/audio-and-haptics-feedback in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Audio and haptics feedback run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Audio and haptics feedback?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Audio and haptics feedback?

The closest alternatives to Audio and haptics feedback are Expo animation, Expo animation, Expo native UI, Expo native UI and Expo prebuild and config plugins.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Expo animation](https://ai-powered.com/skills/expo-animation): Expo animation is an open-source agent skill for developer tools.
- [Expo animation](https://ai-powered.com/skills/expo-animation-scaledockhq): Expo animation is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui): Expo native UI is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui-scaledockhq): Expo native UI is an open-source agent skill for developer tools.
- [Expo prebuild and config plugins](https://ai-powered.com/skills/expo-prebuild-and-config-plugins): Expo prebuild and config plugins is an open-source agent skill for developer tools.
- [Accessibility as code](https://ai-powered.com/skills/accessibility-as-code): Accessibility as code is an open-source agent skill for developer tools.
- [Debug menu and test hooks](https://ai-powered.com/skills/debug-menu-and-test-hooks): Debug menu and test hooks is an open-source agent skill for developer tools.
- [Expo design system](https://ai-powered.com/skills/expo-design-system-scaledockhq): Expo design system is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/audio-and-haptics-feedback
