@intentsolutionsio/fairdb-operations-kit 1.0.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 +26 -0
- package/LICENSE +21 -0
- package/README.md +298 -0
- package/agents/fairdb-automation-agent.md +307 -0
- package/commands/fairdb-emergency-response.md +480 -0
- package/commands/fairdb-health-check.md +459 -0
- package/commands/fairdb-onboard-customer.md +446 -0
- package/commands/fairdb-setup-backup.md +420 -0
- package/package.json +48 -0
- package/skills/fairdb-backup-manager/SKILL.md +72 -0
- package/skills/fairdb-backup-manager/assets/README.md +26 -0
- package/skills/fairdb-backup-manager/references/README.md +26 -0
- package/skills/fairdb-backup-manager/scripts/README.md +24 -0
- package/skills/skill-adapter/assets/README.md +4 -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 +10 -0
- package/skills/skill-adapter/scripts/helper-template.sh +42 -0
- package/skills/skill-adapter/scripts/validation.sh +32 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testCases": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Basic activation test",
|
|
5
|
+
"input": "trigger phrase example",
|
|
6
|
+
"expected": {
|
|
7
|
+
"activated": true,
|
|
8
|
+
"toolsUsed": ["Read", "Grep"],
|
|
9
|
+
"success": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Complex workflow test",
|
|
14
|
+
"input": "multi-step trigger example",
|
|
15
|
+
"expected": {
|
|
16
|
+
"activated": true,
|
|
17
|
+
"steps": 3,
|
|
18
|
+
"toolsUsed": ["Read", "Write", "Bash"],
|
|
19
|
+
"success": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"fixtures": {
|
|
24
|
+
"sampleInput": "example data",
|
|
25
|
+
"expectedOutput": "processed result"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Skill Best Practices
|
|
2
|
+
|
|
3
|
+
Guidelines for optimal skill usage and development.
|
|
4
|
+
|
|
5
|
+
## For Users
|
|
6
|
+
|
|
7
|
+
### Activation Best Practices
|
|
8
|
+
|
|
9
|
+
1. **Use Clear Trigger Phrases**
|
|
10
|
+
- Match phrases from skill description
|
|
11
|
+
- Be specific about intent
|
|
12
|
+
- Provide necessary context
|
|
13
|
+
|
|
14
|
+
2. **Provide Sufficient Context**
|
|
15
|
+
- Include relevant file paths
|
|
16
|
+
- Specify scope of analysis
|
|
17
|
+
- Mention any constraints
|
|
18
|
+
|
|
19
|
+
3. **Understand Tool Permissions**
|
|
20
|
+
- Check allowed-tools in frontmatter
|
|
21
|
+
- Know what the skill can/cannot do
|
|
22
|
+
- Request appropriate actions
|
|
23
|
+
|
|
24
|
+
### Workflow Optimization
|
|
25
|
+
|
|
26
|
+
- Start with simple requests
|
|
27
|
+
- Build up to complex workflows
|
|
28
|
+
- Verify each step before proceeding
|
|
29
|
+
- Use skill consistently for related tasks
|
|
30
|
+
|
|
31
|
+
## For Developers
|
|
32
|
+
|
|
33
|
+
### Skill Development Guidelines
|
|
34
|
+
|
|
35
|
+
1. **Clear Descriptions**
|
|
36
|
+
- Include explicit trigger phrases
|
|
37
|
+
- Document all capabilities
|
|
38
|
+
- Specify limitations
|
|
39
|
+
|
|
40
|
+
2. **Proper Tool Permissions**
|
|
41
|
+
- Use minimal necessary tools
|
|
42
|
+
- Document security implications
|
|
43
|
+
- Test with restricted tools
|
|
44
|
+
|
|
45
|
+
3. **Comprehensive Documentation**
|
|
46
|
+
- Provide usage examples
|
|
47
|
+
- Document common pitfalls
|
|
48
|
+
- Include troubleshooting guide
|
|
49
|
+
|
|
50
|
+
### Maintenance
|
|
51
|
+
|
|
52
|
+
- Keep version updated
|
|
53
|
+
- Test after tool updates
|
|
54
|
+
- Monitor user feedback
|
|
55
|
+
- Iterate on descriptions
|
|
56
|
+
|
|
57
|
+
## Performance Tips
|
|
58
|
+
|
|
59
|
+
- Scope skills to specific domains
|
|
60
|
+
- Avoid overlapping trigger phrases
|
|
61
|
+
- Keep descriptions under 1024 chars
|
|
62
|
+
- Test activation reliability
|
|
63
|
+
|
|
64
|
+
## Security Considerations
|
|
65
|
+
|
|
66
|
+
- Never include secrets in skill files
|
|
67
|
+
- Validate all inputs
|
|
68
|
+
- Use read-only tools when possible
|
|
69
|
+
- Document security requirements
|
|
@@ -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,10 @@
|
|
|
1
|
+
# Scripts
|
|
2
|
+
|
|
3
|
+
Bundled resources for fairdb-operations-kit skill
|
|
4
|
+
|
|
5
|
+
- [ ] fairdb_provision_vps.sh Automates VPS provisioning using Contabo API.
|
|
6
|
+
- [ ] fairdb_install_postgres.sh Installs and configures PostgreSQL 16.
|
|
7
|
+
- [ ] fairdb_setup_backup.sh Configures pgBackRest with Wasabi S3 storage.
|
|
8
|
+
- [ ] fairdb_onboard_customer.sh Automates customer onboarding process.
|
|
9
|
+
- [ ] fairdb_health_check.sh Performs comprehensive system health verification.
|
|
10
|
+
- [ ] fairdb_emergency_response.sh Guides incident response procedures.
|
|
@@ -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"
|