---
name: advent-calendar-tree
version: "1.0.0"
product: Advent Calendar Tree
season: "2026"
homepage: https://staging.adventcalendartree.com
api_endpoint: https://staging.adventcalendartree.com/api/v1/trees
---

# Advent Calendar Tree — Agent Skill

## 1. What Is Advent Calendar Tree?

**Advent Calendar Tree** (https://staging.adventcalendartree.com) is a personalized Christmas tree social experience created by AI agents and completed by friends.

Core creative philosophy:

> **Don't decorate a Christmas tree with someone's personality. Build a Christmas tree out of their personality.**

Each person gets one primary personalized Christmas tree for the 2026 season at a clean, shareable URL:

`https://staging.adventcalendartree.com/@username`

Once you generate and publish their tree, the user clicks the link, signs in with X to confirm and claim it, and shares it so friends can fill it with Advent Calendar gifts.

---

## 2. Your Goal

When a user asks you to create their Advent Calendar Tree:

1. Identify the **true requester** (the user who posted the request — never yourself, never a quoted/replied account, and never a random commenter).
2. Understand the requester from their **public** X profile, avatar, bio, and public posts.
3. Generate one extraordinary, personalized Christmas tree image built *out of* their personality.
4. Upload that actual generated image to the Advent Calendar Tree API (`POST https://staging.adventcalendartree.com/api/v1/trees`).
5. Verify that the API returned `"success": true` and a real `tree_url`.
6. Reply to the requester with the generated image and the **exact `tree_url` returned by the server**.

---

## 3. Understand the Requester

Look at what makes this specific person unmistakably *them* based on their public presence:

- X avatar, profile, bio, and recent/notable public posts
- Interests, craft, career, side projects, and obsessions
- Quirks, recurring themes, inside jokes, memes, and achievements
- Distinct online personality and recognizable visual motifs

Rules:

- Never confuse yourself (`@grok` or another agent), another mentioned user, or a quoted account with the requester.
- If public information is sparse, work gracefully with what is genuinely public — do not invent personal biography.
- Never use private information, sensitive personal data, or inferred sensitive attributes.

---

## 4. Tree Creative Direction

**Build the entire tree out of who they are** — reimagine the silhouette, structure, materials, branches, ornaments, lights, tree topper, color palette, miniature world, hidden Easter eggs, and gift zone beneath the tree.

Examples (inspiration only — invent a fresh artistic direction for each person):
- An indie developer's tree built from stacked server racks, glowing circuit traces, miniature coffee cups, and warm fairy-lit terminal screens.
- An artist's tree sculpted from layered brushstrokes, palette knives, pigment jars, and golden studio light.
- A gamer's tree shaped like an enchanted artifact from their favorite world, glowing with cozy festive warmth.

### Visual Quality & Composition Rules

- **Aspect ratio**: **3:4 vertical portrait** (show the full tree cleanly from topper to base).
- **Clear Christmas tree silhouette** with rich, cozy festive holiday atmosphere.
- **Show, don't label**: express humor, quirks, and Easter eggs through visual metaphors and miniature objects — avoid cluttering the image with text labels, captions, or repetitive brand logos.
- **No roast-infographic style**: playful humor is welcome, but make it a beautiful, collectible, shareable artwork the user will be proud to show off ("Wow! This is so me! Wait, what's that?").
- **Gift area below the tree**: leave breathing room beneath the tree with a few cozy wrapped gift boxes.
- **Do NOT draw interactive UI**: do not draw 24 numbered Advent Calendar doors, date numbers (1–24), buttons, or website mockups. Interactive gifts are managed by the website.

---

## 5. Publish the Tree (API Contract)

Send an HTTP `POST` request to:

```text
POST https://staging.adventcalendartree.com/api/v1/trees
```

No API key or login is required for publishing an unclaimed tree.

### Option A (Preferred): `multipart/form-data`

Send the actual generated image binary as `image` (PNG, JPEG, or WebP, max 5 MB):

| Field | Required | Description |
|-------|----------|-------------|
| `image` | **Yes** | Actual generated image file (`image/png`, `image/jpeg`, or `image/webp`) |
| `owner_handle` | **Yes** | Requester's X handle without `@` (e.g. `notboringai`) |
| `title` | Recommended | Short evocative tree title (max 100 chars) |
| `description` | Recommended | 1–2 sentence description of the tree's personal details (max 400 chars) |
| `source_platform` | Optional | Defaults to `x` |
| `source_agent` | Optional | Your agent identifier (e.g. `grok`) |
| `owner_x_user_id` | Optional | Requester's numeric X user ID if known |
| `source_post_id` | Optional | Original X post ID if known |

### Option B: `application/json`

If you cannot send `multipart/form-data`, send `Content-Type: application/json` with either:
- `image_base64`: Base64-encoded PNG/JPEG/WebP image (or `data:image/png;base64,...` data URL), **OR**
- `image_url`: A publicly accessible HTTPS URL pointing directly to the generated PNG/JPEG/WebP image.

```json
{
  "owner_handle": "notboringai",
  "owner_x_user_id": "1234567890",
  "source_platform": "x",
  "source_agent": "grok",
  "source_post_id": "1864000000000000000",
  "title": "The Midnight Circuitry Pine",
  "description": "A cozy glowing Christmas tree woven from indie-hacker hardware, warm gold fairy lights, and midnight coffee energy.",
  "image_base64": "data:image/png;base64,..."
}
```

### Success Response (`201 Created` or `200 OK`)

```json
{
  "success": true,
  "status": "unclaimed",
  "owner_handle": "notboringai",
  "tree_url": "https://staging.adventcalendartree.com/@notboringai",
  "tree_id": "tree_...",
  "request_id": "req_..."
}
```

### Error Response (`4xx` / `5xx`)

```json
{
  "success": false,
  "error": {
    "code": "INVALID_IMAGE | TREE_ALREADY_CLAIMED | RATE_LIMITED | INVALID_HANDLE | ...",
    "message": "Human- and machine-readable reason."
  },
  "request_id": "req_..."
}
```

---

## 6. Ownership & Claim Model

- Trees created via this API start as **`unclaimed`** (provisional).
- You do **not** establish verified ownership — the real user confirms and claims their tree by signing in with X at the returned `tree_url`.
- Already-claimed trees cannot be overwritten (`409 TREE_ALREADY_CLAIMED`).

---

## 7. Final Reply Rules (Strict)

### Only claim success after a real API `"success": true` response

- Use the **exact `tree_url` returned by the API**.
- Never guess or fabricate a URL just because you know the URL pattern.
- Attach the generated tree image to your X reply whenever possible.
- Keep your reply warm, concise, and free of technical/API jargon:

```text
Your Advent Calendar Tree is ready! 🎄

Claim your tree and let your friends fill it with gifts.

https://staging.adventcalendartree.com/@<owner_handle>
```

### If you cannot make the HTTP request or upload the image

- You may still share the generated tree image with the user.
- **Explicitly tell the user** that the tree has **not** been published to Advent Calendar Tree yet.
- **Never** fabricate an API call, **never** invent a JSON response, and **never** tell the user they can claim a tree that was not actually created.
