TibiaWikiApi AGENTS.md

Project instructions for TibiaWikiApi, a Kotlin and Spring Boot web service that provides data from TibiaWiki through a REST API.

In plain words
What is it for?
Use them when building, running, testing, or changing the API and its Kotlin integration tests.
Why use it?
They clarify the required Java and Gradle versions, build commands, tests, deployment details, and repository conventions.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/benjaminkomen/tibiawikiapi/agents-md
Clone the repo
git clone --depth 1 https://github.com/benjaminkomen/TibiaWikiApi

Made for: Codex, OpenCode.

Per session 2,184 This file is loaded in full into every session.
When invoked 2,184 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02184 $0.02184
Opus 5 $0.01092 $0.01092
Sonnet 5 $0.00437 $0.00437
Haiku 4.5 $0.00218 $0.00218

Measured 2d ago against content hash 5ed95042c8f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

TibiaWikiApi AGENTS.md 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 2d 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.md · 123 lines

How it starts

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

TibiaWikiApi — agent notes

What this is

Spring Boot REST API over TibiaWiki (Fandom). Public Swagger: https://tibiawiki.dev. Deployed to GCP Cloud Run (cloudbuild.yaml). Resource list and ?expand=true: README.md.

Stack

  • JDK 25 (java.toolchain and Kotlin jvmTarget 25 in build.gradle.kts). Gradle wrapper 9.7.1 — always use ./gradlew.
  • Kotlin 2.4.10, Spring Boot 4.1.1.
  • Layout: production, unit, and integration code is Kotlin under src/main/kotlin, src/test/kotlin, and src/integrationTest/kotlin.

Build / run

JDK 25 required.

./gradlew build
./gradlew bootRun          # http://localhost:8080 — default profile is live jwiki → Fandom

GitHub Actions Gradle workflow is .github/workflows/buid.yml (filename typo; do not rename unless asked).

Tests (Gradle)

CI (buid.yml) runs:

./gradlew ktlintCheck jacocoTestReport

jacocoTestReport depends on check, which also runs the integrationTest source set. A slice of those ITs (FixturesProfileIT) uses @ActiveProfiles("fixtures") and the real FixtureArticleRepository — no mocks and no Fandom. ktlint is the style checker — do not add a style guide.

Cloud Run uses the default profile (live JwikiArticleRepository, LOGGING_JSON=true). When changing beans, constructors, logging, or Boot config: add or keep a default (or prod-like) profile IT that constructs real beans (DefaultProfileWikiBeansIT). Fixtures and @MockitoBean alone do not cover that path. Prod env flags that affect logging (e.g. LOGGING_JSON=true) must be exercised in CI (LoggingJsonActuatorIT).

The Bun harness in regression/ is not part of the Gradle test task.

Docker ENTRYPOINT / PORT (critical)

Cloud Run injects PORT. Bind it in Spring only: server.port=${PORT:8080} in application.properties. The production image ENTRYPOINT must be exec-form java with no $ / $$ / sh -c:

ENTRYPOINT ["java", "-Dserver.address=0.0.0.0", "-jar", "/project/TibiaWikiApi.jar"]

Read the full file on GitHub · 123 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. 2d ago First seen · 123 lines · 2,184 tokens per session scan A 5ed95042c8f5

Subscribe to this mod's changes

TibiaWikiApi AGENTS.md is an instructions file published in the GitHub repository benjaminkomen/TibiaWikiApi (40 stars, last pushed 5d ago), licensed MIT. It adds 2,184 tokens to every session, about $0.0109 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-30.