---
title: "Using the Script Library"
slug: "using-the-script-library-1"
updated: 2024-09-05T21:27:48Z
published: 2024-09-05T21:27:48Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Script Library

The Script Library is a hub for script templates used in Activity-based Assessment (ABA) and Life Cycle Action (LCA), facilitating script creation and maintenance across multiple labs. It standardizes the scripting process, reduces overhead, and fosters collaboration by enabling script sharing. The library's templates can be utilized as-is or as a foundation for creating ABA and LCA scripts.

## Overview of Script Library

The Script Library is a repository of script templates that can be used in Activity Based Assessments (ABA) or Life Cycle Actions (LCA). These scripts can be used as they are, or they can serve as a starting point to expedite the creation of ABA and LCA scripts. The Script Library is the best place to store scripts as templates that you can tag with metadata to be easily searched for and used in other ABA or LCA scripts. Gone are the days of copy and paste between Lab Profiles. The most challenging was to try and remember where a certain script was used and in which lab profile, making the effort more tiresome and not able to scale well. Now with Script Library this is entirely eliminated with a way to centralize the scripts into a Library of Templates that can be referenced easily.

## Best Practices

- Always make sure that you provide meaningful Script Template Names and utilize Keywords to allow easier searching of related Script Templates.
- Remember to leverage the Markdown formatting when writing the **How to Use this Script** as this will provide the nessasary detail for successful adoption and utilization of Script Templates.
- It is best that Script Template Names are unique to make it more recognizable when searching.
- The best way for an Organization to keep the Script Libary organized is to have the Lab Administrator be the one responsible for managing the templates, with the permissions to Create/Edit/Delete script templates. All Lab Developers will have read access to the Script Library to be able choose a script template from the Script Library to insert into their lab LCA or ABAs.

## Accessing the Script Library

Script Library can be accessed from within ABA, LCA or from the Admin page. If the user has the appropriate viewing permissions then a **Choose from Script Library** will be visible within the ABA, LCA script panel. On the **Admin** page the user will see the **Script Library** tile. Once the user selects one of these buttons they will be presented with the **Choose a Script Template** list view where they can then filter and choose the appropriate Script Template to use.

### Using Script Library in Activity Based Assessments

Scripts from the Script Library can be added to an existing or new ABA.

#### Add script to existing Activity Based Assessment

1. Navigate to the Lab Profile you wish to add a script to an Activity Based Assessment.
2. Select **Edit Instructions** in the upper-right corner.
3. Select the appropriate Instruction Set.
4. Select the Activities menu.
5. Select **Edit** next to the Automated Activity you wish to add a script to.
6. Select **New Script**.
7. Select **Choose from Script Library**.

Script Template auto filter

When choosing a Script Template from within an ABA the Script Library Template list will be auto filtered with the use of **Scoring**.
8. Select the row of the script template you wish to add.
9. Select **OK**. The script you selected should be inserted into the ABA script section.

#### Add script to new Activity Based Assessment

1. Navigate to the Lab Profile you wish to add a script to an Activity Based Assessment.
2. Select **Edit Instructions** in the upper-right corner.
3. Select the appropriate Instruction Set.
4. Select the Activities menu.
5. Select **New Automated Activity**.
6. Select **Choose from Script Library**.
7. Select the row of the script template you wish to add.
8. Select **OK**. The script you selected should be inserted into the ABA script editor.

### Using Script Library with Life Cycle Actions

Scripts from the Script Library can be added to Life Cycle Actions.

1. Navigate to the Lab Profile you wish to add a script to an LCA.
2. Select **Edit Profile** in the upper-right corner.
3. Navigate to the **Life Cycle** tab.
4. Select **+Add Life Cycle Action**.
5. Ensure that the Action drop-down menu is set to Execute Script in Virtual Machine, Execute Script in Container, Execute Script in Cloud Platform, or Execute Custom Script. (the option that will be selected will depend on the resources available in your lab profile.)
6. Select **Choose from Script Library**.

Script Library Template list

When choosing a Script Template from within a LCA the Script Library Template list will be based available on the following:

  - **Life Cycle Action (Creation/Configuration)**
    - Event is one of (Pre-Build, Post-Build, First Displayable, Saving, Saved, Resuming, Resumed)
  - **Life Cycle Action (Teardown/Cleanup)**
    - Event is one of (Scoring, Scored, Tearing Down, Torn Down)
7. Select the row of the script template you wish to add.
8. Select **OK**. The script you selected should be inserted into the LCA script editor.

## Managing Script Templates in Script Library

Managing scripts templates in the Script Library depends on your user account having the appropriate permissions. You will only be able to manage script templates that belong to organizations that you manage in Skillable Studio.

### Editing a Script Template

1. Navigate to the Admin page of Skillable Studio.
2. Select **Find Script Template**.
3. Enter any search criteria to locate the script template you wish to manage, or search without any search criteria to return a list of scripts that are available to the organizations that you manage.
4. Select any script template to open the Edit Script Template form.
5. Edit the Name, Description, Primary use, Keyboards, Target, Language, Language version, Script content and How to Use this Script.

How to Use this Script

This field supports Markdown and it is best to utilize this field to put properly formatted information to instruct Lab Builders how to use this script properly.
6. Once all editing is complete select **SAVE SCRIPT TEMPLATE**.

### Creating a Script Template

1. Navigate to the Admin page of Skillable Studio.
2. Select **Create Script Template**.
3. Edit the Name, Description, Primary use, Keyboards, Target, Language, Language version, Script content and How to Use this Script.

Organization field

The Organization field will be auto populated with the users default managed organization. If the user manages multiple organizations then the drop down will present all of the available managed orgamizations the user has access to.
4. Once all editing is complete select **CREATE SCRIPT TEMPLATE**.

Enabling Script Templates

There may be times where a Script Template may need to be disabled. This is done by selecting the Enabled slider. Be careful, once the Script Template is disabled it will no longer be a candidate to be added to an ABA or LCA until this Script Template is re-enabled.

## Publishing a script created from scratch to the Script Template

If the user has the appropriate permissions they are able to publish a saved script within an ABA Auomated Activity or LCA to the Script Library as a Template. This script in one that would have been created from scratch.

### Publish script from an Activity Based Assessment

1. Navigate to the Lab Profile you wish to publish a script to the Script Library from an Activity Based Assessment.
2. Select **Edit Instructions** in the upper-right corner.
3. Select the appropriate Instruction Set.
4. Select the Activities menu.
5. Select **Edit** next to the Automated Activity you wish to publish a script from.
6. Navigate to the desired script to publish.
7. Select the Command **Menu** options, the three dots located on the right of the Script Info Pane Header.

Not Seeing the Command Menu Options?

Only saved activities are able to be published and thus the menu only shows for those activitiy scripts that are first saved.
8. Select **Publish Script**.
9. Edit the Name, Description, Primary use, Keyboards, Target, Language, Language version, Script content and How to Use this Script.

How to Use this Script field

This field supports Markdown and it is best to utilize this field to put properly formatted information to instruct Lab Builders how to use this script properly.
10. Once all editing is complete select **CREATE SCRIPT TEMPLATE**.

How to Cancel saving a Script Template

If you are on the **Create Script Template** form, closing the Tab will cancel the save action and no Script Template will be saved.

### Publish script from a Life Cycle Action

1. Navigate to the Lab Profile you wish to publish a script to the Script Library from a Life Cycle Action.
2. Select **Edit Profile** in the upper-right corner.
3. Navigate to the **Life Cycle** tab.
4. Select **Edit** icon on the appropriate LCA scoring script that is to be published.
5. Select the Command **Menu** options, the three dots located on the right of the Script Info Pane Header.

Not Seeing the Command Menu Options?

Only saved Life Cycle Action scripts at the Lab Profile are able to be published and thus the menu only shows for those saved scripts.

**Remember:** Save the Lab Profile to commit and save the Life Cycle Action scripts.
6. Select **Publish Script**.
7. Edit the Name, Description, Primary use, Keyboards, Target, Language, Language version, Script content and How to Use this Script.
8. Once all editing is complete select **CREATE SCRIPT TEMPLATE**.

## Related Topics

- [Getting Started with Script Library](/v1/docs/getting-started-with-script-library)
- [Getting Started with Script Library AI Copilot](/v1/docs/getting-started-with-script-library-ai-copilot)
- [Dual Pane Script Editor](/v1/docs/dual-pane-script-editor)

Activity-based Assessments are labs that contain activities that validate a if a given task was completed succesfully or not and provide real-time feedback directly to the learner as they are progressing through the lab.

With Life Cycle Actions, Skillable Studio is able to execute actions when specific events occur during the lab instance life cycle.

Labs in Skillable Studio are housed in a Lab Profile. The Lab Profile contains the information about the configurable settings and the virtual machines that make up a lab. For a Lab Profile to be published it must be part of a Lab Series.

Markdown is an easy-to-use set of markup language to format text. Markdown also supports the use of embedded HTML syntax to format the contents.
