lucene-kmp: Skill for Claude Code

.agents/skills/port/SKILL.md

port is a skill for Claude Code, Codex from nehemiaharchives/lucene-kmp. It costs 22 tokens per session (3,362 once invoked), scanned A, original, Apache-2.0.

A workflow for porting Java Lucene classes and interfaces into platform-independent Kotlin code. It maps Java source and tests into the common code and test structure used by lucene-kmp.

In plain words
What is it for?
Use it when converting Lucene classes or interfaces from Java into shared Kotlin code for JVM, Android, and native targets.
Why use it?
It provides project-specific rules for moving code into a multiplatform layout without losing the expected package and test organization.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is nehemiaharchives/lucene-kmp's own configuration. It tells Claude Code and Codex how to work on lucene-kmp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lucene-kmp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nehemiaharchives/lucene-kmp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nehemiaharchives/lucene-kmp/master/.agents/skills/port/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nehemiaharchives/lucene-kmp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for port

README.md
[![agentmods](https://agentmods.dev/badge/skills/nehemiaharchives/lucene-kmp/port/github.svg)](https://agentmods.dev/skills/nehemiaharchives/lucene-kmp/port)
Your own site
<a href="https://agentmods.dev/skills/nehemiaharchives/lucene-kmp/port"><img src="https://agentmods.dev/badge/skills/nehemiaharchives/lucene-kmp/port/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for port

Your own site · 80×15
<a href="https://agentmods.dev/skills/nehemiaharchives/lucene-kmp/port"><img src="https://agentmods.dev/badge/skills/nehemiaharchives/lucene-kmp/port.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.03362
Opus 5.5 $0.00009 $0.01345
Sonnet 5.5 $0.00004 $0.00672
Haiku 4.5 $0.00002 $0.00336

Measured 16d ago against content hash 1eef80d15f1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

port scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/port/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

overall project description

I'm porting Apache Lucene from Java to platform agnostic kotlin common to make multiplatform library lucene-kmp which supports Kotlin/Android, Kotlin/Native(iOS, macOS, Linux), and Kotlin/JVM(desktop and server).

java package structure

For example, in core module, the root package is: lucene/lucene/core/src/java/org/apache/lucene/ core module's unit tests are in root package: lucene/lucene/core/src/test/org/apache/lucene/ And those root contains sub packages such as analysis, codecs, document, index, internal, search, store, util and their sub packages.

kmp package structure

For example, in core module, the root package for port destination is: lucene-kmp/core/src/commonMain/kotlin/org/gnit/lucenekmp/ lucene-kmp core module for unit tests are in the root package: lucene-kmp/core/src/commonTest/kotlin/org/gnit/lucenekmp/ And it contains sub packages such as analysis, codecs, document, index, internal, search, store, util, and especially the one which is not found in java lucene: jdkport

package name convention on porting process

For classes/interfaces in sub packages which is made by lucene, which is "analysis, codecs, document, index, internal, search, store, util", we will respect exact same java lucene's sub packagename for both "code" and "unit test".

For example, in case of code, org.apache.lucene.document.BinaryDocValuesField has been ported to org.gnit.lucenekmp.document.BinaryDocValuesField in case of unit test, org.apache.lucenep.util.TestUnicodeUtil has been ported to org.gnit.lucenekmp.util.TestUnicodeUtil

about jdkport package

During the porting process there was JDK classes which is used in Java lucene but have no equivalent pair in kotlin standard library (standard library of kotlin common). To smooth the porting process I decided to port also those JDK classes into "package org.gnit.lucenekmp.jdkport" which is located in lucene-kmp/core/src/commonMain/kotlin/org/gnit/lucenekmp/jdkport

There are some edge case such as Double. jdk and kotlin standard lib both has Double class but the some jdk Double functions are not found in kotlin ones. In such case, I created a kotlin file contains extension functions to fill the functionality pair gap. The file name convention for extension function is for example "for Double class, kt file is named DoubleExt.kt"

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 127 lines · 22 tokens per session scan A 1eef80d15f1f

Subscribe to this mod's changes

port is a skill published in the GitHub repository nehemiaharchives/lucene-kmp (11 stars, last pushed 13d ago), licensed Apache-2.0. It adds 22 tokens to every session and 3,362 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

port compared with skills from other repositories

port next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portnehemiaharchives/lucene-kmpSkill1113d agoApache-2.0A22Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill5032d agoMITA80Claude Code, Codex
kotlin-tooling-agp9-migrationKotlin/kotlin-agent-skillsSkill1.1k7d agoApache-2.0A105Claude Code, Codex
compose-animationschrisbanes/skillsSkill1.1kyesterdayApache-2.0A64Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
kotlin-tooling-immutable-collections-0-5-x-migrationKotlin/kotlin-agent-skillsSkill1.1k7d agoApache-2.0A192Claude Code, Codex
kotlin-tooling-native-build-performanceKotlin/kotlin-agent-skillsSkill1.1k7d agoApache-2.0A96Claude Code, Codex