depth-map-generation — Claude Code skill: depth maps from photos
depth-map-generation is a Claude Code skill that generates depth maps from photos via each::sense AI. Triggered by a prompt with an image, it returns a grayscale map for parallax animation, bokeh or AR.
no license 229 installs ★ 48 updated 2026-10-07
npx skills add eachlabs/skills --skill depth-map-generation -a claude-codeWhat depth-map-generation does
Takes an image URL, sends a request to the each::sense API and returns a depth map — white for foreground, black for distant areas. Handles portraits (with precise hair and face edges), landscapes (with foreground, midground and background separation), product shots and interiors.
Requires the EACHLABS_API_KEY for each::sense access. Output formats: 8-bit grayscale, inverse grayscale, normalized 0–1 values or metric distance estimation. No FFmpeg or Python dependencies — works via HTTP requests to a remote API.
Supports metric depth estimation for AR/VR apps and clear layer separation for parallax effects. For portraits, outputs data suitable for bokeh; for architectural shots, captures spatial relationships between objects.
What it helps with
- generate a depth map from a photo for a 3D effect
- extract depth data from a portrait for bokeh
- split a landscape into foreground, midground and background layers
- obtain metric scene depth for placing AR objects
- prepare a product depth map for interactive 3D viewing
Example prompts for the agent
- Build a depth map from
photo.jpg, white for foreground, black for background. - Make a depth map for portrait
portrait.jpgwith precise hair and face edges for bokeh. - Extract a depth map from
landscape.jpg, separating foreground, midground mountains and distant background.
How to install depth-map-generation
1Skills CLI (Vercel)
npx skills add eachlabs/skills --skill depth-map-generation -a claude-code2Manually: put the files in place
~/.claude/skills/depth-map-generation/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/depth-map-generation/
1Skills CLI (Vercel)
npx skills add eachlabs/skills --skill depth-map-generation -a codex2Manually: put the files in place
.agents/skills/depth-map-generation/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add eachlabs/skills --skill depth-map-generation -a cursor2Manually: put the files in place
.cursor/skills/depth-map-generation/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install eachlabs/skills skills/depth-map-generation2Manually: put the files in place
.github/skills/depth-map-generation/SKILL.md1Skills CLI (Vercel)
npx skills add eachlabs/skills --skill depth-map-generation -a gemini-cli2Platform CLI
gemini skills install https://github.com/eachlabs/skills --path skills/depth-map-generationManually: put the files in place
.devin/skills/depth-map-generation/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add eachlabs/skills --skill depth-map-generation -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about depth-map-generation
How to install depth-map-generation in Claude Code?
Run npx skills add eachlabs/skills --skill depth-map-generation -a claude-code, then open ~/.claude/skills/depth-map-generation/SKILL.md.
What does depth-map-generation do?
Generates depth maps from regular photos via each::sense AI. Returns a grayscale image where brightness encodes distance to the camera — for parallax, bokeh, AR or stereo pairs.
What does depth-map-generation require to work?
The EACHLABS_API_KEY for each::sense API access. The skill works via HTTP requests, no additional libraries needed.