π¦ ClawHub
Nm Archetypes Architecture Paradigm Client Server
by @athola
Applies client-server architecture for web/mobile apps
TERMINAL
clawhub install nm-archetypes-architecture-paradigm-client-serverπ About This Skill
name: architecture-paradigm-client-server description: | Client-server architecture for web/mobile apps with centralized services and API design version: 1.9.4 triggers: - architecture - client-server - peer-to-peer - distributed-systems metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/archetypes", "emoji": "\ud83c\udfd7\ufe0f"}} source: claude-night-market source_plugin: archetypes
> Night Market Skill β ported from claude-night-market/archetypes. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
The Client-Server and Peer-to-Peer Paradigms
When to Employ This Paradigm
Adoption Steps
1. Define Responsibilities: Clearly delineate which logic and data reside on the client versus the server, with the goal of minimizing duplication. 2. Document the Contracts: Formally document all APIs, data schemas, authentication flows, and any capability negotiation required for handling different client versions. 3. Plan for Version Skew: Implement a strategy to manage different client and server versions, such as using feature flags,Accept headers for content negotiation, or semantic versioning for APIs.
4. Address Connectivity Issues: If the application is not purely client-server, design for intermittent connectivity. This may involve implementing offline caching, data synchronization protocols, or peer discovery and membership services.
5. Secure All Communications: Enforce the use of TLS for all data in transit. Implement authorization policies, rate limiting, and detailed telemetry for every endpoint.Key Deliverables
Risks & Mitigations
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag
π Tips & Best Practices
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag