optimization-phase

Validate production readiness across performance, accessibility, security, and code quality.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/marcusgoll/robinhood-algo-trading-bot --skill optimization-phase
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: optimization-phase
Source: https://github.com/marcusgoll/robinhood-algo-trading-bot/tree/main/.claude/skills/optimization-phase
Command: npx skills add https://github.com/marcusgoll/robinhood-algo-trading-bot --skill optimization-phase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, npm, pytest, pylint, black, jscpd, axe-core, and includes references (resource) components.

What problem does it solve?

This Skill prevents the deployment of features that are slow, inaccessible, or insecure, which can lead to poor user experience, legal risks, and reputational damage.

Core Features & Use Cases

  • Performance Benchmarking: Audits backend API response times and frontend Core Web Vitals (FCP, LCP, CLS) to meet speed targets.
  • Accessibility Audit: Conducts automated (Lighthouse, axe-core) and manual checks for WCAG 2.1 AA compliance, ensuring inclusivity.
  • Security Review: Verifies authentication, input validation, data protection, and security headers to prevent vulnerabilities.
  • Use Case: Before a feature goes live, use this Skill to rigorously audit its performance, accessibility, and security. For example, run Lighthouse to ensure a high score, check for SQL injection vulnerabilities, and verify that all critical business logic has at least 80% test coverage.

Quick Start

Run Lighthouse performance audit

npx lighthouse http://localhost:3000 --only-categories=performance --output=json

Run Lighthouse accessibility audit

npx lighthouse http://localhost:3000 --only-categories=accessibility --output=json

Check for duplicate code

npx jscpd src/

Frequently Asked Questions about optimization-phase

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

FAQPage Schema
How do I audit API performance and ensure response times meet production targets?▼

Performance benchmarking validates backend API response times against targets like p50 <200ms and p95 <500ms. This Skill automates API latency auditing and produces an optimization report documenting compliance with your speed requirements.

Can I check my frontend for accessibility compliance before deployment?▼

Automated accessibility audits using axe-core and Lighthouse verify WCAG 2.1 AA compliance across your UI components. The Skill conducts both automated scans and flags areas requiring manual review to ensure inclusivity.

What's the best way to validate security posture before a feature goes live?▼

Security review checks authentication, input validation, data protection, and security headers while npm audit identifies vulnerabilities in dependencies. The Skill enforces zero vulnerabilities and produces a code-review-report documenting findings.

How do I measure Core Web Vitals and page load performance?▼

Frontend performance auditing captures Lighthouse metrics for First Contentful Paint, Largest Contentful Paint, and Cumulative Layout Shift against a <2s page load target. Results feed into the optimization report for production-readiness validation.

Can I automate code quality checks like duplicate code detection and test coverage?▼

Code quality validation uses jscpd to detect duplicate code, pylint for Python analysis, black for formatting, and pytest for coverage measurement. The Skill enforces ≥80% test coverage and produces detailed quality metrics.

Does this work with both backend APIs and frontend components?▼

Yes, the Skill validates production readiness across both backend APIs and frontend UI components, applying performance, accessibility, security, and code-quality criteria to both layers in a single comprehensive audit.