---
name: uipath-rpa
description: RPA workflows (.xaml and .cs coded) — create, edit, build, run, debug, test; UI automation, Object Repository, Integration Service activities.
keywords:
  - rpa
  - xaml
  - workflows
  - ui-automation
  - activities
applyTo:
  - "**/*.xaml"
  - "**/*.cs"
  - "**/project.json"
---

# UiPath RPA Skill

## Overview

This skill enables you to create, edit, build, run, debug, and test UiPath RPA workflows and coded activities.

## Capabilities

### Workflow Creation
- Create new XAML workflow files with proper structure
- Add activities in correct sequence
- Configure activity properties and arguments
- Implement Try-Catch error handling
- Add logging and debugging points

### UI Automation
- Configure selectors for UI elements
- Create and manage Object Repository
- Handle dynamic element identification
- Implement image-based automation when needed
- Set up element waiting strategies (Wait, WaitFor, etc.)

### UiPath Activities (Preferred)
- Use built-in UiPath activities (Web, Desktop, System, Connectors)
- Create custom C# activities only when no built-in activity exists
- Implement custom activity logic following UiPath standards
- Reference external libraries and assemblies properly
- Handle activity inputs/outputs correctly
- **Avoid InvokeCode and Invoke Power Shell** - use dedicated activities instead

### Project Structure
- Generate proper project.json configuration
- Organize workflows by purpose
- Structure data models and schemas
- Configure dependencies and NuGet packages
- Set up environment variables

### Building & Testing
- Build RPA projects (uip project build)
- Run workflows locally for testing
- Debug with breakpoints and logging
- Execute test cases and scenarios
- Generate test reports

## Common Tasks

### Scaffold a new RPA project
Generates a complete RPA project structure with main workflow and supporting files.

### Add UI Automation
Creates selector-based automation for web/desktop applications with Object Repository integration.

### Create Custom Activity
Generates C# activity with proper UiPath API integration.

### Error Handling
Adds comprehensive try-catch blocks and logging throughout workflows.

## Best Practices

- **Prefer built-in UiPath activities** over InvokeCode and scripting activities
- Always use Try-Catch blocks in workflows
- Implement logging at key decision points
- Use meaningful activity names and annotations
- Keep workflows modular and reusable
- Document complex sequences with comments
- Handle edge cases explicitly
- Use Application/Web Scope activities for resource management

## Integration

Works with:
- uipath-platform (for execution and deployment)
- uipath-solution (for project lifecycle)
- uipath-review (for quality checks)

## References

- [UiPath Studio Documentation](https://docs.uipath.com/studio)
- [Activities Guide](https://docs.uipath.com/activities)
- [Object Repository Guide](https://docs.uipath.com/studio/latest/user-guide/object-repository)
