# to-prompt

Turns a task into a written brief under docs/prompts/, so a different model can carry out the implementation.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 332 installs · ★ 643
- Author: Pedro Nauck
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pedronauck/skills/tree/HEAD/skills/mine/to-prompt/SKILL.md
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/skills/to-prompt

## What it does

When one agent hands work to another, the context usually gets lost. This skill writes it down instead. The result is a markdown file at `docs/prompts/<YYYYMMDD-HHmm>_<slug>.md` covering the problem, the current state, the requirements and the constraints. It does not pick a solution — that call belongs to whoever receives the brief.

The procedure runs in stages. First you classify the work as a bug fix, an improvement or a feature. Then comes evidence gathering: read the code paths involved, quote them as they stand, capture the relevant log and error lines while leaving credentials out. The skeleton comes from `assets/brief-template.md`. A final pass checks that decisions the user already approved survived intact and that no new mandates crept in.

The skill states its own limits: no one-shot questions, no end-user copy. Its frontmatter also sets `disable-model-invocation: true`, which means the agent will not trigger it on its own — you start it.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill to-prompt -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/to-prompt/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/to-prompt/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill to-prompt -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/to-prompt/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill to-prompt -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/to-prompt/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pedronauck/skills to-prompt
```

2. **Manually: put the files in place**
- File: `.github/skills/to-prompt/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill to-prompt -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pedronauck/skills --path skills/mine/to-prompt
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/to-prompt/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill to-prompt -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pedronauck/skills/tree/HEAD/skills/mine/to-prompt/SKILL.md

## When to use it
- Hand a task to another agent with enough context
- Lock in approved decisions before coding starts
- Collect code excerpts and logs into one file
- Keep requirements apart from implementation suggestions
- Save the brief with a date and readable name in the repo

## Example prompts
- Write a brief for the auth redirect bug and save it under `docs/prompts/`
- Turn this task into a handoff brief for another agent, use `assets/brief-template.md`
- Draft a brief for the new export feature, keep the approved decisions as they are

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [pedronauck/skills](https://affpapa.org/en/nevibecode/by/pedronauck/skills.md) — 18 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
