Experience advanced AI prompt engineering in action through an interactive word-guessing game with real-time AI coaching.
ClaudLE isn't just another word gameโit's a living demonstration of sophisticated prompt engineering techniques that you can study, modify, and learn from. See how context-aware prompting, personality-driven AI, and adaptive difficulty create engaging user experiences.
- Real Prompt Engineering: Study actual prompts used for AI coaching
- Strategy Optimization: Learn through AI-powered real-time feedback
- Personality-Driven AI: See how different prompt styles create distinct AI personalities
- Progressive Learning Path: From basic game mechanics to advanced AI integration
This repository includes a complete "Angular Tutorial"-style learning progression using git tags:
- ๐
tutorial-00-idea-to-artifact- From concept to Claude artifact - ๐ฎ
tutorial-01-basic-game- Core game mechanics & React patterns - ๐ค
tutorial-02-ai-integration- Adding Claude API & prompt basics - ๐ง
tutorial-03-prompt-engineering- Advanced prompting techniques - ๐ฑ
tutorial-04-operationalizing- Production deployment & analytics - ๐ฏ
tutorial-05-complete-platform- Full learning platform
git clone https://github.com/yourusername/claudle-nextjs
cd claudle-nextjs
# Start with the origin story
cat docs/tutorials/TUTORIAL-00-ARTIFACT-ORIGIN.md
# Then progress through the tutorial
git checkout tutorial-01-basic-game
# Follow the README at each step- Context-aware prompting with detailed game state analysis
- Personality-driven AI (Ted Lasso vs Roy Kent coaching styles)
- Progressive difficulty adaptation in AI responses
- Strategy optimization through real-time AI feedback
- Cost-effective AI integration with feature flags and rate limiting
- Structured prompt construction with game state context
- Error handling and fallback strategies for AI responses
- Performance optimization for interactive AI experiences
- Production-ready AI application architecture
- ๐ญ Personality Coaching: Choose between Ted Lasso's encouragement or Roy Kent's tough love
- ๐ฒ 10 Unique Themes: From Classic words to Harry Potter, Disney, and more
- ๐ง Real-time Strategy Analysis: AI coaches your approach as you type
- ๐ก Adaptive Hints: Context-aware hints that get more specific as you progress
- ๐ฑ PWA Ready: Install as an app, play offline with cached word lists
- ๐ Dark Mode: Automatic system theme detection
- ๐ Privacy-first Analytics: Track your progress without compromising privacy
"I created something cool in Claude Artifacts - now how do I make it a real app?"
๐ Complete Getting Started Guide โ
- Fork this repository
- Click "Code" โ "Codespaces" โ "Create codespace"
- Wait 2-3 minutes for automatic setup
- Start learning - everything pre-configured!
- Local + DevContainer: Isolated development environment
- Traditional Setup: Direct local development
- See all options โ
// See real prompt engineering in action
// File: /app/api/claude/coaching/route.ts
const coachingPrompt = `${personalityPrompt}
The player is considering the guess "${currentGuess}" for attempt ${guessCount + 1}.
Game state analysis:
- Previous guesses: ${guesses.join(', ')}
- Letters ruled out: ${Array.from(wrongLetters).join(', ')}
- Confirmed positions: ${correctLetters.map(c => `${c.letter} in position ${c.position}`).join(', ')}
WITHOUT revealing the target word, provide strategic coaching about this guess:
1. Is this strategically optimal given what they know?
2. Are they reusing ruled-out letters unnecessarily?
3. Could they make a more information-gathering guess?
Stay in character and keep under 100 words.`/api/claude/generate-word- Theme-based word generation with difficulty control/api/claude/get-hint- Context-aware hints with progressive difficulty/api/claude/coaching- Real-time strategy analysis (feature-flagged)/api/claude/game-over- Post-game analysis and encouragement
- Rate limiting (5 games/day per IP, 30 hints/hour)
- Feature flags for expensive operations
- Fallback responses for offline/error scenarios
- Caching strategies for repeated requests
- Push to GitHub
- Connect to Vercel
- Add
ANTHROPIC_API_KEYenvironment variable - Deploy!
Works on any Next.js-compatible platform: Netlify, Railway, Render, or self-hosted.
We welcome contributions that enhance the educational value or improve the AI interactions!
- ๐ฌ GitHub Discussions - Ask questions, share knowledge, and connect with other AI developers
- ๐ Issues - Report bugs or request features
- ๐ง Pull Requests - Contribute improvements
- New coaching personalities - Add different AI coaching styles
- Advanced prompt techniques - Demonstrate new prompting patterns
- Educational content - Improve tutorials and documentation
- Performance optimizations - Enhance the AI integration efficiency
- Fork the repository
- Create a feature branch (
git checkout -b feature/educational-enhancement) - Make your changes with clear commit messages
- Add/update relevant tutorial documentation
- Submit a Pull Request with learning outcomes described
MIT License - see LICENSE for details.
This project was created to demonstrate real-world prompt engineering techniques in an engaging, interactive format. It showcases:
- Production AI Integration - Not just demos, but patterns you can use in real applications
- Cost-Effective AI Usage - Practical approaches to managing AI API costs
- User Experience with AI - How to make AI feel natural and helpful
- Iterative Prompt Development - See how prompts evolved from simple to sophisticated
Perfect for: Developers learning AI integration, prompt engineering students, educators teaching modern web development with AI, and anyone curious about building engaging AI-powered applications.
Built with Claude Code | Experience the future of AI-assisted development