
Job
Creates, reviews and refactors Sankhya scheduled jobs using @Job with CRON or interval
Job 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
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 7
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Job
This skill guides an agent through writing scheduled background jobs for the Sankhya Addon Studio 2.0 platform. It covers the @Job annotation with its serviceName and frequency attributes, extending the IJob abstract class, implementing onSchedule, and optionally overriding getScheduleConfig to read the frequency from a system parameter at runtime.
The guidance sets out transaction boundaries: writes belong in a @Transactional service method rather than in onSchedule, batch items can each run in their own REQUIRES_NEW transaction, and read-only queries still need a @Transactional wrapper to open a JAPE session. It also includes a checklist for new jobs and a list of anti-patterns, such as mixing legacy mgeschedule.xml files with @Job or using an ampersand prefix on CRON expressions.
The skill expects a Java 8 project built with Gradle, using Guice injection and Lombok logging, and targets Sankhya Addon Studio 2.0 with Wildfly/EJB and the JAPE SDK. Its documentation is written in Portuguese.
When your agent uses it
Cria, revisa e refatora jobs agendados Sankhya com `@Job` (`extends IJob` + `onSchedule` + `getScheduleConfig` + CRON), incluindo migration via XML. Use ao criar, alterar, revisar, auditar ou padronizar jobs agendados, ao ajustar agendamento CRON, quando o pedido é "roda todo dia às", "de madrugada", "processo noturno", "sem intervenção do usuário", "processamento em lote" ou "rotina agendada", ao trabalhar com arquivos `*Job.java`, ou ao tocar em código com `@Job`/`IJob`. NÃO usar para rotina disparada por clique do usuário na tela (`AcaoRotinaJava`) — isso é `action-button`.
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 (18 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-devcenterOr copy only this skill to ~/.claude/skills/job:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/job &&
cp -R "$tmp/plugins/addon-studio/skills/job" ~/.claude/skills/job &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/job inside it instead.
Copy the skill folder to ~/.agents/skills/job 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/job &&
cp -R "$tmp/plugins/addon-studio/skills/job" ~/.agents/skills/job &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/job inside it instead.
Copy the skill folder to ~/.cursor/skills/job 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/job &&
cp -R "$tmp/plugins/addon-studio/skills/job" ~/.cursor/skills/job &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/job inside it instead.
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/jobOr copy the folder to ~/.gemini/skills/job yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/job:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/job &&
cp -R "$tmp/plugins/addon-studio/skills/job" ~/.copilot/skills/job &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/job inside it instead.
Get the folder:
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.gitThen copy addon-studio/plugins/addon-studio/skills/job into your agent's skills folder as job. Agents that support SKILL.md read one folder per skill.
What it does
- Job class anatomy
- Shows how to declare a scheduled class with the @Job annotation and extend IJob with an onSchedule method.
- CRON and interval timing
- Explains the frequency attribute, covering CRON expressions without an ampersand and millisecond intervals with one.
- Dynamic schedule lookup
- Describes overriding getScheduleConfig to read the frequency from a system parameter with a fallback value.
- Transaction boundaries
- Sets out where transactions belong for writes, item-by-item batches and read-only queries.
- Legacy XML migration
- Maps the old mgeschedule.xml approach to the annotation-based model and flags files that break compilation.
- Review checklist and anti-patterns
- Lists a step-by-step checklist for new jobs and common mistakes to avoid when reviewing existing code.
Good for
- Create a nightly job that synchronizes inventory data at 2 a.m.
- Review an existing scheduled job for transaction and error handling problems
- Migrate a legacy mgeschedule.xml job to the @Job annotation
- Build a queue processor that runs every five minutes with a configurable frequency
- Refactor a batch job so each item commits in its own transaction
Job FAQ
Which environment and language does Job target?
It targets Sankhya Addon Studio 2.0 with Wildfly/EJB and the JAPE SDK, using Java 8, Gradle and ISO-8859-1 encoding.
Can the job frequency be changed without redeploying?
Yes, the skill shows overriding getScheduleConfig to return a frequency read from a system parameter, which takes precedence over the frequency attribute.
Why does a read-only job still need @Transactional?
The skill explains that the generated EJB does not open a JAPE session, so queries fail unless a @Transactional method wraps them. The transactionType attribute does not solve this.
Should the transaction go on onSchedule?
No. The skill recommends placing @Transactional on the service method so that exceptions roll back the writes before the job's catch block logs them.
How do I install Job in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/job to use it in all your projects, or to .claude/skills/job 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 Job 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 Job?
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 Job?
The closest alternatives to Job are Test, Callback, Sankhya utils, Entity and Listener.
Where this comes from
- Description: from the skill's own SKILL.md.
More from snk-devcenter/addon-studio

Adds dynamic search filters to Sankhya entity finders before the query runs
- Open source
- 7 GitHub stars
- Developer tools

Guides writing Sankhya commercial business rules with @BusinessRule for sales documents
- Open source
- 7 GitHub stars
- Enterprise it

Lets agents write, review and refactor Sankhya document callbacks with @Callback hooks
- Open source
- 7 GitHub stars
- Developer tools

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

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

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

