sif-soknad-add-step

Scaffold a new Soknad step with routing and i18n wiring.

2|Updated Jun 3, 2022
One-click install
npx skills add https://github.com/navikt/sif-brukerdialog --skill sif-soknad-add-step
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sif-soknad-add-step
Source: https://github.com/navikt/sif-brukerdialog/tree/main/.github/skills/sif-soknad-add-step
Command: npx skills add https://github.com/navikt/sif-brukerdialog --skill sif-soknad-add-step

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Legg til et nytt steg i en søknadsapp ved å automatisere scaffolding av alle filer og oppdatering av konfigurasjon for routing og i18n, slik at steget kan legges til raskt i søknadsflyten.

Core Features & Use Cases

  • Automates scaffolding of all required files for a new step: types, step components, mapping utils, and i18n keys, and wiring into SoknadStepId and stepConfig.
  • Updates exports, Soknadsdata types, and i18n aggregation to ensure the step is routable and data-mapped.
  • Ideal for teams adding new questions or pages to a multi-step Soknad workflow.

Quick Start

Create a new step by running the scaffold which generates the necessary files and updates routing and i18n.

Frequently Asked Questions about sif-soknad-add-step

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

FAQPage Schema
How do I add a new step to a multi-step Soknad workflow in TypeScript?

It automates scaffolding by creating required files and updating configuration across SoknadStepId enums, stepConfig, Soknadsdata types, form-to-data mappings, titles, i18n, and step exports to ensure the new step is fully routable and data-mapped.

What files need to be updated when scaffolding a new Soknad step?

Scaffolding a new Soknad step updates SoknadStepId enums, stepConfig, Soknadsdata types, form-to-data mappings, titles, i18n keys, and step exports to ensure proper typing, routing, and internationalization for the new question or page.

Can I use this scaffold to add internationalization and routing for new application questions?

Yes, the scaffold is designed for SIF apps needing new questions or pages, automatically wiring the new step into routing and i18n aggregation so it is immediately routable and properly translated within the multi-step workflow.

What is the best way to automate form-to-data mapping configuration for a new application step?

The scaffold automates this by generating mapping utilities and updating Soknadsdata types during the step creation process, ensuring the new form components are correctly mapped to the application data structures without manual configuration.

Why does adding a new Soknad step require updating the stepConfig and SoknadStepId enum?

Updating the SoknadStepId enum and stepConfig is required to make the new step routable within the application flow, ensuring the router recognizes the step and the workflow progresses correctly through the newly scaffolded question.