Skip to main content

cookbook-add-recipe

Add or extend a ScottPlot Cookbook recipe for an IPlottable, finding the right PlotTypes category or creating one when needed, with minimal style-matched examples.

Source facts

Repository
ScottPlot/ScottPlot
Last source activity
June 21, 2026 at 22:12
Detected SKILL.md language
English
Stars
6,773
Forks
1,016

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
cookbook-add-recipe
description
Add or extend a ScottPlot Cookbook recipe for an IPlottable, finding the right PlotTypes category or creating one when needed, with minimal style-matched examples.
# Cookbook Recipe From IPlottable If no plottable is named, ask before editing. Paths: plottables in `src/ScottPlot5/ScottPlot5/Plottables`; recipes in `src/ScottPlot5/ScottPlot5 Cookbook/Recipes/PlotTypes`. Fast path: 1. Read the target plottable public API. 2. Search existing PlotTypes recipes and read adjacent style. 3. Add a nested `RecipeBase` to an existing category, or create a matching `ICategory` file in `Recipes/PlotTypes`. 4. Keep code minimal, deterministic, and documentation-friendly. 5. Run focused cookbook tests. ```sh rg "class .*:.*IPlottable|class TARGET" src/ScottPlot5/ScottPlot5 rg "TARGET|CategoryName =>" "src/ScottPlot5/ScottPlot5 Cookbook/Recipes/PlotTypes" ``` New category basics: namespace `ScottPlotCookbook.Recipes.PlotTypes`, implement `ICategory`, `Chapter => Chapter.PlotTypes`, one quickstart recipe unless the requested behavior needs something else. Prefer `myPlot.Add.*()` APIs and deterministic `Generate` data. Avoid unnecessary titles, labels, legends, limits, styling, comments, refactors, or cleanup. Validation: ```sh dotnet test "src/ScottPlot5/ScottPlot5 Cookbook/ScottPlot Cookbook.csproj" --filter "FullyQualifiedName~RecipeTests" ``` If the new recipe must render during validation, run the cookbook project without the filter. Report the command and result.
View on GitHub