📝 docs: update README with Gitea setup and fix skill validation
Some checks failed
Some checks failed
Update project README.md: - Add Gitea Integration section - Document Gitea client skill setup instructions - Provide usage examples for monitoring CI/CD jobs Fix skill creator validation script: - Fix grep command for consecutive hyphens check - Fix description extraction logic - Improve error handling for skill validation These changes support the new Gitea client skill and improve the skill creation/validation workflow.
This commit is contained in:
@@ -40,13 +40,13 @@ if [[ "$SKILL_NAME" == -* ]] || [[ "$SKILL_NAME" == *- ]]; then
|
||||
fi
|
||||
|
||||
# Check name doesn't contain consecutive hyphens
|
||||
if echo "$SKILL_NAME" | grep -q "--"; then
|
||||
if echo "$SKILL_NAME" | grep -q -e "--"; then
|
||||
echo "ERROR: Skill name cannot contain consecutive hyphens"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check description length (1-1024 characters)
|
||||
DESCRIPTION=$(grep -A 1 "^description:" "$1/SKILL.md" | tail -1 | tr -d ' ')
|
||||
DESCRIPTION=$(grep "^description:" "$1/SKILL.md" | cut -d " " -f 2-)
|
||||
DESCRIPTION_LENGTH=${#DESCRIPTION}
|
||||
|
||||
if [ "$DESCRIPTION_LENGTH" -lt 1 ] || [ "$DESCRIPTION_LENGTH" -gt 1024 ]; then
|
||||
|
||||
Reference in New Issue
Block a user