Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
{}, square brackets [], and key-value pairs. Think of it like a very organized filing cabinet where everything has a specific place.Adventure 1
{}{} containing related data{
"weather": {
"temperature": "22°C",
"condition": "sunny",
"wind": {
"speed": "10 km/h"
}
}
}Adventure 1
curl https://wttr.in/Beijing?format=j1 | head -30Adventure 1
{} that contains everything: is what you want!Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
cd ~/clawd/skills
mkdir weather
vim weather/SKILL.mdAdventure 1
# Weather Query Skill
## Trigger Words
User mentions "weather", "temperature", "rain", "forecast"
## Steps
1. Get the city name from the user's question
2. Call: curl https://wttr.in/{city}?format=j1
3. Parse the JSON response
4. Tell the user in a friendly way
## Example
User: "What's the weather in Tokyo?"
Response: "It's currently 18°C in Tokyo with partly cloudy skies!"Adventure 1
openclaw restart
openclaw agent --message "What's the weather in Beijing today?"
openclaw agent --message "How's the weather in Los Angeles?"Adventure 1
Adventure 1
Adventure 1
mkdir ~/clawd/skills/jokes
vim ~/clawd/skills/jokes/SKILL.md# Joke Skill
## Trigger Words
"joke", "funny", "make me laugh", "tell me something funny"
## Steps
1. Call: curl https://icanhazdadjoke.com/
2. Add header: Accept: application/json
3. Parse the response and find the "joke" field
4. Tell the user enthusiastically!
## Example
User: "Tell me a joke!"
Response: "Here's a good one: [joke from API]"Adventure 1
openclaw restart
openclaw agent --message "Tell me a joke!"
openclaw agent --message "Got anything funny?"Adventure 1
Accept: application/json? That's called a header.Adventure 1
~/clawd/skills/ directory. Use pwd to check your location.openclaw restart.Adventure 1
{} and brackets [] are closed. JSON is picky!Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1