Skip to content
Back to skills

Jade Core Batch Processor

ASecurity

Enforces Rule-by-Rule Sequential Batching — processes exactly ONE rule_id batch at a time. For the selected rule_id, prepares all per-file tasks from the flag index, tracks per-file completion, and persists batch artifact + status. No cross-rule parallel execution.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
ai-agentsjavabash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add TheRealSeber/PolishedJADEite --skill jade-core-batch-processor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jade Core Batch Processor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jade Core Batch Processor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/therealseber-jade-core-batch-processor/badge)](https://www.skillsdirectory.com/skills/therealseber-jade-core-batch-processor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jade-core-batch-processor
description: >-
  Enforces Rule-by-Rule Sequential Batching — processes exactly ONE rule_id batch
  at a time. For the selected rule_id, prepares all per-file tasks from the flag
  index, tracks per-file completion, and persists batch artifact + status. No
  cross-rule parallel execution.
when_to_use: >-
  Use inside the RULE_BATCH_LOOP phase. The orchestrator invokes this skill once
  per rule_id from the rule queue. Do not invoke independently.
arguments: [rule_id]
argument-hint: "<rule-id>"
context: fork
agent: Explore
allowed-tools: Bash(grep *) Bash(find *) Bash(wc *) Write Edit
paths: "**/*.java"
---

# JADE Rule Batch Processor

## Objective

Process exactly ONE `rule_id` at a time. No next rule until the current rule's
batch is fully processed, verified, and committed (by the orchestrator).

## Sequential Batching Policy

1. **One rule at a time.** The orchestrator feeds a single `rule_id`. This skill
   produces the per-file task list for that rule and tracks each file's
   completion. It does NOT dispatch the next rule.

2. **Per-file task list.** For the selected `rule_id`, query `04-flag-index.json`
   for all flagged entries. Group entries by file. Each file becomes a task with
   its own status (`PENDING`, `IN_PROGRESS`, `DONE`, `SKIPPED`, `FAILED`).

3. **No cross-rule parallelism.** Files flagged under different `rule_id` values
   are never processed together. Each rule is a self-contained batch.

4. **Atomic outputs.** All writes use tmp-file + atomic replace. Status JSON is
   updated after every file completion so the batch can be resumed if
   interrupted.

5. **Halt on failure.** If a file task fails, mark it `FAILED`, update the batch
   status, and return a non-zero exit code. The orchestrator handles halting.

## Required Input

- `artifacts/04-flag-index.json` — produced by jade-core-scanner
- `artifacts/05-rule-queue.json`   — produced by orchestrator (validates rule_id exists)
- `rule_id` (CLI argument)
- `artifacts/03.5-knowledge-graph.json` — optional; adds impact context only

## Produced Artifacts

- `artifacts/05-rule-batch-{rule_id}.json` — per-file task list with statuses
- `artifacts/05-rule-batch-status.json`     — aggregate completion tracker

The `files` list remains limited to files directly flagged for the requested rule.
Each entry is marked `transform_scope: "DIRECT"`.
When graph metadata is available, `impact_only` records sorted dependent files and
their graph paths/reasons, source artifact, and source identity. Graph diagnostics
are retained as additive metadata and warnings; they never change direct task
selection. Each impact entry is marked `transform_scope: "IMPACT_ONLY"`; these
files never change `total_files` or dispatch.

## Script

Use `scripts/rule_batch_runner.py` with the required arguments.

Files in this skill

  • SKILL.md2.8 KB
  • scripts/defer_rules.py6.9 KB
  • scripts/rule_batch_runner.py15.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.