optimization-phase

Automates production-readiness validation across performance, accessibility, security, and code quality for CI gatekeeping.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/DYAI2025/MOD_shark-engine --skill optimization-phase-dyai2025
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: optimization-phase
Source: https://github.com/DYAI2025/MOD_shark-engine/tree/main/sharkengine/.claude/skills/optimization-phase
Command: npx skills add https://github.com/DYAI2025/MOD_shark-engine --skill optimization-phase-dyai2025

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production readiness is often delayed by ad-hoc quality checks; this skill centralizes and automates performance, accessibility, security, and code-quality validation to gate features before deployment.

Core Features & Use Cases

  • Performance Benchmarking: validates API p50 <200ms, p95 <500ms, and page load targets before release.
  • Accessibility Audit: ensures WCAG 2.1 AA compliance for UI changes (where applicable).
  • Security Review: runs dependency vulnerability scans (npm audit) and OWASP checks, plus secret scanning.
  • Code Quality Review: evaluates test coverage, DRY violations, and cyclomatic complexity; generates quality reports.
  • Report Generation: outputs optimization-report.md and code-review-report.md for audit trails and improvement tracking.
  • Workflow Alignment: enforces that prerequisites (CI green, spec targets) are met prior to deployment.

Quick Start

Execute the optimization quality gates after the implement phase to validate performance, accessibility, security, and code quality before deployment.

Frequently Asked Questions about optimization-phase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate production readiness checks before deployment?▼

Automate production readiness by running consolidated quality gates across performance, accessibility, security, and code quality before deployment. This validation ensures features meet release standards and prevents ad-hoc checks from delaying production releases.

What performance benchmarks should I enforce for API latency and page load?▼

Enforce performance benchmarks targeting API latency p50 under 200ms, p95 under 500ms, initial page load under 2 seconds, and TTI under 3 seconds. These targets are validated against spec.md to gate features before deployment.

How do I run WCAG 2.1 AA accessibility audits in a CI pipeline?▼

Run WCAG 2.1 AA accessibility audits as part of pre-deployment quality gates in CI pipelines. The audit validates UI changes for compliance and ensures accessibility standards are met before features are released.

Can I use this to scan for dependency vulnerabilities and secrets?▼

Yes, security validation includes dependency vulnerability scans using npm audit and OWASP checks, alongside secret scanning. This identifies vulnerable dependencies and exposed secrets before features pass deployment gating.

What code quality metrics are evaluated during pre-deployment validation?▼

Code quality validation evaluates test coverage, DRY violations, and cyclomatic complexity. The process generates detailed quality reports to track improvements and ensure code meets standards before release.

When should I run production readiness validation in my workflow?▼

Run production readiness validation after the implement phase and before deployment. It serves features undergoing release gating in CI pipelines and feature branches, ensuring prerequisites like CI green status and spec targets are met.