composio-community/nemoclaw-composio / .agents/skills/nemoclaw-maintainer-day
nemoclaw-maintainer-day
VerifiedRuns the daytime maintainer loop for NemoClaw, prioritizing items labeled with the current version target. Picks the highest-value item, executes the right workflow (merge gate, salvage, security sweep, test gaps, hotspot cooling, or sequencing), and reports progress. Use during the workday to land PRs and close issues. Designed for /loop (e.g. /loop 10m /nemoclaw-maintainer-day). Trigger keywords - maintainer day, work on PRs, land PRs, make progress, what's next, keep going, maintainer loop.
| File | Kind | Size |
|---|---|---|
| HOTSPOTS.md | markdown | 1.4 KB |
| MERGE-GATE.md | markdown | 2.6 KB |
| PR-REVIEW-PRIORITIES.md | markdown | 3.1 KB |
| RISKY-AREAS.md | markdown | 756 B |
| SALVAGE-PR.md | markdown | 3.3 KB |
| SECURITY-SWEEP.md | markdown | 1.6 KB |
| SEQUENCE-WORK.md | markdown | 1.6 KB |
| SKILL.md | skill md | 3.7 KB |
| STATE-SCHEMA.md | markdown | 1.5 KB |
| TEST-GAPS.md | markdown | 2.2 KB |
| scripts/bump-stragglers.ts | script | 2.4 KB |
| scripts/check-gates.ts | script | 10.1 KB |
| scripts/handoff-summary.ts | script | 3.9 KB |
| scripts/hotspots.ts | script | 3.9 KB |
| scripts/shared.ts | script | 6.3 KB |
| scripts/state.ts | script | 7.7 KB |
| scripts/triage.ts | script | 16.0 KB |
| scripts/version-progress.ts | script | 2.2 KB |
| scripts/version-target.ts | script | 4.3 KB |
scripts/version-target.ts
View on GitHub// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
/**
* Compute the day's target version and find stragglers from older versions.
*
* Reads the latest semver tag from the local repo, bumps patch by 1, then
* queries GitHub for open PRs/issues carrying version labels older than
* the target. Output is JSON.
*
* Usage: node --experimental-strip-types --no-warnings .agents/skills/nemoclaw-maintainer-day/scripts/version-target.ts [--repo OWNER/REPO]
*/
import { run, parseStringArg } from "./shared.ts";
interface Straggler {
number: number;
title: string;
url: string;
type: "pr" | "issue";
versionLabel: string;
}
interface VersionTargetOutput {
latestTag: string;
targetVersion: string;
stragglers: Straggler[];
}
function getLatestTag(): string {
const out = run("git", [
"tag", "--sort=-v:refname",
]);
if (!out) return "v0.0.0";
for (const line of out.split("\n")) {
if (/^v\d+\.\d+\.\d+$/.test(line.trim())) {
return line.trim();
}
}
return "v0.0.0";
}
function bumpPatch(tag: string): string {
const match = tag.match(/^v(\d+)\.(\d+)\.(\d+)$/);
if (!match) return "v0.0.1";
return `v${match[1]}.${match[2]}.${parseInt(match[3], 10) + 1}`;
}
/**
* Compare two semver strings. Returns negative if a < b, 0 if equal, positive if a > b.
*/
function compareSemver(a: string, b: string): number {
const pa = a.replace(/^v/, "").split(".").map(Number);
const pb = b.replace(/^v/, "").split(".").map(Number);
for (let i = 0; i < 3; i++) {
const diff = (pa[i] ?? 0) - (pb[i] ?? 0);
if (diff !== 0) return diff;
}
return 0;
}
function findStragglers(repo: string, targetVersion: string): Straggler[] {
const stragglers: Straggler[] = [];
// Get all open PRs with version labels
const prOut = run("gh", [
"pr", "list", "--repo", repo, "--state", "open",
"--json", "number,title,url,labels", "--limit", "200",
]);
if (prOut) {
try {
const prs = JSON.parse(prOut) as Array<{
number: number; title: string; url: string;
labels: Array<{ name: string }>;
}>;
for (const pr of prs) {
for (const label of pr.labels) {
// Only flag labels older than the target — not the target itself
// and not future versions (e.g. v0.0.11 is not a straggler)
if (/^v\d+\.\d+\.\d+$/.test(label.name) && compareSemver(label.name, targetVersion) < 0) {
stragglers.push({
number: pr.number,
title: pr.title,
url: pr.url,
type: "pr",
versionLabel: label.name,
});
}
}
}
} catch (err: unknown) {
process.stderr.write(`[version-target] Failed to parse PR list: ${err instanceof Error ? err.message : err}\n`);
}
}
// Get all open issues with version labels
const issueOut = run("gh", [
"issue", "list", "--repo", repo, "--state", "open",
"--json", "number,title,url,labels", "--limit", "200",
]);
if (issueOut) {
try {
const issues = JSON.parse(issueOut) as Array<{
number: number; title: string; url: string;
labels: Array<{ name: string }>;
}>;
for (const issue of issues) {
for (const label of issue.labels) {
if (/^v\d+\.\d+\.\d+$/.test(label.name) && compareSemver(label.name, targetVersion) < 0) {
stragglers.push({
number: issue.number,
title: issue.title,
url: issue.url,
type: "issue",
versionLabel: label.name,
});
}
}
}
} catch (err: unknown) {
process.stderr.write(`[version-target] Failed to parse issue list: ${err instanceof Error ? err.message : err}\n`);
}
}
return stragglers;
}
function main(): void {
const args = process.argv.slice(2);
// --repo controls gh queries; git tags always come from the local checkout
const repo = parseStringArg(args, "--repo", "NVIDIA/NemoClaw");
run("git", ["fetch", "origin", "--tags", "--prune"]);
const latestTag = getLatestTag();
const targetVersion = bumpPatch(latestTag);
const stragglers = findStragglers(repo, targetVersion);
const output: VersionTargetOutput = { latestTag, targetVersion, stragglers };
console.log(JSON.stringify(output, null, 2));
}
main();
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |