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.
curl -O https://raw.githubusercontent.com/nehemiaharchives/lucene-kmp/master/.agents/skills/port/SKILL.mdgit clone --depth 1 https://github.com/nehemiaharchives/lucene-kmpWrote 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.
[](https://agentmods.dev/skills/nehemiaharchives/lucene-kmp/port)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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"
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.
- 16d ago First seen · 127 lines · 22 tokens per session scan A 1eef80d15f1f
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.
port compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portnehemiaharchives/lucene-kmp | Skill | 11 | 13d ago | Apache-2.0 | A | 22 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 80 | Claude Code, Codex |
| kotlin-tooling-agp9-migrationKotlin/kotlin-agent-skills | Skill | 1.1k | 7d ago | Apache-2.0 | A | 105 | Claude Code, Codex |
| compose-animationschrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 64 | Claude Code |
| compose-focus-navigationchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 41 | Claude Code |
| kotlin-tooling-immutable-collections-0-5-x-migrationKotlin/kotlin-agent-skills | Skill | 1.1k | 7d ago | Apache-2.0 | A | 192 | Claude Code, Codex |
| kotlin-tooling-native-build-performanceKotlin/kotlin-agent-skills | Skill | 1.1k | 7d ago | Apache-2.0 | A | 96 | Claude Code, Codex |