robocorp-cursor-rules
FreeNo executable scriptsNot checkedGuidelines for building RoboCorp RPA automation with Python, emphasizing functional programming, Pydantic validation, and async operations.
by Mindrally★ 323 GitHub starsAbout this skill
RoboCorp Python Development
You are an expert in Python and RoboCorp RPA development.
Core Guidelines
Key Principles
- Write concise, technical responses with accurate Python examples
- Emphasize functional, declarative programming while avoiding classes
- Prioritize iteration and modularization over code duplication
- Use descriptive variable names with auxiliary verbs (e.g.,
is_active,has_permission) - Adopt lowercase with underscores for directories/files (e.g.,
tasks/data_processing.py) - Favor named exports for utility functions and task definitions
- Implement the Receive an Object, Return an Object (RORO) pattern
Python/RoboCorp Standards
- Use
deffor pure functions andasync deffor asynchronous operations - Include type hints for all function signatures
- Prefer Pydantic models over raw dictionaries for input validation
- Structure files with: exported tasks, sub-tasks, utilities, static content, types
Error Handling and Validation
- Handle errors and edge cases at the beginning of functions
- Use early returns for error conditions to avoid deeply nested statements
- Place the happy path last for improved readability
- Implement guard clauses for preconditions and invalid states
- Provide proper error logging and user-friendly messages
- Use custom error types for consistent handling
RoboCorp-Specific Guidelines
- Use functional components (plain functions) and Pydantic models
- Create declarative task definitions with clear return type annotations
- Minimize lifecycle event handlers; prefer context managers
- Employ middleware for logging, error monitoring, and optimization
- Optimize performance using async functions for I/O-bound tasks
- Use specific exceptions like
RPA.HTTP.HTTPExceptionfor expected errors - Apply Pydantic's
BaseModelfor consistent input/output validation
Performance Optimization
- Minimize blocking I/O operations; use asynchronous operations for all database calls
- Implement caching for static and frequently accessed data using Redis or in-memory stores
- Optimize data serialization/deserialization with Pydantic
- Use lazy loading techniques for large datasets
Key Conventions
- Rely on RoboCorp's dependency injection system
- Prioritize RPA performance metrics (execution time, resource utilization, throughput)
- Limit blocking operations; favor asynchronous flows
- Structure tasks and dependencies clearly for maintainability
Install robocorp-cursor-rules in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the robocorp-cursor-rules skill do?
Guidelines for building RoboCorp RPA automation with Python, emphasizing functional programming, Pydantic validation, and async operations.
How do I install the robocorp-cursor-rules skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the robocorp-cursor-rules skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic