# Sankhya js

> Sankhya js is an open-source agent skill for developer tools. Builds HTML5 screens for Sankhya addons with AngularJS and the sankhya-js framework. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/snk-devcenter/addon-studio/tree/main/plugins/addon-studio/skills/sankhya-js
- **Repository:** https://github.com/snk-devcenter/addon-studio
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** sankhya-js
- **Collection:** https://github.com/snk-devcenter/addon-studio
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through creating, changing, reviewing and debugging custom HTML5 screens inside a Sankhya addon's webapp folder. It covers the module layout, the AngularJS 1.x controller pattern, and how the screen calls server endpoints of the addon through the ServiceProxy service with the addon's service prefix.

The skill documents the proprietary framework components it relies on, such as dynaforms bound to data dictionary instances, dataset and datagrid components, popups, wizards and metadata lookups. It also explains how to register a screen in the menu, scaffold one with a Gradle task, and keep translations of template text in the right place.

Work is in JavaScript, HTML and CSS under the webapp, with the Sankhya Addon Studio 2.0 build and the sankhya-js runtime as the expected environment. Files are expected in UTF-8, and Java-side services are handled by separate skills.

## When your agent uses it

> Tela HTML5 que **você desenha**, com layout e lógica próprios em `src/main/webapp/html5/<Tela>/` (módulo `<addon>-vc`, AngularJS 1.x sobre o framework proprietário `sankhya-js`/módulo `snk`). Sinal prático: se a tela chama um endpoint/serviço do addon, tem `.js`/`.html` próprios ou i18n de template, é aqui; se ela só grava direto na tabela e foi gerada pelo dicionário, é `data-dictionary`. Use ao criar, alterar, revisar ou depurar tela do addon; ao traduzir ou trocar textos e rótulos que moram no template/`.properties` sob `webapp/html5/`; ao gerar tela com `gradle gerarTela`; ao consumir um `@Controller ...SP` do próprio addon a partir da tela; quando o pedido é "tela onde o usuário preenche um formulário e envia para o meu endpoint/serviço" ou "tela com botão que chama meu controller" — formulário que envia para endpoint do addon é aqui, não dicionário nem `.jsp`; ao montar dynaform sobre `<instance>` do dicionário; ao registrar a tela no menu via `<ui url="/$ctx/<Tela>.xhtml5">`; ou ao tocar em `.js`/`.htm

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/sankhya-js)
- [No network calls found in its scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/sankhya-js)
- [License: MIT](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/sankhya-js)

## Features

- **Addon screen structure:** Explains the folder layout, fragments, launcher files and module declaration for an addon HTML5 screen.
- **Service calls:** Shows how to invoke addon controllers through ServiceProxy with correct service naming and error handling.
- **Dynaform and dataset binding:** Covers binding a screen to a data dictionary instance with dynaforms, datasets and navigators.
- **Popups and parameter forms:** Describes opening custom popups and building quick parameter dialogs without a separate template.
- **Scaffolding and menu registration:** Covers generating a screen with a Gradle task and registering it in the addon menu.
- **Utilities and components:** Reference for shared string, date, number and metadata utilities and UI components of the framework.

## Good for

- Create a screen where a user fills a form and submits it to an addon endpoint
- Debug a custom addon screen that fails when calling its controller
- Add a dynaform for a data dictionary instance with custom buttons
- Open a popup that asks the user for a date and a search field
- Register a new HTML5 screen in the addon menu

## Install

### Claude Code

This skill ships in the `addon-studio` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add snk-devcenter/addon-studio
/plugin install addon-studio@snk-devcenter
```

Or copy only this skill to `~/.claude/skills/sankhya-js`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sankhya-js &&
cp -R "$tmp/plugins/addon-studio/skills/sankhya-js" ~/.claude/skills/sankhya-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sankhya-js` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sankhya-js` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sankhya-js &&
cp -R "$tmp/plugins/addon-studio/skills/sankhya-js" ~/.agents/skills/sankhya-js &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sankhya-js` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sankhya-js` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sankhya-js &&
cp -R "$tmp/plugins/addon-studio/skills/sankhya-js" ~/.cursor/skills/sankhya-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sankhya-js` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/snk-devcenter/addon-studio.git --path plugins/addon-studio/skills/sankhya-js
```

Or copy the folder to `~/.gemini/skills/sankhya-js` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sankhya-js`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sankhya-js &&
cp -R "$tmp/plugins/addon-studio/skills/sankhya-js" ~/.copilot/skills/sankhya-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sankhya-js` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git
```

Then copy `addon-studio/plugins/addon-studio/skills/sankhya-js` into your agent's skills folder as `sankhya-js`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Sankhya js be used instead of the data dictionary approach?

Use it when the screen calls an endpoint or service of the addon, has its own JS or HTML files, or has template translations. If the screen only writes directly to a table and was generated from the dictionary, the data-dictionary approach applies.

### Does Sankhya js cover the new Design System frontend?

No. It explicitly excludes the Stencil-based Design System frontend, React, and Flex screens.

### What language and framework does Sankhya js assume?

It assumes AngularJS 1.x on the proprietary sankhya-js framework with the snk module, not Angular 2 or later.

### How do I install Sankhya js in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sankhya-js to use it in all your projects, or to .claude/skills/sankhya-js in one project. Or install the addon-studio plugin, which includes it: /plugin marketplace add snk-devcenter/addon-studio, then /plugin install addon-studio@snk-devcenter.

### Does Sankhya js run scripts?

Yes. It runs JavaScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sankhya js?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Sankhya js?

The closest alternatives to Sankhya js are Jsp, Data dictionary, Sankhya utils, Test and Retrofit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Jsp](https://ai-powered.com/skills/jsp): Jsp is an open-source agent skill for developer tools.
- [Data dictionary](https://ai-powered.com/skills/data-dictionary): Data dictionary is an open-source agent skill for developer tools.
- [Sankhya utils](https://ai-powered.com/skills/sankhya-utils): Sankhya utils is an open-source agent skill for developer tools.
- [Test](https://ai-powered.com/skills/test-snk-devcenter): Test is an open-source agent skill for developer tools.
- [Retrofit](https://ai-powered.com/skills/retrofit): Retrofit is an open-source agent skill for developer tools.
- [Callback](https://ai-powered.com/skills/callback): Callback is an open-source agent skill for developer tools.
- [Entity](https://ai-powered.com/skills/entity): Entity is an open-source agent skill for developer tools.
- [Controller](https://ai-powered.com/skills/controller): Controller is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/sankhya-js
