claude-code-patternsClaude Code 源码中提取的 AI Agent 工程模式。当需要设计 agent 调度、工具并发执行、上下文压缩、状态机循环、流式处理等复杂 agent 系统时使用此 skill。触发场景:(1) 设计多轮对话 agent (2) 实现工具并发执行 (3) 构建上下文管理策略 (4) 优化 agent 启...
Install via ClawdBot CLI:
clawdbot install siyrs/claude-code-patternsGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Generated Jul 31, 2026
An AI agent that handles customer service conversations over multiple turns. It uses the state machine query loop to manage dialogue state and the streaming tool executor to simultaneously fetch order data or knowledge base articles while generating responses, reducing latency. The error recovery withhold pattern ensures a smooth experience even when APIs fail.
In a DevOps pipeline, an agent reviews pull requests by executing multiple static analysis tools concurrently. The streaming tool executor parallelizes tool execution, while the multi-layer context compression keeps large codebases within token limits. The circuit breaker prevents endless retries on flaky analysis services.
A financial advisory bot that handles complex queries about investments, budgets, and transactions. It uses the state machine to manage multi-step financial planning, and the streaming executor to fetch real-time market data and account balances concurrently. Context compression ensures long-term user history is retained without overflow.
An internal agent that coordinates various business processes like document approval, data entry, and report generation. It leverages the state machine for reliable task sequencing and error recovery to handle partial failures gracefully. The task ID type design aids in logging and monitoring of different task types.
A health app agent that tracks patient symptoms, schedules appointments, and provides medication reminders. It uses the state machine to handle multi-day care plans and the streaming executor to concurrently query patient records and drug interaction databases. Withhold pattern ensures users aren't exposed to transient backend errors.
Offering the agent as a service with monthly or annual subscription plans, providing continuous support and updates. Revenue comes from subscription fees.
Charging customers based on the number of API calls, messages processed, or tools executed. This aligns costs with usage and scales with demand.
Providing specialized implementation, integration, and customization services for enterprise clients. Revenue generated from consulting fees, setup costs, and ongoing maintenance contracts.
💬 Integration Tip
Start by adopting the state machine and streaming executor patterns in a single module, then progressively integrate context compression and error recovery. Leverage the provided TypeScript examples to adapt to your existing codebase.
Scored Jul 31, 2026
Control desktop applications on Windows — launch, close, focus, resize, move windows, simulate keyboard/mouse input, manage processes, control VSCode, read clipboard, and capture screen info. Use when the user wants to interact with any running program, switch windows, type text, press shortcuts, open files in VSCode, manage running processes, or get system display information.
Conduct rigorous, adversarial code reviews with zero tolerance for mediocrity. Use when users ask to "critically review" my code or a PR, "critique my code", "find issues in my code", or "what's wrong with this code". Identifies security holes, lazy patterns, edge case failures, and bad practices across Python, R, JavaScript/TypeScript, SQL, and front-end code. Scrutinizes error handling, type safety, performance, accessibility, and code quality. Provides structured feedback with severity tiers (Blocking, Required, Suggestions) and specific, actionable recommendations.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.
Pragmatic coding standards for writing clean, maintainable code — naming, functions, structure, anti-patterns, and pre-edit safety checks. Use when writing new code, refactoring existing code, reviewing code quality, or establishing coding standards.
Claude Code integration for OpenClaw. This skill provides interfaces to: - Query Claude Code documentation from https://code.claude.com/docs - Manage subagents and coding tasks - Execute AI-assisted coding workflows - Access best practices and common workflows Use this skill when users want to: - Get help with coding tasks - Query Claude Code documentation - Manage AI-assisted development workflows - Execute complex programming tasks
Plan, draft, version, and refine written content with enforced versioning and quality audits.