AI Context Workflows

Best practices for querying your codebase with AI.

Effective Prompts

When using an AI connected to Linear Canal, trigger its tools explicitly:

  • "Explain how the AuthService works and list all components that depend on it."
  • "Find where Stripe webhooks are handled and suggest how to add a new event type."
  • "What files would break if I remove the UserContext type?"
  • "Give me an architecture overview of the billing module."

Branch-Scoped Reviews

Before a PR review, create a scoped branch so the AI focuses only on relevant ctx:

bash
linear-canal branch create review --scope ARCHITECTURE,INTERFACES,RISKS
linear-canal branch checkout review
# Now ask your AI to do the code review — it reads only those ctx sections
AI Context Workflows | Linear Canal Docs | Linear Canal