📝 docs: update README with Gitea setup and fix skill validation
Some checks failed
Go CI/CD Pipeline / Lint and Format (push) Failing after 58s
Go CI/CD Pipeline / Arcodange Workflow Validation (push) Failing after 6m10s
Go CI/CD Pipeline / Build and Test (push) Failing after 6m34s
Go CI/CD Pipeline / Version Management (push) Has been skipped

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:
2026-04-06 12:34:57 +02:00
parent 6d18d5b728
commit 0215a8b7df
2 changed files with 52 additions and 2 deletions

View File

@@ -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

View File

@@ -271,6 +271,56 @@ This project uses Architecture Decision Records (ADRs) to document key technical
**Adding new decisions?** See [adr/README.md](adr/README.md) for guidelines.
## Gitea Integration
DanceLessonsCoach includes AI agent skills for Gitea integration to monitor CI/CD jobs and interact with pull requests.
### Gitea Client Skill Setup
The Gitea client skill enables AI agents to:
- Monitor CI/CD job status
- Fetch job logs for debugging
- Comment on pull requests
- Track PR status
**Setup Instructions:**
1. **Create a Personal Access Token:**
- Log in to https://gitea.arcodange.lab
- Go to Profile → Settings → Applications
- Generate token with `read:repository`, `write:repository`, and `read:user` scopes
2. **Configure Authentication:**
```bash
# Option 1: Environment variable
export GITEA_API_TOKEN="your_token"
# Option 2: Token file (recommended)
echo "your_token" > ~/.gitea_token
chmod 600 ~/.gitea_token
export GITEA_API_TOKEN_FILE="$HOME/.gitea_token"
```
3. **Add to shell configuration:**
```bash
echo 'export GITEA_API_TOKEN_FILE="$HOME/.gitea_token"' >> ~/.bashrc
source ~/.bashrc
```
**Usage Examples:**
```bash
# List recent jobs
.vibe/skills/gitea-client/scripts/gitea-client.sh list-jobs owner repo workflow_id 5
# Wait for job completion
.vibe/skills/gitea-client/scripts/gitea-client.sh wait-job owner repo job_id 300
# Comment on PR
.vibe/skills/gitea-client/scripts/gitea-client.sh comment-pr owner repo 42 "Build completed!"
```
**Documentation:** See [.vibe/skills/gitea-client/README.md](.vibe/skills/gitea-client/README.md) for complete setup and usage guide.
## License
MIT