cb-analytics-admin
Use this skill when the user wants to inspect or manage the Analytics service's runtime — checking ingestion health, killing runaway queries, restarting nodes,…
Apply coding standards and a style guide for writing production application code against Couchbase, combining general software-engineering best practices (naming, functions, error handling, testing, docstrings, version control, code review, secrets hygiene) with
$ npx -y skills add celticht32/Couchbase-Skills-for-Claude.ai --skill couchbase-coding-standards --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/couchbase-coding-standardsContext preview
The summary Claude sees to decide when to auto-load this skill.
Apply coding standards and a style guide for writing production application code against Couchbase, combining general software-engineering best practices (naming, functions, error handling, testing, docstrings, version control, code review, secrets hygiene) with
name: couchbase-coding-standards description: "Apply coding standards and a style guide for writing production application code against Couchbase, combining general software-engineering best practices (naming, functions, error handling, testing, docstrings, version control, code review, secrets hygiene) with Couchbase-specific conventions (SDK idioms, document-key naming, exception and retry handling, durability, parameterized SQL++, connection lifecycle). Use whenever the user asks about coding standards, code style, a style guide, clean code, naming conventions, structuring Couchbase application code, idiomatic SDK usage, how to write or review Couchbase code, code-review checklists, linting, formatting, testing Couchbase code, or best practices for writing Couchbase apps. Distinct from couchbase-app-integration (SDK mechanics: pooling, durability, scan consistency) and couchbase-data-modeling (document design) — this is the how-to-write-and-review-the-code layer on top of them. Use proactively when reviewing or authoring code that touches Couchbase." license: MIT
A skill for *writing and reviewing* clean, correct, maintainable application code against Couchbase. It combines general software-engineering discipline with the Couchbase-specific conventions that keep application code idiomatic, safe, and resilient.
Distinct from:
If the conversation is "how should this Couchbase code be written / named / structured / reviewed," this is the right skill.
| Question | Read | |---|---| | "General clean-code standards — naming, functions, comments, tests, version control, reviews, secrets" | `references/general-coding-standards.md` | | "Idiomatic SDK use — connection lifecycle, KV vs query, batching, async, per-language idioms" | `references/couchbase-sdk-idioms.md` | | "Document key + field naming conventions, type discriminators, metadata fields" | `references/key-and-document-conventions.md` | | "Couchbase exceptions, retry/backoff, idempotency, durability in code, transactions hygiene" | `references/error-handling-and-resilience.md` | | "Writing SQL++ in application code safely — parameterization, injection, scan consistency, pagination" | `references/sqlpp-in-code.md` |
**Principle 1 — Idiomatic beats clever.** Each SDK has a grain: Python uses context managers and type hints, Java uses reactive streams / `CompletableFuture`, Node uses promises/async-await, Go uses explicit error returns. Code that fights the SDK's idioms is harder to read, review, and maintain. Follow the grain of the language and the SDK, not a house dialect imposed across all of them.
**Principle 2 — Correctness at the boundary is a coding standard, not an afterthought.** Couchbase code fails in specific, recurring ways: transient errors, timeouts, ambiguous durability, missing documents, CAS mismatches, injection through string-built SQL++. Handling these is not "extra hardening" bolted on later — it is part of writing the code correctly the first time. Every read can miss; every write can be ambiguous; every query built from user input is an injection risk until parameterized.
**Principle 3 — Optimize for the reader and the reviewer.** Code is read far more than written. Names carry intent, functions do one thing, keys are self-describing, and the non-obvious "why" is commented (never the obvious "what"). A reviewer should be able to tell *what* a document key refers to, *whether* an error path is handled, and *why* a durability level was chosen — from the code alone.
**Principle 4 — Verify version-sensitive symbols; never assert an SDK API from memory.** SDK method names, option objects, and exception types differ across major SDK versions and drift over time. Pin every version-sensitive symbol against the project's actual SDK version (check existing usage in the codebase first, then the versioned SDK docs). If a symbol can't be verified against the pinned version, flag the line rather than guessing. This applies to review feedback as much as to authored code.
When reviewing, walk these in order and cite the specific reference for any issue found:
1. **Correctness** — reads that can miss, writes with unhandled ambiguity, unparameterized SQL++, CAS/idempotency gaps → `error-handling-and-resilience.md`, `sqlpp-in-code.md` 2. **Idiom** — fighting the SDK grain, connections opened per-operation, blocking calls in async paths → `couchbase-sdk-idioms.md` 3. **Naming & shape** — opaque keys, missing type discriminators, inconsistent field naming → `key-and-document-conventions.md` 4. **General hygiene** — function size, naming, comments, tests, secrets in code → `general-coding-standards.md`
Report findings direct over diplomatic: state the issue, cite the standard, show the fix. Flag opinions as opinions, separate from correctness defects.
Claude skill files for working with Couchbase — covering every major service and deployment pattern from application integration through AI applications, Kubernetes operations, mobile sync, security hardening, and analytics.
Repo: celticht32/Couchbase-Skills-for-Claude.ai
Use this skill when the user wants to inspect or manage the Analytics service's runtime — checking ingestion health, killing runaway queries, restarting nodes,…
Use this skill when the user wants to manage Couchbase Capella resources through the Cloud Management API — listing organisations and clusters, provisioning or…
Use this skill when the user wants to inspect or configure the Couchbase cluster itself — node membership, memory quotas, rebalance, auto-failover, system…
Use this skill when the user is managing Analytics data-source links — S3, Azure Blob, GCS, or remote Couchbase links — including creating, updating, listing,…
Use this skill when the user is setting up cb-analytics-mcp from scratch or troubleshooting an existing install — generating secrets, configuring .env, running…
Use this skill when the user wants to write or improve SQL++ queries against Couchbase Analytics through cb-analytics-mcp. Trigger when they mention "SQL++",…