# ae-analysis-global

Directs analytical queries across physical database shards and multi-cluster setups in ae-cli. Prevents confusing data nodes with audience segments.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 836 installs · ★ 21
- Author: ThinkingAIAgenticEngine
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ThinkingAIAgenticEngine/ae-cli/tree/HEAD/skills/ae-analysis-global/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/ae-analysis-global

## What it does

This skill operates as a routing layer on top of `ae-analysis`. It explicitly distinguishes physical infrastructure shards from marketing user groups. Whenever a prompt mentions regions, country nodes, or deployment servers, the agent inspects active endpoints via `ae-cli analysis query-cluster list --project-id <project_id>`.

For reports and ad-hoc executions, routing relies on `--cluster-query-scope GLOBAL|SLAVE`. Selecting `SLAVE` demands an explicit `--slave-cluster-id`. The `GLOBAL` scope applies solely when cross-cluster aggregation is requested and server permissions explicitly allow it.

Direct SQL queries and attribution analysis reject the `GLOBAL` parameter. In those workflows, the agent must stick to the local instance or pick an authorized `SLAVE` route, because server-side checks will fail otherwise.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-analysis-global -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-analysis-global -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-analysis-global -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ThinkingAIAgenticEngine/ae-cli ae-analysis-global
```

2. **Manually: put the files in place**
- File: `.github/skills/ae-analysis-global/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-analysis-global -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ThinkingAIAgenticEngine/ae-cli --path skills/ae-analysis-global
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-analysis-global -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/ThinkingAIAgenticEngine/ae-cli/tree/HEAD/skills/ae-analysis-global/SKILL.md

## When to use it
- route analytical queries across multi-cluster database shards
- retrieve available query clusters for a specific project ID
- target a specific secondary node using `--slave-cluster-id`
- stop invalid `GLOBAL` scope calls in raw SQL and attribution runs

## Example prompts
- List all query clusters available for project 105
- Run this dashboard report targeting the slave cluster shard_eu_2
- Fetch cross-cluster metrics using GLOBAL scope if my permissions permit it

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [thinkingaiagenticengine/ae-cli](https://affpapa.org/en/nevibecode/by/thinkingaiagenticengine/ae-cli.md) — 17 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
