migrate-to-1.0
Skill9.3k starsChanged 8 months agoApache-2.0View on GitHub
Migrates a Kotlin project from Exposed 0.61.0 to Exposed 1.0. Scans Kotlin sources and build files, applies the mechanical changes documented in the official 1.0 migration guide (package renames, JDBC module moves, SqlExpressionBuilder lambda → top-level imports, build dependency bumps), and produces a report of items that need manual review. Use when the user wants to upgrade an existing Exposed 0.61.0 project to 1.0; for older 0.x versions the skill emits a compatibility warning and proceeds only with user confirmation.
Trending
Quiet since October.about the whole repository
Who's talking about JetBrains/Exposed
- prisma/orm“Kotlin client”GitHub · Feb 21, 2022 · 66 reactions
- r2dbc/r2dbc-spi“Expose database/schema metadata through Connection”GitHub · Mar 13, 2021 · 43 reactions
- Tapac/exposed-wiki“Updated date/time data types and added reference to `exposed-java-time`”GitHub · May 17, 2021 · 3 reactions
- Velkonost/sssss“deps(gradle): bump exposed from 0.54.0 to 0.61.0”GitHub · Oct 15, 2025 · 2 reactions
- flyway/flyway“Would it be possible to use flyway to compare two database schemas and upgrade one's schema to match the …”GitHub · Feb 7, 2020 · 2 reactions
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub (34 times).
On GitHub · 34
- Feb 21, 2022Kotlin client — prisma/orm66 reactions · 1 comment
- Mar 13, 2021Expose database/schema metadata through Connection — r2dbc/r2dbc-spi43 reactions · 2 comments
- May 17, 2021Updated date/time data types and added reference to `exposed-java-time` — Tapac/exposed-wiki3 reactions · 1 comment
- Oct 15, 2025deps(gradle): bump exposed from 0.54.0 to 0.61.0 — Velkonost/sssss2 reactions · 1 comment
- Feb 7, 2020Would it be possible to use flyway to compare two database schemas and upgrade one's schema to match the other? — flyway/flyway2 reactions · 4 comments
29 more on GitHub
- Aug 31, 2026Bump exposed from 1.2.0 to 1.5.0 — peco2282/DevCore1 reaction · 1 comment
- Aug 10, 2026Bump exposed from 1.2.0 to 1.4.0 — peco2282/DevCore1 reaction · 2 comments
- Jul 5, 2026Bump exposed from 1.2.0 to 1.3.1 — peco2282/DevCore1 reaction · 2 comments
- Jul 1, 2026Bump org.jetbrains.exposed:exposed-core from 1.2.0 to 1.3.1 — peco2282/DevCore1 reaction · 2 comments
- Jul 1, 2026Bump org.jetbrains.exposed:exposed-jdbc from 1.2.0 to 1.3.1 — peco2282/DevCore1 reaction · 2 comments
- Jul 1, 2026Bump org.jetbrains.exposed:exposed-java-time from 1.2.0 to 1.3.1 — peco2282/DevCore1 reaction · 2 comments
- Sep 22, 2025deps(deps): bump exposed from 0.58.0 to 0.61.0 — JetBrains/koog1 reaction · 2 comments
- May 9, 2024deps: update exposed to v0.50.1 — oss-review-toolkit/ort1 reaction · 1 comment
- Mar 2, 2023Setup DB migration — digitalfabrik/entitlementcard1 reaction
- Sep 28, 2022NonBooleanPropertyPrefixedWithIs is catching quasi-boolean properties — detekt/detekt1 reaction · 8 comments
- Aug 3, 2019Add support for transaction by method + lambda — micronaut-projects/micronaut-data1 reaction · 4 comments
- Jul 20, 2018kotlin: exposed module — jooby-project/jooby1 reaction
- Oct 3, 2026⬆️ Bump the "dependencies" group with 1 update across multiple ecosystems — navikt/helse-spinnvill0 reactions
- Oct 1, 2026chore(deps): bump exposed from 0.49.0 to 1.5.0 in /reposilite-backend — zast-cve-benchmark/reposilite-3.5.110 reactions
- Sep 27, 2026build(deps): bump exposedVersion from 1.4.0 to 1.5.0 — jnoecker/AmbonMUD0 reactions
- Sep 24, 2026build(deps): bump exposedVersion from 0.46.0 to 1.5.0 in /server — xalor888/Maodouchat0 reactions · 1 comment
- Sep 24, 2026chore(deps): bump the dependencies group across 1 directory with 12 updates — navikt/tsm-pdl-cache0 reactions
- Sep 23, 2026Bump exposedVersion from 0.57.0 to 1.5.0 — Olexandr1904/mono-category0 reactions · 1 comment
- Sep 19, 2026chore(deps): bump exposed from 1.1.1 to 1.5.0 — coreyh-nz/risktionary-backend0 reactions
- Sep 11, 2026Bump exposed from 0.61.0 to 1.5.0 — grepsedawk/CivDiscord0 reactions
- Sep 7, 2026Bump exposed from 1.4.0 to 1.5.0 — navikt/nks-bob-api0 reactions
- Aug 31, 2026Bump exposed from 1.4.0 to 1.5.0 — alad1nks/jaiqal0 reactions
- Aug 30, 2026build(deps): bump org.jetbrains.exposed:exposed-jdbc from 0.50.1 to 1.5.0 — cyrus07424/openDroneDiary0 reactions
- May 14, 2026Bump org.jetbrains.exposed:exposed-java-time from 1.2.0 to 1.3.0 — peco2282/DevCore0 reactions · 2 comments
- May 14, 2026Bump org.jetbrains.exposed:exposed-core from 1.2.0 to 1.3.0 — peco2282/DevCore0 reactions · 2 comments
- May 14, 2026Bump org.jetbrains.exposed:exposed-jdbc from 1.2.0 to 1.3.0 — peco2282/DevCore0 reactions · 2 comments
- Apr 7, 2026Bump org.jetbrains.exposed:exposed-core from 1.0.0 to 1.2.0 — peco2282/DevCore0 reactions · 2 comments
- Apr 7, 2026Bump org.jetbrains.exposed:exposed-java-time from 1.0.0 to 1.2.0 — peco2282/DevCore0 reactions · 2 comments
- Apr 7, 2026Bump org.jetbrains.exposed:exposed-jdbc from 1.0.0 to 1.2.0 — peco2282/DevCore0 reactions · 2 comments
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Never write outside the user's project root.
- Very specific: line 40
Never run ./gradlew or any other build command on the user's project.
- Distinctive: line 90
If the user declines, exit cleanly.
- Distinctive: line 127
Stop and ask the user to confirm before any edits: Wait for their response.
- Distinctive: line 129
If the user says "skip <category>", remove that category from the plan and proceed.
- Distinctive: line 130
If the user declines, exit cleanly with no changes.
- Very specific: line 154
If any Edit fails (old_string not unique or not present), skip just that edit, record the reason, and continue with the rest of the file.
- Very specific: line 247
Custom Exposed-version variable: If named to contain exposed (case-insensitive), bumped automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate to Exposed 1.0
Automates the mechanical parts of migrating a Kotlin project from Exposed 0.61.0 to Exposed 1.0. Anything that requires human judgment is detected and reported in a summary at the end so the user can address it manually using the migration guide.
Supported starting version: 0.61.0 (the last pre-1.0 release). The official Migration-Guide-1-0-0.md was written specifically for the 0.61.0 → 1.0.0 jump. If the detected version is older (e.g. 0.41.x, 0.55.x), the skill warns and asks for explicit confirmation before proceeding: the rules will still rewrite the package paths it recognises, but APIs introduced between the detected version and 0.61.0 are out of scope, and the user should upgrade to 0.61.0 first or expect a noisier manual-review list.
The canonical source for what to migrate is the official guide:
https://www.jetbrains.com/help/exposed/migration-guide-1-0-0.html
(or the local Migration-Guide-1-0-0.md if available).
The reference files in ./references/ encode that guide as machine-applicable rules:
package-renames.md— every import-level rename, organised by category (always-apply, JDBC-conditional, SqlExpressionBuilder, UUID, datetime, addLogger).module-detection.md— heuristics for the project fact table (usesJdbc,usesR2dbc,usesDao, …).build-files.md— Gradle KTS / Groovy / version-catalog / Maven edit patterns.manual-review.md— cases the skill must NOT auto-apply, with detection patterns.
Load each reference file only when the corresponding phase below needs it.
Operating principles
- Operate on the user's current working tree. Do not create branches or commits.
- Never write outside the user's project root.
- Never run
./gradlewor any other build command on the user's project. - Idempotent at line level: every edit is a precise
Edit(old_string/new_string), so re-running the skill after partial completion is safe. - Cross-check: if a file was changed externally between Phase 1 and Phase 3 (an
Editfails becauseold_stringdoesn't match), skip the file with a "skipped — file changed" reason and continue.
Phase 1 — Discover (read-only)
Determine whether migration is needed.
The real signal is whether any source file uses the old
0.xpackage paths (org.jetbrains.exposed.sql.*,org.jetbrains.exposed.dao.*,org.jetbrains.exposed.r2dbc.sql.*, …). Version coordinates in build files are a useful hint but don't always reflect reality — projects on a1.0.0-beta-N/1.0.0-rc-Nrelease already use thev1.*namespace and don't need this skill, even though their coordinate isn't strictly0.x.a. Source scan: look for any
import org.jetbrains.exposed.sql.orimport org.jetbrains.exposed.dao.(and the R2DBC equivalents) in any.ktfile undersrc/. Record file:line for use in the rename-scan step below.b. Build-file scan: look for
org.jetbrains.exposed:coordinates ingradle/libs.versions.toml, everybuild.gradle.kts/build.gradle, andpom.xml. Record every coordinate version found.c. If (a) finds zero old-namespace imports AND (b) finds no pre-1.0 coordinate (everything is either
1.0.0proper or higher, or no Exposed coordinate at all), stop here and report:No migration needed. Your project does not use the old `org.jetbrains.exposed.sql.*` / `.dao.*` namespace and the build files do not pin a pre-1.0 release. Projects on `1.0.0-beta-N` / `1.0.0-rc-N` already use the new `v1.*` namespace and don't need this skill.d. Otherwise, migration applies. Proceed with the version check below.
Version check. The supported starting version is
0.61.0. If the detected coordinate is something else under0.x(e.g.0.41.x,0.55.x), print the warning below and let the user decide whether to continue:⚠️ Detected Exposed <X.Y.Z>, but this skill targets the 0.61.0 → 1.0.0 migration. Older 0.x versions may use APIs that were renamed or removed before 0.61.0; those changes are NOT covered by this skill. Recommended path: 1. Upgrade your project to Exposed 0.61.0 first. 2. Re-run this skill. Proceed anyway? The skill will rewrite recognised package paths, but expect a noisier "manual review" list and possibly missed changes.If the user declines, exit cleanly. If they confirm, continue but include the version-mismatch warning in the Phase 4 summary.
Beta/RC of 1.0 with
sql.*imports somehow still present (e.g. a half-finished manual migration) is also valid input: the source scan in (a) catches it and the skill proceeds without emitting the0.61.0warning, since the user is already targeting 1.0.0.- Build the project fact table per
references/module-detection.md. - Enumerate every Kotlin file under
src/(recursively). For each file, run two scans:- Rename scan — grep for any pattern in
references/package-renames.md(sections 1–6). Record file:line + which pattern hit. - Manual-review scan — grep for any pattern in
references/manual-review.md. Record file:line + which case.
- Rename scan — grep for any pattern in
- Print a Phase 1 summary to the user:
Discovered: • Exposed version <X.Y.Z> in <build files> • Project flavor: usesJdbc=<bool>, usesR2dbc=<bool>, usesDao=<bool>, ... • <N> Kotlin files contain 0.x imports (<M> imports total) • <K> manual-review cases across <L> files • Build files to update: <list>
Phase 2 — Plan (interactive checkpoint)
- Print a one-paragraph plan to the user:
Planned changes: 1. Apply <category-1> rewrites to <N1> files. 2. Apply <category-2> rewrites to <N2> files. 3. Update <build-file> dependencies. 4. Report <K> manual-review items at the end (no source edits). - Stop and ask the user to confirm before any edits. Wait for their response.
- If the user says "skip
<category>", remove that category from the plan and proceed. If the user declines, exit cleanly with no changes.
Phase 3 — Apply (write phase)
For each Kotlin source file with rename hits, apply edits in this order:
a. Section 1 (always-apply renames) from references/package-renames.md. Each row
becomes one or more Edit calls (old_string = the 0.61.0 FQN; new_string = the
1.0.0 FQN).
b. Section 2 (JDBC-conditional moves) — only if the project's usesJdbc is true AND
the file does not contain any R2DBC import. Apply each row as in (a).
c. Section 3 (SqlExpressionBuilder lambda imports) — for every line of the form
import org.jetbrains.exposed.sql.SqlExpressionBuilder.<NAME>, rewrite to
import org.jetbrains.exposed.v1.core.<NAME>. The list of <NAME> values is in
package-renames.md Section 3, but the rule is independent of which method —
if the prefix matches, rewrite.
d. Section 4 (UUID), Section 5 (Datetime), Section 6 (StdOutSqlLogger / addLogger)
from package-renames.md — apply each row as in (a). For
import org.jetbrains.exposed.sql.addLogger, delete the import line entirely
instead of rewriting it (the function became a method).
If any Edit fails (old_string not unique or not present), skip just that edit, record
the reason, and continue with the rest of the file.
For build files (build.gradle.kts, build.gradle, gradle/libs.versions.toml,
pom.xml):
e. Apply the patterns in references/build-files.md for the matching flavor. For
ambiguous lines (a custom version variable that does not match the
exposed-name rule), append // TODO: review for Exposed 1.0 (or # TODO: …
for .toml, or <!-- TODO: ... --> for XML) and add the line to the manual-review
summary.
The skill never modifies files matched by manual-review.md patterns beyond the
mechanical rename edits in (a)–(d). The matches themselves get reported in Phase 4.
Phase 4 — Summarise
Print a markdown report to stdout:
# Migration summary
## ✅ Files modified (<N> total)
### Package renames (Section 1)
- src/main/kotlin/com/example/Foo.kt — 4 imports
- src/main/kotlin/com/example/Bar.kt — 2 imports
...
### JDBC moves (Section 2)
- src/main/kotlin/com/example/Foo.kt — 3 imports
...
### SqlExpressionBuilder rewrites (Section 3)
- src/main/kotlin/com/example/Foo.kt — 1 import
...
### UUID / Datetime / Logger
- src/main/kotlin/com/example/Models.kt — 1 import
## ✅ Build files modified
```diff
--- build.gradle.kts
+++ build.gradle.kts
@@
-implementation("org.jetbrains.exposed:exposed-core:0.61.0")
+implementation("org.jetbrains.exposed:exposed-core:1.0.0")
+implementation("org.jetbrains.exposed:exposed-jdbc:1.0.0")
```
## ⚠️ Manual review needed (<K> items)
⚠️ src/main/kotlin/com/example/Tx.kt:42 custom-transaction-extension
detected: fun Transaction.getVersion()
guide: "Transactions — Custom functions"
action: change the receiver to `JdbcTransaction`.
⚠️ src/main/kotlin/com/example/Tx.kt:88 transaction-signature
detected: transaction(db.transactionManager.defaultIsolationLevel, db = db) { ... }
guide: "transaction() signature changed"
action: db is now the first positional parameter; use named args for the rest.
...
## ⏭️ Skipped files (<S> total)
- src/main/kotlin/com/example/Old.kt — old_string did not match (file may have been edited)
## 📋 Suggested next steps
1. Review the diff: `git diff`
2. Compile: `./gradlew compileKotlin` (or your project's build command)
3. Run tests: `./gradlew test`
4. Address each ⚠️ item using the official migration guide:
https://www.jetbrains.com/help/exposed/migration-guide-1-0-0.html
5. When everything compiles and tests pass, commit:
`git commit -am "Migrate to Exposed 1.0"`The skill stops here. No further actions, no commits.
Edge cases
- Project uses both JDBC and R2DBC. The per-file decision in Phase 3 (b) handles this: files importing R2DBC are not given JDBC-conditional moves.
exposed-spring-boot-starter. The skill does NOT replace it withexposed-spring-boot4-starter. That's a Spring upgrade the user opts into. A note is added to the manual-review summary instead.- Custom Exposed-version variable. If named to contain
exposed(case-insensitive), bumped automatically. Otherwise reported for manual review. - No 0.x usage. Exit cleanly in Phase 1 with "no migration needed."
- Nothing left to do after rerun. All
Editcalls fail becauseold_stringis already the new value. The summary reports zero modifications and zero skips.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

