Agent skill

360 Panorama Viewer

by happycapy-ai in happycapy-ai/Happycapy-skills

Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file.

MITAuto-check passedGame Development

Install 360 Panorama Viewer

skills CLI
$ npx skills add happycapy-ai/Happycapy-skills --skill 360-panorama-viewer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install happycapy-ai/Happycapy-skills 360-panorama-viewer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/happycapy-ai/Happycapy-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/360-panorama-viewer .claude/skills/360-panorama-viewer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
360-panorama-viewer
GitHub stars
137
Token cost
~2.1k tokens
SKILL.md length
690 words
Files
3 (incl. scripts, assets)
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file.

  • Works in 4 steps: Gather scene specs from the user → Generate panorama images → Build the viewer → …
  • The user asks to create a 360 viewer
  • SKILL.md covers What it produces, Skill assets, Workflow and Replacing a single scene in an…, plus 3 more sections
  • Runs Python scripts from its folder; calls python3; reaches ai-gateway.happycapy.ai and trickle.so; needs AI_GATEWAY_API_KEY

What it does

360 Panorama Viewer is an agent skill from happycapy-ai/Happycapy-skills. Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file. The viewer uses Three.js to render immersive spherical panoramas with drag-to-look, zoom, auto-rotate, and a scene-switcher sidebar. All panorama images are embedded as base64 JPEG — no server needed. Use this skill whenever the user asks to create a 360 viewer, VR panorama app, immersive scene gallery, equirectangular image viewer, or wants to combine multiple AI-generated panoramas into an interactive webpage. Also trigger…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and assets (for example `scripts/build_viewer.py`).

It sits in Game Development, covering 3D graphics and WebGL. It works with Three.js. The repository describes itself as: A curated collection of high-quality Claude Code skills to enhance your development workflow. The licence is MIT.

When your agent uses it

  • The user asks to create a 360 viewer
  • VR panorama app
  • Immersive scene gallery
  • Equirectangular image viewer

Example prompts

  • “make a 360 viewer”
  • “VR world gallery”
  • “360度全景”
  • “/360-panorama-viewer”

Requirements

  • Python 3
  • A credential in AI_GATEWAY_API_KEY

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Gather scene specs from the user
  2. Generate panorama images
  3. Build the viewer
  4. Deliver

What it can do on your machine

Read from SKILL.md and the folder at commit 9ff72fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ai-gateway.happycapy.ai
    • trickle.so

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • AI_GATEWAY_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

360 Panorama Viewer loads about 2.1k tokens when it runs. Until then it costs about 167 tokens; SKILL.md has 690 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~167
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from happycapy-ai/Happycapy-skills at commit 9ff72fe, republished under its MIT licence (© happycapy-ai). 690 words, ~2,109 tokens.

Download SKILL.mdSave it as .claude/skills/360-panorama-viewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
360-panorama-viewer
description
Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file. The viewer uses Three.js to render immersive spherical panoramas with drag-to-look, zoom, auto-rotate, and a scene-switcher sidebar. All panorama images are embedded as base64 JPEG — no server needed. Use this skill whenever the user asks to create a 360 viewer, VR panorama app, immersive scene gallery, equirectangular image viewer, or wants to combine multiple AI-generated panoramas into an interactive webpage. Also trigger when the user says things like "make a 360 viewer", "VR world gallery", "360度全景", "全景查看器", "make scenes I can look around in", etc.

360° Panorama Viewer Skill

This skill creates a polished, self-contained 360° panorama viewer HTML file.

What it produces

A single .html file (~3–6 MB depending on scene count) that:

  • Renders equirectangular panoramas as spherical 360° environments using Three.js
  • Supports dragging to look around, scroll to zoom, auto-rotate toggle, fullscreen
  • Shows a thumbnail sidebar to switch between multiple scenes
  • Works offline — no CDN dependencies, all assets embedded

Skill assets

AssetPurpose
assets/viewer_template.htmlComplete viewer HTML with Three.js inlined; panorama data injected at build time
scripts/build_viewer.pyLoads images, applies seam fix, base64-encodes, injects into template

Workflow

Step 1 — Gather scene specs from the user

Ask (or infer from context) for each scene:

  • Description of what the panorama should show
  • Title for the HUD (emoji + name, e.g. 🍄 Mario World)
  • Thumbnail label (≤12 chars shown on the sidebar chip)

Typical count: 3–6 scenes. You can also accept user-provided image files directly (skip generation).

Step 2 — Generate panorama images

For each scene, generate a 360° equirectangular panorama image.

Model choice:

  • Preferred: google/gemini-3.1-flash-image-preview via AI Gateway — reliable 2:1 output, no safety rejections for fictional themes
  • Alternative: gpt-image-2 via AI Gateway at size 1536x1024 — higher quality but may reject branded IP (Mario, Zelda, etc.)

Generation code (Gemini route):

python
import os, requests, base64
from PIL import Image
import io

api_key = os.environ['AI_GATEWAY_API_KEY']

def generate_panorama(prompt: str, save_path: str):
    payload = {
        "model": "google/gemini-3.1-flash-image-preview",
        "prompt": prompt,
        "response_format": "b64_json",
        "n": 1
    }
    resp = requests.post(
        'https://ai-gateway.happycapy.ai/api/v1/images/generations',
        headers={
            'Authorization': f'Bearer {api_key}',
            'Content-Type': 'application/json',
            'Origin': 'https://trickle.so'
        },
        json=payload,
        timeout=180
    )
    resp.raise_for_status()
    img_bytes = base64.b64decode(resp.json()['data'][0]['b64_json'])
    img = Image.open(io.BytesIO(img_bytes)).convert('RGB')
    img.save(save_path)
    return save_path

Prompt formula for good equirectangular panoramas:

360 degree equirectangular panorama of [SCENE DESCRIPTION].
[Key visual elements]. [Style description].
Wide seamless landscape, 2:1 aspect ratio,
left and right edges must tile perfectly for 360 VR viewing.

Example prompts:

  • Mario: 360 degree equirectangular panorama of a colorful cartoon mushroom kingdom platformer world. Bright blue sky, rolling green hills, red mushroom houses, floating brick blocks, gold coins, stone castle. Vibrant cartoon illustration, 2:1 aspect ratio, seamless tiling.
  • Underwater city: 360 degree equirectangular panorama of a futuristic underwater city. Bioluminescent buildings, schools of fish, coral reefs, deep ocean light shafts. Cinematic, 2:1 aspect ratio, seamless tiling.

Save each generated image to a temp path (e.g. tmp/scene_N_raw.png).

Step 3 — Build the viewer

Run the build script, passing all scenes as a JSON array:

bash
SKILL_DIR=/home/node/.claude/skills/360-panorama-viewer

python3 "$SKILL_DIR/scripts/build_viewer.py" \
  --template "$SKILL_DIR/assets/viewer_template.html" \
  --output "outputs/360_viewer.html" \
  --scenes '[
    {"title":"🍄 Mario World","thumb_label":"Mario","image_path":"tmp/mario.png","initial_lon":90},
    {"title":"🐚 Underwater City","thumb_label":"Deep City","image_path":"tmp/underwater.png","initial_lon":0}
  ]'

The script will:

  1. Resize each image to 1774×887 (standard 2:1)
  2. Apply a pure-roll seam fix — finds the horizontal offset that minimises left/right edge difference, then np.rolls the image. No blending. This ensures the 360° seam is as clean as possible without distorting colors.
  3. Base64-encode as JPEG quality 90
  4. Inject into the template and write the output HTML
Step 4 — Deliver

Output the file to outputs/360_viewer.html (or user-specified path) and attach it as a static HTML deliverable.


Replacing a single scene in an existing viewer

If the user already has a viewer and wants to swap out one scene (e.g. regenerate Mario), do NOT rerun all scenes — just re-encode the new image and replace its b64 field in the HTML:

python
import re, base64, io, numpy as np
from PIL import Image

SKILL_DIR = '/home/node/.claude/skills/360-panorama-viewer'

# Load and fix the new image
img = Image.open('new_mario.png').convert('RGB')
img = img.resize((1774, 887), Image.LANCZOS)
arr = np.array(img)
# pure roll seam fix
f = arr.astype(np.float32)
h, w = arr.shape[:2]
best_roll, best_score = 0, float('inf')
for roll in range(w):
    r = np.roll(f, roll, axis=1)
    score = float(np.abs(r[:, :5] - r[:, w-5:]).mean())
    if score < best_score:
        best_score = score
        best_roll = roll
fixed = np.roll(arr, best_roll, axis=1)

buf = io.BytesIO()
Image.fromarray(fixed).save(buf, format='JPEG', quality=90)
new_b64 = base64.b64encode(buf.getvalue()).decode('ascii')

# Replace in HTML by matching scene title
with open('outputs/360_viewer.html') as fh:
    html = fh.read()

# Match the specific scene entry (adjust title keyword as needed)
pattern = r"(title:\s*'[^']*Mario[^']*',\s*initialLon:\s*[\d.]+,\s*b64:\s*')([^']+)(')"
html_new, n = re.subn(pattern, r'\g<1>' + new_b64 + r'\g<3>', html)
assert n == 1, f"Expected 1 replacement, got {n}"

with open('outputs/360_viewer.html', 'w') as fh:
    fh.write(html_new)
print(f'Replaced Mario scene (roll={best_roll})')

Show full SKILL.md (267 more words)Show less

Seam fix — why pure roll, not blending

Equirectangular panoramas wrap horizontally: x=0 and x=w-1 represent the same physical meridian. AI-generated images rarely place the seam at a natural boundary (e.g. open sky), so the default seam is often visible.

Pure roll: shift the whole image left/right to find the position where the 5-pixel columns at both edges are most similar (lowest mean absolute difference). np.roll() is a circular shift — no pixels are added or removed, no colors are changed. This is lossless and never creates artifacts.

Never use blending/color correction at the seam: it creates a visible "smeared" band where pixel values are artificially averaged, which looks worse than the original seam.


Viewer features reference

The template includes these controls, all functional out of the box:

  • Drag — look around (mouse or touch)
  • Scroll / pinch — zoom (FOV 30°–120°, default 75°)
  • Auto Rotate button — gentle continuous pan
  • Reset button — return to initialLon of current scene
  • Fullscreen button
  • FOV slider — right-side vertical range input
  • Thumbnail sidebar — left-side scene switcher with active highlight

Scene initialLon is the starting horizontal angle (0–360). Use it to face an interesting part of the panorama on load (e.g. 90 = face right, 180 = face backwards).


Tips for better panoramas

  • Ask for 2:1 aspect ratio explicitly in every prompt — this is the equirectangular standard
  • Mention "seamless tiling" and "left and right edges must connect" in the prompt
  • For fictional/branded themes (Mario, Zelda), describe the visual style without using trademarked names if GPT-Image-2 rejects them: "colorful cartoon platformer mushroom kingdom style" instead of "Mario"
  • Gemini rarely rejects prompts and consistently produces good 2:1 panoramas — prefer it for speed

© happycapy-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, assets) in skills/360-panorama-viewer of happycapy-ai/Happycapy-skills.

  • SKILL.md
  • assets/viewer_template.html
  • scripts/build_viewer.py

Open the folder on GitHubat commit 9ff72fe

Compare with similar skills

360 Panorama Viewer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

360 Panorama Viewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
360 Panorama Viewer this skillhappycapy-ai/Happycapy-skills137—~2.1kAutomated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.5k—~2.2kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0
Threejs World Generationcalesthio/OpenMontage66k—~2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.5k GitHub stars~2.2k tokensUpdated 13 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Threejs World Generation

    calesthio/OpenMontage

    Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.

    66k GitHub stars~2k tokensUpdated 7 days ago
    Game DevelopmentAuto-check passed
  • 3Dviz Pro Max Scene Builder

    viettranx/3dviz-pro-max

    Guides building an expressive 3D scene in Three.js or Blender by reasoning through intent, object construction and scientific grounding before using a catalog of recipes and kits.

    709 GitHub stars~2.8k tokensUpdated 1 mo ago
    Game DevelopmentAuto-check passed

More from happycapy-ai/Happycapy-skills

All 28 skills in this repo
  • Happycapy Skill Creator

    happycapy-ai/Happycapy-skills

    Automate HappyCapy skill creation by finding and adapting existing skills from anthropics/skills repository.

    137 GitHub stars~627 tokensUpdated 1 mo ago
    Auto-check passed
  • Generate Image

    happycapy-ai/Happycapy-skills

    Generate and transform images using AI Gateway API. An agent skill from happycapy-ai/Happycapy-skills.

    137 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check: notes
  • LLM Council

    happycapy-ai/Happycapy-skills

    Multi-model LLM Council with live dashboard. An agent skill from happycapy-ai/Happycapy-skills.

    137 GitHub stars~581 tokensUpdated 1 mo ago
    Auto-check passed
  • PPTX

    happycapy-ai/Happycapy-skills

    Create polished PowerPoint (.pptx) presentations directly from a topic or content description.

    137 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • World Class Carousel

    happycapy-ai/Happycapy-skills

    Generate world-class Instagram carousel content on any topic.

    137 GitHub stars~16k tokensUpdated 1 mo ago
    Auto-check: notes
  • Happycapy Social Publisher

    happycapy-ai/Happycapy-skills

    HappyCapy-specific skill for publishing content to 13+ social media platforms (Instagram, Twitter, LinkedIn, Threads, Facebook, TikTok, YouTube, Pinterest, Reddit, Telegram, Discord, etc.)…

    137 GitHub stars~3.6k tokensUpdated 1 mo ago
    Auto-check: notes

Works with

Questions about 360 Panorama Viewer

What does 360 Panorama Viewer do?

Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file. 360 Panorama Viewer is an agent skill from happycapy-ai/Happycapy-skills. Build a fully self-contained 360° equirectangular panorama viewer as a single HTML file.

When should I use 360 Panorama Viewer?

360 Panorama Viewer fits situations like: the user asks to create a 360 viewer; VR panorama app; immersive scene gallery; equirectangular image viewer.

How do I install 360 Panorama Viewer in Claude Code?

Run `npx skills add happycapy-ai/Happycapy-skills --skill 360-panorama-viewer -a claude-code`. Or copy the skill folder (skills/360-panorama-viewer in happycapy-ai/Happycapy-skills) into .claude/skills/360-panorama-viewer in your project. Claude Code loads it when a task matches its description.

How do I install 360 Panorama Viewer in Codex?

Run `npx skills add happycapy-ai/Happycapy-skills --skill 360-panorama-viewer -a codex`. Or copy the skill folder (skills/360-panorama-viewer in happycapy-ai/Happycapy-skills) into .agents/skills/360-panorama-viewer in your project. Codex loads it when a task matches its description.

Can I use 360 Panorama Viewer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add happycapy-ai/Happycapy-skills --skill 360-panorama-viewer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/360-panorama-viewer, .gemini/skills/360-panorama-viewer, .github/skills/360-panorama-viewer and .opencode/skills/360-panorama-viewer in your project.

What does 360 Panorama Viewer need to run?

Going by SKILL.md and its folder, 360 Panorama Viewer needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named AI_GATEWAY_API_KEY. Our summary lists: Python 3; A credential in AI_GATEWAY_API_KEY.

Does 360 Panorama Viewer access the network?

SKILL.md names 2 domains. In commands or code: ai-gateway.happycapy.ai and trickle.so; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is 360 Panorama Viewer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does 360 Panorama Viewer use?

360 Panorama Viewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does 360 Panorama Viewer use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to 360 Panorama Viewer?

Skills that share tags, products or a category with 360 Panorama Viewer: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.5k stars) and Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 360 Panorama Viewer?

happycapy-ai (a GitHub user) maintains it in happycapy-ai/Happycapy-skills, which has 137 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on September 3, 2026.

Source: happycapy-ai/Happycapy-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.