Skill and Rule Management Center
You can manage your skills and rules on the Skills & Rules page, such as creating, editing, enabling, and deleting skills and rules. The skills and rules can be synchronized and used on the CodeArts Agent client.
CodeArts Agent allows you to create local and cloud skills and rules. Local skills and rules are created on the client, while cloud skills and rules are created on the console. Note that cloud user rules can be created either on the console or on the local client.
This section describes how enterprise members manage cloud skills and rules on the console. For details about how to manage skills and rules on the client, see Skills and Rules.
Skill Directory Structure
skill-name/
├── SKILL.md (Required)
│ ├── YAML frontmatter metadata (Required)
│ │ ├── name: (Required)
│ │ └── description: (Required)
│ └── Markdown instructions (Required)
└── Bundled Resources/ (Optional)
├── scripts/ - Executable code (Python, Bash, etc.)
├── references/ - Documents to be loaded into the context
└── assets/ - Files used in the output (templates, icons, fonts, etc.) | Parameter | Description |
|---|---|
| skill-name | Serves as the root directory for the entire skill. Replace skill-name with your specific skill's name, such as data-analysis-skill. The skill name consists of lowercase letters, digits, and hyphens (-). It cannot start or end with a hyphen, cannot contain consecutive hyphens, and must be 1 to 64 characters in length. |
| SKILL.md | Serves as the core description file of a skill. Its name cannot be modified. It includes the following essential sections:
|
| Bundled Resources (optional) | Holds files needed for the skill. While not mandatory, it enhances the skill's functionality.
|
Cloud Skill and Rule Types
| Scope | Applicable To | Description |
|---|---|---|
| Enterprise | All enterprise members | Skills and rules available throughout the enterprise, available to all members, created by the enterprise administrator, and stored in the cloud. |
| Team | All members of a specified team | Skills and rules available to entire teams, available to specific teams, created by the enterprise administrator or team administrator, and stored in the cloud. |
| User | Self only | Available only to a specific user and stored in the cloud. |
Constraints
- Only the basic and professional packages support the creation of cloud skills and rules.
- If there are skills or rules with the same name, the invocation priority is as follows:
- Skills: cloud enterprise skills > cloud team skills > local project skills > local user skills > cloud user skills > built-in system skills.
- Rules: cloud enterprise rules > cloud team rules > local project rules > local user rules > cloud user rules.
Creating a Cloud Skill
- Log in to the CodeArts Agent console as an enterprise member or administrator.
- In the navigation pane on the left, choose Agent Settings > Skills and Rules. The skill and rule lists are displayed.
- On the Skills tab, click Add Skill in the upper right corner. The Add Skill dialog box is displayed.
- Click in the blue box area and upload the target skill ZIP file from your local machine. Alternatively, drag and drop the local skill ZIP file to the blue box area and click OK.
- The skill ZIP file must conform to the required directory structure; otherwise, the import may fail. For example, the root directory of each skill folder must contain a SKILL.md file, which must include the skill name, description, and other details in YAML format.
- Only one ZIP file can be uploaded at a time. The file can contain multiple skill folders, and the total file size cannot exceed 5 MB.
Figure 1 Creating a skill
- Set parameters for creating a cloud skill as instructed in Table 3. Figure 2 Creating a cloud skill
Table 3 Cloud skill parameters Parameter
Description
Change
If you need to re-upload a skill ZIP file, click Change and re-upload it as instructed in 4.
Applied To
- Private: available only to yourself and will not be shared with other users.
- Team: available to specified teams and can be created by enterprise administrators or team administrators.
- Enterprise: available to all members of the entire enterprise, and can only be created by enterprise administrators.
Teams
This parameter is displayed only when Applied To is set to Team.
Select a team from the drop-down list. If no team has been created, create one first.
Enterprise administrators can view and select all teams, while team administrators can only view and select the team they belong to.
Tag
(Optional) Several types of tags have been preset in CodeArts Agent. Select tags from the drop-down list as required.
- Click Confirm and Enable to complete the skill creation.
On the Skills tab, view the created skill. To immediately view the created cloud skill on the client, go to the corresponding skill tab (Enterprise/Team/User) under Skills and Rules on the settings page of the client, and click
or choose
> Update in the skills area. Then the cloud skill is synchronized to the client.
- The client automatically synchronizes cloud skills every 24 hours.
- The client synchronizes only enabled skills.
Managing Cloud Skills
Table 4 shows the operation permissions of different roles on managing cloud skills.
| Role | Enterprise Skill | Team Skill | User Skill |
|---|---|---|---|
| Enterprise administrator | All operations on all skills. | All operations on all skills. | All operations except editing on all skills. They can edit only the skills created by themselves. |
| Team administrator | The following operations can be performed:
| All operations on skills created by members of their own team (including the team administrators). | All operations on the skills created by themselves. |
| Team member | The following operations can be performed:
| The following operations can be performed on skills created by members of their own team:
| All operations on the skills created by themselves. |
| Enterprise member | The following operations can be performed:
| No operation permissions. | All operations on the skills created by themselves. |
| Operation | Procedure |
|---|---|
| Viewing cloud skill details |
|
| Editing cloud skills |
|
| Deleting a cloud skill |
CAUTION: Deleting a skill will affect the agents using it. Deleted skills cannot be recovered. Exercise caution when performing this operation. |
| Enabling or disabling a cloud skill | Use either of the following methods to enable or disable a cloud skill:
|
| Adding a cloud skill to favorites or removing it | On the console, choose Skills & Rules, click the Skills tab, and click Favorite or Unfavorite next to the target skill. View the favorites on the Favorites tab. |
| Batch deleting cloud skills |
|
| Batch enabling or disabling cloud skills | Use either of the following methods to batch enable or disable cloud skills:
|
| Batch adding cloud skills to favorites or removing them | On the console, choose Skills & Rules, and click the Skills tab. Select the target skills and choose More > Batch Favorite or More > Batch Unfavorite in the upper right corner. View the favorites on the Favorites tab. |
Creating a Cloud Rule
- Log in to the CodeArts Agent console as an enterprise member or administrator.
- In the navigation pane on the left, choose Agent Settings > Skills and Rules. The skill and rule lists are displayed.
- On the Rules tab, click Add Rule in the upper right corner. The Add Rule dialog box is displayed.
- Set the parameters based on Table 6. Figure 3 Creating a cloud rule
Table 6 Cloud rule parameters Parameter
Description
Name
Name of the rule to be created.
Naming rules: Enter 1 to 64 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.
Content
Customize one or more rules. The value can contain a maximum of 50,000 characters.
Example: requiring the system to always respond using Python.
Application Scope
Application scope of a rule, that is, where the rule takes effect.
- Auto Apply: The rule applies to all chats by default and is automatically identified by the system.
- Manual Call: The rule does not take effect automatically. To use the rule, on the chat panel, enter # in the input box or click
and choose Add Context. Then click Rules and select a rule from the list.
Applied To
- Private: available only to enterprise members themselves.
- Team: available to all members in a specified team, and can be created by enterprise administrators or team administrators.
- Enterprise: available to all members of the entire enterprise, and can only be created by enterprise administrators.
Teams
This parameter is displayed only when Applied To is set to Team.
Select a team from the drop-down list. If no team has been created, create one first.
Enterprise administrators can view and select all teams, while team administrators can only view and select the team they belong to.
Label
(Optional) Several types of tags have been preset in CodeArts Agent. Select tags from the drop-down list as required.
Brief Description
(Optional) Description of the rule. Enter up to 1,024 characters.
- Click Confirm and Enable to complete the rule creation.
On the Rules tab, view the created rule. To immediately view the created cloud rule on the client, go to the corresponding rule tab (Enterprise/Team/User) under Skills and Rules on the settings page of the client, and click
in the rules area. Then the cloud rule is synchronized to the client.
- The client automatically synchronizes cloud rules every 24 hours.
- The client synchronizes only enabled rules.
Managing Cloud Rules
Table 7 shows the operation permissions of different roles on managing cloud rules.
| Role | Enterprise Rule | Team Rule | User Rule |
|---|---|---|---|
| Enterprise administrator | All operations on all rules. | All operations on all rules. | All operations except editing on all rules. They can edit only the rules created by themselves. |
| Team administrator | The following operations on all rules:
| All operations on rules created by members of their own team (including the team administrators). | All operations on the rules created by themselves. |
| Team member | All operations on all rules.
| The following operations can be performed on rules created by members of their own team (including the team administrator):
| All operations on the rules created by themselves. |
| Enterprise member | All operations on all rules.
| No operation permissions. | All operations on the rules created by themselves. |
| Operation | Procedure |
|---|---|
| Viewing cloud rule details |
|
| Editing a cloud rule |
|
| Deleting a cloud rule |
CAUTION: Deleting a rule will affect the agents using it. Deleted rules cannot be recovered. Exercise caution when performing this operation. |
| Enabling or disabling a cloud rule | On the console, choose Skills & Rules, click the Rules tab, and click Only enabled rules can be synchronized to the client. |
| Adding a cloud rule to favorites or removing it | On the console, choose Skills & Rules, click the Rules tab, and click Favorite or Unfavorite next to the target rule. View the favorites on the Favorites tab. |
| Batch deleting cloud rules |
CAUTION: Deleting a rule will affect the agents using it. Deleted rules cannot be recovered. Exercise caution when performing this operation. |
| Batch enabling or disabling cloud rules | On the console, choose Skills & Rules, and click the Rules tab. Select the target rules and click Batch Enable or choose More > Batch Disable in the upper right corner. Only enabled rules can be synchronized to the client. |
| Batch adding cloud rules to favorites or removing them | On the console, choose Skills & Rules, and click the Rules tab. Select the target rules and choose More > Batch Favorite or More > Batch Unfavorite in the upper right corner. View the favorites on the Favorites tab. |
| Modifying the application scope of cloud enterprise rules or team rules | On the settings page of CodeArts Agent IDE, choose Skills and Rules > Enterprise > Rules or Skills and Rules > Team > Rules. Locate the target rule and click the switch next to it.
|
| Batch modifying the application scope of cloud enterprise rules or team rules |
|
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot










