Initial commit
This commit is contained in:
8
skills/skill-adapter/assets/README.md
Normal file
8
skills/skill-adapter/assets/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Assets
|
||||
|
||||
Bundled resources for fullstack-starter-pack skill
|
||||
|
||||
- [ ] react_component_templates/: Templates for various React components, such as forms, tables, and modals.
|
||||
- [ ] express_route_templates/: Templates for various Express routes, such as CRUD operations and authentication endpoints.
|
||||
- [ ] postgresql_model_templates/: Templates for various PostgreSQL models, such as users, products, and orders.
|
||||
- [ ] example_env_config.env: An example .env file with all the necessary environment variables for the full-stack application.
|
||||
32
skills/skill-adapter/assets/config-template.json
Normal file
32
skills/skill-adapter/assets/config-template.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"skill": {
|
||||
"name": "skill-name",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"settings": {
|
||||
"verbose": false,
|
||||
"autoActivate": true,
|
||||
"toolRestrictions": true
|
||||
}
|
||||
},
|
||||
"triggers": {
|
||||
"keywords": [
|
||||
"example-trigger-1",
|
||||
"example-trigger-2"
|
||||
],
|
||||
"patterns": []
|
||||
},
|
||||
"tools": {
|
||||
"allowed": [
|
||||
"Read",
|
||||
"Grep",
|
||||
"Bash"
|
||||
],
|
||||
"restricted": []
|
||||
},
|
||||
"metadata": {
|
||||
"author": "Plugin Author",
|
||||
"category": "general",
|
||||
"tags": []
|
||||
}
|
||||
}
|
||||
100
skills/skill-adapter/assets/example_env_config.env
Normal file
100
skills/skill-adapter/assets/example_env_config.env
Normal file
@@ -0,0 +1,100 @@
|
||||
# Fullstack Starter Pack - Example Environment Configuration
|
||||
|
||||
# This file provides example environment variables for the full-stack application.
|
||||
# Copy this file to .env (or .env.production, .env.development as needed) and
|
||||
# fill in the values according to your setup.
|
||||
|
||||
# ==============================================================================
|
||||
# General Application Configuration
|
||||
# ==============================================================================
|
||||
|
||||
NODE_ENV=development # Set to 'production' for production environments
|
||||
|
||||
# Application Port (frontend and backend)
|
||||
PORT=3000 # Frontend port (e.g., React app)
|
||||
BACKEND_PORT=8000 # Backend port (e.g., Express/FastAPI server)
|
||||
|
||||
# API Base URL (Used by frontend to connect to backend)
|
||||
REACT_APP_API_BASE_URL=http://localhost:8000 # Adjust for production deployment
|
||||
|
||||
# ==============================================================================
|
||||
# Database Configuration (PostgreSQL)
|
||||
# ==============================================================================
|
||||
|
||||
# Database Host (e.g., localhost, IP address, or Docker service name)
|
||||
DB_HOST=localhost
|
||||
|
||||
# Database Port
|
||||
DB_PORT=5432
|
||||
|
||||
# Database Name
|
||||
DB_NAME=your_database_name
|
||||
|
||||
# Database User
|
||||
DB_USER=your_database_user
|
||||
|
||||
# Database Password
|
||||
DB_PASSWORD=your_database_password
|
||||
|
||||
# Enable SSL for database connection (recommended for production)
|
||||
DB_SSL=false # Set to 'true' for SSL enabled connections. Requires SSL certificates.
|
||||
|
||||
# ==============================================================================
|
||||
# Backend Configuration (Express/FastAPI)
|
||||
# ==============================================================================
|
||||
|
||||
# Session Secret (Used for session management - MUST be a strong, random string)
|
||||
SESSION_SECRET=your_super_secret_session_key
|
||||
|
||||
# JWT Secret (Used for JWT authentication - MUST be a strong, random string)
|
||||
JWT_SECRET=your_super_secret_jwt_key
|
||||
|
||||
# CORS Configuration (Comma-separated list of allowed origins)
|
||||
CORS_ORIGIN=http://localhost:3000 # Add your frontend URL(s) here. Use '*' for all origins (NOT recommended for production).
|
||||
|
||||
# ==============================================================================
|
||||
# AI Agent Configuration (Optional - if using AI features)
|
||||
# ==============================================================================
|
||||
|
||||
# OpenAI API Key (Required if using OpenAI models)
|
||||
OPENAI_API_KEY=your_openai_api_key
|
||||
|
||||
# Other AI Provider API Keys (e.g., Cohere, Anthropic) - Add as needed
|
||||
# COHERE_API_KEY=your_cohere_api_key
|
||||
# ANTHROPIC_API_KEY=your_anthropic_api_key
|
||||
|
||||
# ==============================================================================
|
||||
# Logging Configuration (Optional)
|
||||
# ==============================================================================
|
||||
|
||||
# Log Level (e.g., 'debug', 'info', 'warn', 'error')
|
||||
LOG_LEVEL=info
|
||||
|
||||
# ==============================================================================
|
||||
# Email Configuration (Optional - if using email features)
|
||||
# ==============================================================================
|
||||
|
||||
# Email Service (e.g., 'nodemailer', 'sendgrid')
|
||||
EMAIL_SERVICE=nodemailer
|
||||
|
||||
# Email Host (e.g., SMTP server address)
|
||||
EMAIL_HOST=smtp.example.com
|
||||
|
||||
# Email Port
|
||||
EMAIL_PORT=587
|
||||
|
||||
# Email User
|
||||
EMAIL_USER=your_email@example.com
|
||||
|
||||
# Email Password
|
||||
EMAIL_PASSWORD=your_email_password
|
||||
|
||||
# Email From Address (The address emails will be sent from)
|
||||
EMAIL_FROM=your_email@example.com
|
||||
|
||||
# ==============================================================================
|
||||
# Deployment Configuration (Optional)
|
||||
# ==============================================================================
|
||||
|
||||
# Base URL for the application (e.g., https://yourdomain.com)
|
||||
BASE_URL=http://localhost:3000 # Change to your production URL.
|
||||
28
skills/skill-adapter/assets/skill-schema.json
Normal file
28
skills/skill-adapter/assets/skill-schema.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Claude Skill Configuration",
|
||||
"type": "object",
|
||||
"required": ["name", "description"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9-]+$",
|
||||
"maxLength": 64,
|
||||
"description": "Skill identifier (lowercase, hyphens only)"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 1024,
|
||||
"description": "What the skill does and when to use it"
|
||||
},
|
||||
"allowed-tools": {
|
||||
"type": "string",
|
||||
"description": "Comma-separated list of allowed tools"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
||||
"description": "Semantic version (x.y.z)"
|
||||
}
|
||||
}
|
||||
}
|
||||
27
skills/skill-adapter/assets/test-data.json
Normal file
27
skills/skill-adapter/assets/test-data.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"testCases": [
|
||||
{
|
||||
"name": "Basic activation test",
|
||||
"input": "trigger phrase example",
|
||||
"expected": {
|
||||
"activated": true,
|
||||
"toolsUsed": ["Read", "Grep"],
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Complex workflow test",
|
||||
"input": "multi-step trigger example",
|
||||
"expected": {
|
||||
"activated": true,
|
||||
"steps": 3,
|
||||
"toolsUsed": ["Read", "Write", "Bash"],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"fixtures": {
|
||||
"sampleInput": "example data",
|
||||
"expectedOutput": "processed result"
|
||||
}
|
||||
}
|
||||
8
skills/skill-adapter/references/README.md
Normal file
8
skills/skill-adapter/references/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# References
|
||||
|
||||
Bundled resources for fullstack-starter-pack skill
|
||||
|
||||
- [ ] react_best_practices.md: A comprehensive guide to React best practices, including performance optimization, component design, and state management.
|
||||
- [ ] express_api_design.md: A guide to designing RESTful APIs with Express, including authentication, authorization, and error handling.
|
||||
- [ ] postgresql_schema_design.md: A guide to designing PostgreSQL schemas, including data types, indexing, and normalization.
|
||||
- [ ] deployment_checklist.md: A checklist for deploying full-stack applications, including security considerations, performance tuning, and monitoring.
|
||||
69
skills/skill-adapter/references/best-practices.md
Normal file
69
skills/skill-adapter/references/best-practices.md
Normal file
@@ -0,0 +1,69 @@
|
||||
# Skill Best Practices
|
||||
|
||||
Guidelines for optimal skill usage and development.
|
||||
|
||||
## For Users
|
||||
|
||||
### Activation Best Practices
|
||||
|
||||
1. **Use Clear Trigger Phrases**
|
||||
- Match phrases from skill description
|
||||
- Be specific about intent
|
||||
- Provide necessary context
|
||||
|
||||
2. **Provide Sufficient Context**
|
||||
- Include relevant file paths
|
||||
- Specify scope of analysis
|
||||
- Mention any constraints
|
||||
|
||||
3. **Understand Tool Permissions**
|
||||
- Check allowed-tools in frontmatter
|
||||
- Know what the skill can/cannot do
|
||||
- Request appropriate actions
|
||||
|
||||
### Workflow Optimization
|
||||
|
||||
- Start with simple requests
|
||||
- Build up to complex workflows
|
||||
- Verify each step before proceeding
|
||||
- Use skill consistently for related tasks
|
||||
|
||||
## For Developers
|
||||
|
||||
### Skill Development Guidelines
|
||||
|
||||
1. **Clear Descriptions**
|
||||
- Include explicit trigger phrases
|
||||
- Document all capabilities
|
||||
- Specify limitations
|
||||
|
||||
2. **Proper Tool Permissions**
|
||||
- Use minimal necessary tools
|
||||
- Document security implications
|
||||
- Test with restricted tools
|
||||
|
||||
3. **Comprehensive Documentation**
|
||||
- Provide usage examples
|
||||
- Document common pitfalls
|
||||
- Include troubleshooting guide
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Keep version updated
|
||||
- Test after tool updates
|
||||
- Monitor user feedback
|
||||
- Iterate on descriptions
|
||||
|
||||
## Performance Tips
|
||||
|
||||
- Scope skills to specific domains
|
||||
- Avoid overlapping trigger phrases
|
||||
- Keep descriptions under 1024 chars
|
||||
- Test activation reliability
|
||||
|
||||
## Security Considerations
|
||||
|
||||
- Never include secrets in skill files
|
||||
- Validate all inputs
|
||||
- Use read-only tools when possible
|
||||
- Document security requirements
|
||||
70
skills/skill-adapter/references/examples.md
Normal file
70
skills/skill-adapter/references/examples.md
Normal file
@@ -0,0 +1,70 @@
|
||||
# Skill Usage Examples
|
||||
|
||||
This document provides practical examples of how to use this skill effectively.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
### Example 1: Simple Activation
|
||||
|
||||
**User Request:**
|
||||
```
|
||||
[Describe trigger phrase here]
|
||||
```
|
||||
|
||||
**Skill Response:**
|
||||
1. Analyzes the request
|
||||
2. Performs the required action
|
||||
3. Returns results
|
||||
|
||||
### Example 2: Complex Workflow
|
||||
|
||||
**User Request:**
|
||||
```
|
||||
[Describe complex scenario]
|
||||
```
|
||||
|
||||
**Workflow:**
|
||||
1. Step 1: Initial analysis
|
||||
2. Step 2: Data processing
|
||||
3. Step 3: Result generation
|
||||
4. Step 4: Validation
|
||||
|
||||
## Advanced Patterns
|
||||
|
||||
### Pattern 1: Chaining Operations
|
||||
|
||||
Combine this skill with other tools:
|
||||
```
|
||||
Step 1: Use this skill for [purpose]
|
||||
Step 2: Chain with [other tool]
|
||||
Step 3: Finalize with [action]
|
||||
```
|
||||
|
||||
### Pattern 2: Error Handling
|
||||
|
||||
If issues occur:
|
||||
- Check trigger phrase matches
|
||||
- Verify context is available
|
||||
- Review allowed-tools permissions
|
||||
|
||||
## Tips & Best Practices
|
||||
|
||||
- ✅ Be specific with trigger phrases
|
||||
- ✅ Provide necessary context
|
||||
- ✅ Check tool permissions match needs
|
||||
- ❌ Avoid vague requests
|
||||
- ❌ Don't mix unrelated tasks
|
||||
|
||||
## Common Issues
|
||||
|
||||
**Issue:** Skill doesn't activate
|
||||
**Solution:** Use exact trigger phrases from description
|
||||
|
||||
**Issue:** Unexpected results
|
||||
**Solution:** Check input format and context
|
||||
|
||||
## See Also
|
||||
|
||||
- Main SKILL.md for full documentation
|
||||
- scripts/ for automation helpers
|
||||
- assets/ for configuration examples
|
||||
7
skills/skill-adapter/scripts/README.md
Normal file
7
skills/skill-adapter/scripts/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Scripts
|
||||
|
||||
Bundled resources for fullstack-starter-pack skill
|
||||
|
||||
- [ ] init_project.sh: Automates the initial project setup, including creating directories, installing dependencies, and setting up configuration files.
|
||||
- [ ] generate_component.sh: Generates boilerplate code for React components, Express routes, and database models based on user input.
|
||||
- [ ] deploy_project.sh: Automates the deployment process to various platforms like Netlify, Vercel, or Heroku.
|
||||
42
skills/skill-adapter/scripts/helper-template.sh
Executable file
42
skills/skill-adapter/scripts/helper-template.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
# Helper script template for skill automation
|
||||
# Customize this for your skill's specific needs
|
||||
|
||||
set -e
|
||||
|
||||
function show_usage() {
|
||||
echo "Usage: $0 [options]"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -h, --help Show this help message"
|
||||
echo " -v, --verbose Enable verbose output"
|
||||
echo ""
|
||||
}
|
||||
|
||||
# Parse arguments
|
||||
VERBOSE=false
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
-h|--help)
|
||||
show_usage
|
||||
exit 0
|
||||
;;
|
||||
-v|--verbose)
|
||||
VERBOSE=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Unknown option: $1"
|
||||
show_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Your skill logic here
|
||||
if [ "$VERBOSE" = true ]; then
|
||||
echo "Running skill automation..."
|
||||
fi
|
||||
|
||||
echo "✅ Complete"
|
||||
32
skills/skill-adapter/scripts/validation.sh
Executable file
32
skills/skill-adapter/scripts/validation.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Skill validation helper
|
||||
# Validates skill activation and functionality
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔍 Validating skill..."
|
||||
|
||||
# Check if SKILL.md exists
|
||||
if [ ! -f "../SKILL.md" ]; then
|
||||
echo "❌ Error: SKILL.md not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Validate frontmatter
|
||||
if ! grep -q "^---$" "../SKILL.md"; then
|
||||
echo "❌ Error: No frontmatter found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check required fields
|
||||
if ! grep -q "^name:" "../SKILL.md"; then
|
||||
echo "❌ Error: Missing 'name' field"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep -q "^description:" "../SKILL.md"; then
|
||||
echo "❌ Error: Missing 'description' field"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Skill validation passed"
|
||||
Reference in New Issue
Block a user