Update Prethink context (no AI)
Recipe ID
io.moderne.prethink.UpdatePrethinkContextNoAiStarterArtifact
io.moderne.recipe:rewrite-prethinkDeprecated alias for io.moderne.prethink.UpdatePrethinkContextStarter, retained for backward compatibility with references to the former recipe name. Prethink no longer has an AI-based variant, so the "(no AI)" distinction is unnecessary. Use io.moderne.prethink.UpdatePrethinkContextStarter instead.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe io.moderne.prethink.UpdatePrethinkContextNoAiStarterIf the recipe isn’t available locally, install it with:
mod config recipes jar install io.moderne.recipe:rewrite-prethink:0.11.1Definition
This recipe runs the following recipes in order.
- Update Prethink context
io.moderne.prethink.UpdatePrethinkContextStarter
Data tables
Structured output this recipe can produce.
- Project metadataProject-level identity and structure for each build module. Includes Maven GAV coordinates, display name, description, parent project lineage, and submodule count. Use this to understand what the project is, how it relates to parent projects, and whether it is a multi-module aggregator.
org.openrewrite.prethink.table.ProjectMetadata - Service endpointsREST/HTTP endpoints exposed by the application.
org.openrewrite.prethink.table.ServiceEndpoints - Endpoint request/response schemasPer-endpoint request body and response body bindings, one row per (endpoint, status code) pair. Supports OpenAPI 3.0.3 generation by giving the LLM a full mapping from handler to body DTO FQNs.
io.moderne.prethink.table.EndpointSchemas - Endpoint parametersPer-parameter detail for REST endpoint handlers - path, query, header, form. Join to service-endpoints.csv via endpointId.
io.moderne.prethink.table.EndpointParameters - Database connectionsDatabase connections and data access patterns in the application.
org.openrewrite.prethink.table.DatabaseConnections - External service callsOutbound HTTP/REST calls to external services.
org.openrewrite.prethink.table.ExternalServiceCalls - Messaging connectionsMessage queue producers and consumers in the application.
org.openrewrite.prethink.table.MessagingConnections - Server configurationServer configuration properties extracted from application.properties/yml.
org.openrewrite.prethink.table.ServerConfiguration - Data assetsData entities, DTOs, and records that represent the application's data model.
org.openrewrite.prethink.table.DataAssets - DTO field schemasPer-field schema detail for request/response DTOs: wire name, type, required flag, OpenAPI format, validation constraints, and any @Schema(example=) example values.
io.moderne.prethink.table.DtoFieldSchemas - Field example valuesRaw (fixturePath, jsonPath, value, valueType) rows mined from JSON fixture files. Supply realistic example payloads for contract test generation. LLM correlates jsonPath to DTO fields at spec/contract generation time.
io.moderne.prethink.table.FieldExamples - Deployment artifactsDeployment configuration files (Dockerfile, Kubernetes manifests, docker-compose).
org.openrewrite.prethink.table.DeploymentArtifacts - Security configurationSecurity configuration including authentication methods, CORS settings, and OAuth2 configuration.
org.openrewrite.prethink.table.SecurityConfiguration - Service componentsService layer components (@Service, @Component, @Named) in the application.
org.openrewrite.prethink.table.ServiceComponents - Scheduled tasksScheduled tasks, cron jobs, and background processing detected in the application.
io.moderne.prethink.table.ScheduledTasks - Coding conventionsCoding conventions and patterns detected in the codebase.
org.openrewrite.prethink.table.CodingConventions - Error handling patternsError and exception handling patterns detected in the codebase.
org.openrewrite.prethink.table.ErrorHandlingPatterns - Exception handlersSpring @ExceptionHandler/@ControllerAdvice and JAX-RS ExceptionMapper bindings: exception type -> HTTP status -> response body FQN. Used to complete the 'responses' section of an OpenAPI spec with non-2xx branches.
io.moderne.prethink.table.ExceptionHandlers - Endpoint securityPer-endpoint security requirements: roles, scopes, and the raw SpEL/permission expressions from @PreAuthorize/@Secured/@RolesAllowed at method or class level.
io.moderne.prethink.table.EndpointSecurity - Dependency usageExternal library dependencies and how they are used in the codebase.
org.openrewrite.prethink.table.DependencyUsage - CALM relationshipsMethod call graph for discovering relationships between architectural entities. Records all method calls within the repository with entity markers for graph traversal.
org.openrewrite.prethink.table.CalmRelationships - Method quality metricsPer-method code quality metrics including cyclomatic complexity, cognitive complexity, nesting depth, Halstead measures, and ABC metric.
io.moderne.prethink.table.MethodQualityMetrics - Class quality metricsPer-class code quality metrics including WMC, LCOM4, TCC, CBO, and maintainability index.
io.moderne.prethink.table.ClassQualityMetrics - Package quality metricsPer-package architectural metrics including afferent/efferent coupling, instability, abstractness, distance from main sequence, and dependency cycle membership.
io.moderne.prethink.table.PackageQualityMetrics - Code smellsDetected code smells including God Class, Feature Envy, and Data Class with severity ratings and the metric evidence that triggered detection.
io.moderne.prethink.table.CodeSmells - Test mappingMaps test methods to the implementation methods they exercise.
io.moderne.prethink.table.TestMapping - Test gapsPublic non-trivial methods that have no test coverage, ranked by risk score.
io.moderne.prethink.table.TestGaps - Test quality issuesIssues found in test code that may cause flakiness, silent failures, or maintenance burden. Each row includes a rich evidence message with what was found, why it matters, and how to fix it.
io.moderne.prethink.table.TestQualityIssues - Dependency reportLists all Gradle and Maven dependencies
org.openrewrite.java.dependencies.table.DependencyListReport - Maven metadata failuresAttempts to resolve maven metadata that failed.
org.openrewrite.maven.table.MavenMetadataFailures - Node.js dependencies in useDirect and transitive dependencies in use in Node.js projects.
org.openrewrite.javascript.table.NodeDependenciesInUse - Context registryRegistry of available context files for coding agents.
org.openrewrite.prethink.table.ContextRegistry - Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats