Skip to content
Skill

Jsp

Builds server-rendered JSP screens in Sankhya add-ons with SQL and navigation tags

Jsp is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Java
Platforms
Claude Code, Codex, Cursor
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About Jsp

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 12 files (85 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/jsp:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/jsp to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/jsp to use it in every project:

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Jsp 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.

More from snk-devcenter/addon-studio

  1. Adds dynamic search filters to Sankhya entity finders before the query runs

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Guides writing Sankhya commercial business rules with @BusinessRule for sales documents

    • Open source
    • 7 GitHub stars
    • Enterprise it
  3. Lets agents write, review and refactor Sankhya document callbacks with @Callback hooks

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Builds and reviews Sankhya REST endpoints with @Controller, DTOs and transactions

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Sets up global Sankhya exception handlers with rollback, error DTOs and HTTP status

    • Open source
    • 7 GitHub stars
    • Developer tools
  6. Generates Sankhya CRUD screens from table XML in datadictionary/ with no JS or HTML

    • Open source
    • 7 GitHub stars
    • Developer tools