algorithm-design

Frame algorithm problems with inputs, outputs, constraints, invariants, and evaluation criteria.

1|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/SSiertsema/claude-code-plugins --skill algorithm-design-ssiertsema
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: algorithm-design
Source: https://github.com/SSiertsema/claude-code-plugins/tree/main/algorithm-design/skills/algorithm-design
Command: npx skills add https://github.com/SSiertsema/claude-code-plugins --skill algorithm-design-ssiertsema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers design robust algorithms before coding by clearly articulating the problem, required inputs/outputs, constraints, invariants, and a plan for evaluation.

Core Features & Use Cases

  • Problem framing: define a precise problem, inputs/outputs, and constraints to anchor the solution.
  • Multiple candidates: compare at least two algorithmic approaches with trade-offs and complexity.
  • Correctness and invariants: state invariants and edge cases to ensure a robust argument.
  • Pseudocode blueprint: provide a language-agnostic, production-ready pseudocode plan for implementation.
  • Review-ready artifacts: generate the documentation and test considerations needed for code review.

Quick Start

Provide a clear problem statement with inputs/outputs/constraints, then outline two candidate approaches with invariants and a pseudocode sketch.

Frequently Asked Questions about algorithm-design

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

FAQPage Schema
How do I design an algorithm with invariants and pseudocode before coding?▼

To design an algorithm, you frame the problem by defining inputs, outputs, constraints, and invariants, then evaluate multiple candidate approaches with complexity trade-offs to generate a production-ready pseudocode plan.

What is the best way to frame algorithm design for rigorous code review?▼

The best way to frame algorithm design for code review is to articulate a complete problem statement, define correctness criteria, state edge cases, and outline a language-agnostic pseudocode plan with trade-offs.

How do I compare multiple algorithmic approaches with trade-offs and complexity?▼

You compare algorithmic approaches by evaluating at least two candidate solutions against defined constraints, analyzing their complexity trade-offs, and selecting the optimal path for your pseudocode blueprint.

Can I use structured problem framing for algorithm interview preparation?▼

Yes, you can use structured problem framing for algorithm interview preparation by articulating problem inputs, outputs, constraints, invariants, and evaluation criteria to rigorously evaluate candidate solutions.

How do I verify algorithm correctness using invariants and edge cases?▼

You verify algorithm correctness by explicitly stating invariants and edge cases during the design phase, ensuring a robust argument that satisfies predefined correctness criteria before implementation.