Skip to content

SIDDARTHA577/envguard-node / .agents/skills/envguard-load-test

envguard-load-test

Verified

Guides capacity planning, workload profile design, local performance benchmarking, and threshold validation without fabricating production metrics or executing unauthorized traffic.

FileKindSize
SKILL.mdskill md7.7 KB
scripts/readiness-auditor.mjsscript27.1 KB
scripts/readiness/adapters/android-adapter.mjsscript30.0 KB
scripts/readiness/adapters/base-adapter.mjsscript4.6 KB
scripts/readiness/adapters/flutter-adapter.mjsscript28.9 KB
scripts/readiness/adapters/generic-adapter.mjsscript15.9 KB
scripts/readiness/adapters/index.mjsscript661 B
scripts/readiness/adapters/ios-adapter.mjsscript21.0 KB
scripts/readiness/adapters/java-spring-adapter.mjsscript39.9 KB
scripts/readiness/adapters/nextjs-react-adapter.mjsscript30.5 KB
scripts/readiness/adapters/node-typescript-adapter.mjsscript115.8 KB
scripts/readiness/adapters/python-adapter.mjsscript44.0 KB
scripts/readiness/adapters/react-native-adapter.mjsscript34.6 KB
scripts/readiness/adapters/registry.mjsscript3.7 KB
scripts/readiness/architecture/applicability.mjsscript21.8 KB
scripts/readiness/architecture/architecture-inventory.mjsscript16.9 KB
scripts/readiness/architecture/architecture-reporter.mjsscript9.4 KB
scripts/readiness/architecture/capacity-model.mjsscript16.9 KB
scripts/readiness/architecture/design-decisions.mjsscript42.0 KB
scripts/readiness/architecture/failure-modes.mjsscript13.3 KB
scripts/readiness/architecture/index.mjsscript895 B
scripts/readiness/architecture/requirements.mjsscript22.0 KB
scripts/readiness/architecture/tradeoffs.mjsscript4.5 KB
scripts/readiness/capacity/benchmark-runner.mjsscript13.4 KB
scripts/readiness/constants.mjsscript6.0 KB
scripts/readiness/deployment/cicd-gate-validator.mjsscript6.1 KB
scripts/readiness/deployment/container-validator.mjsscript10.1 KB
scripts/readiness/deployment/deployment-gate.mjsscript4.8 KB
scripts/readiness/deployment/index.mjsscript411 B
scripts/readiness/deployment/k8s-validator.mjsscript8.8 KB
scripts/readiness/deployment/reliability-validator.mjsscript9.4 KB
scripts/readiness/engine/discovery.mjsscript15.4 KB
scripts/readiness/engine/index.mjsscript341 B
scripts/readiness/engine/orchestrator.mjsscript21.0 KB
scripts/readiness/engine/planner.mjsscript4.2 KB
scripts/readiness/engine/sarif.mjsscript12.7 KB
scripts/readiness/engine/skills-selector.mjsscript10.0 KB
scripts/readiness/execution/git.mjsscript2.3 KB
scripts/readiness/execution/runner.mjsscript11.9 KB
scripts/readiness/index.mjsscript516 B
scripts/readiness/orchestration/engineering-workflow.mjsscript18.5 KB
scripts/readiness/orchestration/index.mjsscript170 B
scripts/readiness/policies/index.mjsscript189 B
scripts/readiness/policies/release-policy.mjsscript9.5 KB
scripts/readiness/remediation/checkpoint-manager.mjsscript34.0 KB
scripts/readiness/remediation/diff-viewer.mjsscript2.5 KB
scripts/readiness/remediation/index.mjsscript778 B
scripts/readiness/remediation/patch-generator.mjsscript17.5 KB
scripts/readiness/remediation/remediation-runner.mjsscript9.9 KB
scripts/readiness/reporters/comparator.mjsscript20.7 KB
scripts/readiness/reporters/index.mjsscript293 B
scripts/readiness/reporters/json-reporter.mjsscript193 B
scripts/readiness/reporters/markdown-reporter.mjsscript18.8 KB
scripts/readiness/validation/evidence-matrix.mjsscript21.5 KB
scripts/readiness/validation/independent-app-runner.mjsscript26.2 KB
scripts/readiness/validation/index.mjsscript328 B

scripts/readiness/remediation/diff-viewer.mjs

View on GitHub
/**
 * Dependency-free Unified Diff Generator for EnvGuard reviewable fixes.
 * Produces standard unidiff strings suitable for CLI preview and patch review.
 *
 * @param {string} filePath - Relative file path being diffed
 * @param {string|null} originalContent - Original file content (or null if new file)
 * @param {string} proposedContent - Proposed modified content
 * @returns {string} Standard unified diff string
 */
export function generateUnifiedDiff(filePath, originalContent, proposedContent) {
  const isNewFile = originalContent === null || originalContent === undefined;
  
  const splitLines = (text) => {
    if (text === null || text === undefined || text === '') return [];
    const normalized = String(text).replace(/\r\n/g, '\n');
    const lines = normalized.split('\n');
    if (lines.length > 0 && lines[lines.length - 1] === '') {
      lines.pop();
    }
    return lines;
  };

  const origLines = isNewFile ? [] : splitLines(originalContent);
  const propLines = splitLines(proposedContent);

  const oldHeader = isNewFile ? '/dev/null' : `a/${filePath}`;
  const newHeader = `b/${filePath}`;

  let diff = `--- ${oldHeader}\n+++ ${newHeader}\n`;

  if (isNewFile) {
    diff += `@@ -0,0 +1,${propLines.length} @@\n`;
    for (const line of propLines) {
      diff += `+${line}\n`;
    }
    return diff;
  }

  // Simple, deterministic unified hunk generation
  const hunks = [];
  let i = 0;
  let j = 0;

  // Find differing regions
  while (i < origLines.length || j < propLines.length) {
    if (i < origLines.length && j < propLines.length && origLines[i] === propLines[j]) {
      i++;
      j++;
    } else {
      const startOrig = i;
      const startProp = j;

      const removed = [];
      const added = [];

      while (i < origLines.length && (j >= propLines.length || origLines[i] !== propLines[j])) {
        removed.push(origLines[i]);
        i++;
      }
      while (j < propLines.length && (i >= origLines.length || origLines[i] !== propLines[j])) {
        added.push(propLines[j]);
        j++;
      }

      hunks.push({
        origStart: startOrig + 1,
        origCount: removed.length,
        propStart: startProp + 1,
        propCount: added.length,
        removed,
        added,
      });
    }
  }

  if (hunks.length === 0) {
    return `${diff}@@ -1 +1 @@\n (No changes)\n`;
  }

  for (const h of hunks) {
    diff += `@@ -${h.origStart},${h.origCount} +${h.propStart},${h.propCount} @@\n`;
    for (const r of h.removed) {
      diff += `-${r}\n`;
    }
    for (const a of h.added) {
      diff += `+${a}\n`;
    }
  }

  return diff;
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall