Skip to content

feat: add g0 rules list and g0 rules describe commands#97

Open
kai-agent-free wants to merge 1 commit into
guard0-ai:mainfrom
kai-agent-free:feat/rules-command
Open

feat: add g0 rules list and g0 rules describe commands#97
kai-agent-free wants to merge 1 commit into
guard0-ai:mainfrom
kai-agent-free:feat/rules-command

Conversation

@kai-agent-free
Copy link
Copy Markdown

Summary

Adds g0 rules list and g0 rules describe <id> commands for browsing and inspecting the security rule catalog.

g0 rules list

  • Displays all rules in a formatted table (ID, Domain, Severity, Title)
  • Supports --domain, --severity, and --search filters
  • --json for machine-readable output
  • --rules-dir to include custom YAML rules

g0 rules describe <id>

  • Shows detailed information about a specific rule
  • Includes description, standards mappings, frameworks, confidence
  • --json for machine-readable output

Tests

  • 10 unit tests covering rule loading, field validation, filtering by domain/severity/text search, and standards mappings

Closes #84

- g0 rules list: table of all rules (ID, Domain, Severity, Title)
- g0 rules list --domain X --severity Y --search 'text': filtering
- g0 rules describe <id>: detailed view with standards, description
- Both commands support --json and --rules-dir options
- 10 unit tests

Closes guard0-ai#84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add g0 rules list and g0 rules describe <id> commands

1 participant