sankhya-utils

A reference for utility classes already supplied by the Sankhya platform, such as helpers for strings, dates, decimal numbers, JSON, XML, SQL, collections, and validation. These classes are available to the add-on without adding another library.

In plain words
What is it for?
Use it to find platform helpers for Brazilian document and contact formatting, date arithmetic, decimal calculations, JSON and XML handling, database resources, SQL lists, collections, locks, files, identifiers, and validators.
Why use it?
It prevents developers from rewriting common null checks, formatting, conversions, calculations, and resource-handling code. It also avoids adding dependencies that the platform already provides.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/snk-devcenter/addon-studio/sankhya-utils
Any agent
npx skills add snk-devcenter/addon-studio --skill sankhya-utils
Clone the repo
git clone --depth 1 https://github.com/snk-devcenter/addon-studio

Made for: Claude Code, Codex.

Per session 276 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,602 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00276 $0.06602
Opus 5 $0.00138 $0.03301
Sonnet 5 $0.00055 $0.01320
Haiku 4.5 $0.00028 $0.00660

Measured 2d ago against content hash cc803893d3da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sankhya-utils scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/addon-studio/skills/sankhya-utils/SKILL.md · 362 lines

How it starts

The opening of the file, as written. The whole thing — 362 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Utilitários da plataforma — com.sankhya.util

Regra: antes de escrever null-check, validação de vazio, conversão, formatação ou cálculo à mão, procure o equivalente neste índice. Se existe, use.

O pacote vem no classpath junto com a plataforma — não declare dependência no build.gradle, não use moduleLib. Só o import.

Assinaturas completas (todas as classes, todos os métodos públicos, com throws): references/signatures.md.


1. Índice de classes

Classe Para que serve
StringUtils Null-safety de String, formatação BR (CPF/CNPJ/CEP/telefone/placa), padding, escape, conversão
TimeUtils Datas em Timestamp/long: aritmética, comparação só-data, formatação, período
BigDecimalUtil Null-safety e aritmética de BigDecimal: arredondamento, divisão, percentual, moeda
XMLUtils Leitura/escrita de XML JDOM (org.jdom.Element) — serviços SP e integrações XML
JsonUtils Leitura de JSON via Gson (JsonObject/JsonArray)
JdbcUtils Fecha ResultSet/Statement/Connection sem try/catch; leitura tipada de ResultSet
SQLUtils Cláusula IN/NOT IN dinâmica com quebra por lote, escape de literal
CollectionUtils Coleção vazia, split em lotes, transformação
MapUtils Map vazio, presença de chaves
ListUtils ResultSetList<Map<String, Object>>
ObjectUtils equals null-safe entre tipos heterogêneos (delega para BigDecimalUtil/StringUtils conforme o tipo)
WrapperUtils Unboxing null-safe de Boolean (ver §8.10)
DateUtils Diferenças sobre java.util.DateAPI paralela ao TimeUtils (ver §8.6)
ExceptionNavigator Primeira/última mensagem não vazia na cadeia de getCause()
ResourceLock Lock nomeado por recurso, local ou distribuído no cluster
SessionFile Arquivo temporário de sessão (retorno de relatório/anexo)
UIDGenerator Identificador da plataforma, dígito módulo 11
Base64Impl Encode/decode Base64
ClasspathUtils Classe/recurso pelo classloader do módulo (Wildfly isola por addon)
FileAndStreamUtils, ZipUtils Leitura de stream/arquivo, compactação
ValidadorCpfCnpj, ValidadorEmail, ValidadorPIS Validação de documento e e-mail
Extenso, NumeroTelefone, Crypter Valor por extenso, parser de telefone, criptografia simétrica

Read the full file on GitHub · 362 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 362 lines · 276 tokens per session scan A cc803893d3da

Subscribe to this mod's changes

sankhya-utils is a skill published in the GitHub repository snk-devcenter/addon-studio (5 stars, last pushed 2d ago), licensed MIT. It adds 276 tokens to every session and 6,602 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens