Skip to content

Commit e107d30

Browse files
authored
chore: Add detailed installation instructions for skills (#4487)
1 parent b98ab36 commit e107d30

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

skills/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,25 @@ Agent skills are essentially specialized prompt contexts. When building agents (
7070

7171
To use these skills with your AI agent:
7272

73-
1. **Clone the Repository**: Clone this repository to your local development environment or production workspace.
74-
2. **Expose to Agent**: Ensure the `skills/` directory is accessible to your AI assistant. This typically involves mounting or copying the folder into your agent's workspace (e.g., `.agents/skills/` or equivalent custom routing directory).
75-
3. **Trigger the Skills**: Prompt your agent with a Vertex AI related task. The agent should automatically scan for skills, find the primary `vertex-ai/SKILL.md` router, and follow the documented workflow.
73+
1. **Clone the repository** (without checking out files yet):
74+
```bash
75+
git clone --no-checkout https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
76+
```
77+
2. **Enable sparse checkout in cone mode**:
78+
```bash
79+
cd vertex-ai-samples
80+
git sparse-checkout init --cone
81+
```
82+
3. **Specify the skills folder**:
83+
```bash
84+
git sparse-checkout set skills
85+
```
86+
4. **Check out the branch**:
87+
```bash
88+
git checkout main
89+
```
90+
5. **Expose to Agent**: Ensure the `skills/` directory is accessible to your AI assistant. This typically involves mounting or copying the folder into your agent's specific custom routing directory. See the [Tool Configuration](#tool-configuration) section above for the correct path for your tool.
91+
6. **Trigger the Skills**: Prompt your agent with a Vertex AI related task. The agent should automatically scan for skills, find the primary `vertex-ai/SKILL.md` router, and follow the documented workflow.
7692

7793
### Example Prompts
7894

0 commit comments

Comments
 (0)