
Tinystruct Patterns
This gives Claude the context to help you build with tinystruct, a lightweight Java framework where CLI commands and HTTP routes share the same @Action-annotated methods. The patterns cover the essentials: extending AbstractApplication, mapping routes, handling dual-mode execution, working with the native Builder/Builders JSON components instead of pulling in Gson, persisting data through AbstractData POJOs, and implementing Server-Sent Events or file uploads. It's useful if you're debugging why a route isn't firing, need to generate database POJOs, or want to understand why tinystruct pushes you toward API-first designs with setTemplateRequired(false). The anti-patterns table alone will save you from common mistakes like making Actions private or manually touching ActionRegistry.
- skills.sh installs
- 1.7K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill tinystruct-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
tinystruct Development Patterns
Architecture and implementation patterns for building modules with the tinystruct Java framework – a lightweight, high-performance framework that treats CLI and HTTP as equal citizens, requiring no main() method and minimal configuration.
Core Principle
CLI and HTTP are equal citizens. A transport-neutral @Action uses Mode.DEFAULT (or omits mode) and has no HTTP-only dependencies. Such an action can run from both a terminal and a web browser. Mode.DEFAULT removes the transport restriction; it does not make an HTTP-dependent method CLI-compatible. Request and Response parameters come from HTTP context attributes and remain null when those attributes are absent, as in an ordinary CLI invocation. Keep shared logic independent of HTTP objects, sessions, and uploads, and call it from transport-specific entry points when needed. This "dual-mode" capability is the core design philosophy of tinystruct. An action with a transport-specific mode (Mode.CLI, Mode.HTTP_GET, Mode.HTTP_POST, ...) is deliberately bound to that transport: the framework rejects it from the other one with "The action is not allowed to be executed."
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Ui To Vue1.7K
- Vite Patterns1.7K
- Cost Tracking1.6K
- Fsharp Testing1.6K
- Gget1.6K
- Homelab Pihole Dns1.6K
- Homelab Vlan Segmentation1.6K
- Homelab Wireguard Vpn1.6K
- Mle Workflow1.6K
- Motion Foundations1.6K
- Motion Patterns1.6K
- Quarkus Patterns1.6K
- Quarkus Security1.6K
- Quarkus Tdd1.6K
- Quarkus Verification1.6K
- Skill Scout1.6K
- Uspto Database1.6K
- Prisma Patterns1.4K
- Blender Motion State Inspection1.3K
- Recsys Pipeline Architect1.3K
- Uncloud1.2K
- React Testing910
- React Performance903
- React Patterns893