machine-learning-algorithms

Formats machine-learning algorithm prompts with CLRS theorem and proof conventions.

7|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Arcadi4/nerdy --skill machine-learning-algorithms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: machine-learning-algorithms
Source: https://github.com/Arcadi4/nerdy/tree/main/clrs/machine-learning-algorithms
Command: npx skills add https://github.com/Arcadi4/nerdy --skill machine-learning-algorithms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps users craft CLRS-style machine-learning algorithm prompts by separating textbook models, invariants, and proofs from production ML practice, reducing hallucinations and misapplied heuristics.

Core Features & Use Cases

  • Enforces CLRS conventions for mathematical formatting, theorem hooks, and display-block organization.
  • Supports prompts for k-means, Lloyd's procedure, multiplicative weights, weighted majority, online experts, gradient descent, projected gradient descent, convex optimization, linear regression, and regularization with explicit model assumptions.
  • Provides structured prompts and guardrails to keep theoretical reasoning aligned with CLRS while allowing optional production guidance upon request.

Quick Start

Pose a CLRS-style ML prompt and request a rigorous, theorem-based solution with explicit model assumptions.

Frequently Asked Questions about machine-learning-algorithms

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

FAQPage Schema
How do I write machine-learning algorithm prompts that enforce strict theorem-based reasoning?

To write machine-learning algorithm prompts with strict theorem-based reasoning, enforce CLRS conventions that separate textbook models, invariants, and proofs from production practice. This requires explicit model assumptions and display-block organization to reduce hallucinations.

What is the best way to structure convex optimization and gradient descent proofs in prompts?

The best way to structure convex optimization and gradient descent proofs is applying CLRS conventions with clearly labeled sections, theorems, and proof moves. This provides rigorous mathematical formatting and display-block organization aligned with theoretical reasoning.

Can I use CLRS-style prompts for both teaching online learning algorithms and production guidance?

Yes, CLRS-style prompts support both teaching online learning algorithms and production guidance. The structure enforces theoretical alignment for teaching examples while allowing optional production-oriented guidance upon request, maintaining rigorous mathematical reasoning.

How do I format k-means clustering and Lloyd's procedure prompts with explicit model assumptions?

You format k-means clustering and Lloyd's procedure prompts by applying CLRS conventions for mathematical formatting and theorem hooks. This requires frontmatter name and description, explicit model assumptions, and clearly labeled sections for invariants and proofs.

Why does my machine-learning prompt misapply heuristics instead of following theoretical reasoning?

Machine-learning prompts misapply heuristics when they lack CLRS-style guardrails separating textbook models from production practice. Enforcing strict theorem- and proof-oriented reasoning with explicit model assumptions reduces hallucinations and prevents misapplied heuristics.