# Job

> Job is an open-source agent skill for developer tools. Creates, reviews and refactors Sankhya scheduled jobs using @Job with CRON or interval. 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/job
- **Repository:** https://github.com/snk-devcenter/addon-studio
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** job
- **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 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`.

## What it can access

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

- [Instructions only, no scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/job)
- [License: MIT](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/job)

## Features

- **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

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

```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/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.

### Codex

Copy the skill folder to `~/.agents/skills/job` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/job` 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/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.

### 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/job
```

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

### VS Code

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

```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/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.

### 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/job` into your agent's skills folder as `job`. Agents that support SKILL.md read one folder per skill.

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

## Alternatives

- [Test](https://ai-powered.com/skills/test-snk-devcenter): Test 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.
- [Sankhya utils](https://ai-powered.com/skills/sankhya-utils): Sankhya utils 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.
- [Listener](https://ai-powered.com/skills/listener): Listener is an open-source agent skill for developer tools.
- [Cron job test author](https://ai-powered.com/skills/cron-job-test-author): Cron job test author 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.
- [Repository](https://ai-powered.com/skills/repository): Repository is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/job
