concerns

concerns is a skill for Claude Code, Codex from AdamBien/airails. It costs 183 tokens per session (1,226 once invoked), scanned A, original, MIT.

A Java annotation convention for marking classes or packages by the technical concern they serve, such as observability or communication with an external system. An annotation is a label in source code that tools and readers can inspect.

In plain words
What is it for?
Use it when adding or reviewing Java classes and packages that exist for cross-cutting technical concerns rather than a business component.
Why use it?
It records intent that imports alone may not show, making all code related to a concern easier to find and review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or reviewing Java classes and packages that exist for cross-cutting technical concerns rather than a business component.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adambien/airails/concerns
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.

Any agent
npx skills add AdamBien/airails --skill concerns
Clone the repo
git clone --depth 1 https://github.com/AdamBien/airails

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 concerns

README.md
[![agentmods](https://agentmods.dev/badge/skills/adambien/airails/concerns/github.svg)](https://agentmods.dev/skills/adambien/airails/concerns)
Your own site
<a href="https://agentmods.dev/skills/adambien/airails/concerns"><img src="https://agentmods.dev/badge/skills/adambien/airails/concerns/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 concerns

Your own site · 80×15
<a href="https://agentmods.dev/skills/adambien/airails/concerns"><img src="https://agentmods.dev/badge/skills/adambien/airails/concerns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,226 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00183 $0.01226
Opus 5.5 $0.00073 $0.00490
Sonnet 5.5 $0.00037 $0.00245
Haiku 4.5 $0.00018 $0.00123

Measured 2mo ago against content hash 831153152333, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

concerns 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 2mo 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.

java/concerns/SKILL.md · 64 lines

How it starts

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

One annotation, @Concern(KIND), records why a class or package exists when that reason is a technical concern rather than the BC's responsibility. An import search says what a class touches; the marker says what it is for. One search over the marker returns a complete, intent-based surface — including members no import search finds (an in-process engine binding is an external system without a single network import).

The Annotation

  • one Concern.java in the project root package — an application-wide vocabulary no BC owns
  • @Documented, @Retention(SOURCE), @Target({TYPE, PACKAGE}), single element Kind value(), nested enum Kind
  • SOURCE retention — every consumer (reader, agent, javadoc) reads source; the jar stays free of the metadata
  • full template with both starter kinds: references/concern-template.md

Placement

  • package-level (on package-info.java) when the whole BC serves the concern — state it once, not on every class
  • type-level when members are scattered across BCs that serve something else
  • never the same kind on both a package and a type inside it — one fact, one place
  • a type may carry a kind its package does not declare

The Sole-Purpose Rule

  • mark only what would not exist without the concern; litmus: "this class would not exist without ___"
  • participation is not membership — a domain class emitting an event in passing, or an orchestrator triggering provider calls, is not marked
  • each kind's doc comment states what does not qualify; the exclusions are where the marker earns its keep

Kind Admission

  • keep the enum a small closed set (about five kinds); every added constant dilutes the others
  • a kind that fits nearly every class carries no information — no LOGGING
  • a concern is implemented by the application, not provided by the platform (Java SE, MicroProfile, Jakarta EE) — building on a platform API (JFR, OTEL) still counts as application-implemented; a feature the platform provides outright (container transactions, health machinery) does not
  • corollary: do not duplicate a canonical stack marker — @Transactional, @Liveness, @Retry already say it; a second vocabulary for the same fact drifts
  • grep-findability does not disqualify a kind — naming the intent is worth it even when an import search finds the set
  • heuristic: a kind usually names the essential implementation of a non-functional requirement — caching for performance, observability for diagnosability — significant, but not domain-related, and at least partially scattered across BCs; trace it to the requirement it implements; a candidate that is neither is a business component or noise, not a kind
  • a kind whose membership must be argued case by case is a tagging system, not a classification — sharpen the definition or drop the kind

Read the full file on GitHub · 64 lines

Files

What ships with it

2 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.

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. 2mo ago Changed · +19 tokens per session 831153152333
  2. 2mo ago First seen · 64 lines · 164 tokens per session scan A f32e95e9b974

Subscribe to this mod's changes

concerns is a skill published in the GitHub repository AdamBien/airails (76 stars, last pushed yesterday), licensed MIT. It adds 183 tokens to every session and 1,226 once invoked, about $0.0007 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-09-05.

Related

concerns compared with skills from other repositories

concerns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
concernsAdamBien/airailsSkill76yesterdayMITA183Claude Code, Codex
authoring-java-sdk-tasksastronomer/agentsSkill465todayApache-2.0A152Claude Code
configuring-airflow-language-sdksastronomer/agentsSkill465todayApache-2.0A155Claude Code
loom-javacosmix/loomSkill66yesterdayMITA14Claude Code, Codex
jackson-3-migrationnavikt/copilotSkill65yesterdayMITA53Claude Code, Codex
java-to-kotlinnavikt/copilotSkill65yesterdayMITA35Claude Code, Codex
aws-sdk-java-v2-bedrockgiuseppe-trisciuoglio/developer-kitSkill3722mo agoMITA92Claude Code