Agent skill · AI & Agents

langchain4j-ai-services-patterns

Provides patterns to build declarative AI Services with LangChain4j for LLM integration, chatbot development, AI agent implementation, and conversational AI in Java. Generates type-safe AI services using interface-based patterns, annotations, memory management, and tools integration. Use when creating AI-powered Java applications with minimal boilerplate, implementing conversational AI with memory, or building AI agents with function calling.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill langchain4j-ai-services-patterns-giuseppe-trisciuogli-developer- --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: skills/ai-llm/langchain4j-ai-services-patterns-giuseppe-trisciuogli-developer-/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# LangChain4j AI Services Patterns This skill provides guidance for building declarative AI Services with LangChain4j using interface-based patterns, annotations for system and user messages, memory management, tools integration, and advanced AI application patterns that abstract away low-level LLM interactions. ## Overview LangChain4j AI Services define AI functionality using Java interfaces with annotations, providing type-safe, declarative AI with minimal boilerplate. ## When to Use Use this skill when: - Building declarative AI services with minimal boilerplate using Java interfaces - Creating type-safe conversational AI with memory management - Implementing AI agents with function/tool calling capabilities - Designing AI services returning structured data (enums, POJOs, lists) - Integrating RAG patterns declaratively ## Instructions Follow these steps to create declarative AI Services with LangChain4j: ### 1. Define AI Service Interface Create a Java interface with method signatures for AI interactions: ```java interface Assistant { String chat(String userMessage); } ``` ### 2. Add Annotations for System and User Messages Use `@SystemMessage` and `@UserMessage` annotations to

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Instructions
  4. 1. Define AI Service Interface
  5. 2. Add Annotations for System and User Messages
  6. 3. Create AI Service Instance
  7. 4. Configure Memory for Multi-turn Conversations
  8. 5. Integrate Tools for Function Calling
  9. 6. Validate and Test
  10. Examples
  11. API Reference
  12. Best Practices
  13. Dependencies
  14. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the langchain4j-ai-services-patterns skill do?

Provides patterns to build declarative AI Services with LangChain4j for LLM integration, chatbot development, AI agent implementation, and conversational AI in Java. Generates type-safe AI services using interface-based patterns, annotations, memory management, and tools integration. Use when creating AI-powered Java applications with minimal boilerplate, implementing conversational AI with memory, or building AI agents with function calling.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill langchain4j-ai-services-patterns-giuseppe-trisciuogli-developer- --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going