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 skills add DVNghiem/FlowDeck --skill java-patternsgit clone --depth 1 https://github.com/DVNghiem/FlowDeckWrote 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/dvnghiem/flowdeck/java-patterns)<a href="https://agentmods.dev/skills/dvnghiem/flowdeck/java-patterns"><img src="https://agentmods.dev/badge/skills/dvnghiem/flowdeck/java-patterns.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.1 | $0.00035 | $0.02963 |
| Opus 5 | $0.00017 | $0.01482 |
| Sonnet 5 | $0.00007 | $0.00593 |
| Haiku 4.5 | $0.00003 | $0.00296 |
Grade A, and why
java-patterns 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 7d 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 — 480 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Java Patterns Skill
Modern Java for production applications. Focuses on Java 17+ features and Spring Boot conventions.
When to Activate
Activate when:
- Writing new Java services or libraries
- Reviewing Java code for correctness and modern idiom
- Designing API layers, service classes, or data access
- Troubleshooting Spring Boot configuration or JPA queries
- Setting up testing infrastructure
Modern Java Features (17+)
Records — Immutable Data Carriers
Records eliminate boilerplate for data classes. Use them for DTOs, value objects, and command/query objects.
// Compiler generates constructor, getters, equals, hashCode, toString
public record Point(double x, double y) {}
// Custom constructor for validation
public record EmailAddress(String value) {
public EmailAddress {
Objects.requireNonNull(value);
if (!value.contains("@")) {
throw new IllegalArgumentException("invalid email: " + value);
}
value = value.toLowerCase();
}
}
// Records can implement interfaces
public record PageRequest(int page, int size) implements Serializable {
public PageRequest {
if (page < 0) throw new IllegalArgumentException("page must be >= 0");
if (size < 1 || size > 100) throw new IllegalArgumentException("size must be 1-100");
}
public int offset() { return page * size; }
}
Sealed Classes — Closed Hierarchies
Use sealed classes to model a fixed set of variants. The compiler enforces exhaustive pattern matching.
public sealed interface PaymentResult
permits PaymentResult.Success, PaymentResult.Declined, PaymentResult.Error {
record Success(String transactionId, BigDecimal amount) implements PaymentResult {}
record Declined(String reason) implements PaymentResult {}
record Error(Throwable cause) implements PaymentResult {}
}
// Pattern matching ensures all cases are handled
String message = switch (result) {
case PaymentResult.Success s -> "Charged " + s.amount();
case PaymentResult.Declined d -> "Declined: " + d.reason();
case PaymentResult.Error e -> "Error: " + e.cause().getMessage();
};
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.
- 7d ago First seen · 480 lines · 35 tokens per session scan A ff15487ec28c
java-patterns is a skill published in the GitHub repository DVNghiem/FlowDeck (24 stars, last pushed 18d ago), licensed MIT. It adds 35 tokens to every session and 2,963 once invoked, about $0.0002 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.
Other skills, from other repositories
enterprise-java
Enterprise Java development skill covering Spring ecosystem, microservices, design patterns, performance optimization, and Java best practices. Use this skill when building enterprise Java applications, working with Spring Boot, implementing microservices, or need guidance on Java architecture and performance tuning.
spring-boot-patterns
Spring Boot patterns including stereotype annotations, dependency injection, profiles, configuration properties, and actuator endpoints. Use when the user is building Spring Boot applications, configuring dependency injection, setting up profiles for different environments, using @ConfigurationProperties, or enabling…
java-expert
Use this skill when writing or reviewing Java code. Covers modern Java (17+), Spring Boot patterns, JPA/Hibernate, Maven/Gradle, testing with JUnit 5, security patterns, and production-grade enterp...
Spring框架分析器
A guide for analyzing Spring applications, which use a Java framework for building server-side enterprise software.
Spring Boot应用开发
A guide for building enterprise applications with Spring Boot, a Java framework for server-side software.
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…