interacting_with_project_runtime
Skill1.1k starsChanged 5 days agoApache-2.0View on GitHub
Provides a persistent, project-aware Kotlin REPL for rapid logic verification and prototyping within the project's JVM classpath; use for testing dynamic behavior, prototyping snippets, or rendering Compose UI previews. Do NOT use for exploring library APIs (prefer `searching_dependency_sources`) or running Gradle builds.
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 5 are distinctive, and 15 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.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
ALWAYS: prefer reading source code via search_dependency_sources and read_dependency_sources for exploring unfamiliar library APIs.
- Very specific: line 20
ALWAYS: use kotlin_repl instead of a standalone Kotlin REPL for project-aware interaction.
- Very specific: line 22
ALWAYS: start a REPL session with the correct projectPath and sourceSet (e.g., main, test).
- Very specific: line 24
ALWAYS: use the responder API for rich output (images, markdown) to improve diagnostic visibility.
- Very specific: line 25
NEVER: leave a REPL session running indefinitely.
- Very specific: line 31
ALWAYS use project-aware REPL: Only the kotlin_repl tool provides full access to the project's exact classpath, dependencies, and source …
- Very specific: line 32
Identify the environment: When starting a session, ALWAYS ensure you select the appropriate projectPath (e.g., :app) and sourceSet (e.g., …
- Very specific: line 34
Utilize the
responder: ALWAYS use responder.render(value) or specialized methods (markdown, image, html) to return rich content. - Distinctive: line 35
Import necessary classes: ALWAYS provide explicit imports for project-specific and library classes.
- Very specific: line 36
Use
envSource: SHELLif environment variables are missing: If the REPL fails to find expected environment variables (e.g., JAVA_HOME or … - Very specific: line 38
Resolve
{baseDir}manually: If your environment does not automatically resolve the {baseDir} placeholder in reference links, treat it as … - Distinctive: line 42
Rapid Logic Verification: When you need to quickly test a function, algorithm, or class behavior without the overhead of writing a full …
- Distinctive: line 43
Interactive Prototyping: When you want to experiment with a snippet of logic within the exact context of your project's dependencies and …
- Distinctive: line 44
Visual Component Auditing: When iterating on UI components (e.g., Compose) and you need to see the result instantly by rendering them to …
- Distinctive: line 45
Dynamic State & Data Probing: When you need to perform one-off data transformations or queries using your project's existing utility …
- Very specific: line 57
Use kotlin_repl(command="run") with your Kotlin code.
- Very specific: line 58
Use responder.render() for rich diagnostics.
- Very specific: line 63
Use kotlin_repl(command="stop") once your investigation is complete to release system resources.
- Very specific: line 102
ClassNotFoundException: Ensure the project has been built at least once and that you have selected the correct sourceSet (e.g., test if the …
- Very specific: line 103
Changes Not Reflected: If your code changes aren't appearing, stop and start the REPL to refresh the classpath.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Authoritative Project Runtime & Source Interaction
Probes project logic, tests utility functions, and interacts with the JVM runtime of your source sets with absolute precision using a project-aware REPL.
Constitution
- ALWAYS prefer reading source code via
search_dependency_sourcesandread_dependency_sourcesfor exploring unfamiliar library APIs. - ALWAYS use
kotlin_replinstead of a standalone Kotlin REPL for project-aware interaction. - ALWAYS provide absolute paths for
projectRoot. - ALWAYS start a REPL session with the correct
projectPathandsourceSet(e.g.,main,test). - ALWAYS restart the REPL (
stopthenstart) after modifying project source code to pick up changes in the classpath. - ALWAYS use the
responderAPI for rich output (images, markdown) to improve diagnostic visibility. - NEVER leave a REPL session running indefinitely; use
stopwhen finished.
Directives
- Read the source first: For exploring unfamiliar library APIs or internal project utilities, ALWAYS prefer reading the source code first. It provides complete context, implementation details, and documentation that a REPL cannot easily
expose. Use
search_dependency_sourcesto find definitions andread_dependency_sourcesto analyze them. - ALWAYS use project-aware REPL: Only the
kotlin_repltool provides full access to the project's exact classpath, dependencies, and source sets. NEVER attempt to use standalone runners for project-internal logic. - Identify the environment: When starting a session, ALWAYS ensure you select the appropriate
projectPath(e.g.,:app) andsourceSet(e.g.,mainfor application code,testfor test utility access). - Pick up source changes: The REPL uses a static snapshot of the classpath. If you change project code, you MUST
stopand thenstartthe session again to pick up the updated classes. - Utilize the
responder: ALWAYS useresponder.render(value)or specialized methods (markdown,image,html) to return rich content. - Import necessary classes: ALWAYS provide explicit imports for project-specific and library classes.
- Use
envSource: SHELLif environment variables are missing: If the REPL fails to find expected environment variables (e.g.,JAVA_HOMEor specific JDKs), it may be because the host process started before the shell environment was fully loaded. Setenv: { envSource: "SHELL" }when callingstartto force a new shell process to query the environment. - Resolve
{baseDir}manually: If your environment does not automatically resolve the{baseDir}placeholder in reference links, treat it as the absolute path to the directory containing thisSKILL.mdfile.
When to Use
- Rapid Logic Verification: When you need to quickly test a function, algorithm, or class behavior without the overhead of writing a full test suite.
- Interactive Prototyping: When you want to experiment with a snippet of logic within the exact context of your project's dependencies and JVM configuration before implementing it.
- Visual Component Auditing: When iterating on UI components (e.g., Compose) and you need to see the result instantly by rendering them to images.
- Dynamic State & Data Probing: When you need to perform one-off data transformations or queries using your project's existing utility classes.
Workflows
Starting an Authoritative Session
- Identify the project module (e.g.,
:app) and source set (e.g.,main). - Call
kotlin_repl(command="start"). - Optionally provide
envfor environment variables oradditionalDependenciesif you need external libraries not currently in the project.
Probing Code & State
- Use
kotlin_repl(command="run")with your Kotlin code. - Use
responder.render()for rich diagnostics. - Review the returned text or image content.
Lifecycle Management
- Use
kotlin_repl(command="stop")once your investigation is complete to release system resources.
Examples
Probing a project utility function
// Start the session
{
"command": "start",
"projectPath": ":my-project",
"sourceSet": "main"
}
// Execute the probe
{
"command": "run",
"code": "import com.example.utils.MyHelper\nMyHelper.calculateSum(1, 2)"
}
// Reasoning: Using kotlin_repl to verify a utility function in the context of the main source set.Visualizing a UI Component
import androidx.compose.ui.test.*
import com.example.ui.MyComposable
runComposeUiTest {
setContent { MyComposable() }
val bitmap = onRoot().captureToImage()
responder.render(bitmap)
}
// Reasoning: Using the responder API to retrieve a high-resolution image of a Compose component.Troubleshooting
- REPL Not Started: You must call
startsuccessfully before callingrun. - ClassNotFoundException: Ensure the project has been built at least once and that you have selected the correct
sourceSet(e.g.,testif the class is insrc/test/kotlin). - Changes Not Reflected: If your code changes aren't appearing,
stopandstartthe REPL to refresh the classpath.
Trending
Quiet since September.about the whole repository
Who's talking about Kotlin/kotlinx-rpc
- bright-room/mindstock“fix(deps): update kotlinx.rpc to v0.10.4”GitHub · Sep 25, 2026
- bright-room/mindstock“fix(deps): update kotlinx.rpc to v0.10.3”GitHub · Jul 10, 2026
- modelix/modelix.editor“fix(deps): update kotlinx.rpc to v0.10.4”GitHub · Jul 6, 2026
- ktorio/ktor-plugin-registry“Bump the all-gradle group with 11 updates”GitHub · Jun 30, 2026
- DerTyp7214/synara-api“chore(deps): bump kotlinx-rpc from 0.10.2 to 0.10.3”GitHub · Jun 27, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub (16 times).
On GitHub · 16
- Sep 25, 2026fix(deps): update kotlinx.rpc to v0.10.4 — bright-room/mindstock0 reactions · 1 comment
- Jul 10, 2026fix(deps): update kotlinx.rpc to v0.10.3 — bright-room/mindstock0 reactions
- Jul 6, 2026fix(deps): update kotlinx.rpc to v0.10.4 — modelix/modelix.editor0 reactions · 1 comment
- Jun 30, 2026Bump the all-gradle group with 11 updates — ktorio/ktor-plugin-registry0 reactions
- Jun 27, 2026chore(deps): bump kotlinx-rpc from 0.10.2 to 0.10.3 — DerTyp7214/synara-api0 reactions · 1 comment
11 more on GitHub
- May 3, 2026Add compiler plugin implementation and Kotlin External FIR Support — TBSten/cream0 reactions
- Mar 30, 2026build(deps): bump kotlinx-rpc from 0.10.1 to 0.10.2 — modelix/modelix.editor0 reactions · 5 comments
- Jan 17, 2026chore(deps): bump kotlinx-rpc from 0.10.1 to 0.10.2 — DerTyp7214/synara-api0 reactions · 2 comments
- Dec 20, 2025build(deps): bump org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client from 0.10.0 to 0.10.1 — DerTyp7214/synara-api0 reactions · 1 comment
- Dec 20, 2025build(deps): bump org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server from 0.10.0 to 0.10.1 — DerTyp7214/synara-api0 reactions · 1 comment
- Jul 3, 2025Update kxrpc tutorial to 0.8.0 — ktorio/ktor-documentation0 reactions · 2 comments
- Jul 3, 2025Update kxrpc to 0.8.0 — ktorio/ktor-plugin-registry0 reactions · 1 comment
- Apr 4, 2025Update kxrpc to 0.6.0 — ktorio/ktor-plugin-registry0 reactions · 1 comment
- Jan 28, 2025Update kxrpc to 0.5.0 — ktorio/ktor-plugin-registry0 reactions
- Jan 7, 2025Migrate cloud-run server to RPC ProtoBuf — ashdavies/playground.ashdavies.dev0 reactions
- May 26, 2024KotlinでRemote Procedure Calls (RPC) を簡単に行えるライブラリkotlinx.rpc — AndroidDagashi/AndroidDagashi0 reactions
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commit-changesSkill
- file-youtrack-issueSkill
- fix-issueSkill
- gh-stackSkill
- gradle_expertSkill
- introspecting_gradle_projectsSkill
- managing_gradle_dependenciesSkill
- researching_gradle_internalsSkill
- run-local-verificationsSkill
- running_gradle_buildsSkill
- running_gradle_testsSkill
- searching_dependency_sourcesSkill
- update-docSkill
- update-shimSkill
- use-develocitySkill
- use-teamcitySkill
- use-youtrackSkill
- verify-compiler-plugin-compatibilitySkill
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.

