# Caffeinate

> Use caffeinate to keep your MacBook awake

- **Type:** Skill
- **Install:** `agentstack add skill-jarrettmeyer-skills-caffeinate`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jarrettmeyer](https://agentstack.voostack.com/s/jarrettmeyer)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jarrettmeyer](https://github.com/jarrettmeyer)
- **Source:** https://github.com/jarrettmeyer/skills/tree/main/plugins/jarrettmeyer/skills/caffeinate

## Install

```sh
agentstack add skill-jarrettmeyer-skills-caffeinate
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Prevent the system from sleeping using macOS `caffeinate`.

## Always Kill Existing Processes First

Before starting caffeinate, always kill any existing process:

```bash
killall caffeinate 2>/dev/null || true
```

## Start Caffeinate

**Indefinitely:**

```bash
caffeinate -dimsu &
```

**Until a specific time:**

Calculate seconds from now until target time, then run:

```bash
caffeinate -dimsu -t  &
```

Example: If it's 1:40 pm and user says "until 4:30 pm":

```bash
caffeinate -dimsu -t $(( ((16*60 + 30) - (13*60 + 40)) * 60 )) &
```

**Always run in background with `&`.**

## Stop Caffeinate

```bash
killall caffeinate
```

## Examples

| User says                | Action                           |
| ------------------------ | -------------------------------- |
| "Stay awake until 6 pm"  | Calculate seconds, run with `-t` |
| "/caffeinate 4:30 pm"    | Calculate seconds, run with `-t` |
| "Keep my computer awake" | Run indefinitely                 |
| "Stop caffeinate"        | Kill the process                 |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jarrettmeyer](https://github.com/jarrettmeyer)
- **Source:** [jarrettmeyer/skills](https://github.com/jarrettmeyer/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jarrettmeyer-skills-caffeinate
- Seller: https://agentstack.voostack.com/s/jarrettmeyer
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
