# Jsp

> Jsp is an open-source agent skill for developer tools. Builds server-rendered JSP screens in Sankhya add-ons with SQL and navigation tags. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/snk-devcenter/addon-studio/tree/main/plugins/addon-studio/skills/jsp
- **Repository:** https://github.com/snk-devcenter/addon-studio
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** jsp
- **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 building hand-written JSP screens for Sankhya Addon Studio 2.0 add-ons, the kind of dense dashboards, maps and read-only views where the developer controls the HTML and the server renders it. It covers setting up the sankhyaUtil tag library (a TLD plus four Java tag classes in the add-on's compile module), registering the screen in the data dictionary menu, and choosing between fetching data during render with the query tag or on the client with executeQuery after load.

The skill also documents the five JavaScript functions that the load tag injects, how openApp and openLevel navigate between screens, and common pitfalls such as custom tags placed inside JavaScript comments, non-Latin-1 characters and missing authentication context. It includes a checklist to run before delivering a screen, plus an optional section for embedding an AngularJS island with the platform's snk.js inside an existing JSP, including the required script order and module dependencies.

The skill expects a Sankhya Addon Studio project using Java 8, Gradle and ISO-8859-1 encoding, with SQL run against the Sankhya database. Its templates and reference files are included in the skill folder and are written in Portuguese.

## When your agent uses it

> Painel operacional, dashboard denso, mapa ou tela de leitura em que **você escreve o HTML na mão** e o servidor renderiza — servidos como `.jsp` pelo próprio add-on, com a taglib `sankhyaUtil` (`<snk:query>` para SQL no render, `<snk:load/>` para a API JavaScript de tela). Use ao criar, revisar ou depurar arquivo em `webapp/jsp/`; ao instalar o suporte a `.jsp` num add-on que ainda não tem (TLD, taglibs, dependências do `:vc`); ao registrar a tela no menu do dicionário com `<ui url="/$ctx/jsp/...">`; ao consumir SQL de dentro de um `.jsp` por `<snk:query>` ou `executeQuery`; ao navegar entre telas com `openApp`/`openLevel`; ao portar para o add-on gadget do `Dashboard.xhtml5` nativo, que rodava por zip + insert nas tabelas de dashboard; ao subir uma ilha AngularJS dentro de um `.jsp` já existente — carregar `angular` + `snk.js` sem o `Html5Launcher` para usar `ServiceProxy`, `MessageUtils`, `SanPopup` ou `SkWorkspace`, ou abrir popup nativo do framework, numa página que continua server-side; ou quando a tela

## What it can access

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

- [Runs Java scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/jsp)
- [Network calls found in its scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/jsp)
- [License: MIT](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/jsp)

## Features

- **Taglib setup:** Declares the sankhyaUtil TLD and the Java tag classes that the JSP screen needs.
- **Menu registration:** Shows how to register a JSP screen in the dictionary menu with the correct resource ID.
- **Data loading options:** Explains fetching SQL results at render time versus on demand from the client.
- **Screen navigation API:** Documents openApp, openLevel and related functions for moving between screens.
- **Angular island setup:** Describes loading Angular and snk.js inside a JSP page without the standard launcher.
- **Pitfall checklist:** Lists common JSP errors and a pre-delivery checklist for new screens.

## Good for

- Create a dense operational dashboard screen for a Sankhya add-on
- Add SQL-backed data tables to an existing JSP screen
- Register a new JSP screen in the add-on's dictionary menu
- Debug a JSP screen where the JavaScript shows as plain text
- Port a Dashboard.xhtml5 gadget to a JSP screen in an add-on

## 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/jsp`:

```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/jsp &&
cp -R "$tmp/plugins/addon-studio/skills/jsp" ~/.claude/skills/jsp &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/jsp` 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/jsp &&
cp -R "$tmp/plugins/addon-studio/skills/jsp" ~/.agents/skills/jsp &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/jsp` 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/jsp &&
cp -R "$tmp/plugins/addon-studio/skills/jsp" ~/.cursor/skills/jsp &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/jsp` 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/jsp
```

Or copy the folder to `~/.gemini/skills/jsp` yourself.

### VS Code

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

```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/jsp &&
cp -R "$tmp/plugins/addon-studio/skills/jsp" ~/.copilot/skills/jsp &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/jsp` 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/jsp` into your agent's skills folder as `jsp`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use Jsp instead of sankhya-js?

Use it for JSP screens where you write the HTML yourself and the server renders it. Forms that submit to add-on endpoints and AngularJS screens in webapp/html5 belong to sankhya-js, and plain table-driven screens belong to data-dictionary.

### Which files does a JSP-enabled add-on need?

A sankhyaUtil.tld in webapp/WEB-INF/tld, four Java tag classes (QueryTag, ResultImpl, Period and HTMLGadgetSetupTag) in the vc module, and the JSP screen in webapp/jsp, with compileOnly dependencies on libs and mge-modelcore.

### Why does the JSP screen need to be opened from the menu?

The openApp function depends on the Sankhya HTML5 workspace, which hosts the screen in an iframe. Opening the JSP by its URL outside the menu leaves openApp with no destination.

### What format does executeQuery return?

It returns a JSON string, and every value comes back as a string, including numeric columns, so the client must convert them.

### How do I install Jsp in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/jsp to use it in all your projects, or to .claude/skills/jsp 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 Jsp run scripts?

Yes. It runs Java scripts. Its scripts contain network calls. 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 Jsp?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Jsp?

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

## Where this comes from

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

## Alternatives

- [Sankhya js](https://ai-powered.com/skills/sankhya-js): Sankhya js 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.
- [Entity](https://ai-powered.com/skills/entity): Entity 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.
- [Repository](https://ai-powered.com/skills/repository): Repository 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/jsp
