monolith-review-orchestrator
Monolith-local Diversio PR review harness for deep PR understanding, deterministic worktree reuse/bootstrap, persistent review context across passes, resolved-comment-aware reassessment, backend monty-review handoff, and author-guiding review output.
What this skill does
# Monolith Review Orchestrator
## V1 Scope
Treat this as a narrow v1 harness workflow, not a universal review brain.
Supported v1 scope:
- single PR, or one explicitly linked cross-repo PR pair
- monolith-local execution only
- `status`, `review`, `reassess`, and worker-owned `post` mode
- deterministic worktree reuse/bootstrap
- persistent JSON-first review context plus markdown artifacts
- worker-owned final review publishing: Codex drafts, the worker revalidates,
and the worker publishes one top-level review plus zero or more inline
comments atomically when the anchors validate cleanly
Explicitly out of scope for v1:
- generic multi-PR batch posting
- generic unresolved-thread automation without a dedicated helper
- replies to existing review threads or partial inline publication
- repo-agnostic marketplace-style usage outside the Diversio monolith
- broad submodule branch normalization during review prep
- claiming reliable "final status" from comment lists alone
## When To Use This Skill
- The user wants an end-to-end PR review workflow instead of manually driving
worktrees, submodules, PR context reads, reassessment passes, and GitHub
posting step by step.
- The review spans one or more monolith submodules such as `backend/`,
`frontend/`, `optimo-frontend/`, `design-system/`, or `infrastructure/`.
- The user says things like "deeply understand this PR", "check all comments and
unresolved threads", "reassess after the author pushed updates", or "post the
final review to GitHub".
- The user wants the agent to manage deterministic review worktrees and keep the
local monolith state fresh.
This skill is an orchestrator. It does not replace repo-specific review taste.
- For Django4Lyfe/backend slices, invoke `monty-code-review`.
- For GitHub issue/PR metadata and comments, prefer the GitHub plugin/app when
available; fall back to `gh` only when needed.
- For frontend or other non-backend slices, keep v1 narrower: do deep repo
reading and synthesis, but do not pretend there is a stable repo-specific
review adapter unless one actually exists.
## Prerequisites
This skill is monolith-local and should fail fast if these prerequisites are
not met:
- running inside a Diversio monolith checkout or sibling review worktree
- monolith scripts and docs are present
- `uv`, `git`, and `git worktree` are available
- GitHub auth is available if PR metadata or posting is requested
- the agent has permission to create sibling worktrees if bootstrap is needed
If preflight fails, stop and report the missing prerequisite instead of
continuing heuristically.
Deterministic helpers for this skill now live under `scripts/`:
- `scripts/preflight_review_env.py`
- `scripts/resolve_review_batch.py`
- `scripts/prepare_review_worktree.py`
- `scripts/fetch_review_threads.py`
- `scripts/review_state.py`
For the simple "what is each helper for?" explanation, load:
- `references/workflow-helpers.md`
For the deep-understanding, comment-history, and author-guidance protocol, load:
- `references/review-context-protocol.md`
## Modes
Choose one mode early and state it explicitly to the user:
1. `status`
- Understand the PRs, read discussion history, audit unresolved comments,
and report current status without doing a fresh full review.
2. `review`
- Do a full deep review, create/update local review artifacts, and stop
before posting unless the user asked to post.
3. `reassess`
- Re-review after new commits, focusing on deltas, prior findings, and still
open concerns.
4. `post`
- Draft the latest validated review for worker-owned GitHub publication,
including inline comments only when the diff anchor is stable enough for
the worker to validate safely.
If the prompt implies more than one mode, use this order:
`status/review -> reassess if needed -> post`
## Deep Understanding First
This skill is not allowed to jump straight from diff reading to verdict writing.
Before you synthesize status, findings, or posting copy:
- read the PR description, changed files, and material author claims
- read all review comments and replies, including resolved ones when available
- prefer thread-aware GitHub reads when resolution/outdated state matters
- treat resolved threads as context, not noise, and separate thread state from
legitimacy
- validate what prior reviewers and the author claimed against the current code
## Intake Rules
Ask only for missing information that materially changes execution. Keep the
question block short and grouped in one message when possible.
Gather this data:
- PR set: one PR URL, or one explicitly linked cross-repo PR pair.
- Local execution context for each PR:
- monolith path or existing worktree path
- submodule path
- branch name if already checked out
- desired mode: `status`, `review`, `reassess`, or `post`
- whether the run is read-only or local mutation is allowed
- whether an existing dirty worktree may be reused
- whether tests/builds should run or this is code-reading only
- which PR is authoritative if linked PR verdicts diverge
- whether parallel sub-agents are allowed
- whether GitHub posting is allowed in this run
- if posting is allowed, whether this run is eligible for `COMMENT`,
`REQUEST_CHANGES`, or `APPROVE`
Default assumptions when the user did not say:
- local mutation: no
- dirty worktree reuse: no
- tests/builds: code-reading only
- GitHub posting: no
- parallel sub-agents: no
Do not ask for information already present in the prompt. Infer obvious things
from the PR URL, local paths, and the monolith repo layout first.
If the user already gave local paths and branch names, prefer reusing them over
creating a new worktree.
## Deterministic Worktree Policy
Load `references/intake-and-worktree-protocol.md` for the exact naming and
reuse rules.
Use the deterministic helpers instead of reconstructing this logic manually
when possible.
Core rules:
- Prefer reusing an existing deterministic review worktree over creating a new
one.
- `uv run scripts/create_worktree.py` is interactive/TTY-driven, so do not rely
on it for unattended automation.
- For automated runs, use `git worktree` directly and bootstrap only the review
batch repos.
- In automated review worktrees, prefer detached refs/commits for the monolith
and relevant submodules so the workflow does not fight Git branch locks across
multiple active worktrees.
- If a deterministic worktree path already exists:
- verify whether Git still knows it as a worktree
- refresh it safely instead of replacing it
- never delete or force-reset it unless the user explicitly asks
- If the user points you at an already-prepared worktree, treat that as the
source of truth and do not silently switch to a different one.
## Execution Workflow
### 1. Normalize The Review Batch
Resolve the batch with `scripts/resolve_review_batch.py` first, then mirror the
result in your notes:
- repo name
- PR number
- local submodule path
- target branch / checked-out branch
- mode
- review artifact path
Map common Diversio repos to monolith paths:
- `Django4Lyfe` -> `backend`
- `Diversio-Frontend` -> `frontend`
- `Optimo-Frontend` -> `optimo-frontend`
- `diversio-ds` -> `design-system`
- `infrastructure` -> `infrastructure`
- `diversio-serverless` -> `diversio-serverless`
- `agent-skills-marketplace` -> `agent-skills-marketplace`
- `terraform-modules` -> `terraform-modules`
If a repo cannot be mapped confidently, ask once.
### 2. Prepare Or Reuse Local State
Run preflight first with `scripts/preflight_review_env.py`.
In the selected monolith root or review worktree:
- confirm current path and git status
- if the worktree is dirty and reuse was not explicitly allowed, stop and ask
- fetch remotes needed for the monolith and relevant submodules
- initialize submodules if needed
- for each relevant submodule:
- verify the requested branch/ref exists locally or fetch it
- prefer detached checkout of the Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.