Index of every page on this site: llms.txt
All skills
marmicode avatar

/charted-design

@fa09f8d
by marmicodemarmicode/skills17 stars
Run it yourself

Interviews the user section by section to collaboratively produce design documents. Use when creating a design doc, starting feature design, or when the user invokes the design command.

Use this Skill: https://skilld.dev/gh/marmicode/skills/charted-design

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

resourcesexample-design-doc.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Goals

  • Users building a weekly meal plan struggle to find relevant recipes in a large catalog.
  • Picking recipes for the plan takes too many steps and breaks the planning flow.
  • Users need confidence they found the right recipe before committing it to the plan.

Non-Goals

  • No server-side search or pagination.
  • No recipe editing or creation from this page.
  • No meal plan scheduling by day or drag-and-drop ordering.

Desired Behavior

  • User sees a search input and a list of recipes below it.
  • Typing in the search input filters visible recipes by title.
  • Clearing the search input shows all recipes again.
  • Each recipe row has an "Add to meal plan" button.
  • Clicking "Add to meal plan" adds the recipe and shows a confirmation.
  • Empty search results show a "No recipes found" message.

Design

  • RecipeSearchPage owns the search input and filtered recipe list.
  • RecipeRepository service provides the full recipe catalog.
  • MealPlanRepository service stores recipes added to the current meal plan.
  • Filtering is case-insensitive substring match on recipe title.

Diagram

flowchart TD
  RecipeRepository(("RecipeRepository"))
  MealPlanRepository(("MealPlanRepository"))

  RecipeSearchPage -->|"[recipes: Recipe[]]"| RecipeList
  RecipeList -->|"(recipeAdd: Recipe)"| RecipeSearchPage
  RecipeSearchPage -->|"search({query: string}): Recipe[]"| RecipeRepository
  RecipeSearchPage -->|"add({recipe: Recipe}): void"| MealPlanRepository

Implementation Details

(Note: this section is removed after the PR Plan is created.)

interface Recipe {
  id: string;
  title: string;
}

interface RecipeRepository {
  getRecipes(): Recipe[];
}

/**
 * Case-insensitive substring match on `title`.
 * Empty query returns every recipe.
 */
function filterRecipes(recipes: Recipe[], query: string): Recipe[];

interface MealPlanRepository {
  addRecipe(recipe: Recipe): void;
}
  • Scaffold RecipeSearchPage with search input and recipe list.
  • Display all recipes from RecipeRepository.
  • Filter recipes by case-insensitive substring match on title.
  • Show "No recipes found" when filter matches nothing.
  • Add MealPlanRepository with addRecipe(recipe: Recipe): void.
  • Add "Add to meal plan" button on each recipe row.
  • Show confirmation toast after a recipe is added.

Testing Strategy

PR Plan

flowchart LR
  PR1["PR#1<br>List recipes"]
  PR2["PR#2<br>Filter recipes"]
  PR3["PR#3<br>Add recipe to meal plan"]

  PR1 --> PR2
  PR1 --> PR3
<details> <summary>🚧 PR#1 — List recipes</summary>

Tasks

  • Add Recipe interface with id and title fields.
  • Add RecipeRepository with getRecipes(): Recipe[].
  • Scaffold RecipeSearchPage with search input and recipe list.
  • Display all recipes from RecipeRepository.

Testing Strategy

🚧 list recipes

  • Mount RecipeSearchPage with fake repository returning 3 recipes.
  • Assert all 3 recipes are displayed with their titles.
</details><details> <summary>🚧 PR#2 — Filter recipes</summary>

Tasks

  • Filter recipes by case-insensitive substring match on title.
  • Show "No recipes found" when filter matches nothing.

Testing Strategy

🚧 filter recipes with matching query

  • Mount RecipeSearchPage with fake repository returning 3 recipes.
  • Type "pasta" in search input.
  • Assert only matching recipes are displayed.

🚧 filter recipes with no results

  • Mount RecipeSearchPage with fake repository returning 3 recipes.
  • Type "xyz" in search input.
  • Assert "No recipes found" message is displayed.
</details><details> <summary>🚧 PR#3 — Add recipe to meal plan</summary>

Tasks

  • Add MealPlanRepository with addRecipe(recipe: Recipe): void.
  • Add "Add to meal plan" button on each recipe row.
  • Show confirmation toast after a recipe is added.

Testing Strategy

🚧 add recipe to meal plan

  • Mount RecipeSearchPage with fake repositories.
  • Click "Add to meal plan" on the first recipe.
  • Assert MealPlanRepository.addRecipe was called with the first recipe.
  • Assert confirmation toast is displayed.
</details>

Alternatives Considered

  • Client-side regex search — Rejected; substring match is simpler and sufficient.
  • Inline meal plan sidebar — Rejected; out of scope; confirmation toast is enough for now.

Kitchen Sink

Open Questions

  • Should search match recipe tags or ingredients too?
  • Should the button be disabled if the recipe is already in the meal plan?

Future Plans

  • Debounce search input for large recipe catalogs.
  • Show meal plan preview on the same page.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo4 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill facilitates collaborative design document creation by interviewing the user and writing the resulting documentation to the workspace. It manages file naming and organization by scanning existing project directories. No security issues were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • Runlayer9mo

    1/1 file flagged

Signed by skilld at fa09f8d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago

README badge

README badge for marmicode/skills/charted-design