Coding Agent
What This Demonstrates
Section titled “What This Demonstrates”The Copilot Coding Agent implements features, applies cross-cutting changes, and fixes bugs — generating code that follows existing project conventions.
Prerequisites
Section titled “Prerequisites”- VS Code with Copilot Chat open
- Repository loaded with services running (
docker-compose up -d)
Prompts
Section titled “Prompts”Prompt A — Small Implementation
Section titled “Prompt A — Small Implementation”Implement health/readiness endpoints for `services/payment-service` and addunit tests for them, following existing code style and API response format.What to look for:
/healthand/readyendpoints following the project’s response format- Unit tests matching existing test structure and assertion style
- Proper TypeScript types from
@octo-eshop/types
Prompt B — Cross-Cutting Change
Section titled “Prompt B — Cross-Cutting Change”Add standardized request ID propagation middleware to all backend services andensure logs include the request ID. Make minimal, consistent changes only.What to look for:
- Consistent middleware implementation across all services
- Request ID in log output
- Minimal diff — no unnecessary refactoring
Prompt C — Bugfix Scenario
Section titled “Prompt C — Bugfix Scenario”Find and fix one realistic input-validation gap in `services/order-service`checkout flow. Add/adjust tests to prove the fix.What to look for:
- Identified validation gap with explanation
- Surgical fix (not a rewrite)
- Tests that cover both the happy path and the edge case
Follow-Up Prompts
Section titled “Follow-Up Prompts”- “Now add integration tests for the health endpoints using supertest.”
- “Show me the diff summary of all changes made.”
- “Are there similar validation gaps in cart-service?”