You can automate recurring tasks and extend the functionality of the chat with Code Assistant in the SourceCraft interface using AI skills.
An AI skill starts in the chat with Code Assistant and supplies the AI agent with instructions and context specific to the particular task and repository the chat has been opened in.
Instead of providing the AI agent with multi-step instructions each time, describe them once and call them as an AI skill as needed. AI skills also allow you to standardize your workflow within your team and replicate it across different repositories.
For example, you can do the following using AI skills:
Complete interactive training for SourceCraft users.
Follow these guides to set up skills in the SourceCraft interface. Learn more about the Configuration as Code setup format in Skill configuration files.
On the Home tab, under Your craftspace, navigate to Repositories.
Select the repository you want to run a skill in.
In the panel on the left, click Code Assistant Chat.
You can also run a skill from CI/CD in the AI section.
Click in the bottom-right corner of the chat and select the skill you want to run.
Tip
If you know the command corresponding to the skill, you can also start typing it in the chat beginning with /, e.g., /configs, and then select the command from the drop-down menu, e.g., /configs-helper.
Click or press Enter.
Optionally, if the skill implies any parameters, enter them or select them from the drop-down menu and click Accept.
Code Assistant may ask you clarifying questions as you go along. Answer them in the chat in natural language.
Tip
If you change your mind and want to stop Code Assistant, click Stop.
Wait for the Finished skill scenario message to appear in the chat.
If changes were applied to the repository when executing a skill:
In the top-right corner, click Commit changes.
In the window that opens, configure the procedure for changes:
In the Commit message field, give a comment that will describe the changes you make.
Under Commit branch, select the branch you want to change. Create a new branch as needed.
Under After commit action, select an action to take after saving changes: Save and create a new change proposal or Just save.
Imported skills contain instructions for Code Assistant that will be executed within your repository. Make sure to review the contents of these instructions before using a skill.
Note that an imported skill can be modified by its author, which may, in turn, lead to unexpected behavior.