E

Easy Create Executor

Boost productivity using this scaffold, feature, boilerplate, code. Includes structured workflows, validation checks, and reusable patterns for project management.

CommandClipticsproject managementv1.0.0MIT
0 views0 copies

Easy Create Executor

Execute creation of new project components including files, modules, services, and configurations with intelligent scaffolding based on existing project patterns.

When to Use This Command

Run this command when...

  • You need to create a new component, service, module, or configuration file following project conventions
  • You want to scaffold a complete feature structure including all required layers in one command
  • A new API endpoint needs route, controller, service, model, and test files generated together
  • You need to create configuration files for tools, CI/CD, or infrastructure that follow best practices
  • You want to generate boilerplate code that matches the exact style and patterns of your existing codebase

Quick Start

# .claude/commands/easy-create-executor.md --- name: Easy Create Executor description: Create new project components with pattern-aware scaffolding command: true --- Create: $ARGUMENTS 1. Parse what needs to be created from arguments 2. Scan existing code for patterns and conventions 3. Generate files following detected conventions 4. Wire into project structure (imports, routes, configs) 5. Create corresponding test files
# Invoke the command claude "/easy-create-executor React component UserProfile with tests and stories" # Expected output # > Detecting project conventions... # > Framework: React + TypeScript # > Component style: Functional with hooks # > Testing: React Testing Library + Jest # > Storybook: v7 with CSF3 format # > Creating: # > src/components/UserProfile/UserProfile.tsx # > src/components/UserProfile/UserProfile.test.tsx # > src/components/UserProfile/UserProfile.stories.tsx # > src/components/UserProfile/UserProfile.module.css # > src/components/UserProfile/index.ts (barrel export) # > Registered in: src/components/index.ts # > Creation complete: 5 files created

Core Concepts

ConceptDescription
Pattern ScanningReads existing components to learn file naming, directory structure, and code style
Type-Aware GenerationGenerates different scaffolding for components, services, hooks, utilities, and configs
Convention MatchingMatches detected conventions for imports, exports, typing, and documentation style
Barrel ExportCreates and updates index files for clean import paths
Test Co-locationPlaces test files according to project convention (co-located or separate test directory)
Create Executor Pattern Detection
====================================

  Scan Existing Code
         |
  +------+------+------+------+
  |      |      |      |      |
  File   Code   Import Export  Test
  naming style  pattern pattern style
         |
  [Template Generation]
  Apply detected patterns to new files
         |
  +------+------+------+
  |      |      |      |
  Source  Test   Config  Barrel
  file   file   file    export

Configuration

ParameterDescriptionDefaultExampleRequired
$ARGUMENTSWhat to create with type and optionsnone"React component Header"Yes
component_typeType of component to createauto-detect"service", "hook", "page"No
include_testsGenerate test files alongside sourcetruefalseNo
include_storiesGenerate Storybook stories if Storybook is detectedtruefalseNo
target_dirDirectory to create the component inconvention-based"src/features/auth"No

Best Practices

  1. Specify the component type explicitly -- "Create React component UserProfile" is clearer than "create UserProfile." The type determines the scaffolding structure.

  2. Always include tests -- Keep include_tests: true to ensure every new component starts with at least a rendering test. Retrofitting tests later is more expensive.

  3. Use existing components as implicit templates -- The executor scans your codebase for patterns. Ensure your existing components follow the conventions you want replicated.

  4. Review generated code immediately -- Scaffolded code is a starting point, not a finished product. Review and customize the generated files before building on top of them.

  5. Create one component per invocation -- Creating multiple unrelated components at once can lead to mixed conventions if the executor detects different patterns in different directories.

Common Issues

Wrong convention detected: If the codebase has mixed styles (class components and functional components), the executor may pick the wrong pattern. Specify the style explicitly or point to a reference file.

Barrel export conflicts: Updating a shared index.ts file can conflict with other developers. Coordinate barrel export updates or use auto-generated barrels as part of the build process.

Generated stories fail: Storybook configuration varies widely. Generated stories may use incorrect decorator syntax or missing providers. Verify the Storybook setup matches the detected version.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates