What problem does it solve?
AI assistants working on the Carbon project need a safe, consistent way to inspect GitHub state such as issues, pull requests, and repository metadata without risking accidental modification of project resources.
Core Features & Use Cases
- Read-Only Safety Guardrails: Explicitly restricts usage to read-only verbs (list, view, search, status, GET-only api calls) and prohibits any state-changing commands like create, edit, merge, or comment.
- Repository Configuration Verification: Checks that the default repository is carbon-language/carbon-lang and directs human operators to fix misconfigurations.
- Advanced Querying: Covers REST and GraphQL API queries via gh api, pagination with --paginate, and output filtering with --json, --jq, and --template.
- Use Case: An AI assistant investigating a reported compiler bug can run gh issue view and gh pr diff to gather context on the issue and its linked pull request without any risk of altering project state.
Quick Start
Ask the assistant to list open issues mentioning crashes in the carbon-language/carbon-lang repository using the GitHub CLI.