Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/kora-projects/kora-skills/kora-mapstructnpx skills add kora-projects/kora-skills --skill kora-mapstructgit clone --depth 1 https://github.com/kora-projects/kora-skillsWrote 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/kora-projects/kora-skills/kora-mapstruct)<a href="https://agentmods.dev/skills/kora-projects/kora-skills/kora-mapstruct"><img src="https://agentmods.dev/badge/skills/kora-projects/kora-skills/kora-mapstruct.svg" alt="Measured on agentmods" 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 | $0.00056 | $0.01367 |
| Opus 5 | $0.00028 | $0.00683 |
| Sonnet 5 | $0.00011 | $0.00273 |
| Haiku 4.5 | $0.00006 | $0.00137 |
Grade A, and why
kora-mapstruct 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 4d 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kora-mapstruct — MapStruct mappers as Kora components
Kora sub-skill — obey the kora-v1 meta rules on every task: R0 ensure
.kora-agent/docs+examples are cloned · R1 read this sub-skill before writing code · R2 Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · R3 journal any incorrect Kora usage. Add comments/Javadoc only if asked.
MapStruct generates the mapper implementation at compile time. Kora's MapStruct
extension detects every @Mapper interface, finds the generated *MapperImpl,
and registers it as a singleton component in the DI graph. You inject the mapper
interface by constructor like any other component — no @Module to plug in and
no @Component on the mapper.
All Kora artifacts inherit their version from the kora-parent BOM
(ru.tinkoff.kora:kora-parent:1.2.19 in the example repo) — never version
individual ru.tinkoff.kora:* dependencies. MapStruct artifacts are versioned
explicitly (1.5.5.Final).
Quick Start (Java)
build.gradle:
dependencies {
koraBom platform("ru.tinkoff.kora:kora-parent:1.2.19")
// Kora annotation processor (mandatory)
annotationProcessor "ru.tinkoff.kora:annotation-processors"
// MapStruct processor — generates the *MapperImpl classes
annotationProcessor "org.mapstruct:mapstruct-processor:1.5.5.Final"
// MapStruct runtime
implementation "org.mapstruct:mapstruct:1.5.5.Final"
}
PetMapper.java (adapted from .kora-agent/kora-examples/examples/java/kora-java-crud):
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE) // no @Component needed
public interface CarMapper {
@Mapping(source = "numberOfSeats", target = "seatCount")
CarTO map(Car car);
}
Inject the mapper interface by constructor:
import ru.tinkoff.kora.common.Component;
@Component
public final class CarService {
private final CarMapper mapper;
public CarService(CarMapper mapper) {
this.mapper = mapper;
}
}
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/mapstruct.gradle.kts.snippet 1.3 KB
- assets/mapstruct.gradle.snippet 898 B
- assets/OrderMapper.java.template 2.3 KB
- evals/evals.json 6.2 KB
- README.md 781 B
- references/mapstruct-config-reference.md 5.3 KB
- references/mapstruct-expressions-reference.md 4.2 KB
- references/mapstruct-mapper-reference.md 5.4 KB
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.
- 4d ago First seen · 130 lines · 56 tokens per session scan A 461c698d95e1
kora-mapstruct is a skill published in the GitHub repository kora-projects/kora-skills (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,367 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
tinystruct-patterns
Expert guidance for developing with the tinystruct Java framework. Use when working on the tinystruct codebase or any project built on tinystruct — including creating Application classes, @Action-mapped routes, unit tests, ActionRegistry, HTTP/CLI dual-mode handling, the built-in HTTP server, the event system, JSON…
pr-to-video
Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR…
general-video
Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…
implementation-final-review
Perform the repository's risk-tiered independent final review before implementation completion. Use only when explicitly invoked or when repository instructions require it after behavior-impacting implementation work; audit the complete task diff, supported contracts, lifecycle and security boundaries, complexity, and…
captions-overlay
Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether…
azure-communication-chat-java
Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.