docs: simplify assets base url setup
This commit is contained in:
parent
5f296fcd54
commit
1ce380182c
@ -41,30 +41,24 @@ SKILLS_FILE=./assets/android-skills.yaml ./assets/sync-skills.sh
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Run Without Cloning The Repo (All Assets)
|
## Run Without Cloning The Repo (All Assets)
|
||||||
This installs skills, agents, and instructions without cloning. Set the base URL once and reuse it. If your host needs a token, put it in one place.
|
This installs skills, agents, and instructions without cloning. Set the base URL once and reuse it.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export ASSETS_TOKEN="<token-if-needed>"
|
|
||||||
export ASSETS_BASE_URL="https://<host>/org/ai-assets/raw/main/assets"
|
export ASSETS_BASE_URL="https://<host>/org/ai-assets/raw/main/assets"
|
||||||
|
|
||||||
curl -fsSL -H "Authorization: Bearer $ASSETS_TOKEN" \
|
curl -fsSL "$ASSETS_BASE_URL/sync-skills.sh" -o /tmp/sync-skills.sh
|
||||||
"$ASSETS_BASE_URL/sync-skills.sh" -o /tmp/sync-skills.sh
|
curl -fsSL "$ASSETS_BASE_URL/ios-skills.yaml" -o /tmp/ios-skills.yaml
|
||||||
curl -fsSL -H "Authorization: Bearer $ASSETS_TOKEN" \
|
|
||||||
"$ASSETS_BASE_URL/ios-skills.yaml" -o /tmp/ios-skills.yaml
|
|
||||||
|
|
||||||
chmod +x /tmp/sync-skills.sh
|
chmod +x /tmp/sync-skills.sh
|
||||||
SKILLS_FILE=/tmp/ios-skills.yaml /tmp/sync-skills.sh
|
SKILLS_FILE=/tmp/ios-skills.yaml /tmp/sync-skills.sh
|
||||||
|
|
||||||
mkdir -p ~/.agents/agents ./instructions
|
mkdir -p ~/.agents/agents ./instructions
|
||||||
curl -fsSL -H "Authorization: Bearer $ASSETS_TOKEN" \
|
curl -fsSL "$ASSETS_BASE_URL/agents/<agent-file>.agent.md" -o ~/.agents/agents/<agent-file>.agent.md
|
||||||
"$ASSETS_BASE_URL/agents/<agent-file>.agent.md" -o ~/.agents/agents/<agent-file>.agent.md
|
curl -fsSL "$ASSETS_BASE_URL/instructions/<name>.instructions.md" -o ./instructions/<name>.instructions.md
|
||||||
curl -fsSL -H "Authorization: Bearer $ASSETS_TOKEN" \
|
|
||||||
"$ASSETS_BASE_URL/instructions/<name>.instructions.md" -o ./instructions/<name>.instructions.md
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- The token and base URL are only defined once.
|
- The base URL is only defined once.
|
||||||
- Remove the Authorization header if your host does not require it.
|
|
||||||
- Cloning the repo is still recommended if you want updates and version history.
|
- Cloning the repo is still recommended if you want updates and version history.
|
||||||
|
|
||||||
## Install Agents (Clone And Copy)
|
## Install Agents (Clone And Copy)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user