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/engine/planner.mjs

View on GitHub
import { TRUST_MODELS, detectContainerEnvironment } from '../execution/runner.mjs';
import { selectSkillsForProject } from './skills-selector.mjs';

/**
 * Formulates a complete, executable assessment plan prior to execution.
 * Previews static and dynamic phases, validates trust boundaries, and sequences skills.
 *
 * @param {object} [options={}]
 * @param {string} [options.projectDir]
 * @param {object} [options.inventory]
 * @param {string[]} [options.files=[]]
 * @param {boolean} [options.allowExec=false]
 * @param {boolean} [options.trustProject=false]
 * @param {boolean|null} [options.isIsolated=null]
 * @param {number} [options.timeoutMs=10000]
 * @param {string[]} [options.categories]
 * @param {string[]|null} [options.allowedCommands=null]
 * @returns {object} Structured AssessmentPlan
 */
export function formulateAssessmentPlan({
  projectDir,
  inventory,
  files = [],
  allowExec = false,
  trustProject = false,
  isIsolated = null,
  timeoutMs = 10000,
  categories = [],
  allowedCommands = null,
} = {}) {
  // 1. Resolve Containment & Trust Model
  const containerSignals = detectContainerEnvironment();
  const effectiveIsolated = isIsolated !== null ? Boolean(isIsolated) : containerSignals.detected;

  let trustMode = TRUST_MODELS.STATIC_ONLY;
  if (trustProject) {
    trustMode = TRUST_MODELS.TRUSTED_LOCAL_PROJECT;
  } else if (effectiveIsolated) {
    trustMode = TRUST_MODELS.ISOLATED_UNTRUSTED_PROJECT;
  }

  // 2. Identify Planned Candidate Commands
  const plannedCommands = [];
  for (const app of inventory.applications || []) {
    const scripts = app.scripts || {};
    if (scripts.test) {
      plannedCommands.push({ target: app.path || '.', name: 'test', command: 'npm', args: ['run', 'test'] });
    }
    if (scripts.build) {
      plannedCommands.push({ target: app.path || '.', name: 'build', command: 'npm', args: ['run', 'build'] });
    }
    if (scripts.typecheck || scripts['check-types']) {
      plannedCommands.push({ target: app.path || '.', name: 'typecheck', command: 'npm', args: ['run', 'typecheck'] });
    }
    if (scripts.lint) {
      plannedCommands.push({ target: app.path || '.', name: 'lint', command: 'npm', args: ['run', 'lint'] });
    }
  }

  const filteredCommands = allowedCommands
    ? plannedCommands.filter((c) => allowedCommands.includes(c.name))
    : plannedCommands;

  // 3. Skill Selection
  const skillSelection = selectSkillsForProject(inventory, files);

  // 4. Phase Definitions
  const phases = {
    discovery: {
      status: 'PLANNED',
      scope: 'Repository topology, application targets, package managers, and dependencies',
      targetCount: (inventory.applications || []).length,
    },
    staticAnalysis: {
      status: 'PLANNED',
      scope: 'Multi-platform static analysis checks across resolved adapters',
      categories,
    },
    dynamicExecution: {
      status: allowExec ? 'PLANNED' : 'SKIPPED_READ_ONLY',
      authorized: Boolean(allowExec),
      trustMode,
      plannedCommands: filteredCommands,
      isolationIndicator: containerSignals.indicator,
      timeoutPerCommandMs: timeoutMs,
      disclosures: {
        network:
          'Commands may attempt outbound network calls. Network isolation is not enforced on host OS without container containment.',
        filesystem:
          'Commands may write or modify working directory files (e.g. dist/, coverage/, node_modules/.cache, temp files).',
      },
    },
    architectureEvaluation: {
      status: 'PLANNED',
      conceptCount: 17,
      scope: '17 system design concepts, ADR generation, FMEA risk analysis, and capacity modeling',
    },
    reporting: {
      status: 'PLANNED',
      domains: 12,
      outputFormats: ['json', 'markdown', 'professional-engineering'],
    },
  };

  const estimatedDurationMs = allowExec
    ? Math.min(60000, 1000 + filteredCommands.length * 2000)
    : 800;

  return {
    projectDir,
    timestamp: new Date().toISOString(),
    trustModel: trustMode,
    isIsolated: effectiveIsolated,
    isolationIndicator: containerSignals.indicator,
    allowExec: Boolean(allowExec),
    trustProject: Boolean(trustProject),
    phases,
    skillSelection,
    plannedCommands: filteredCommands,
    estimatedDurationMs,
  };
}

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