create-feature

Scaffold SwiftUI feature modules with ViewModel, View, and navigation registration.

2|1|Updated Apr 13, 2025
One-click install
npx skills add https://github.com/Jose-Luis-Nunez/FitnessApp --skill create-feature-jose-luis-nunez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-feature
Source: https://github.com/Jose-Luis-Nunez/FitnessApp/tree/main/.cursor/skills/create-feature
Command: npx skills add https://github.com/Jose-Luis-Nunez/FitnessApp --skill create-feature-jose-luis-nunez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating new SwiftUI features quickly often risks inconsistent project structure and navigation. This skill provides a standard scaffold and templates to align new features with existing conventions.

Core Features & Use Cases

  • Scaffold a new feature folder under FitnessApp/Features/<FeatureName>/ with standard ViewModel, View, and navigation registration.
  • Extend an existing feature by adding a new screen or component following standard conventions.
  • Validate placement and run a checklist to ensure accessibility IDs and tests align with architecture guidelines.

Quick Start

Create a new feature module using the provided scaffold and register it in the app's navigation.

Frequently Asked Questions about create-feature

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

FAQPage Schema
How do I scaffold a new SwiftUI feature module with standard structure?

Scaffold a new SwiftUI feature module by generating a standard Feature folder containing a ViewModel, View, and navigation registration to enforce project architecture conventions and ensure consistent structure.

What's the best way to add a new screen to an existing SwiftUI feature?

Extend an existing SwiftUI feature by adding a new screen or component using standard scaffold templates, validating placement against architecture guidelines to ensure proper navigation entry and ViewModel integration.

Does scaffolding a SwiftUI feature include navigation registration?

Scaffolding a SwiftUI feature includes navigation entry registration, automatically linking the newly generated View and ViewModel into the app's existing navigation flow alongside standard architecture validation.

Can I use this SwiftUI scaffolding approach for picker sheets and extensions?

You can use this SwiftUI scaffolding approach for creating picker sheets and extending existing features, generating the required folder structure and validating accessibility IDs against architecture guidelines.

What conventions are enforced when generating a SwiftUI feature folder?

Generating a SwiftUI feature folder enforces project conventions by standardizing the ViewModel and View structure, adding navigation entry, and running a checklist to validate accessibility IDs and test alignment with architecture guidelines.