# sap-sac-custom-widget

Guides custom widget development for SAP Analytics Cloud: Web Components, data feeds, styling panels. Useful when the built-in visualizations fall short.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 609 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-sac-custom-widget/skills/sap-sac-custom-widget/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-sac-custom-widget

## What it does

The skill walks a SAC custom widget from brief to upload artifacts. It starts by classifying the widget role and data-source mode, suggests a few role-aware options, then generates the chosen package. SAC-bound widgets get asked for dimensions, measures, dates, versions and feed order; pure UI controls get interaction, navigation, state, method and event requirements instead.

Bundled templates cover widgets, charts and KPI cards, plus `templates/local-builder/` — static HTML/CSS/vanilla JS with no public CDNs. That builder exports two artifacts separately: `widget.json` and a Resource-ZIP holding only root-level component JavaScript. If direct `file://` access is blocked, a Node fallback `server.mjs` runs instead.

You need a SAC tenant with Optimized Story Experience or Analytics Designer, plus JavaScript and Web Components knowledge. Hosting is either external (GitHub Pages, AWS S3, Azure) or SAC-hosted resources. The skill points to SAP's official docs and a samples repository, and asks you to confirm technical IDs, feed mappings and asset rights before it writes code.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-sac-custom-widget -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-sac-custom-widget -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sap-sac-custom-widget/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-sac-custom-widget -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sap-sac-custom-widget/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-sac-custom-widget
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-sac-custom-widget/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-sac-custom-widget -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-sac-custom-widget/skills/sap-sac-custom-widget
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sap-sac-custom-widget/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-sac-custom-widget -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/secondsky/sap-skills/tree/HEAD/plugins/sap-sac-custom-widget/skills/sap-sac-custom-widget/SKILL.md

## When to use it
- build a custom visualization SAC does not ship
- wire ECharts, D3.js or Chart.js into a widget
- set up data binding through feeds and field order
- keep the styling panel and builder panel in separate files
- export `widget.json` and a Resource-ZIP for SAC import

## Example prompts
- Build a SAC custom widget for a sales-by-region chart with data coming through feeds
- Create a KPI card as a Web Component with a styling panel and a builder panel
- Prepare `widget.json` and the Resource-ZIP for uploading the widget to SAC

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

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