symphony-trello: Skill for Codex

.codex/skills/java-optionals-eval-capture/SKILL.md

java-optionals-eval-capture is a skill for Codex from martin-francois/symphony-trello. It costs 78 tokens per session (2,553 once invoked), scanned A, original, Apache-2.0.

A teaching-example capture skill for Java Optional and other ways of representing missing values or fallback choices.

In plain words
What is it for?
Recording the original prompt, code before and after a change, rejected approaches, and why the final absence-handling strategy is preferred.
Why use it?
It preserves reusable lessons about handling absence so a separate Java Optionals skill can use them in future work.

Skill for Codex

Written for Codex: installed under .codex/. Also seen: mentions Codex.

This is martin-francois/symphony-trello's own configuration. It tells Codex how to work on symphony-trello 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 symphony-trello configures →

Reuse

Borrowing it

Nothing to install: this file belongs to martin-francois/symphony-trello. 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/martin-francois/symphony-trello/main/.codex/skills/java-optionals-eval-capture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/martin-francois/symphony-trello

Made for: 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 java-optionals-eval-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/martin-francois/symphony-trello/java-optionals-eval-capture/github.svg)](https://agentmods.dev/skills/martin-francois/symphony-trello/java-optionals-eval-capture)
Your own site
<a href="https://agentmods.dev/skills/martin-francois/symphony-trello/java-optionals-eval-capture"><img src="https://agentmods.dev/badge/skills/martin-francois/symphony-trello/java-optionals-eval-capture/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 java-optionals-eval-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/martin-francois/symphony-trello/java-optionals-eval-capture"><img src="https://agentmods.dev/badge/skills/martin-francois/symphony-trello/java-optionals-eval-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,553 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.00078 $0.02553
Opus 5 $0.00039 $0.01277
Sonnet 5 $0.00016 $0.00511
Haiku 4.5 $0.00008 $0.00255

Measured 9d ago against content hash c52402f10eca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

java-optionals-eval-capture 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 9d 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.

.codex/skills/java-optionals-eval-capture/SKILL.md · 282 lines

How it starts

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

Java Optionals Eval Capture

Goal

When a Symphony for Trello change provides a reusable Optional or adjacent absence/fallback strategy-selection lesson, preserve the teaching example for the Java Optionals skill. Capture the reusable absence-handling shape without generalizing an unrelated container or context migration. Create or update an issue in martinfrancois/java-optionals-skill that stands on its own: it must include the relevant code before the prompt, the prompt or review request that triggered the change, the intermediate or rejected implementation when one exists, the final preferred code, and why the final code is better.

When the Optional improvement is prompted by a reviewer or user after Codex introduced the weaker Optional shape, also capture the earlier prompt that caused Codex to write that shape. The eval issue must make the trigger failure explicit: the Optionals skill should have activated during the original implementation prompt, not only during the later refactor request.

When a later request reveals only that activation or eval capture was missed, even though the implementation was already preferred, capture both prompts and state that no code correction was needed. The eval must reward recognizing and capturing the reusable lesson without inventing a defect.

When an Optional refactor is later found to be non-equivalent, over-abstracted, or worse than the original code, capture the full correction chain. Include the original code, the prompt that produced the weaker Optional code, the weaker code, the later correction/revert prompt, and the final code. The eval must teach the skill to preserve behavior by default, and to call out any laziness, exception, side-effect, nullability, prompt, or checked-boundary change explicitly before recommending it.

When To Use

Use this skill whenever you:

  • replace isPresent() / get() / orElseThrow() control flow with clearer Optional APIs;
  • replace orElse(null), null checks, fake streams, or generic Optional helpers with a direct Optional shape;
  • improve map, flatMap, or, orElseGet, ifPresent, or ifPresentOrElse usage;
  • simplify nullable, absent, fallback, or default strategy selection on an adjacent owning API such as ScopedValue.orElse(...) when choosing and invoking the strategy is a reusable lesson, even when the final code contains no java.util.Optional;
  • preserve checked-exception or side-effect boundaries while improving Optional readability;
  • accept a user-provided Optional refactor;
  • correct an Optional refactor after review feedback;
  • revert or repair an Optional refactor because it changed behavior, laziness, exception handling, side effects, nullability, prompt ordering, or a checked boundary.

Read the full file on GitHub · 282 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. 9d ago First seen · 282 lines · 78 tokens per session scan A c52402f10eca

Subscribe to this mod's changes

java-optionals-eval-capture is a skill published in the GitHub repository martin-francois/symphony-trello (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 78 tokens to every session and 2,553 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

implement

Use in the Implement phase whenever writing or editing production Java code, or fixing a bug, in a Spring/Spring Boot project. Enforces test-first (red-green-refactor), executes the approved plan step by step, and honors the project's path-scoped tech-stack rules and the task's enforcement set. Preloaded into…

taipt1504/claudehut · 73 tokens

claudehut-workflow

Use at the start of every session and whenever beginning a coding task in a Java/Spring backend - establishes the ClaudeHut 7-phase agentic workflow, the complexity-tier routing that lets small tasks skip deliberation phases, and the laws that govern which skills and rules must fire. Injected at session start; also…

taipt1504/claudehut · 86 tokens

continuous-learning

Pattern extraction, confidence-scored evaluation, skill creation, organization, versioning, and cross-project export pipeline.

a5c-ai/babysitter · 25 tokens

moai-workflow-jit-docs

Enhanced Just-In-Time document loading system that discovers, loads, and caches relevant documentation based on user intent and project context. Use when users need specific documentation on demand.

modu-ai/moai-adk · 42 tokens

agent-booster

WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.

a5c-ai/babysitter · 28 tokens

vigilante-issue-implementation-on-java-kotlin

Implement a GitHub issue end-to-end when Vigilante dispatches work for a Java or Kotlin repository with JVM build-tool, style, and secure-coding guidance.

aliengiraffe/vigilante · 45 tokens