Updates the Betty Framework Skill Registry when new skills are created or validated.
The registry.update skill centralizes all changes to /registry/skills.json.
Instead of each skill writing to the registry directly, they call this skill to ensure consistency, policy enforcement, and audit logging.
python skills/registry.update/registry_update.py <path_to_skill.yaml>
| Argument | Type | Required | Description |
|---|---|---|---|
| manifest_path | string | Yes | Path to the skill manifest file (skill.yaml) |
policy.enforce skill (if available) to validate the manifest against organizational policies/registry/skills.json{
"ok": true,
"status": "success",
"errors": [],
"path": "skills/api.validate/skill.yaml",
"details": {
"skill_name": "api.validate",
"version": "0.1.0",
"action": "updated",
"registry_file": "/registry/skills.json",
"policy_enforced": true
}
}
{
"ok": false,
"status": "failed",
"errors": [
"Policy violations detected:",
" - Skill name must follow domain.action pattern",
" - Description must be at least 20 characters"
],
"path": "skills/bad-skill/skill.yaml"
}
Before updating the registry, this skill runs policy.enforce (if available) to validate:
domain.action patternIf policy enforcement fails, the registry update is blocked and errors are returned.
The skill uses file locking via safe_update_json to ensure:
skill.define automatically calls registry.update after validation:
# This validates AND updates registry
python skills/skill.define/skill_define.py skills/my.skill/skill.yaml
skill.create scaffolds a skill and registers it:
python skills/skill.create/skill_create.py my.skill "Does something"
# Internally calls skill.define which calls registry.update
For manual registry updates:
python skills/registry.update/registry_update.py skills/custom.skill/skill.yaml
The /registry/skills.json file has this structure:
{
"registry_version": "1.0.0",
"generated_at": "2025-10-23T12:00:00Z",
"skills": [
{
"name": "api.validate",
"version": "0.1.0",
"description": "Validate OpenAPI specifications",
"inputs": ["spec_path", "guideline_set"],
"outputs": ["validation_report", "valid"],
"dependencies": ["context.schema"],
"status": "active",
"entrypoints": [...],
"tags": ["api", "validation"]
}
]
}
/registry/skills.json – Updated with skill entry| Error | Cause | Solution |
|---|---|---|
| "Manifest file not found" | Path incorrect or file doesn't exist | Check the path to skill.yaml |
| "Policy violations detected" | Skill doesn't meet requirements | Fix policy violations listed in errors |
| "Invalid YAML in manifest" | Malformed YAML syntax | Fix YAML syntax errors |
Active – Production-ready, core infrastructure skill