coding-agents
2026.10
false
UiPath for Coding Agents 用户指南
- 开始使用
- 最佳实践
- 功能
- 技能
- CLI
- 示例
- 高级
- 帮助
为您的智能体提供项目上下文
Give your coding agent project rules and conventions with context files such as AGENTS.md.
A context file holds the project rules your coding agent reads at the start of each session.
Agents.md,通用约定
AGENTS.md sits at the project root. Some agents use their own file or folder.
| 代理 | Project context file |
|---|---|
| UiPath Autopilot | AGENTS.md |
| Claude Code | CLAUDE.md |
| 抄送 | AGENTS.md |
| GitHub Copilot | .github/copilot-instructions.md; AGENTS.md in some surfaces, such as VS Code and Copilot CLI |
| Grok Build (formerly Cursor) | AGENTS.md, .cursor/rules/*.mdc |
| Antigravity | AGENTS.md or GEMINI.md, and rule files in .agents/rules/ |
| Devin Desktop (formerly Windsurf) | AGENTS.md、.devin/rules/、.windsurf/rules、.windsurfrules、global_rules.md |
| 基罗 | AGENTS.md, steering files in .kiro/steering/ |
| 打开代码 | AGENTS.md, or CLAUDE.md when there is no AGENTS.md |
For Devin, check its documentation.
范围
- Global: personal preferences, such as your default organization and tenant.
- Project: one project's conventions and team rules, stored in the repository.
Project instructions
Keep the file short and current. Include:
- The UiPath skills for the project
- A quality rule, such as resolving every Workflow Analyzer problem
- Package and activity preferences
- Naming and structure conventions
- Constraints, such as not overwriting recorded UI workflows
# Project conventions
- Use the `uipath-rpa` skill for automation work in this project.
- Always run the Workflow Analyzer (Analyze Project) and resolve every problem before calling work done.
- Prefer native activities over Invoke Code; keep UI activities inside a Use Application/Browser scope.
- Pin package versions in project.json; do not upgrade packages without asking.
# Project conventions
- Use the `uipath-rpa` skill for automation work in this project.
- Always run the Workflow Analyzer (Analyze Project) and resolve every problem before calling work done.
- Prefer native activities over Invoke Code; keep UI activities inside a Use Application/Browser scope.
- Pin package versions in project.json; do not upgrade packages without asking.
See also RPA workflows.
由 UiPath 技能编写的上下文文件
When project context is missing or out of date, the RPA skill writes the project's structure, dependencies, and conventions to:
.claude/rules/project-context.md- The root
AGENTS.md, between<!-- PROJECT-CONTEXT:START -->and<!-- PROJECT-CONTEXT:END -->markers. Other content is unchanged. Without markers, the block is appended.
Projects created in Studio 2026.10 or later start with an AGENTS.md and a CLAUDE.md, unless a policy turns this off. Other empty projects get the files after the first build.
To refresh, ask the agent to regenerate the project context.