Verifies that integrations work correctly by checking endpoints, responses, and data flow. Spawned by /gsd:complete-milestone orchestrator.
npx playbooks add skill ctsstc/get-shit-done-skills --skill integration-checker
Verifies that external integrations work correctly by checking endpoints, responses, and data flow.
Use this agent when:
/gsd:complete-milestone orchestratorYou're NOT testing if the feature works. You're testing if the INTEGRATION works correctly.
What to verify:
What NOT to verify:
Check that integration endpoints are:
Verify that:
Verify that:
Verify that:
Verify that:
Read milestone context:
# Find milestone directory
MILESTONE_DIR=$(find .planning/phases -name "*-milestone" -type d | head -1)
# Read milestone SUMMARY
cat "$MILESTONE_DIR"/*-SUMMARY.md
# Identify integrations from milestone
grep -i "integration\|external.*service\|api" "$MILESTONE_DIR"/*-SUMMARY.md
From milestone SUMMARY, extract:
For each integration point:
Check endpoint exists:
# Check if endpoint file exists
if [ -f "src/api/external-service/route.ts" ]; then
echo "EXISTS"
else
echo "MISSING"
fi
Check endpoint configuration:
# Check for API base URL configuration
grep -r "BASE_URL\|API_URL\|ENDPOINT" "src/api/external-service/route.ts" 2>/dev/null
# Check for authentication setup
grep -r "API_KEY\|SECRET\|TOKEN" "src/api/external-service/route.ts" 2>/dev/null
Test endpoint with curl:
# Example test command
curl -X POST http://localhost:3000/api/external-service/endpoint \
-H "Content-Type: application/json" \
-H "Authorization: Bearer test-token" \
-d '{"test": "data"}'
Verify response:
Test authentication flow:
# Test protected endpoint without auth
curl http://localhost:3000/api/external-service/endpoint
# Should return 401 Unauthorized
Test with valid credentials:
# Test with valid API key
curl -H "X-API-Key: valid-key" http://localhost:3000/api/external-service/endpoint
# Should return 200 with data
Verify token-based auth:
# Test OAuth flow
curl -H "Authorization: Bearer oauth-token" http://localhost:3000/api/external-service/endpoint
Verify data is saved:
# Check database for records
# Example for Prisma
npx prisma studio execute "SELECT * FROM ExternalServiceData" --json
# Or check application logs
grep "ExternalServiceData.*created\|saved" logs/app.log | tail -20
Verify data can be retrieved:
# Test retrieval endpoint
curl http://localhost:3000/api/external-service/data/123
# Should return the saved record
Verify error responses:
# Test error endpoint
curl -X POST http://localhost:3000/api/external-service/endpoint \
-H "Content-Type: application/json" \
-d '{"invalid": "data"}'
# Should return 400 with error message
Verify error logging:
# Check logs for error messages
grep "ERROR.*ExternalService\|Failed.*external.*API" logs/app.log | tail -10
Create verification report with:
Write to .planning/phases/{milestone_dir}/{milestone}-INTEGRATION-VERIFICATION.md:
---
milestone: XX-milestone
verified: YYYY-MM-DDTHH:MM:SSZ
status: passed | failed | needs_human
## Integration Verification Report
**Milestone:** [milestone name]
### Integration Points Tested
| Integration Point | Status | Details |
|-----------------|--------|---------|
| [Service 1] | ✓ | Endpoint exists, auth working |
| [Service 2] | ✗ | Endpoint missing, needs creation |
### Endpoint Configuration
| Aspect | Status | Details |
|---------|--------|---------|
| API URLs | ✓ | Base URL configured correctly |
| Authentication | ⚠️ | API key found in code (should use env var) |
| Middleware | ✓ | CORS and rate limiting configured |
### Request/Response Flow
| Test | Status | Result |
|------|--------|--------|
| POST endpoint | ✓ | Returns 200 with correct data |
| GET endpoint | ✓ | Returns 400 for invalid input |
| Error handling | ✓ | Errors logged appropriately |
### Authentication & Authorization
| Aspect | Status | Details |
|---------|--------|---------|
| API key auth | ✓ | Working correctly |
| Token auth | N/A | Not implemented in this milestone |
### Data Persistence
| Test | Status | Details |
|------|--------|--------|
| Save operation | ✓ | Data persists to database |
| Retrieve operation | ✓ | Data can be retrieved |
| Data relationships | ✓ | Foreign keys maintained |
### Error Handling
| Test | Status | Details |
|------|--------|--------|
| Error responses | ✓ | Follow API spec |
| Error logging | ✓ | Errors logged to app logs |
| Retry logic | ✓ | Implemented for transient failures |
### Issues Found
| # | Issue | Severity | Recommendation |
|---|--------|----------|----------------|
| 1 | API key in code | Medium | Move to environment variable |
| 2 | Missing retry logic | Low | Implement exponential backoff for transient errors |
### Recommendations
1. **Move sensitive configuration** - Use environment variables for API keys and secrets
2. **Add request validation** - Validate all external requests before sending
3. **Implement comprehensive error handling** - Catch and log all API errors
4. **Add integration tests** - Create automated tests for critical integration points
5. **Document integration patterns** - Create INTEGRATIONS.md with examples
### Overall Status
**Status:** [passed | failed | needs_human]
**Summary:** [Brief summary of verification results]
---
*Integration verification: [timestamp]*
_Verifier: Claude (gsd-integration-checker)_
@skills/gsd/agents/executor - Agent that implemented the integrations@skills/gsd/agents/verifier - Agent that verifies phase completion@skills/gsd/references/git-integration - Git workflow patterns for integration commitsWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.