# p-image

Runs Pruna P-Image models from the terminal: text-to-image, editing existing pictures, LoRA style presets and compositing several images into one.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 12400 installs · ★ 12
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/tools/image/p-image/SKILL.md
- Updated: 2026-08-31
- HTML: https://affpapa.org/en/nevibecode/skills/p-image

## What it does

The skill wires four Pruna models into your agent: `pruna/p-image` for text-to-image, `pruna/p-image-lora` with built-in style presets, `pruna/p-image-edit` for edits and `pruna/p-image-edit-lora` for edits in a chosen style. Everything goes through the `belt` CLI from inference.sh, so the agent just runs a command and reads the result.

You need the CLI itself and a `belt login` before the first run: the skill sits on top of `npx skills add belt-sh/cli`. Prompts travel as JSON, for example `belt app run pruna/p-image --input '{"prompt": "...", "aspect_ratio": "16:9"}'`. Aspect ratios are explicit: `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, or `custom` with width and height. The LoRA variant ships presets such as `photos-realism`, `pixel-art`, `cinematic-movie-style` and `neon-punk`.

Editing takes a list of images in the `images` field, so you can swap a background or build a collage from several files in one call. Skip `belt login` and the commands simply fail — check that first. For image work inside a coding session, the skill saves you a trip to the browser.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill p-image -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill p-image -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill p-image -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers p-image
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill p-image -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path tools/image/p-image
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill p-image -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/101-skills/superpowers/tree/HEAD/tools/image/p-image/SKILL.md

## When to use it
- generate an image from a text prompt without leaving the terminal
- replace the background on an existing photo
- build a collage from several images in one command
- render an image in a fixed style using a LoRA preset
- set an exact aspect ratio for a layout

## Example prompts
- generate a futuristic cityscape at sunset with p-image
- change the background of this photo to a beach using pruna/p-image-edit
- make a portrait in the photos-realism style with p-image-lora

## Similar
- [gpt-image-2](https://affpapa.org/en/nevibecode/skills/pilioai-gpt-image-2.md) — skill · 20300 installs
- [image-gen](https://affpapa.org/en/nevibecode/skills/image-gen.md) — skill · 1200 installs
- [pixverse-ai-image-and-video-generator](https://affpapa.org/en/nevibecode/skills/pixverse-ai-image-and-video-generator.md) — skill · 1000 installs
- [gpt-image](https://affpapa.org/en/nevibecode/skills/wuyoscar-gpt-image.md) — skill · 559 installs
- [scenario](https://affpapa.org/en/nevibecode/skills/scenario.md) — skill · 659 installs
- [scenario-consistency](https://affpapa.org/en/nevibecode/skills/scenario-consistency.md) — skill · 563 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 23 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
