# git-city-3d-github-visualization

A skill for building on Git City, a project that turns GitHub profiles into 3D pixel-art buildings with Next.js and Three.js.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1300 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/git-city-3d-github-visualization/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/git-city-3d-github-visualization

## What it does

Git City maps GitHub data onto buildings: height comes from contributions, width from public repos, window brightness from stars. The skill hands your agent a map of that codebase so a change to the renderer or the metric logic does not break the rest of the scene.

It covers the layout of `app/`, `components/city/` and `lib/`, plus code patterns: metric calculation in `lib/buildings.ts`, the `Building.tsx` component on React Three Fiber, instanced window rendering with `InstancedMesh`, GitHub API calls through Octokit. A separate LOD manager handles level of detail.

Running it locally means cloning the repo, `npm install`, and filling `.env.local` with Supabase keys, `GITHUB_TOKEN`, and `ADMIN_GITHUB_LOGINS` if you want `/admin/ads`. Skip the GitHub token and some metrics never arrive, so set it up before the first run.

## Requirements
- Works with: GitHub, Supabase

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill git-city-3d-github-visualization -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/git-city-3d-github-visualization/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-city-3d-github-visualization/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill git-city-3d-github-visualization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-city-3d-github-visualization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill git-city-3d-github-visualization -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-city-3d-github-visualization/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills git-city-3d-github-visualization
```

2. **Manually: put the files in place**
- File: `.github/skills/git-city-3d-github-visualization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill git-city-3d-github-visualization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/git-city-3d-github-visualization
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-city-3d-github-visualization/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill git-city-3d-github-visualization -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/reason-machines/trending-skills/tree/HEAD/skills/git-city-3d-github-visualization/SKILL.md

## When to use it
- add a feature to the Git City project
- change the 3D building renderer without breaking the scene
- set up Git City locally with Supabase keys
- add achievements and building decorations
- extend the GitHub profile visualization

## Example prompts
- add a feature to git city
- set up git city locally
- modify the 3d building renderer in components/city/Building.tsx

## Similar
- [react-three-fiber](https://affpapa.org/en/nevibecode/skills/react-three-fiber.md) — skill · 3800 installs
- [r3f-loaders](https://affpapa.org/en/nevibecode/skills/r3f-loaders.md) — skill · 1800 installs
- [threejs-r3f](https://affpapa.org/en/nevibecode/skills/threejs-r3f.md) — skill · 1000 installs
- [nextjs-supabase-auth](https://affpapa.org/en/nevibecode/skills/sickn33-nextjs-supabase-auth.md) — skill · 6600 installs
- [bencium-code-conventions](https://affpapa.org/en/nevibecode/skills/bencium-code-conventions.md) — skill · 3300 installs
- [nextjs-typescript-tailwindcss-supabase](https://affpapa.org/en/nevibecode/skills/nextjs-typescript-tailwindcss-supabase.md) — skill · 1300 installs

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