@intentsolutionsio/travel-assistant 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +25 -0
- package/LICENSE +21 -0
- package/README.md +441 -0
- package/agents/budget-calculator.md +35 -0
- package/agents/local-expert.md +25 -0
- package/agents/travel-planner.md +43 -0
- package/agents/weather-analyst.md +28 -0
- package/commands/currency.md +436 -0
- package/commands/itinerary.md +72 -0
- package/commands/pack.md +85 -0
- package/commands/timezone.md +55 -0
- package/commands/travel.md +427 -0
- package/commands/weather.md +376 -0
- package/hooks/hooks.json +26 -0
- package/package.json +49 -0
- package/scripts/convert-currency.sh +17 -0
- package/scripts/fetch-weather.sh +9 -0
- package/scripts/get-timezone.sh +8 -0
- package/skills/skill-adapter/assets/README.md +6 -0
- package/skills/skill-adapter/assets/config-template.json +32 -0
- package/skills/skill-adapter/assets/skill-schema.json +28 -0
- package/skills/skill-adapter/assets/test-data.json +27 -0
- package/skills/skill-adapter/references/README.md +4 -0
- package/skills/skill-adapter/references/best-practices.md +69 -0
- package/skills/skill-adapter/references/examples.md +73 -0
- package/skills/skill-adapter/scripts/README.md +9 -0
- package/skills/skill-adapter/scripts/helper-template.sh +42 -0
- package/skills/skill-adapter/scripts/validation.sh +32 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Skill Usage Examples
|
|
2
|
+
|
|
3
|
+
This document provides practical examples of how to use this skill effectively.
|
|
4
|
+
|
|
5
|
+
## Basic Usage
|
|
6
|
+
|
|
7
|
+
### Example 1: Simple Activation
|
|
8
|
+
|
|
9
|
+
**User Request:**
|
|
10
|
+
```
|
|
11
|
+
[Describe trigger phrase here]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**Skill Response:**
|
|
15
|
+
1. Analyzes the request
|
|
16
|
+
2. Performs the required action
|
|
17
|
+
3. Returns results
|
|
18
|
+
|
|
19
|
+
### Example 2: Complex Workflow
|
|
20
|
+
|
|
21
|
+
**User Request:**
|
|
22
|
+
```
|
|
23
|
+
[Describe complex scenario]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Workflow:**
|
|
27
|
+
1. Step 1: Initial analysis
|
|
28
|
+
2. Step 2: Data processing
|
|
29
|
+
3. Step 3: Result generation
|
|
30
|
+
4. Step 4: Validation
|
|
31
|
+
|
|
32
|
+
## Advanced Patterns
|
|
33
|
+
|
|
34
|
+
### Pattern 1: Chaining Operations
|
|
35
|
+
|
|
36
|
+
Combine this skill with other tools:
|
|
37
|
+
```
|
|
38
|
+
Step 1: Use this skill for [purpose]
|
|
39
|
+
Step 2: Chain with [other tool]
|
|
40
|
+
Step 3: Finalize with [action]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Pattern 2: Error Handling
|
|
44
|
+
|
|
45
|
+
If issues occur:
|
|
46
|
+
- Check trigger phrase matches
|
|
47
|
+
- Verify context is available
|
|
48
|
+
- Review allowed-tools permissions
|
|
49
|
+
|
|
50
|
+
## Tips & Best Practices
|
|
51
|
+
|
|
52
|
+
- ✅ Be specific with trigger phrases
|
|
53
|
+
- ✅ Provide necessary context
|
|
54
|
+
- ✅ Check tool permissions match needs
|
|
55
|
+
- ❌ Avoid vague requests
|
|
56
|
+
- ❌ Don't mix unrelated tasks
|
|
57
|
+
|
|
58
|
+
## Common Issues
|
|
59
|
+
|
|
60
|
+
**Issue:** Skill doesn't activate
|
|
61
|
+
**Solution:** Use exact trigger phrases from description
|
|
62
|
+
|
|
63
|
+
**Issue:** Unexpected results
|
|
64
|
+
**Solution:** Check input format and context
|
|
65
|
+
|
|
66
|
+
## See Also
|
|
67
|
+
|
|
68
|
+
- Main SKILL.md for full documentation
|
|
69
|
+
- scripts/ for automation helpers
|
|
70
|
+
- assets/ for configuration examples
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
*[Tons of Skills](https://tonsofskills.com) by [Intent Solutions](https://intentsolutions.io) | [jeremylongshore.com](https://jeremylongshore.com)*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Scripts
|
|
2
|
+
|
|
3
|
+
Bundled resources for travel-assistant skill
|
|
4
|
+
|
|
5
|
+
- [ ] currency_converter.py: Script to fetch and convert currencies.
|
|
6
|
+
- [ ] weather_api.py: Script to fetch weather data from an API.
|
|
7
|
+
- [ ] itinerary_generator.py: Script to generate personalized itineraries.
|
|
8
|
+
- [ ] packing_list_generator.py: Script to create packing lists based on weather and activities.
|
|
9
|
+
- [ ] timezone_converter.py: Script to convert timezones.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Helper script template for skill automation
|
|
3
|
+
# Customize this for your skill's specific needs
|
|
4
|
+
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
function show_usage() {
|
|
8
|
+
echo "Usage: $0 [options]"
|
|
9
|
+
echo ""
|
|
10
|
+
echo "Options:"
|
|
11
|
+
echo " -h, --help Show this help message"
|
|
12
|
+
echo " -v, --verbose Enable verbose output"
|
|
13
|
+
echo ""
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
# Parse arguments
|
|
17
|
+
VERBOSE=false
|
|
18
|
+
|
|
19
|
+
while [[ $# -gt 0 ]]; do
|
|
20
|
+
case $1 in
|
|
21
|
+
-h|--help)
|
|
22
|
+
show_usage
|
|
23
|
+
exit 0
|
|
24
|
+
;;
|
|
25
|
+
-v|--verbose)
|
|
26
|
+
VERBOSE=true
|
|
27
|
+
shift
|
|
28
|
+
;;
|
|
29
|
+
*)
|
|
30
|
+
echo "Unknown option: $1"
|
|
31
|
+
show_usage
|
|
32
|
+
exit 1
|
|
33
|
+
;;
|
|
34
|
+
esac
|
|
35
|
+
done
|
|
36
|
+
|
|
37
|
+
# Your skill logic here
|
|
38
|
+
if [ "$VERBOSE" = true ]; then
|
|
39
|
+
echo "Running skill automation..."
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
echo "✅ Complete"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Skill validation helper
|
|
3
|
+
# Validates skill activation and functionality
|
|
4
|
+
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
echo "🔍 Validating skill..."
|
|
8
|
+
|
|
9
|
+
# Check if SKILL.md exists
|
|
10
|
+
if [ ! -f "../SKILL.md" ]; then
|
|
11
|
+
echo "❌ Error: SKILL.md not found"
|
|
12
|
+
exit 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
# Validate frontmatter
|
|
16
|
+
if ! grep -q "^---$" "../SKILL.md"; then
|
|
17
|
+
echo "❌ Error: No frontmatter found"
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
# Check required fields
|
|
22
|
+
if ! grep -q "^name:" "../SKILL.md"; then
|
|
23
|
+
echo "❌ Error: Missing 'name' field"
|
|
24
|
+
exit 1
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
if ! grep -q "^description:" "../SKILL.md"; then
|
|
28
|
+
echo "❌ Error: Missing 'description' field"
|
|
29
|
+
exit 1
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
echo "✅ Skill validation passed"
|