Spark component enum

From leboncoin/spark-ios · View interactive version

Spark component enum is an AI agent skill from the GitHub repository leboncoin/spark-ios. Create or update an enum file in the Enum folder in Sources of a spark-ios-component-XXX and add or update unit tests.

How to use this skill

Skill file

Add Repository Skill

Overview & Prerequisites

This skill guides you to implement/update an enum in spark component.

Component Selection

Parameter Handling:

Once the component is selected, all operations must be performed in Modules/Components/{component-name}/ folder.

Use the files in the template folder as reference to manage the view model and the unit tests.

Best pratices

If the default value is not indicate on the prompt, use AskUserQuestion to clarify with the user before proceeding. Replace the options by the list of all cases.

Workflow

Code Conventions

Test Implementation

When to Ask for Help

If you encounter:

Use AskUserQuestion to clarify with the user before proceeding.

Collect Missing Information

Use AskUserQuestion to gather any missing information (module name or operation) with clear UI (example for module below):

AskUserQuestion({
  questions: [
    {
      question: "Which case is the default?",
      header: "Module",
      multiSelect: false,
      options: [
        {label: "case1"},
        {label: "case2"},
        {label: "caseX"}
      ]
    }
  ]
})
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.