HomeGuidesSDK ExamplesAnnouncementsCommunity
Guides

Imported Code Skills

This guide explains how to import and use code skills within Skill Studio. It is intended for developers or technical users who want to extend an assistant’s functionality using code. Before starting, ensure you have a .zip file containing your skill's code and a Skill Studio environment where you have editing access.

Main Content

1. Importing Your Code Skill

  1. Open Skill Studio and navigate to the assistant you want to update.
  2. Click Add Skill, then select Import Skill from the list of templates.
  3. Confirm your choice to proceed.

2. Upload the Code File

  1. Click the Upload button and select your .zip file.
    • ⚠️ The .zip file must contain all required code and files for the skill.
  2. Hit Open, then click Upload to start the import process.
  3. Confirm the import when prompted.
  4. Your new skill will now appear in the skill list.

3. Browse the Imported Files

  • On the left-hand side, you’ll see the directory tree from your uploaded zip file.
  • Click to expand folders and select individual files.
  • The code viewer on the right will display the contents of the selected file.
    • 📝 If the file is larger than 500 KB, it may not be viewable in the editor.

4. Testing Your Skill

  1. In the top-left corner, click the Chat tab.
  2. Enter a question to test how your skill responds.
  3. You’ll see the response in both:
    • The Chat window, and
    • The Preview pane (⚠️ The preview will display the same output for every question).

5. Viewing Logs

  • Select the Logs tab to view how your skill was processed.
  • It includes a detailed pipeline trace.
  • Preview still shows the generated output.
  • 🔒 Note: You cannot edit code directly from the chat, preview, or logs tabs, even if edit mode is enabled.

6. Updating the Skill

  • To update the code:
    1. Click the Options button in the top-right corner.
    2. Select Reimport Code.
    3. Upload a new version of the .zip file to replace the existing code.

Conclusion

You’ve now successfully imported, viewed, and tested a code skill in Skill Studio. Use the reimport option to keep your skills updated, and always test changes via the chat interface to ensure functionality. For best results, keep file sizes manageable and structure your zip directory cleanly for easier navigation.