google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Validate code changes against Architecture Decision Records (ADRs)
Full skill instructions
Category: Quality Last Updated: December 24, 2025
Validate code changes against Spaarke's Architecture Decision Records (ADRs) before committing. This skill helps developers identify architectural violations early, ensuring code aligns with established constraints.
code-review skill instead)Determine what code to validate:
git status --short
git diff --name-only HEAD~1
docs/reference/adr/README-ADRs.mdreferences/adr-validation-rules.md for grep/pattern-based checks (where available)Quick reference of key constraints:
| ADR | Key Constraint | Check For |
|---|---|---|
| ADR-001 | No Azure Functions | Microsoft.Azure.Functions, [FunctionName] |
| ADR-002 | Thin plugins | HttpClient in plugins, >50ms operations |
| ADR-006 | PCF over webresources | New .js files in webresources |
| ADR-007 | Graph isolation | Microsoft.Graph outside Infrastructure |
| ADR-008 | Endpoint filters | Global UseAuthorization middleware |
| ADR-009 | Redis-first | IMemoryCache for cross-request caching |
| ADR-010 | DI minimalism | Interfaces with single implementation |
| ADR-021 | Fluent v9 design system | @fluentui/react (v8), hard-coded colors, missing FluentProvider |
Note: This table is not exhaustive. Validate against the full ADR index in docs/reference/adr/README-ADRs.md.
For each applicable ADR:
references/adr-validation-rules.mdOutput structured report using the format in Output Format section.
For each violation:
docs/reference/adr/README-ADRs.md)/docs/reference/adr/ADR-XXX-*.mddotnet test tests/Spaarke.ArchTests/Spaarke.ArchTests.csproj| Resource | Purpose |
|---|---|
references/adr-validation-rules.md | Detailed validation rules and grep patterns for each ADR |
## ADR Validation Report
**Scope:** [files/changes being validated]
**Date:** [timestamp]
### ✅ Compliant ADRs
- ADR-001: Minimal API + BackgroundService
- ADR-007: Graph isolation
- [list all compliant ADRs]
### ⚠️ Warnings (Review Required)
- **ADR-010:** Found [N] interfaces with single implementation
- `src/server/Services/IFooService.cs` → `FooService.cs`
- **Recommendation:** Consider registering `FooService` directly unless testing seam needed
### ❌ Violations (Must Fix)
- **ADR-007:** Graph types found outside Infrastructure layer
- **File:** `src/server/api/Sprk.Bff.Api/Api/FileAccessEndpoints.cs:42`
- **Code:** `Microsoft.Graph.DriveItem item = ...`
- **Fix:** Replace with `FileHandleDto` and route through `SpeFileStore`
### Summary
| Status | Count |
|--------|-------|
| ✅ Compliant | [N] |
| ⚠️ Warnings | [N] |
| ❌ Violations | [N] |
### Next Steps
1. Fix violations listed above
2. Review warnings with team if needed
3. Re-run validation: invoke `adr-check` skill
4. Run NetArchTest: `dotnet test tests/Spaarke.Bff.Api.ArchTests/`
Input:
Developer: "Check my changes against ADRs before I commit"
Output:
Claude runs git diff --name-only, identifies changed files, validates each against ADRs, and produces a structured report.
Input:
Developer: "Validate src/server/api/Sprk.Bff.Api/Api/DocumentsEndpoints.cs against ADRs"
Output: Claude focuses validation on the specified file, checking for Graph types, authorization patterns, caching usage, etc.
Input:
Developer: "Run a full ADR compliance check on the solution"
Output: Claude scans all source directories, producing a comprehensive report across all ADRs.
| Situation | Response |
|---|---|
| No files specified and no git changes | Ask developer what to validate |
| File path doesn't exist | Report error, ask for correct path |
| Unclear whether finding is violation or warning | Report as warning, explain uncertainty |
code-review - General code quality review (not architecture-focused)push-to-github - Include ADR check as part of PR creationci-cd - CI pipeline status and ADR validation in CIThis skill performs local ADR validation. The same checks run in CI via GitHub Actions:
| Location | Tool | When |
|---|---|---|
| Local | This skill (/adr-check) | Before commit/push |
| CI | NetArchTest (Spaarke.ArchTests) | On every PR and push to master |
| Weekly | adr-audit.yml workflow | Monday 9 AM UTC |
The sdap-ci.yml workflow runs ADR tests in the code-quality job:
- name: ADR architecture tests (NetArchTest)
run: dotnet test tests/Spaarke.ArchTests/Spaarke.ArchTests.csproj
Results appear in two places:
adr-pr-comment job posts violations as PR commentsadr-test-resultsThe adr-audit.yml workflow runs weekly and:
architecture and adr-audit labels# View PR ADR check status
gh pr checks | grep -i "code-quality"
# View ADR test results
gh run view {run-id} --log --job=code-quality
# Download test results artifact
gh run download {run-id} --name adr-test-results
# Trigger ADR audit manually
gh workflow run adr-audit.yml
RECOMMENDED: Run this skill before pushing to catch violations early:
1. Make code changes
2. Run /adr-check (this skill)
3. Fix any violations
4. Run NetArchTest locally for additional validation:
dotnet test tests/Spaarke.ArchTests/Spaarke.ArchTests.csproj
5. Push changes
6. CI will re-run same checks
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.