Skip to content

composio-community/nemoclaw-composio / .agents/skills/nemoclaw-maintainer-day

nemoclaw-maintainer-day

Verified

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

FileKindSize
HOTSPOTS.mdmarkdown1.4 KB
MERGE-GATE.mdmarkdown2.6 KB
PR-REVIEW-PRIORITIES.mdmarkdown3.1 KB
RISKY-AREAS.mdmarkdown756 B
SALVAGE-PR.mdmarkdown3.3 KB
SECURITY-SWEEP.mdmarkdown1.6 KB
SEQUENCE-WORK.mdmarkdown1.6 KB
SKILL.mdskill md3.7 KB
STATE-SCHEMA.mdmarkdown1.5 KB
TEST-GAPS.mdmarkdown2.2 KB
scripts/bump-stragglers.tsscript2.4 KB
scripts/check-gates.tsscript10.1 KB
scripts/handoff-summary.tsscript3.9 KB
scripts/hotspots.tsscript3.9 KB
scripts/shared.tsscript6.3 KB
scripts/state.tsscript7.7 KB
scripts/triage.tsscript16.0 KB
scripts/version-progress.tsscript2.2 KB
scripts/version-target.tsscript4.3 KB

scripts/handoff-summary.ts

View on GitHub
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

/**
 * Generate a QA handoff summary for the upcoming release tag.
 *
 * Lists commits since the last tag, identifies risky areas touched,
 * and suggests test focus areas. Output is JSON.
 *
 * Usage: node --experimental-strip-types --no-warnings .agents/skills/nemoclaw-maintainer-day/scripts/handoff-summary.ts [--repo OWNER/REPO]
 */

import { isRiskyFile, run } from "./shared.ts";

interface CommitInfo {
  sha: string;
  subject: string;
}

interface HandoffOutput {
  previousTag: string;
  targetVersion: string;
  commitCount: number;
  commits: CommitInfo[];
  riskyFilesTouched: string[];
  riskyAreas: string[];
  suggestedTestFocus: string[];
}

const AREA_LABELS: Record<string, RegExp[]> = {
  "Installer / bootstrap": [/^install\.sh$/, /^setup\.sh$/, /^brev-setup\.sh$/, /^scripts\/.*\.sh$/],
  "Onboarding / host glue": [/^bin\/lib\/onboard\.js$/, /^bin\/.*\.js$/],
  "Sandbox / policy / SSRF": [/^nemoclaw\/src\/blueprint\//, /^nemoclaw-blueprint\//, /policy/i, /ssrf/i],
  "Workflow / enforcement": [/^\.github\/workflows\//, /\.prek\./],
  "Credentials / inference": [/credential/i, /inference/i],
};

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}`;
}

function main(): void {
  run("git", ["fetch", "origin", "--tags", "--prune"]);

  const previousTag = getLatestTag();
  const targetVersion = bumpPatch(previousTag);

  // Commits since last tag
  const logOut = run("git", [
    "log", "--oneline", "--format=%h %s", `${previousTag}..origin/main`,
  ]);
  const commits: CommitInfo[] = [];
  if (logOut) {
    for (const line of logOut.split("\n")) {
      const spaceIdx = line.indexOf(" ");
      if (spaceIdx > 0) {
        commits.push({
          sha: line.slice(0, spaceIdx),
          subject: line.slice(spaceIdx + 1),
        });
      }
    }
  }

  // Files changed since last tag
  const diffOut = run("git", [
    "diff", "--name-only", `${previousTag}..origin/main`,
  ]);
  const changedFiles = diffOut ? diffOut.split("\n").map((f) => f.trim()).filter(Boolean) : [];
  const riskyFilesTouched = changedFiles.filter(isRiskyFile);

  // Map risky files to area labels
  const areasHit = new Set<string>();
  for (const file of riskyFilesTouched) {
    for (const [area, patterns] of Object.entries(AREA_LABELS)) {
      if (patterns.some((re) => re.test(file))) {
        areasHit.add(area);
      }
    }
  }
  const riskyAreas = [...areasHit];

  // Suggest test focus based on areas
  const suggestedTestFocus: string[] = [];
  if (areasHit.has("Installer / bootstrap")) suggestedTestFocus.push("Fresh install and upgrade paths");
  if (areasHit.has("Onboarding / host glue")) suggestedTestFocus.push("Onboarding wizard, sandbox creation");
  if (areasHit.has("Sandbox / policy / SSRF")) suggestedTestFocus.push("Policy enforcement, network egress, SSRF protections");
  if (areasHit.has("Workflow / enforcement")) suggestedTestFocus.push("CI checks, pre-commit hooks, DCO signing");
  if (areasHit.has("Credentials / inference")) suggestedTestFocus.push("Credential storage, inference provider routing");
  if (suggestedTestFocus.length === 0 && commits.length > 0) suggestedTestFocus.push("General smoke test — no risky areas touched");

  const output: HandoffOutput = {
    previousTag,
    targetVersion,
    commitCount: commits.length,
    commits,
    riskyFilesTouched,
    riskyAreas,
    suggestedTestFocus,
  };

  console.log(JSON.stringify(output, null, 2));
}

main();
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall