Closed
Conversation
Create a top-level rule_library folder for example rules. Add yaml-schema-validation rule that: - Triggers on all .yml and .yaml files - Detects $schema declarations (URLs or local paths) - Validates files against their declared JSON Schema - Returns pass for valid files or blocking JSON with error details - Uses compare_to: prompt Includes validation script and test examples.
- Move rule to rule_library/json_validation/ subfolder - Add JSON file support (.json in addition to .yml/.yaml) - Optimize validation with quick text scan for $schema before parsing - Only fully parse files that have a schema declaration - Add JSON examples (valid and invalid)
- Move job_library to library/jobs - Move rule_library to library/rules - Move json_validation rule to .deepwork/rules/ (source of truth) - Add symlink library/rules/json_validation -> .deepwork/rules/json_validation - Add symlink library/jobs/commit -> .deepwork/jobs/commit - Update AGENTS.md with new library structure and examples - Update claude.md references from library_jobs to library/jobs Library items can now be either standalone directories or symlinks to repo-specific rules/jobs that serve as good examples.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a top-level rule_library folder for example rules. Add yaml-schema-validation rule that:
Includes validation script and test examples.