a5c-ai/babysitter / library/specializations/ai-agents-conversational/skills/langchain-chains
langchain-chains
VerifiedLangChain chain composition including SequentialChain, RouterChain, and LCEL patterns
SKILL.md
View on GitHub---
name: langchain-chains
description: LangChain chain composition including SequentialChain, RouterChain, and LCEL patterns
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
graph:
domains: [domain:software-engineering]
specializations: [specialization:ai-agents-conversational]
skillAreas: [skill-area:chain-of-thought-multistep-orchestration, skill-area:tool-service-integration-agents]
roles: [role:ml-engineer, role:backend-engineer]
workflows: [workflow:feature-development, workflow:ml-model-lifecycle]
topics: [topic:design-patterns]
---
# LangChain Chains Skill
## Capabilities
- Compose LangChain chains using LCEL (LangChain Expression Language)
- Implement sequential chain patterns
- Design router chains for conditional logic
- Create parallel execution chains
- Handle chain fallbacks and retries
- Implement streaming chains
## Target Processes
- dialogue-flow-design
- chatbot-design-implementation
## Implementation Details
### Chain Patterns
1. **LCEL Pipelines**: Modern composition with | operator
2. **SequentialChain**: Linear chain execution (legacy)
3. **RouterChain**: Conditional routing based on input
4. **RunnableParallel**: Parallel execution branches
5. **RunnableBranch**: Conditional branching
### Configuration Options
- Input/output key mapping
- Error handling strategies
- Retry configuration
- Streaming settings
- Batch processing options
### Best Practices
- Use LCEL for new implementations
- Implement proper input/output schemas
- Add fallback chains for resilience
- Use streaming for long operations
### Dependencies
- langchain-core
- langchain
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |