new-example

Create numbered interview example modules with routing, navigation, and translations.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Hallinna/interveiw-study-2026 --skill new-example
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-example
Source: https://github.com/Hallinna/interveiw-study-2026/tree/main/.claude/skills/new-example
Command: npx skills add https://github.com/Hallinna/interveiw-study-2026 --skill new-example

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inconsistent, error-prone setup when adding a brand-new interview study topic by guiding you through the exact code, routing, navigation, and i18n wiring required for a new example.

Core Features & Use Cases

  • Topics scaffolding: Creates the next correctly numbered example folder and a properly structured TSX component.
  • App integration: Registers the new example in App.tsx via import ordering and a slug-to-component map entry.
  • Navigation + i18n coverage: Adds the new route id to Navigation.tsx and ensures the nav item key exists for all supported locales.

Quick Start

Add a new interview example by selecting the next src/examples/<nn>-<slug> folder name and implementing your TopicNameExample.tsx, then register it in App.tsx, Navigation.tsx, and all three locales in src/i18n/translations.ts.

Frequently Asked Questions about new-example

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

FAQPage Schema
How do I add a new interview topic to a React app with routing and i18n?

To add a new interview topic, you create the next numbered example module, wire it into App.tsx routing, add it to Navigation.tsx, and update translations.ts for en/de/fr locales. This requires a root SKILL.md with YAML frontmatter and a structured TSX Example component.

What is the best way to scaffold a TypeScript React component for a new study section?

Scaffolding a TypeScript React component involves creating the next src/examples/<nn>-<slug> folder and implementing your TopicNameExample.tsx. You then register the slug-to-component map entry in App.tsx to maintain consistent slug-based navigation across categories.

How do I register a new route in React navigation and ensure translations for en, de, and fr?

You register a new route by adding the route id to Navigation.tsx and ensuring the nav item key exists for all supported locales in translations.ts. This guarantees i18n coverage for English, German, and French discovery across the app.

Does adding a new example module require updating App.tsx and Navigation.tsx manually?

Yes, adding a new example module requires manual updates to App.tsx for import ordering and slug-to-component mapping, plus updates to Navigation.tsx. You must also update translations.ts to maintain complete en/de/fr locale coverage.

Why does my new interview example not appear in React navigation after creating the folder?

Your new interview example may not appear because it lacks proper wiring in App.tsx routing, Navigation.tsx route registration, or translations.ts nav item keys. Consistent slug-based navigation requires all three updates for full i18n discovery.

Can I use this scaffolding approach for JavaScript and TypeScript React categories?

Yes, this scaffolding approach applies to onboarding new study sections and adding example demos across both JavaScript and TypeScript React categories. It maintains consistent slug-based navigation and requires a structured Example component following project rules.