スキル一覧に戻る
vscode-cline-hooks-tutorial
MushroomFleet 作
Cline—まだ評価がありません
あなたの評価
概要
ORAGEN TEAM
説明
# Cline Hooks Mastery Course **Master the art of automating and controlling your AI development workflow** ## 🎯 Course Overview This comprehensive course teaches you how to leverage Cline's hooks system to create intelligent, automated workflows that enhance your development process. From basic hook mechanics to advanced integration patterns, you'll learn to build custom automation that fits your exact needs. ## 👥 Who This Course Is For - **Developers** using Cline who want to customize their workflow - **Team Leads** looking to enforce standards and best practices - **DevOps Engineers** wanting to integrate Cline with existing toolchains - **Power Users** seeking to maximize Cline's potential ## 📚 What You'll Learn - Hook execution model and timing - JSON input/output patterns - Validation and enforcement strategies - Context injection techniques - External tool integration - Production-ready patterns - Team collaboration workflows ## ⚙️ Prerequisites - Basic command line knowledge (bash/shell) - Familiarity with JSON - Cline VSCode extension installed - Text editor proficiency - Optional: Python knowledge for advanced exercises ## 🗺️ Course Structure ### [Module 1: Foundation - Understanding Hook Mechanics](module/module-01-foundation.md) **Duration:** 1-2 hours | **Difficulty:** Beginner Learn the fundamentals of how hooks work, from file setup to JSON communication. **Exercises:** - 1.1: "Hello Hooks" - Your First Hook - 1.2: "Inspector Gadget" - Understanding Hook Data ### [Module 2: Validation & Enforcement](module/module-02-validation.md) **Duration:** 2-3 hours | **Difficulty:** Intermediate Master blocking logic and create validation rules that prevent problematic operations. **Exercises:** - 2.1: "TypeScript Guardian" - Preventing Wrong File Types - 2.2: "The Security Sentinel" - Preventing Dangerous Commands ### [Module 3: Context Injection & Learning](module/module-03-context.md) **Duration:** 2-3 hours | **Difficulty:** Intermediate Build hooks that learn from operations and inject intelligent context into conversations. **Exercises:** - 3.1: "Project Detective" - Auto-Discovering Tech Stack - 3.2: "Performance Tracker" - Learning from Operation Times ### [Module 4: Advanced Integrations](module/module-04-integrations.md) **Duration:** 3-4 hours | **Difficulty:** Advanced Connect hooks to external tools and build sophisticated multi-hook workflows. **Exercises:** - 4.1: "The Quality Gate" - Automated Code Review - 4.2: "The Integration Hub" - Connecting to External Services - 4.3: "State Machine" - Persistent Hook State ### [Module 5: Production Patterns](module/module-05-production.md) **Duration:** 2-3 hours | **Difficulty:** Advanced Learn error handling, performance optimization, and team collaboration patterns. **Exercises:** - 5.1: "Bulletproof Hooks" - Error Handling - 5.2: "Team Hooks" - Collaborative Configuration ### [Module 6: Real-World Projects](module/module-06-projects.md) **Duration:** 4-6 hours | **Difficulty:** Capstone Apply everything you've learned to build complete, production-ready systems. **Projects:** - Capstone 1: "Smart Documentation System" - Capstone 2: "Compliance Auditor" ## 📝 Exercise Index Quick access to all hands-on exercises: ### Module 1 Exercises - [1.1: Hello Hooks - Your First Hook](exercise/exercise-1.1-hello-hooks.md) - [1.2: Inspector Gadget - Understanding Hook Data](exercise/exercise-1.2-inspector-gadget.md) ### Module 2 Exercises - [2.1: TypeScript Guardian - Preventing Wrong File Types](exercise/exercise-2.1-typescript-guardian.md) - [2.2: Security Sentinel - Preventing Dangerous Commands](exercise/exercise-2.2-security-sentinel.md) ### Module 3 Exercises - [3.1: Project Detective - Auto-Discovering Tech Stack](exercise/exercise-3.1-project-detective.md) *Note: Additional exercises are integrated within Modules 4-6* ## 📖 Reference Materials Essential resources for quick lookup and deep dives: - **[Quick Reference Cheatsheet](docs/cheatsheet.md)** - All hook types, JSON patterns, and common commands - **[Hooks Cheat Sheet](docs/hooks-cheat-sheet.md)** - Quick reference for all hook types and patterns - **[Debugging Guide](docs/debugging-guide.md)** - Troubleshooting common issues - **[FAQ](docs/faq.md)** - Frequently asked questions and answers - **[Reference Overview](ref/overview.md)** - Complete reference documentation ## 🚀 Getting Started 1. **Verify Prerequisites** ```bash # Check jq is installed jq --version # Check Cline is installed code --list-extensions | grep cline ``` 2. **Set Up Your Learning Environment** ```bash # Create a practice workspace mkdir -p ~/cline-hooks-practice cd ~/cline-hooks-practice # Create hooks directory mkdir -p .clinerules/hooks ``` 3. **Start with Module 1** Begin with [Module 1: Foundation](module/module-01-foundation.md) and work through each exercise sequentially. ## 💡 How to Use This Course ### For Individual Learners 1. **Work sequentially** through modules - each builds on previous concepts 2. **Complete all exercises** - hands-on practice is essential 3. **Experiment freely** - modify examples and try your own ideas 4. **Keep a hook library** - save useful patterns you discover 5. **Reference materials** - use cheatsheet and guides as needed ### For Teams 1. **Designate a hooks champion** to lead implementation 2. **Work through Modules 1-3** together in workshops 3. **Modules 4-5** can be self-paced 4. **Collaborate on Module 6** projects for your real codebase 5. **Share hooks** via version control 6. **Establish team conventions** from patterns library ### For Instructors - Each module includes learning objectives and assessments - Exercises have starter templates and complete solutions - Knowledge checks test understanding before advancing - Capstone projects allow for creative application ## 🎓 Certification Path Complete the course requirements to demonstrate mastery: - ✅ All module exercises completed - ✅ Knowledge checks passed (80%+ on each) - ✅ One capstone project completed - ✅ Final project: Custom hooks for your own project ## 🤝 Contributing Found an issue or have a better example? Contributions welcome! - Report issues or bugs in exercises - Suggest new patterns or use cases - Share your creative hook implementations - Improve documentation clarity ## 📝 License This course material is provided for educational purposes. ## 🔗 Additional Resources - [Official Cline Documentation](https://github.com/cline/cline) - [Cline Hooks Official Docs](https://cline.bot/docs/hooks) - [jq Manual](https://jqlang.github.io/jq/manual/) - [Bash Scripting Guide](https://www.gnu.org/software/bash/manual/) ## ⚡ Quick Tips - **Start simple** - Begin with logging hooks before building complex validation - **Use `jq` playground** - Test your JSON queries at [jqplay.org](https://jqplay.org) - **Check stderr output** - Look in VSCode Output panel (Cline channel) for debugging - **Timeout awareness** - Keep hooks fast (<5 seconds) - **Test incrementally** - Verify each part works before adding complexity ## 🗓️ Recommended Schedule **Weekend Intensive:** 2 days - Day 1: Modules 1-3 - Day 2: Modules 4-6 **One Week Plan:** 5 days - Days 1-2: Modules 1-2 - Days 3-4: Modules 3-4 - Day 5: Modules 5-6 **Self-Paced:** 2-3 weeks - Week 1: Modules 1-3 - Week 2: Modules 4-5 - Week 3: Module 6 + Final Project --- ## Ready to Begin? Start your journey with [Module 1: Foundation - Understanding Hook Mechanics](module/module-01-foundation.md) **Questions?** Check the [FAQ](docs/faq.md) or [Debugging Guide](docs/debugging-guide.md) Happy hooking! 🎣 --- ## Support This Project If you found this useful, please **star the repo** — it helps others discover it! [](https://github.com/MushroomFleet/vscode-cline-hooks-tutorial)
インストール
https://github.com/MushroomFleet/vscode-cline-hooks-tutorial からスキルをインストールしてこのスキルはClawHubレジストリには公開されていません。Claude Code、Cursor、Codexなどのコーディングエージェントにプロンプトを貼り付けると、ソースリポジトリから直接インストールされます。
リポジトリを開く