Batch review

From Crapule421/tiger-team · View interactive version

Batch review is an AI agent skill from the GitHub repository Crapule421/tiger-team. Review a batch chain (VTOM, Dollar Universe or Control-M export, or a description) for dependencies, restartability, windows, resources, calendars and monitoring, with prioritized findings. Use before go-live, a migration or after an incident.

How to use this skill

Skill file

Batch chain review

Input: $ARGUMENTS

You do not see the prior conversation: work only from the input above and the files it points to.

0. Intake

1. Confidentiality gate (mandatory, before any analysis)

Stop and ask the user for an anonymized version - without producing the review - if the input contains:

In that case reply only with: the category detected (never quote the value), where (file:line), and a request for a sanitized version (renamed hosts like SRV-BATCH-01, accounts like batchcpt, placeholders like <PASSWORD>). Real host and account names alone are not a gate trigger, but recommend anonymizing them.

2. Load knowledge

3. Build the model

  1. Inventory: chains/folders/applications, jobs, hosts/MUs/machines, run-as accounts, scripts, resources, calendars, variables, alerts.
  2. Dependency graph: nodes = jobs, edges = dependencies with condition (OK/NOTOK/ANY/absent) and date scope. Add virtual nodes for external prerequisites (file arrivals, upstream chains, time gates).
  3. Schedule matrix: which jobs run on which day types (daily, Monday, month-end, year-end, holidays).
  4. If durations are provided (history, logs), compute P50/P90; else mark them unknown.

4. Analysis axes (apply all; cite object names as evidence)

| Axis | Checks |

|---|---|

| Dependencies | Cycles; unreachable jobs; orphan or never-satisfied conditions; time-based ordering instead of dependencies; date scope "any"/static conditions; cross-chain dependencies documented; error paths leading to business steps. |

| Restartability | Per job: idempotent? checkpoint? cleanup step? what a rerun does to already-written data/sent files; non-rerunnable jobs flagged; effect of force OK on successors. |

| Windows and critical path | Earliest start, cut-off, external waits; critical path (method in SKILL.md section 6); margin vs one rerun of the longest critical job; collisions (backups, DB maintenance, month-end). |

| Calendars | National vs T2 vs close calendars; shift rules; month-end/year-end; calendar expiry; DST (jobs between 02:00 and 03:00, cyclic jobs). |

| Resources | Shared targets protected; exclusive vs quota; capacity sizing; release on kill/force; incompatibilities. |

| Cyclic and time constraints | End time, overlap protection, behaviour on failure, latest start actions. |

| Error handling | Exit-code contract (scan scripts for exit 0 after errors, \|\| true, missing set -e/pipefail, unchecked %ERRORLEVEL%); warning mapping; retries bounded and only for transient errors. |

| Files and transfers | Completeness checks (not just existence), atomic rename, encoding, MFT acknowledgments, purge/archive. |

| Monitoring | Alerts for failure, late start, long run, cut-off risk, agent down; routing; run book links. |

| Security | Run-as least privilege; secrets in definitions/variables/scripts/command lines; operator actions audited. |

| Operability | Run book per job (purpose, restart procedure, contacts); log content and retention; naming conventions. |

| Change | Definitions versioned; environment-specific values separated; forecast compared after change. |

Severity of findings: Critical (data corruption, duplicate payment/transfer, chain can silently not run, secret exposed), High (cut-off at risk, no restart procedure on a critical job, unprotected shared resource), Medium (missing alert, fragile dependency, calendar maintenance risk), Low (naming, documentation, hygiene).

5. Output (Markdown)

Summary

Scheduler and version (or assumption), scope reviewed, verdict (Ready / Ready with reservations / Not ready), counts per severity, top 3 actions.

Inventory

Table: object type | count | remarks.

Dependency graph

Mermaid flowchart LR of the chain (if more than ~40 jobs, one diagram per sub-chain plus an overview of sub-chains). Mark the critical path (e.g. classDef crit) and external prerequisites.

Findings

| ID | Severity | Axis | Object(s) | Finding | Evidence (file:line or object attribute) | Recommendation |

|---|---|---|---|---|---|---|

Sort by severity; one row per root cause (group repeated occurrences).

Critical path and window

Table: job | P50 | P90 | earliest start | latest finish | slack (or "unknown"). Then: projected end vs cut-off, margin, rerun cost of the top critical jobs, levers.

Restartability matrix

| Job | Idempotent | Restart point / checkpoint | Cleanup before rerun | Effect of force OK | Rerun procedure |

|---|---|---|---|---|---|

Monitoring and alerting gaps

List of missing or noisy alerts with proposed trigger, destination and urgency.

Recommended actions

Prioritized list (quick wins first among Critical/High), each with owner role and effort (S/M/L). Product-specific fixes must reference real attributes; anything uncertain is marked "verify against your version".

Risks

| Risk | Criticality | Mitigation |

|---|---|---|

| ... | Critical/High/Medium/Low | ... |

Handoffs

Only when there is a real point, one typed line per handoff: → <agent-name> | <claim: what you assert or need, one sentence> | <evidence: source, file:line, or "assumption"> | <needs: confirm / adjust / provide <what>>. Names: project-manager, enterprise-architect, devsecops-expert, security-expert, dba-expert, scheduling-expert, integration-expert, erp-expert, infra-expert, ibmi-expert. Example: → infra-expert | the CFT acknowledgment flow SRV-SAP-01 → SRV-BATCH-01 is missing from the flow matrix | interface contract §4 | provide the firewall rule and port. A settled point is not a handoff.

Open questions

Numbered, each stating why it matters for the verdict.

Assumptions

Numbered list of every assumption (scheduler/version identification, cut-off, durations, environment, missing scripts).

Answer in the language used in the input.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.