Cookbook Add Recipe
Developmentcookbook-add-recipeCookbook Add Recipe is an Agent Skill for development published in the ScottPlot/ScottPlot repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/ScottPlot/ScottPlot/blob/HEAD/.agents/skills/cookbook-add-recipe/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cookbook-add-recipe, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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:
- Read the target plottable public API.
- Search existing PlotTypes recipes and read adjacent style.
- Add a nested
RecipeBaseto an existing category, or create a matchingICategoryfile inRecipes/PlotTypes. - Keep code minimal, deterministic, and documentation-friendly.
- Run focused cookbook tests.
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:
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.