Copilot CLI
What This Demonstrates
Section titled “What This Demonstrates”GitHub Copilot CLI brings AI assistance directly into the terminal — answering questions about the codebase, generating commands, and proposing changes without leaving the command line.
Prerequisites
Section titled “Prerequisites”- Terminal open in the repository root
- GitHub Copilot CLI installed and authenticated
Prompts
Section titled “Prompts”Prompt A — Repository Tour
Section titled “Prompt A — Repository Tour”Explain this monorepo structure and list the top 5 places I should inspectbefore implementing a new backend service.What to look for:
- Accurate description of the monorepo structure
- Key files identified (tsconfig.base.json, shared types, Docker configs)
- Actionable guidance (not just a file listing)
Prompt B — Safe Automation
Section titled “Prompt B — Safe Automation”Generate commands to run lint + unit tests only for `services/product-service`,then explain likely failure categories and how to triage quickly.What to look for:
- Correct
--workspacesyntax for npm - Failure categories (type errors, missing mocks, database connection)
- Triage steps for each category
Prompt C — Change Proposal
Section titled “Prompt C — Change Proposal”Propose and apply a minimal change that improves developer experience in thisrepo (for example scripts, docs, or local workflow). Show the diff andrationale.What to look for:
- A practical, non-breaking improvement
- Clear rationale for the change
- Actual file modifications (not just suggestions)
Follow-Up Prompts
Section titled “Follow-Up Prompts”- “Run the tests and explain any failures.”
- “What would you change to make this repo easier for a new contributor?”
- “Generate a git commit message for the changes you just made.”