Skip to content
Skill

Value

Configures and debugs Sankhya @Value injection, parameters and toggleable feature flags

Value is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About Value

This skill guides an agent through injecting configuration values into Guice-managed components in Sankhya Addon Studio 2.0 using the @Value annotation, drawing from environment variables, system properties or Sankhya system parameters. It explains the difference between eager and lazy (Provider) injection, and warns that lazy providers cache their value after the first call, so changes only apply after a restart.

For feature flags that must switch at runtime without a restart, the skill describes reading the parameter directly through MGECoreParameter on each use, with a safe default in a try/catch, and declaring the parameter as non-cacheable. It also covers declaring Sankhya parameters in META-INF/parameter.xml, including the XSD constraints on key, name, type and description length, and lists common anti-patterns with their fixes and a checklist for new @Value fields.

The content is written in Portuguese and assumes Java 8, Gradle, Wildfly/EJB and the JAPE SDK. It has no scripts; the agent works from the instructions and examples in the SKILL.md.

When your agent uses it

Configura, revisa e debuga injeção `@Value` Sankhya (`ValueType`, `Provider<T>` lazy/eager, `SANKHYA_PARAM`, `group`), declaração de parâmetro em `META-INF/parameter.xml` e feature flag toggável via `MGECoreParameter`. Use ao injetar, alterar, revisar ou auditar valores de configuração em componentes Guice, ao criar/editar parâmetro Sankhya (`parameter.xml`, key, cacheable), ao implementar feature flag, quando o pedido é "liga-desliga", "o cliente muda sem redeploy" ou "configurável por cliente", ao diagnosticar valor não injetado/null/desatualizado, ou ao tocar em código com `@Value`/`ValueType`/`SANKHYA_PARAM`/`MGECoreParameter`. NÃO usar para carga inicial de dados em tabela (seed) — isso é `database`.

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 1 file (11 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/value:

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

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

Claude Code docs on skills

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

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

Codex docs on skills

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

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

Or copy the folder to ~/.gemini/skills/value yourself.

Gemini CLI docs on skills

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

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

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

The SKILL.md format

What it does

Value injection setup
Covers the @Value attributes, sources and supported field types for Guice components.
Eager versus lazy resolution
Explains when to use direct fields or Provider<T> and how lazy values are cached.
Runtime feature flags
Shows reading a non-cacheable Sankhya parameter on each use to toggle behaviour without restart.
Sankhya parameter declaration
Details parameter.xml entries and the XSD limits on key, name, type and description.
Anti-pattern review
Lists common @Value mistakes such as final fields, empty defaults and oversized descriptions.

Good for

  • Inject a configurable API URL into a Guice component
  • Add a feature flag that a customer can switch without redeploying
  • Audit existing @Value fields for null or stale values
  • Declare a new Sankhya system parameter in parameter.xml
  • Fix a parameter whose description breaks saving in the ERP preferences

Value FAQ

What does Value need to work?

It targets Sankhya Addon Studio 2.0 with Wildfly/EJB and the JAPE SDK, using Java 8, Gradle and ISO-8859-1 encoding.

Why does a @Value lazy Provider not pick up config changes?

The Provider resolves once on the first get() and caches the value for good, so changes only apply after a restart.

How do I make a flag switchable at runtime?

Declare the parameter with cacheable set to false in parameter.xml and read it with MGECoreParameter on each use, wrapped in a try/catch with a safe default.

Does Value cover seeding database tables?

No, the skill states that initial table data loading belongs to a different skill called database.

How do I install Value in Claude Code?

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

No. It is instructions only, with no 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 Value?

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 Value?

The closest alternatives to Value are Dependency injection, Sankhya utils, Test, Sankhya js and Retrofit.

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