# Feature Prompt Templates

- **Add new component**
  "You are updating forstok-ui-lib. Goal: add a new <ComponentName> under src/components/<name>. Review coding style in src/components/<similar>/ and exports in src/components/index.ts + src/index.ts. Provide styled-components styles, typed props, and ensure no breaking API changes. Include usage notes and build updates."

- **Update existing component behavior**
  "Modify <ComponentName> in src/components/<name>/ to <desired change>. Preserve existing props and `reset/isForceUpdate` patterns. Update types in typed.ts if needed and adjust styles carefully."

- **Change business/UI flow**
  "Adjust component flow for <scenario> (e.g., Select removal confirmation). Identify callbacks (`evChange`, `evCreateMessageQuestion`) and update logic in index.tsx plus helper utilities if necessary. Document risks and update .agent/change-log.md."

- **Add endpoint-like utility**
  "Add new helper in src/assets/javascripts/function.ts for <purpose>. Keep pure/browser-safe, add type definitions, and ensure exports."

- **Update database query**
  "N/A (no DB). If needing data shaping, modify helper functions only and keep types in sync."

- **Refactor module**
  "Refactor <module> for clarity/performance without changing public API. Maintain prop names, CSS variable expectations, and ensure build passes."
