kotlin-core-api

Document Kotlin standard library, testing, and reflection APIs.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill kotlin-core-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-core-api
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/kotlin-core-api
Command: npx skills add https://github.com/trancee/MeshLink-template --skill kotlin-core-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive, searchable reference for the Kotlin standard library, testing framework, and reflection capabilities, eliminating the need to context-switch to external documentation for core language features.

Core Features & Use Cases

  • Standard Library Mastery: Access detailed guides on collections, scope functions, sequences, and I/O operations.
  • Testing & Reflection: Utilize built-in support for kotlin.test assertions and runtime reflection via kotlin.reflect.
  • Use Case: When you need to quickly determine the most efficient way to transform a large collection using sequences or require the exact syntax for a complex reflection-based property lookup, this Skill provides the immediate answer.

Quick Start

Use the kotlin-core-api skill to explain how to use the mapNotNull function on a collection of nullable integers.

Frequently Asked Questions about kotlin-core-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use mapNotNull to filter null values from a Kotlin collection?

To use mapNotNull on a Kotlin collection, apply it to transform elements while automatically excluding null results, yielding a non-nullable list. This standard library function iterates each element, applies the transformation, and collects only non-null outputs.

What is the best way to transform a large Kotlin collection using sequences?

The best way to transform large Kotlin collections is using sequences for lazy evaluation. Sequences process elements one at a time through the chain, avoiding intermediate list allocations and significantly reducing memory overhead for large datasets.

How does Kotlin reflection API work for runtime property lookup?

Kotlin reflection works through the kotlin.reflect API to inspect classes, properties, and functions at runtime. You retrieve KClass references and use KProperty instances to dynamically access property names, types, and values without compile-time knowledge.

Does the Kotlin standard library include built-in testing framework assertions?

Yes, the Kotlin standard library includes built-in testing assertions via kotlin.test. This framework provides basic assertion functions like assertEquals, assertTrue, and assertNotNull to validate expected outcomes directly within your test functions.

When do I need scope functions in Kotlin and how do they differ?

You need Kotlin scope functions like let, run, with, apply, and also to execute code blocks within an object's context. They differ by returning the context object or the block result, enabling concise initialization and chained operations.