skill-master

💬 Text🌐 CC0

Unterstützt dich bei skill master mit strukturierten Schritten, klaren Anforderungen und umsetzbaren Ergebnissen für schnellere, saubere Umsetzung.

Prompt


name: skill-master description: Discover codebase patterns and auto-generate SKILL files for .claude/skills/. Use when analyzing project for missing skills, creating new skills from codebase patterns, or syncing skills with project structure. version: 1.0.0

Skill Master

Overview

Analyze codebase to discover patterns and generate/update SKILL files in .claude/skills/. Supports multi-platform projects with stack-specific pattern detection.

Capabilities:

  • Scan codebase for architectural patterns (ViewModel, Repository, Room, etc.)
  • Compare detected patterns with existing skills
  • Auto-generate SKILL files with real code examples
  • Version tracking and smart updates

How the AI discovers and uses this skill

This skill triggers when user:

  • Asks to analyze project for missing skills
  • Requests skill generation from codebase patterns
  • Wants to sync or update existing skills
  • Mentions "skill discovery", "generate skills", or "skill-sync"

Detection signals:

  • .claude/skills/ directory presence
  • Project structure matching known patterns
  • Build/config files indicating platform (see references)

Modes

Discover Mode

Analyze codebase and report missing skills.

Steps:

  1. Detect platform via build/config files (see references)
  2. Scan source roots for pattern indicators
  3. Compare detected patterns with existing .claude/skills/
  4. Output gap analysis report

Output format:

Detected Patterns: {count}
| Pattern | Files Found | Example Location |
|---------|-------------|------------------|
| {name}  | {count}     | {path}           |

Existing Skills: {count}
Missing Skills: {count}
- {skill-name}: {pattern}, {file-count} files found

Generate Mode

Create SKILL files from detected patterns.

Steps:

  1. Run discovery to identify missing skills
  2. For each missing skill:
    • Find 2-3 representative source files
    • Extract: imports, annotations, class structure, conventions
    • Extract rules from .ruler/*.md if present
  3. Generate SKILL.md using template structure
  4. Add version and source marker

Generated SKILL structure:

---
name: {pattern-name}
description: {Generated description with trigger keywords}
version: 1.0.0
---

# {Title}

## Overview
{Brief description from pattern analysis}

## File Structure
{Extracted from codebase}

## Implementation Pattern
{Real code examples - anonymized}

## Rules
### Do
{From .ruler/*.md + codebase conventions}

### Don't
{Anti-patterns found}

## File Location
{Actual paths from codebase}

Create Strategy

When target SKILL file does not exist:

  1. Generate new file using template
  2. Set version: 1.0.0 in frontmatter
  3. Include all mandatory sections
  4. Add source marker at end (see Marker Format)

Update Strategy

Marker check: Look for <!-- Generated by skill-master command at file end.

If marker present (subsequent run):

  • Smart merge: preserve custom content, add missing sections
  • Increment version: major (breaking) / minor (feature) / patch (fix)
  • Update source list in marker

If marker absent (first run on existing file):

  • Backup: SKILL.mdSKILL.md.bak
  • Use backup as source, extract relevant content
  • Generate fresh file with marker
  • Set version: 1.0.0

Marker Format

Place at END of generated SKILL.md:

<!-- Generated by skill-master command
Version: {version}
Sources:
- path/to/source1.kt
- path/to/source2.md
- .ruler/rule-file.md
Last updated: {YYYY-MM-DD}
-->

Platform References

Read relevant reference when platform detected:

PlatformDetection FilesReference
Android/Gradlebuild.gradle, settings.gradlereferences/android.md
iOS/Xcode*.xcodeproj, Package.swiftreferences/ios.md
React (web)package.json + reactreferences/react-web.md
React Nativepackage.json + react-nativereferences/react-native.md
Flutter/Dartpubspec.yamlreferences/flutter.md
Node.jspackage.jsonreferences/node.md
Pythonpyproject.toml, requirements.txtreferences/python.md
Java/JVMpom.xml, build.gradlereferences/java.md
.NET/C#*.csproj, *.slnreferences/dotnet.md
Gogo.modreferences/go.md
RustCargo.tomlreferences/rust.md
PHPcomposer.jsonreferences/php.md
RubyGemfilereferences/ruby.md
Elixirmix.exsreferences/elixir.md
C/C++CMakeLists.txt, Makefilereferences/cpp.md
Unknown-references/generic.md

If multiple platforms detected, read multiple references.

Rules

Do

  • Only extract patterns verified in codebase
  • Use real code examples (anonymize business logic)
  • Include trigger keywords in description
  • Keep SKILL.md under 500 lines
  • Reference external files for detailed content
  • Preserve custom sections during updates
  • Always backup before first modification

Don't

  • Include secrets, tokens, or credentials
  • Include business-specific logic details
  • Generate placeholders without real content
  • Overwrite user customizations without backup
  • Create deep reference chains (max 1 level)
  • Write outside .claude/skills/

Content Extraction Rules

From codebase:

  • Extract: class structures, annotations, import patterns, file locations, naming conventions
  • Never: hardcoded values, secrets, API keys, PII

From .ruler/*.md (if present):

  • Extract: Do/Don't rules, architecture constraints, dependency rules

Output Report

After generation, print:

SKILL GENERATION REPORT

Skills Generated: {count}

{skill-name} [CREATED | UPDATED | BACKED_UP+CREATED]
├── Analyzed: {file-count} source files
├── Sources: {list of source files}
├── Rules from: {.ruler files if any}
└── Output: .claude/skills/{skill-name}/SKILL.md ({line-count} lines)

Validation:
✓ YAML frontmatter valid
✓ Description includes trigger keywords
✓ Content under 500 lines
✓ Has required sections

Safety Constraints

  • Never write outside .claude/skills/
  • Never delete content without backup
  • Always backup before first-time modification
  • Preserve user customizations
  • Deterministic: same input → same output FILE:references/android.md

Android (Gradle/Kotlin)

Detection signals

  • settings.gradle or settings.gradle.kts
  • build.gradle or build.gradle.kts
  • gradle.properties, gradle/libs.versions.toml
  • gradlew, gradle/wrapper/gradle-wrapper.properties
  • app/src/main/AndroidManifest.xml

Multi-module signals

  • Multiple include(...) in settings.gradle*
  • Multiple dirs with build.gradle* + src/
  • Common roots: feature/, core/, library/, domain/, data/

Pre-generation sources

  • settings.gradle* (module list)
  • build.gradle* (root + modules)
  • gradle/libs.versions.toml (dependencies)
  • config/detekt/detekt.yml (if present)
  • **/AndroidManifest.xml

Codebase scan patterns

Source roots

  • */src/main/java/, */src/main/kotlin/

Layer/folder patterns (record if present)

features/, core/, common/, data/, domain/, presentation/, ui/, di/, navigation/, network/

Pattern indicators

PatternDetection CriteriaSkill Name
ViewModel@HiltViewModel, ViewModel(), MVI<viewmodel-mvi
Repository*Repository, *RepositoryImpldata-repository
UseCaseoperator fun invoke, *UseCasedomain-usecase
Room Entity@Entity, @PrimaryKey, @ColumnInforoom-entity
Room DAO@Dao, @Query, @Insert, @Updateroom-dao
MigrationMigration(, @Database(version=room-migration
Type Converter@TypeConverter, @TypeConverterstype-converter
DTO@SerializedName, *Request, *Responsenetwork-dto
Compose Screen@Composable, NavGraphBuilder.compose-screen
Bottom SheetModalBottomSheet, *BottomSheet(bottomsheet-screen
Navigation@Route, NavGraphBuilder., composable(navigation-route
Hilt Module@Module, @Provides, @Binds, @InstallInhilt-module
Worker@HiltWorker, CoroutineWorker, WorkManagerworker-task
DataStoreDataStore<Preferences>, preferencesDataStoredatastore-preference
Retrofit API@GET, @POST, @PUT, @DELETEretrofit-api
Mapper*.toModel(), *.toEntity(), *.toDto()data-mapper
InterceptorInterceptor, intercept()network-interceptor
PagingPagingSource, Pager(, PagingDatapaging-source
Broadcast ReceiverBroadcastReceiver, onReceive(broadcast-receiver
Android Service: Service(), ForegroundServiceandroid-service
NotificationNotificationCompat, NotificationChannelnotification-builder
AnalyticsFirebaseAnalytics, logEventanalytics-event
Feature FlagRemoteConfig, FeatureFlagfeature-flag
App WidgetAppWidgetProvider, GlanceAppWidgetapp-widget
Unit Test@Test, MockK, mockk(, every {unit-test

Mandatory output sections

Include if detected (list actual names found):

  • Features inventory: dirs under feature/
  • Core modules: dirs under core/, library/
  • Navigation graphs: *Graph.kt, *Navigator*.kt
  • Hilt modules: @Module classes, di/ contents
  • Retrofit APIs: *Api.kt interfaces
  • Room databases: @Database classes
  • Workers: @HiltWorker classes
  • Proguard: proguard-rules.pro if present

Command sources

  • README/docs invoking ./gradlew
  • CI workflows with Gradle commands
  • Common: ./gradlew assemble, ./gradlew test, ./gradlew lint
  • Only include commands present in repo

Key paths

  • app/src/main/, app/src/main/res/
  • app/src/main/java/, app/src/main/kotlin/
  • app/src/test/, app/src/androidTest/
  • library/database/migration/ (Room migrations) FILE:README.md

FILE:references/cpp.md

C/C++

Detection signals

  • CMakeLists.txt
  • Makefile, makefile
  • *.cpp, *.c, *.h, *.hpp
  • conanfile.txt, conanfile.py (Conan)
  • vcpkg.json (vcpkg)

Multi-module signals

  • Multiple CMakeLists.txt with add_subdirectory
  • Multiple Makefile in subdirs
  • lib/, src/, modules/ directories

Pre-generation sources

  • CMakeLists.txt (dependencies, targets)
  • conanfile.* (dependencies)
  • vcpkg.json (dependencies)
  • Makefile (build targets)

Codebase scan patterns

Source roots

  • src/, lib/, include/

Layer/folder patterns (record if present)

core/, utils/, network/, storage/, ui/, tests/

Pattern indicators

PatternDetection CriteriaSkill Name
Classclass *, public:, private:cpp-class
Header*.h, *.hpp, #pragma onceheader-file
Templatetemplate<, typename Tcpp-template
Smart Pointerstd::unique_ptr, std::shared_ptrsmart-pointer
RAIIdestructor pattern, ~*()raii-pattern
Singletonstatic *& instance()singleton
Factorycreate*(), make*()factory-pattern
Observersubscribe, notify, callback patternobserver-pattern
Threadstd::thread, std::async, pthreadthreading
Mutexstd::mutex, std::lock_guardsynchronization
Networksocket, asio::, boost::asionetwork-cpp
Serializationnlohmann::json, protobufserialization
Unit TestTEST(, TEST_F(, gtestgtest
Catch2 TestTEST_CASE(, REQUIRE(catch2-test

Mandatory output sections

Include if detected:

  • Core modules: main functionality
  • Libraries: internal libraries
  • Headers: public API
  • Tests: test organization
  • Build targets: executables, libraries

Command sources

  • CMakeLists.txt custom targets
  • Makefile targets
  • README/docs, CI
  • Common: cmake, make, ctest
  • Only include commands present in repo

Key paths

  • src/, include/
  • lib/, libs/
  • tests/, test/
  • build/ (out-of-source) FILE:references/dotnet.md

.NET (C#/F#)

Detection signals

  • *.csproj, *.fsproj
  • *.sln
  • global.json
  • appsettings.json
  • Program.cs, Startup.cs

Multi-module signals

  • Multiple *.csproj files
  • Solution with multiple projects
  • src/, tests/ directories with projects

Pre-generation sources

  • *.csproj (dependencies, SDK)
  • *.sln (project structure)
  • appsettings.json (config)
  • global.json (SDK version)

Codebase scan patterns

Source roots

  • src/, */ (per project)

Layer/folder patterns (record if present)

Controllers/, Services/, Repositories/, Models/, Entities/, DTOs/, Middleware/, Extensions/

Pattern indicators

PatternDetection CriteriaSkill Name
Controller[ApiController], ControllerBase, [HttpGet]aspnet-controller
ServiceI*Service, class *Servicedotnet-service
RepositoryI*Repository, class *Repositorydotnet-repository
Entityclass *Entity, [Table], [Key]ef-entity
DTOclass *Dto, class *Request, class *Responsedto-pattern
DbContext: DbContext, DbSet<ef-dbcontext
MiddlewareIMiddleware, RequestDelegateaspnet-middleware
Background ServiceBackgroundService, IHostedServicebackground-service
MediatR HandlerIRequestHandler<, INotificationHandler<mediatr-handler
SignalR Hub: Hub, [HubName]signalr-hub
Minimal APIapp.MapGet(, app.MapPost(minimal-api
gRPC Service*.proto, : *Basegrpc-service
EF MigrationMigrations/, AddMigrationef-migration
Unit Test[Fact], [Theory], xUnitxunit-test
Integration TestWebApplicationFactory, IClassFixtureintegration-test

Mandatory output sections

Include if detected:

  • Controllers: API endpoints
  • Services: business logic
  • Repositories: data access (EF Core)
  • Entities/DTOs: data models
  • Middleware: request pipeline
  • Background services: hosted services

Command sources

  • *.csproj targets
  • README/docs, CI
  • Common: dotnet build, dotnet test, dotnet run
  • Only include commands present in repo

Key paths

  • src/*/, project directories
  • tests/
  • Migrations/
  • Properties/ FILE:references/elixir.md

Elixir/Erlang

Detection signals

  • mix.exs
  • mix.lock
  • config/config.exs
  • lib/, test/ directories

Multi-module signals

  • Umbrella app (apps/ directory)
  • Multiple mix.exs in subdirs
  • rel/ for releases

Pre-generation sources

  • mix.exs (dependencies, config)
  • config/*.exs (configuration)
  • rel/config.exs (releases)

Codebase scan patterns

Source roots

  • lib/, apps/*/lib/

Layer/folder patterns (record if present)

controllers/, views/, channels/, contexts/, schemas/, workers/

Pattern indicators

PatternDetection CriteriaSkill Name
Phoenix Controlleruse *Web, :controller, def indexphoenix-controller
Phoenix LiveViewuse *Web, :live_view, mount/3phoenix-liveview
Phoenix Channeluse *Web, :channel, join/3phoenix-channel
Ecto Schemause Ecto.Schema, schema "ecto-schema
Ecto Migrationuse Ecto.Migration, create tableecto-migration
Ecto Changesetcast/4, validate_requiredecto-changeset
Contextdefmodule *Context, def list_*phoenix-context
GenServeruse GenServer, handle_callgenserver
Supervisoruse Supervisor, start_linksupervisor
TaskTask.async, Task.Supervisorelixir-task
Oban Workeruse Oban.Worker, perform/1oban-worker
Absintheuse Absinthe.Schema, field :graphql-schema
ExUnit Testuse ExUnit.Case, test "exunit-test

Mandatory output sections

Include if detected:

  • Controllers/LiveViews: HTTP/WebSocket handlers
  • Contexts: business logic
  • Schemas: Ecto models
  • Channels: real-time handlers
  • Workers: background jobs

Command sources

  • mix.exs aliases
  • README/docs, CI
  • Common: mix deps.get, mix test, mix phx.server
  • Only include commands present in repo

Key paths

  • lib/*/, lib/*_web/
  • priv/repo/migrations/
  • test/
  • config/ FILE:references/flutter.md

Flutter/Dart

Detection signals

  • pubspec.yaml
  • lib/main.dart
  • android/, ios/, web/ directories
  • .dart_tool/
  • analysis_options.yaml

Multi-module signals

  • melos.yaml (monorepo)
  • Multiple pubspec.yaml in subdirs
  • packages/ directory

Pre-generation sources

  • pubspec.yaml (dependencies)
  • analysis_options.yaml
  • build.yaml (if using build_runner)
  • lib/main.dart (entry point)

Codebase scan patterns

Source roots

  • lib/, test/

Layer/folder patterns (record if present)

screens/, widgets/, models/, services/, providers/, repositories/, utils/, constants/, bloc/, cubit/

Pattern indicators

PatternDetection CriteriaSkill Name
Screen/Page*Screen, *Page, extends StatefulWidgetflutter-screen
Widgetextends StatelessWidget, extends StatefulWidgetflutter-widget
BLoCextends Bloc<, extends Cubit<bloc-pattern
ProviderChangeNotifier, Provider.of<, context.read<provider-pattern
Riverpod@riverpod, ref.watch, ConsumerWidgetriverpod-provider
GetXGetxController, Get.put, Obx(getx-controller
Repository*Repository, abstract class *Repositorydata-repository
Service*Serviceservice-layer
ModelfromJson, toJson, @JsonSerializablejson-model
Freezed@freezed, part '*.freezed.dart'freezed-model
API ClientDio, http.Client, Retrofitapi-client
NavigationNavigator, GoRouter, auto_routeflutter-navigation
LocalizationAppLocalizations, l10n, intlflutter-l10n
TestingtestWidgets, WidgetTester, flutter_testwidget-test
Integration Testintegration_test, IntegrationTestWidgetsFlutterBindingintegration-test

Mandatory output sections

Include if detected:

  • Screens inventory: dirs under screens/, pages/
  • State management: BLoC, Provider, Riverpod, GetX
  • Navigation setup: GoRouter, auto_route, Navigator
  • DI approach: get_it, injectable, manual
  • API layer: Dio, http, Retrofit
  • Models: Freezed, json_serializable

Command sources

  • pubspec.yaml scripts (if using melos)
  • README/docs
  • Common: flutter run, flutter test, flutter build
  • Only include commands present in repo

Key paths

  • lib/, test/
  • lib/screens/, lib/widgets/
  • lib/bloc/, lib/providers/
  • assets/ FILE:references/generic.md

Generic/Unknown Stack

Fallback reference when no specific platform is detected.

Detection signals

  • No specific build/config files found
  • Mixed technology stack
  • Documentation-only repository

Multi-module signals

  • Multiple directories with separate concerns
  • packages/, modules/, libs/ directories
  • Monorepo structure without specific tooling

Pre-generation sources

  • README.md (project overview)
  • docs/* (documentation)
  • .env.example (environment vars)
  • docker-compose.yml (services)
  • CI files (.github/workflows/, etc.)

Codebase scan patterns

Source roots

  • src/, lib/, app/

Layer/folder patterns (record if present)

api/, core/, utils/, services/, models/, config/, scripts/

Generic pattern indicators

PatternDetection CriteriaSkill Name
Entry Pointmain.*, index.*, app.*entry-point
Configconfig.*, settings.*config-file
API Clientapi/, client/, HTTP callsapi-client
Modelmodel/, types/, data structuresdata-model
Serviceservice/, business logicservice-layer
Utilityutils/, helpers/, common/utility-module
Testtest/, tests/, *_test.*, *.test.*test-file
Scriptscripts/, bin/script-file
Documentationdocs/, *.mddocumentation

Mandatory output sections

Include if detected:

  • Project structure: main directories
  • Entry points: main files
  • Configuration: config files
  • Dependencies: any package manager
  • Build/Run commands: from README/scripts

Command sources

  • README.md (look for code blocks)
  • Makefile, Taskfile.yml
  • scripts/ directory
  • CI workflows
  • Only include commands present in repo

Key paths

  • src/, lib/
  • docs/
  • scripts/
  • config/

Notes

When using this generic reference:

  1. Scan for any recognizable patterns
  2. Document actual project structure found
  3. Extract commands from README if available
  4. Note any technologies mentioned in docs
  5. Keep output minimal and factual FILE:references/go.md

Go

Detection signals

  • go.mod
  • go.sum
  • main.go
  • cmd/, internal/, pkg/ directories

Multi-module signals

  • go.work (workspace)
  • Multiple go.mod files
  • cmd/*/main.go (multiple binaries)

Pre-generation sources

  • go.mod (dependencies)
  • Makefile (build commands)
  • config/*.yaml or *.toml

Codebase scan patterns

Source roots

  • cmd/, internal/, pkg/

Layer/folder patterns (record if present)

handler/, service/, repository/, model/, middleware/, config/, util/

Pattern indicators

PatternDetection CriteriaSkill Name
HTTP Handlerhttp.Handler, http.HandlerFunc, gin.Contexthttp-handler
Gin Routegin.Engine, r.GET(, r.POST(gin-route
Echo Routeecho.Echo, e.GET(, e.POST(echo-route
Fiber Routefiber.App, app.Get(, app.Post(fiber-route
gRPC Service*.proto, pb.*Servergrpc-service
Repositorytype *Repository interface, *Repositorydata-repository
Servicetype *Service interface, *Serviceservice-layer
GORM Modelgorm.Model, *gorm.DBgorm-model
sqlxsqlx.DB, sqlx.NamedExecsqlx-usage
Migrationgoose, golang-migratedb-migration
Middlewarefunc(*Context), middleware.*go-middleware
Workergo func(), sync.WaitGroup, errgroupworker-goroutine
Configviper, envconfig, cleanenvconfig-loader
Unit Test*_test.go, func Test*(t *testing.T)go-test
Mockmockgen, *_mock.gogo-mock

Mandatory output sections

Include if detected:

  • HTTP handlers: API endpoints
  • Services: business logic
  • Repositories: data access
  • Models: data structures
  • Middleware: request interceptors
  • Migrations: database migrations

Command sources

  • Makefile targets
  • README/docs, CI
  • Common: go build, go test, go run
  • Only include commands present in repo

Key paths

  • cmd/, internal/, pkg/
  • api/, handler/
  • migrations/
  • config/ FILE:references/ios.md

iOS (Xcode/Swift)

Detection signals

  • *.xcodeproj, *.xcworkspace
  • Package.swift (SPM)
  • Podfile, Podfile.lock (CocoaPods)
  • Cartfile (Carthage)
  • *.pbxproj
  • Info.plist

Multi-module signals

  • Multiple targets in *.xcodeproj
  • Multiple Package.swift files
  • Workspace with multiple projects
  • Modules/, Packages/, Features/ directories

Pre-generation sources

  • *.xcodeproj/project.pbxproj (target list)
  • Package.swift (dependencies, targets)
  • Podfile (dependencies)
  • *.xcconfig (build configs)
  • Info.plist files

Codebase scan patterns

Source roots

  • */Sources/, */Source/
  • */App/, */Core/, */Features/

Layer/folder patterns (record if present)

Models/, Views/, ViewModels/, Services/, Networking/, Utilities/, Extensions/, Coordinators/

Pattern indicators

PatternDetection CriteriaSkill Name
SwiftUI Viewstruct *: View, var body: some Viewswiftui-view
UIKit VCUIViewController, viewDidLoad()uikit-viewcontroller
ViewModel@Observable, ObservableObject, @Publishedviewmodel-observable
CoordinatorCoordinator, *Coordinatorcoordinator-pattern
Repository*Repository, protocol *Repositorydata-repository
Service*Service, protocol *Serviceservice-layer
Core DataNSManagedObject, @NSManaged, .xcdatamodeldcoredata-entity
RealmObject, @Persistedrealm-model
NetworkURLSession, Alamofire, Moyanetwork-client
Dependency@Inject, Container, Swinjectdi-container
NavigationNavigationStack, NavigationPathnavigation-swiftui
CombinePublisher, AnyPublisher, sinkcombine-publisher
Async/Awaitasync, await, Task {async-await
Unit TestXCTestCase, func test*()xctest
UI TestXCUIApplication, XCUIElementxcuitest

Mandatory output sections

Include if detected:

  • Targets inventory: list from pbxproj
  • Modules/Packages: SPM packages, Pods
  • View architecture: SwiftUI vs UIKit
  • State management: Combine, Observable, etc.
  • Networking layer: URLSession, Alamofire, etc.
  • Persistence: Core Data, Realm, UserDefaults
  • DI setup: Swinject, manual injection

Command sources

  • README/docs with xcodebuild commands
  • fastlane/Fastfile lanes
  • CI workflows (.github/workflows/, .gitlab-ci.yml)
  • Common: xcodebuild test, fastlane test
  • Only include commands present in repo

Key paths

  • */Sources/, */Tests/
  • *.xcodeproj/, *.xcworkspace/
  • Pods/ (if CocoaPods)
  • Packages/ (if SPM local packages) FILE:references/java.md

Java/JVM (Spring, etc.)

Detection signals

  • pom.xml (Maven)
  • build.gradle, build.gradle.kts (Gradle)
  • settings.gradle (multi-module)
  • src/main/java/, src/main/kotlin/
  • application.properties, application.yml

Multi-module signals

  • Multiple pom.xml with <modules>
  • Multiple build.gradle with include()
  • modules/, services/ directories

Pre-generation sources

  • pom.xml or build.gradle* (dependencies)
  • application.properties/yml (config)
  • settings.gradle (modules)
  • docker-compose.yml (services)

Codebase scan patterns

Source roots

  • src/main/java/, src/main/kotlin/
  • src/test/java/, src/test/kotlin/

Layer/folder patterns (record if present)

controller/, service/, repository/, model/, entity/, dto/, config/, exception/, util/

Pattern indicators

PatternDetection CriteriaSkill Name
REST Controller@RestController, @GetMapping, @PostMappingspring-controller
Service@Service, class *Servicespring-service
Repository@Repository, JpaRepository, CrudRepositoryspring-repository
Entity@Entity, @Table, @Idjpa-entity
DTOclass *DTO, class *Request, class *Responsedto-pattern
Config@Configuration, @Beanspring-config
Component@Component, @Autowiredspring-component
Security@EnableWebSecurity, SecurityFilterChainspring-security
Validation@Valid, @NotNull, @Sizevalidation-pattern
Exception Handler@ControllerAdvice, @ExceptionHandlerexception-handler
Scheduler@Scheduled, @EnableSchedulingscheduled-task
EventApplicationEvent, @EventListenerevent-listener
Flyway MigrationV*__*.sql, flywayflyway-migration
Liquibasechangelog*.xml, liquibaseliquibase-migration
Unit Test@Test, @SpringBootTest, MockMvcspring-test
Integration Test@DataJpaTest, @WebMvcTestintegration-test

Mandatory output sections

Include if detected:

  • Controllers: REST endpoints
  • Services: business logic
  • Repositories: data access (JPA, JDBC)
  • Entities/DTOs: data models
  • Configuration: Spring beans, profiles
  • Security: auth config

Command sources

  • pom.xml plugins, build.gradle tasks
  • README/docs, CI
  • Common: ./mvnw, ./gradlew, mvn test, gradle test
  • Only include commands present in repo

Key paths

  • src/main/java/, src/main/kotlin/
  • src/main/resources/
  • src/test/
  • db/migration/ (Flyway) FILE:references/node.md

Node.js

Detection signals

  • package.json (without react/react-native)
  • tsconfig.json
  • node_modules/
  • *.js, *.ts, *.mjs, *.cjs entry files

Multi-module signals

  • pnpm-workspace.yaml, lerna.json
  • nx.json, turbo.json
  • Multiple package.json in subdirs
  • packages/, apps/ directories

Pre-generation sources

  • package.json (dependencies, scripts)
  • tsconfig.json (paths, compiler options)
  • .env.example (env vars)
  • docker-compose.yml (services)

Codebase scan patterns

Source roots

  • src/, lib/, app/

Layer/folder patterns (record if present)

controllers/, services/, models/, routes/, middleware/, utils/, config/, types/, repositories/

Pattern indicators

PatternDetection CriteriaSkill Name
Express Routeapp.get(, app.post(, Router()express-route
Express Middleware(req, res, next), app.use(express-middleware
NestJS Controller@Controller, @Get, @Postnestjs-controller
NestJS Service@Injectable, @Servicenestjs-service
NestJS Module@Module, imports:, providers:nestjs-module
Fastify Routefastify.get(, fastify.post(fastify-route
GraphQL Resolver@Resolver, @Query, @Mutationgraphql-resolver
TypeORM Entity@Entity, @Column, @PrimaryGeneratedColumntypeorm-entity
Prisma Modelprisma.*.create, prisma.*.findManyprisma-usage
Mongoose Modelmongoose.Schema, mongoose.model(mongoose-model
Sequelize ModelModel.init, DataTypessequelize-model
Queue WorkerBull, BullMQ, process(queue-worker
Cron Job@Cron, node-cron, cron.schedulecron-job
WebSocketws, socket.io, io.on(websocket-handler
Unit Testdescribe(, it(, expect(, jestjest-test
E2E Testsupertest, request(app)e2e-test

Mandatory output sections

Include if detected:

  • Routes/controllers: API endpoints
  • Services layer: business logic
  • Database: ORM/ODM usage (TypeORM, Prisma, Mongoose)
  • Middleware: auth, validation, error handling
  • Background jobs: queues, cron jobs
  • WebSocket handlers: real-time features

Command sources

  • package.json scripts section
  • README/docs
  • CI workflows
  • Common: npm run dev, npm run build, npm test
  • Only include commands present in repo

Key paths

  • src/, lib/
  • src/routes/, src/controllers/
  • src/services/, src/models/
  • prisma/, migrations/ FILE:references/php.md

PHP

Detection signals

  • composer.json, composer.lock
  • public/index.php
  • artisan (Laravel)
  • spark (CodeIgniter 4)
  • bin/console (Symfony)
  • app/Config/App.php (CodeIgniter 4)
  • ext-phalcon in composer.json (Phalcon)
  • phalcon/devtools (Phalcon)

Multi-module signals

  • packages/ directory
  • Laravel modules (app/Modules/)
  • CodeIgniter modules (app/Modules/, modules/)
  • Phalcon multi-app (apps/*/)
  • Multiple composer.json in subdirs

Pre-generation sources

  • composer.json (dependencies)
  • .env.example (env vars)
  • config/*.php (Laravel/Symfony)
  • routes/*.php (Laravel)
  • app/Config/* (CodeIgniter 4)
  • apps/*/config/ (Phalcon)

Codebase scan patterns

Source roots

  • app/, src/, apps/

Layer/folder patterns (record if present)

Controllers/, Services/, Repositories/, Models/, Entities/, Http/, Providers/, Console/

Framework-specific structures

Laravel (record if present):

  • app/Http/Controllers, app/Models, database/migrations
  • routes/*.php, resources/views

Symfony (record if present):

  • src/Controller, src/Entity, config/packages, templates

CodeIgniter 4 (record if present):

  • app/Controllers, app/Models, app/Views
  • app/Config/Routes.php, app/Database/Migrations

Phalcon (record if present):

  • apps/*/controllers/, apps/*/Module.php
  • models/, views/

Pattern indicators

PatternDetection CriteriaSkill Name
Laravel Controllerextends Controller, public function indexlaravel-controller
Laravel Modelextends Model, protected $fillablelaravel-model
Laravel Migrationextends Migration, Schema::createlaravel-migration
Laravel Serviceclass *Service, app/Services/laravel-service
Laravel Repository*Repository, interface *Repositorylaravel-repository
Laravel Jobimplements ShouldQueue, dispatch(laravel-job
Laravel Eventextends Event, event(laravel-event
Symfony Controller#[Route], AbstractControllersymfony-controller
Symfony Service#[AsService], services.yamlsymfony-service
Doctrine Entity#[ORM\Entity], #[ORM\Column]doctrine-entity
Doctrine MigrationAbstractMigration, $this->addSqldoctrine-migration
CI4 Controllerextends BaseController, app/Controllers/ci4-controller
CI4 Modelextends Model, protected $tableci4-model
CI4 Migrationextends Migration, $this->forge->ci4-migration
CI4 Entityextends Entity, app/Entities/ci4-entity
Phalcon Controllerextends Controller, Phalcon\Mvc\Controllerphalcon-controller
Phalcon Modelextends Model, Phalcon\Mvc\Modelphalcon-model
Phalcon MigrationPhalcon\Migrations, morphTablephalcon-migration
API Resourceextends JsonResource, toArrayapi-resource
Form Requestextends FormRequest, rules()form-request
Middlewareimplements Middleware, handle(php-middleware
Unit Testextends TestCase, test*(), PHPUnitphpunit-test
Feature Testextends TestCase, $this->get(, $this->post(feature-test

Mandatory output sections

Include if detected:

  • Controllers: HTTP endpoints
  • Models/Entities: data layer
  • Services: business logic
  • Repositories: data access
  • Migrations: database changes
  • Jobs/Events: async processing
  • Business modules: top modules by size

Command sources

  • composer.json scripts
  • php artisan (Laravel)
  • php spark (CodeIgniter 4)
  • bin/console (Symfony)
  • phalcon devtools commands
  • README/docs, CI
  • Only include commands present in repo

Key paths

Laravel:

  • app/, routes/, database/migrations/
  • resources/views/, tests/

Symfony:

  • src/, config/, templates/
  • migrations/, tests/

CodeIgniter 4:

  • app/Controllers/, app/Models/, app/Views/
  • app/Database/Migrations/, tests/

Phalcon:

  • apps/*/controllers/, apps/*/models/
  • apps/*/views/, migrations/ FILE:references/python.md

Python

Detection signals

  • pyproject.toml
  • requirements.txt, requirements-dev.txt
  • Pipfile, poetry.lock
  • setup.py, setup.cfg
  • manage.py (Django)

Multi-module signals

  • Multiple pyproject.toml in subdirs
  • packages/, apps/ directories
  • Django-style apps/ with apps.py

Pre-generation sources

  • pyproject.toml or setup.py
  • requirements*.txt, Pipfile
  • tox.ini, pytest.ini
  • manage.py, settings.py (Django)

Codebase scan patterns

Source roots

  • src/, app/, packages/, tests/

Layer/folder patterns (record if present)

api/, routers/, views/, services/, repositories/, models/, schemas/, utils/, config/

Pattern indicators

PatternDetection CriteriaSkill Name
FastAPI RouterAPIRouter, @router.get, @router.postfastapi-router
FastAPI DependencyDepends(, def get_*():fastapi-dependency
Django ViewView, APIView, def get(self, request)django-view
Django Modelmodels.Model, class Meta:django-model
Django Serializerserializers.Serializer, ModelSerializerdrf-serializer
Flask Route@app.route, Blueprintflask-route
Pydantic ModelBaseModel, Field(, model_validatorpydantic-model
SQLAlchemy ModelBase, Column(, relationship(sqlalchemy-model
Alembic Migrationalembic/versions/, op.create_tablealembic-migration
Repository*Repository, class *Repositorydata-repository
Service*Service, class *Serviceservice-layer
Celery Task@celery.task, @shared_taskcelery-task
CLI Command@click.command, typer.Typercli-command
Unit Testpytest, def test_*():, unittestpytest-test
Fixture@pytest.fixture, conftest.pypytest-fixture

Mandatory output sections

Include if detected:

  • Routers/views: API endpoints
  • Models/schemas: data models (Pydantic, SQLAlchemy, Django)
  • Services: business logic layer
  • Repositories: data access layer
  • Migrations: Alembic, Django migrations
  • Tasks: Celery, background jobs

Command sources

  • pyproject.toml tool sections
  • README/docs, CI
  • Common: python manage.py, pytest, uvicorn, flask run
  • Only include commands present in repo

Key paths

  • src/, app/
  • tests/
  • alembic/, migrations/
  • templates/, static/ (if web) FILE:references/react-native.md

React Native

Detection signals

  • package.json with react-native
  • metro.config.js
  • app.json or app.config.js (Expo)
  • android/, ios/ directories
  • babel.config.js with metro preset

Multi-module signals

  • Monorepo with packages/
  • Multiple app.json files
  • Nx workspace with React Native

Pre-generation sources

  • package.json (dependencies, scripts)
  • app.json or app.config.js
  • metro.config.js
  • babel.config.js
  • tsconfig.json

Codebase scan patterns

Source roots

  • src/, app/

Layer/folder patterns (record if present)

screens/, components/, navigation/, services/, hooks/, store/, api/, utils/, assets/

Pattern indicators

PatternDetection CriteriaSkill Name
Screen*Screen, export function *Screenrn-screen
Componentexport function *(), StyleSheet.creatern-component
NavigationcreateNativeStackNavigator, NavigationContainerrn-navigation
Hookuse*, export function use*()rn-hook
ReduxcreateSlice, configureStoreredux-slice
Zustandcreate(, useStorezustand-store
React QueryuseQuery, useMutationreact-query
Native ModuleNativeModules, TurboModulenative-module
Async StorageAsyncStorage, @react-native-async-storageasync-storage
SQLiteexpo-sqlite, react-native-sqlite-storagesqlite-storage
Push Notification@react-native-firebase/messaging, expo-notificationspush-notification
Deep LinkLinking, useURL, expo-linkingdeep-link
AnimationAnimated, react-native-reanimatedrn-animation
Gesturereact-native-gesture-handler, Gesturern-gesture
Testing@testing-library/react-native, renderrntl-test

Mandatory output sections

Include if detected:

  • Screens inventory: dirs under screens/
  • Navigation structure: stack, tab, drawer navigators
  • State management: Redux, Zustand, Context
  • Native modules: custom native code
  • Storage layer: AsyncStorage, SQLite, MMKV
  • Platform-specific: *.android.tsx, *.ios.tsx

Command sources

  • package.json scripts
  • README/docs
  • Common: npm run android, npm run ios, npx expo start
  • Only include commands present in repo

Key paths

  • src/screens/, src/components/
  • src/navigation/, src/store/
  • android/app/, ios/*/
  • assets/ FILE:references/react-web.md

React (Web)

Detection signals

  • package.json with react, react-dom
  • vite.config.ts, next.config.js, craco.config.js
  • tsconfig.json or jsconfig.json
  • src/App.tsx or src/App.jsx
  • public/index.html (CRA)

Multi-module signals

  • pnpm-workspace.yaml, lerna.json
  • Multiple package.json in subdirs
  • packages/, apps/ directories
  • Nx workspace (nx.json)

Pre-generation sources

  • package.json (dependencies, scripts)
  • tsconfig.json (paths, compiler options)
  • vite.config.*, next.config.*, webpack.config.*
  • .env.example (env vars)

Codebase scan patterns

Source roots

  • src/, app/, pages/

Layer/folder patterns (record if present)

components/, hooks/, services/, utils/, store/, api/, types/, contexts/, features/, layouts/

Pattern indicators

PatternDetection CriteriaSkill Name
Componentexport function *(), export const * = with JSXreact-component
Hookuse*, export function use*()custom-hook
ContextcreateContext, useContext, *Providerreact-context
ReduxcreateSlice, configureStore, useSelectorredux-slice
Zustandcreate(, useStorezustand-store
React QueryuseQuery, useMutation, QueryClientreact-query
FormuseForm, react-hook-form, Formikform-handling
RoutercreateBrowserRouter, Route, useNavigatereact-router
API Clientaxios, fetch, kyapi-client
Testing@testing-library/react, render, screenrtl-test
Storybook*.stories.tsx, Meta, StoryObjstorybook
Styledstyled-components, @emotion, styled(styled-component
TailwindclassName="*", tailwind.config.jstailwind-usage
i18nuseTranslation, i18next, t()i18n-usage
AuthuseAuth, AuthProvider, PrivateRouteauth-pattern

Mandatory output sections

Include if detected:

  • Components inventory: dirs under components/
  • Features/pages: dirs under features/, pages/
  • State management: Redux, Zustand, Context
  • Routing setup: React Router, Next.js pages
  • API layer: axios instances, fetch wrappers
  • Styling approach: CSS modules, Tailwind, styled-components
  • Form handling: react-hook-form, Formik

Command sources

  • package.json scripts section
  • README/docs
  • CI workflows
  • Common: npm run dev, npm run build, npm test
  • Only include commands present in repo

Key paths

  • src/components/, src/hooks/
  • src/pages/, src/features/
  • src/store/, src/api/
  • public/, dist/, build/ FILE:references/ruby.md

Ruby/Rails

Detection signals

  • Gemfile
  • Gemfile.lock
  • config.ru
  • Rakefile
  • config/application.rb (Rails)

Multi-module signals

  • Multiple Gemfile in subdirs
  • engines/ directory (Rails engines)
  • gems/ directory (monorepo)

Pre-generation sources

  • Gemfile (dependencies)
  • config/database.yml
  • config/routes.rb (Rails)
  • .env.example

Codebase scan patterns

Source roots

  • app/, lib/

Layer/folder patterns (record if present)

controllers/, models/, services/, jobs/, mailers/, channels/, helpers/, concerns/

Pattern indicators

PatternDetection CriteriaSkill Name
Rails Controller< ApplicationController, def indexrails-controller
Rails Model< ApplicationRecord, has_many, belongs_torails-model
Rails Migration< ActiveRecord::Migration, create_tablerails-migration
Service Objectclass *Service, def callservice-object
Rails Job< ApplicationJob, perform_laterrails-job
Mailer< ApplicationMailer, mail(rails-mailer
Channel< ApplicationCable::Channelaction-cable
Serializer< ActiveModel::Serializer, attributesserializer
Concernextend ActiveSupport::Concernrails-concern
Sidekiq Workerinclude Sidekiq::Worker, perform_asyncsidekiq-worker
Grape APIGrape::API, resource :grape-api
RSpec TestRSpec.describe, it "rspec-test
FactoryFactoryBot.define, factory :factory-bot
Rake Tasktask :, namespace :rake-task

Mandatory output sections

Include if detected:

  • Controllers: HTTP endpoints
  • Models: ActiveRecord associations
  • Services: business logic
  • Jobs: background processing
  • Migrations: database schema

Command sources

  • Gemfile scripts
  • Rakefile tasks
  • bin/rails, bin/rake
  • README/docs, CI
  • Only include commands present in repo

Key paths

  • app/controllers/, app/models/
  • app/services/, app/jobs/
  • db/migrate/
  • spec/, test/
  • lib/ FILE:references/rust.md

Rust

Detection signals

  • Cargo.toml
  • Cargo.lock
  • src/main.rs or src/lib.rs
  • target/ directory

Multi-module signals

  • [workspace] in Cargo.toml
  • Multiple Cargo.toml in subdirs
  • crates/, packages/ directories

Pre-generation sources

  • Cargo.toml (dependencies, features)
  • build.rs (build script)
  • rust-toolchain.toml (toolchain)

Codebase scan patterns

Source roots

  • src/, crates/*/src/

Layer/folder patterns (record if present)

handlers/, services/, models/, db/, api/, utils/, error/, config/

Pattern indicators

PatternDetection CriteriaSkill Name
Axum Handleraxum::, Router, async fn handleraxum-handler
Actix Routeactix_web::, #[get], #[post]actix-route
Rocket Routerocket::, #[get], #[post]rocket-route
Serviceimpl *Service, pub struct *Servicerust-service
Repository*Repository, trait *Repositoryrust-repository
Diesel Modeldiesel::, Queryable, Insertablediesel-model
SQLxsqlx::, FromRow, query_as!sqlx-model
SeaORMsea_orm::, Entity, ActiveModelseaorm-entity
Error Typethiserror, anyhow, #[derive(Error)]error-type
CLIclap, #[derive(Parser)]cli-app
Async Tasktokio::spawn, async fnasync-task
Traitpub trait *, impl * forrust-trait
Unit Test#[cfg(test)], #[test]rust-test
Integration Testtests/, #[tokio::test]integration-test

Mandatory output sections

Include if detected:

  • Handlers/routes: API endpoints
  • Services: business logic
  • Models/entities: data structures
  • Error types: custom errors
  • Migrations: diesel/sqlx migrations

Command sources

  • Cargo.toml scripts/aliases
  • Makefile, README/docs
  • Common: cargo build, cargo test, cargo run
  • Only include commands present in repo

Key paths

  • src/, crates/
  • tests/
  • migrations/
  • examples/

Öffnen in

Ähnliche Community Prompts

Architekt

🌐 CC0

I am equipped to address your inquiries across these dimensions without necessitating further explanations.

CodingSchreibenBusiness

Kanban-Coach

🌐 CC0

Build a Kanban project management board using HTML5, CSS3, and JavaScript.

CodingSchreibenBusiness

Text-Editor

🌐 CC0

Develop a web-based image editor using HTML5 Canvas, CSS3, and JavaScript.

CodingSchreibenBusiness

ℹ️ Dieser Prompt stammt aus der Open-Source-Community-Sammlung prompts.chat und steht unter der CC0-Lizenz (Public Domain). Kostenlos für jeden Einsatz.

Quelle: prompts.chatBeitrag von: b.atalay007@gmail.comLizenz: CC0