Skip to content

Conversation

@lavinigam-gcp
Copy link
Contributor

Adds comprehensive documentation for the UCP A2A sample to help developers understand, extend, and deploy the codebase.

Why

The sample lacked documentation for developers to understand how UCP, A2A, and ADK work together. This PR adds guides designed for different developer personas (junior, senior backend, frontend, devops, AI/ML).

New Files

Main Docs:

  • a2a/DEVELOPER_GUIDE.md - Main entry point with architecture overview and reading roadmap
  • a2a/SKILLS.md - AI coding assistant context (Claude Code, Gemini CLI, Cursor, Codex)

Deep-Dive Guides (a2a/docs/):

  • 00-glossary.md - A2A, UCP, ADK terminology for first-time developers
  • 01-architecture.md - System components and data flow
  • 02-adk-agent.md - ADK agent tools, callbacks, and prompt engineering
  • 03-ucp-integration.md - UCP capabilities and profile negotiation
  • 04-commerce-flows.md - Checkout state machine and payment flow
  • 05-frontend.md - React components and A2A client
  • 06-extending.md - Patterns for adding new features with UCP and ADK
  • 07-testing-guide.md - Testing, debugging, and troubleshooting
  • 08-production-notes.md - Security gaps and deployment checklist

Visuals (a2a/assets/diagrams/):

  • 26 diagrams covering architecture, flows, and concepts

Updated Files

  • a2a/README.md - Added Next Steps section with doc links, production warning, SKILLS.md reference
  • a2a/assets/ucp_a2a_demo.webp - Demo converted from GIF to animated WebP

Image Optimization

All images converted to WebP format:

  • Diagrams: 9.7 MB → 1.4 MB (86% reduction)
  • Demo video: 41 MB → 12 MB (71% reduction)
  • Total: ~54 MB → ~14 MB (74% reduction, quality maintained)

This adds a 9-document developer guide for the Cymbal Retail Agent sample:

- SKILLS.md: AI assistant context for Claude Code, Gemini CLI, Cursor
- DEVELOPER_GUIDE.md: Main entry point with architecture diagram
- docs/01-architecture.md: System components and data flow
- docs/02-adk-agent.md: ADK framework patterns, tools, callbacks
- docs/03-ucp-integration.md: UCP capabilities and negotiation
- docs/04-commerce-flows.md: Checkout state machine and payment
- docs/05-frontend.md: React components and A2A client
- docs/06-extending.md: How to customize the sample
- docs/07-operations.md: Testing and troubleshooting
- Rename 07-operations.md to 07-testing-guide.md for clarity
- Add Mock Store architecture section with replacement guide
- Major rewrite of extending guide with 4 user journeys
- Add "Why" sections throughout for better readability
- Add 9 new Mermaid diagrams across all docs
- Update cross-references in DEVELOPER_GUIDE.md and SKILLS.md
- Add 17 diagrams to assets/diagrams/ for visual documentation
- Update docs to use images instead of Mermaid blocks
- Add figure captions and proper alignment for all diagrams
- Add "Next Steps" section to README with links to developer docs
- Remove redundant "Components" and "Mock Store" sections from README
- Add "About This Guide" section to DEVELOPER_GUIDE with prerequisites
- Remove duplicate Quick Start from DEVELOPER_GUIDE

Creates smooth developer journey: README (landing) → DEVELOPER_GUIDE
(technical entry) → docs/ (deep dives) with forward-only references.
@lavinigam-gcp lavinigam-gcp requested a review from a team January 22, 2026 16:21
@wry-ry wry-ry merged commit 8bf5313 into Universal-Commerce-Protocol:main Jan 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants