optimization

Convert TypeScript optimization references into native libraries for Python, Rust, Go, and TypeScript.

1|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/caryden/special --skill optimization
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: optimization
Source: https://github.com/caryden/special/tree/main/skills/optimization
Command: npx skills add https://github.com/caryden/special --skill optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transforms a verified TypeScript optimization reference into a native, language-specific library, enabling translation to any target language without recreating the specification from scratch.

Core Features & Use Cases

  • Modular node graph: Covers derivative-free, first-order, second-order, and constrained optimization nodes with a root API for translation.
  • Test vectors & provenance: Includes verified test vectors and provenance annotations to ensure parity across translations.
  • Language-agnostic translation: Provides translation hints and a consistent design for generating idiomatic code in multiple languages (e.g., Python, Rust, Go, TypeScript).

Quick Start

Provide a target language and a set of nodes to translate, e.g., 'bfgs python' or 'all --lang rust'.

Frequently Asked Questions about optimization

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

FAQPage Schema
How do I translate TypeScript optimization code to Rust or Python?β–Ό

To translate TypeScript optimization code, provide a target language and node set like 'bfgs python' or 'all --lang rust'. The process converts the reference into a native library while preserving test vectors and provenance.

What is a TypeScript optimization reference and why preserve provenance during translation?β–Ό

A TypeScript optimization reference is a verified specification of derivative-free, first-order, or second-order algorithms. Preserving provenance during translation ensures verifiable parity and traceability across generated native language libraries.

Can I generate native optimization libraries for specific algorithm nodes like BFGS?β–Ό

Yes, you can generate native optimization libraries for specific nodes. The modular node graph covers derivative-free, first-order, second-order, and constrained optimization, allowing targeted translation for algorithms like BFGS.

Does translating optimization algorithms to other languages maintain test parity?β–Ό

Translating optimization algorithms maintains test parity by honoring dependency graphs, frontmatter metadata, and verified test vectors. This ensures the generated idiomatic code matches the original TypeScript reference behavior.

What's the best way to translate an entire optimization library to Go?β–Ό

The best way to translate an entire optimization library to Go is using the 'all --lang go' command. This applies the transformation across all supported nodes while preserving the dependency graph and provenance annotations.

Do I need to recreate optimization specifications from scratch for each target language?β–Ό

You do not need to recreate optimization specifications from scratch for each target language. The system uses translation hints and a consistent design to generate idiomatic code directly from the verified TypeScript reference.