OpenWriterControle/scripts/registry
InteLigent c799173dd0
align context and skills consistency (#192) (#198)
* fix(context): migrate delegation references to split workflow files

* chore(ci): add markdown link validation with regex skip rules

* fix(context): migrate index references to navigation

* fix(agent): allow limited bash for task status updates

* refactor(skills): migrate to .opencode/skills and normalize skill files

* fix(agent): align subagent permissions and workflow structure

* docs: reconcile workflow examples and design iteration references

* feat(skill): enforce schema checks in task validate command

* fix(install): improve colored output and skills collision grouping
2026-02-12 00:20:51 +00:00
..
auto-detect-components.sh fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
check-dependencies.ts fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
fix-registry.py fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
README.md fix: switch CI to TypeScript validator to resolve hanging bash script (#129) 2026-01-29 10:34:26 +00:00
register-component.sh feat: add PR template and automated doc sync workflow (#40) 2025-12-08 22:27:01 +00:00
validate-component.sh fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
validate-profile-coverage.sh fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
validate-registry.sh fix: resolve installer failures and add comprehensive validation (#189) 2026-02-06 17:07:42 +00:00
validate-registry.ts align context and skills consistency (#192) (#198) 2026-02-12 00:20:51 +00:00

Registry Validation Scripts

This directory contains scripts to validate the registry.json file.

Available Scripts

Fast, modern, and easy to debug

# Run validation
npm run validate:registry

# Run with verbose output
npm run validate:registry:verbose

# Run with fix suggestions
npm run validate:registry:fix

# Or run directly with bun
bun run scripts/registry/validate-registry.ts
bun run scripts/registry/validate-registry.ts -v
bun run scripts/registry/validate-registry.ts -f

Requirements:

  • Bun runtime

Features:

  • ✅ Fast execution (< 1 second)
  • ✅ Easy to debug
  • ✅ Type-safe
  • ✅ Validates all registry paths
  • ✅ Validates component dependencies
  • ✅ Colored output
  • ✅ Verbose mode
  • ✅ Fix suggestions

Bash Version (Legacy)

Original bash script - still maintained for CI compatibility

# Run validation
./scripts/registry/validate-registry.sh

# Run with verbose output
./scripts/registry/validate-registry.sh -v

# Run with fix suggestions
./scripts/registry/validate-registry.sh -f

Requirements:

  • bash
  • jq

Note: The bash version may hang in some CI environments. The TypeScript version is recommended for local development.

What Gets Validated

Both scripts validate:

  1. Registry JSON Format - Ensures registry.json is valid JSON
  2. Component Paths - Verifies all file paths in the registry exist
  3. Component Dependencies - Validates that all dependencies reference existing components

Exit Codes

  • 0 - All paths valid, all dependencies valid
  • 1 - Missing files or missing dependencies found
  • 2 - Registry parse error or missing script dependencies

CI Integration

The GitHub Actions workflow (.github/workflows/validate-registry.yml) currently uses the bash version for compatibility with the base branch workflow file. Once this PR is merged, future PRs can use the TypeScript version.

Development

To modify the TypeScript validator:

  1. Edit scripts/registry/validate-registry.ts
  2. Test locally: npm run validate:registry
  3. Commit changes

The TypeScript version is the source of truth for new features.