Skip to content
Back to skills

Scaffold Feature

ASecurity

Scaffold a new Flutter feature using LeanCode architecture standards for project structure and routing to related plugins. Use when adding a new feature and deciding its directory layout.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 25, 2026
ai-agents

Security analysis

A100/100

Scanned September 25, 2026

npx -y skills add leancodepl/ai-plugins --skill scaffold-feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leancodepl-scaffold-feature/badge)](https://www.skillsdirectory.com/skills/leancodepl-scaffold-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold-feature
description: Scaffold a new Flutter feature using LeanCode architecture standards for project structure and routing to related plugins. Use when adding a new feature and deciding its directory layout.
argument-hint: "<feature-name> [--multi-page]"
---
# Scaffold Feature

Create a new feature structure following LeanCode architecture standards.

## Inputs to confirm

1. Confirm the feature name in `snake_case` (e.g. `user_profile`, `booking_details`)
2. Determine whether the feature is single-page or multi-page.
3. If multi-page, confirm the page names before creating directories.

## Structure rules

- Create a dedicated directory for each feature.
- Follow pattern: `features/<feature_name>`.
- Try not to cross-reference features.
- Put each feature part in the same folder. If a feature consists of multiple pages, put each page in a separate subfolder.

## Single-page feature

Keep the feature flat:

```
lib/features/<feature_name>/
  <feature_name>_page.dart
```

## Multi-page feature

Keep one shared feature root plus one directory per page:

```
lib/features/<feature_name>/
  <feature_name>_<page1>/
    <feature_name>_<page1>_page.dart
  <feature_name>_<page2>/
    <feature_name>_<page2>_page.dart
```

## Related architecture steps

- For dependency injection, use `flutter-di`.
- For navigation, use `flutter-navigation`.
- For analytics IDs, use `flutter-analytics`.
- For localization, use `flutter-localization`.
- For state management, use `flutter-bloc`.

## Key Reminders

- Keep the feature structure aligned with `../flutter-leancode-architecture-usage/references/project-structure.md`.
- Reach for dedicated plugins for DI, navigation, analytics, localization, and bloc conventions instead of duplicating that guidance here.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.