---
name: attention-please
description: Play an alert sound and speak "Project NAME needs your attention." Always use at the end of every response or whenever Codex needs user input or confirmation; derive the project name from the git remote (origin) with fallback to the repo folder or an override.
---

# Attention Please

## Overview

Play a short audible alert and a spoken prompt indicating which project needs attention. Use this as the final step after completing work on every response, and also right before asking the user for input.

## Source Of Truth And Publishing

- GitHub repository: `https://github.com/Mindgames/attention-please`
- Local development repository: `~/Projects/skills/attention-please`
- Do not edit installed copies in `~/.agents/skills/...` or `~/.codex/skills/...` directly.
- Update this repository, push to GitHub, open a PR, then reinstall via `skills`.

## Install Or Refresh

This repository uses `skills.sh` as the primary install path for Codex, Claude, and most agentic CLI/IDE clients.

Install globally (recommended):

```bash
npx skills add Mindgames/attention-please -g -y
```

Project scope (default):

```bash
npx skills add Mindgames/attention-please
```

Target specific agents (optional):

```bash
npx skills add Mindgames/attention-please --agent codex
```

```bash
npx skills add Mindgames/attention-please --agent claude-code
```

Install for multiple agents in one command:

```bash
npx skills add Mindgames/attention-please --agent codex claude-code -g -y
```

After reinstall, restart your agent client if needed so it reloads skills.

## Path Resolution (avoid missing-skill errors)

- Always open this skill using the absolute path from the active session skills list.
- Do not guess repo-relative `.codex/skills/...` paths unless that exact path was listed by the session.

## Rules (non-negotiable)

- Always run this script at the end of every response, even if you are not asking for input.
- If you missed it in the previous turn, run it immediately at the start of the next turn before doing anything else, then continue.
- Treat a missed run as a bug; prioritize correcting it as soon as you notice.

## Workflow

1. Run from inside the target repo so the script can read the git remote.
2. Execute the installed script using the absolute path from the active session skill list:

   ```bash
   /absolute/path/to/attention-please/scripts/attention-please.sh
   ```

   If your environment does not expose the session skill path directly, use the actual install location used in that session (for example under `~/.agents/...` or `~/.codex/...`) as that absolute path.

3. Run this immediately before sending your final response to the user.
4. Continue with your response to the user.

### Project name resolution

- Primary: `git remote get-url origin` and extract the repo name.
- Remote override: set `ATTENTION_PLEASE_REMOTE`.
- Fallback: repo folder name.
- Override: set `ATTENTION_PLEASE_PROJECT`.

### Sound and speech

- Sound: macOS `afplay` with `/System/Library/Sounds/Ping.aiff` by default.
- Override sound: set `ATTENTION_PLEASE_SOUND`.
- Disable sound: set `ATTENTION_PLEASE_NO_SOUND=1`.
- Speech: macOS `say`; if unavailable, the message prints to stdout.
- Disable speech: set `ATTENTION_PLEASE_NO_SAY=1`.
- Voice: set `ATTENTION_PLEASE_SAY_VOICE`.
- Rate: set `ATTENTION_PLEASE_SAY_RATE`.
- If you see `AudioQueueStart failed`, set `ATTENTION_PLEASE_NO_SAY=1` (or `ATTENTION_PLEASE_NO_SOUND=1`) to avoid audio device errors.

### Message override

- Override the full phrase with `ATTENTION_PLEASE_MESSAGE`.

## Example

```bash
ATTENTION_PLEASE_PROJECT="project-name" ATTENTION_PLEASE_SAY_VOICE="Samantha" /absolute/path/to/attention-please/scripts/attention-please.sh
```


---
Source attribution: Mindgames
Original project: https://github.com/Mindgames/attention-please/blob/f55153635958fdf86fd113a8ae290233b344ab9f/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 Mathias Asberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: Mindgames
Original project: https://github.com/Mindgames/attention-please/blob/f55153635958fdf86fd113a8ae290233b344ab9f/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Development & Engineering, Customer Support
Roles: Backend Developer, DevOps / SRE, Technical Support
Specialties: Specialty not specified
Tools: Macos
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: d8f981e813e4f554508d576ecfba95127a39953a2360f2611d81d25f53053b38
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Mega AI Hub catalog attribution. Original instruction and supporting files are preserved.
