couchbase-coding-standards

Review Couchbase application code for SDK usage, error handling, and SQL++ safety.

4|1|Updated May 28, 2026
One-click install
npx skills add https://github.com/celticht32/Couchbase-Skills-for-Claude.ai --skill couchbase-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: couchbase-coding-standards
Source: https://github.com/celticht32/Couchbase-Skills-for-Claude.ai/tree/main/skills/couchbase/couchbase-coding-standards
Command: npx skills add https://github.com/celticht32/Couchbase-Skills-for-Claude.ai --skill couchbase-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write and review Couchbase application code with consistent standards for naming, structure, error handling, query safety, and SDK usage, so the code is easier to read, safer to run, and simpler to maintain.

Core Features & Use Cases

  • Code style and review guidance: Apply clean-code rules for naming, function design, comments, testing, version control, and secrets hygiene.
  • Couchbase-specific coding conventions: Use idiomatic SDK patterns, stable document-key and field naming, resilient error handling, and safe SQL++ in application code.
  • Use case: Review a service that reads and writes documents in Couchbase, checks query parameterization, verifies retry and CAS behavior, and flags anti-patterns before they reach production.

Quick Start

Ask for a review of your Couchbase code or for a coding standard tailored to your application, and include the relevant snippet or design question.

Frequently Asked Questions about couchbase-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for Couchbase SDK usage and error handling in production code?

Couchbase SDK usage and error handling best practices involve applying idiomatic patterns, resilient retry logic, and safe SQL++ parameterization to ensure application reads, writes, and queries run safely and consistently in production.

How do I write a Couchbase code review checklist for document-key design and SQL++ parameterization?

A Couchbase code review checklist should verify stable document-key and field naming conventions, confirm SQL++ query parameterization to prevent injection, and check that explicit safety rules govern reads, writes, and resilience.

How does CAS loop implementation work for safe Couchbase concurrent writes?

CAS loop implementation for safe Couchbase concurrent writes uses Compare-And-Swap mechanisms to verify document state before applying updates, preventing overwritten data and ensuring safe error handling during application code execution.

Can I use this coding standard to review Couchbase anti-patterns in my existing application?

You can use this coding standard to review Couchbase anti-patterns in your existing application by submitting your service code snippets to check query parameterization, verify retry behavior, and flag structural issues before production deployment.

When do I need explicit safety rules for Couchbase reads, writes, and SQL++ queries?

You need explicit safety rules for Couchbase reads, writes, and SQL++ queries whenever building production applications, ensuring version-verified SDK patterns govern data access, prevent anti-patterns, and maintain clean code structure.