PromptOtherOpen

Skill master prompt to generate SKILL files from codebase

skill-master is a skill for developers who want SKILL files in .claude/skills/ generated from the patterns already in their codebase. It scans a project, compares what it finds with existing skills, and writes or updates skill files that contain real code examples.

What it does

It detects architectural patterns such as ViewModel, Repository and Room and supports multi-platform projects with stack-specific detection. It tracks versions and makes smart updates. In Discover mode it detects the platform from build and config files and reports which skills are missing.

How to use it

Ask it to analyse the project for missing skills, generate skills from codebase patterns, or sync skills; it also triggers on "skill discovery" and "skill-sync".

More in Other and the Business prompt library.

Full text

Front matter
name: skill-master
description: - 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 Anal
kind: Prompt

skill-master


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
  1. Generate SKILL.md using template structure
  2. 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.md → SKILL.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
RepositoryRepository, 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
ServiceIService, class Servicedotnet-service
RepositoryIRepository, 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/PageScreen, 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
RepositoryRepository, 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
RepositoryRepository, protocol Repositorydata-repository
ServiceService, 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

The text continues at the source. Read the rest.

Source and license

Source: https://github.com/f/prompts.chat/blob/main/prompts/01040.md

Author: f, prompts.chat prompt library. License: CC0-1.0.

Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Business prompt library holds 3,008 entries. Members can search all of them by meaning and read every one in full.