Sponsor Suno AI Music arrow_forward
CLAUDE.md Example

Tiger pg-aiguide — MCP Server Code Style Guide

A tight, transferable style guide for a TypeScript MCP server: ESM with .js import extensions, zod for tool-input validation, and the…

Type
CLAUDE.md Example
GitHub stars
1.8k
License
Apache-2.0
Repo last updated
Sep 25, 2026
Source file
CLAUDE.md

What Tiger pg-aiguide — MCP Server Code Style Guide is

Tiger pg-aiguide — MCP Server Code Style Guide is a claude.md example published in the timescale/pg-aiguide repository on GitHub, which has about 1.8k stars. The repository describes itself as: “MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.”

A CLAUDE.md file holds standing instructions that Claude Code reads at the start of every session in a project, such as conventions, commands, and rules. Examples like Tiger pg-aiguide — MCP Server Code Style Guide show how other teams structure theirs.

In Claude Cowork, the equivalent places for this kind of guidance are your global instructions, project instructions, and folder instructions.

How to install Tiger pg-aiguide — MCP Server Code Style Guide

Claude Code

  1. Copy the parts that fit your project into CLAUDE.md at the project root, or into ~/.claude/CLAUDE.md for rules that apply everywhere.
  2. Keep it short and specific; remove anything that doesn't match how your team works.

Claude Cowork

  1. Put personal rules in Settings → Instructions for Claude (global instructions).
  2. Put project or folder rules in the project's instructions or the folder instructions for that directory.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from CLAUDE.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

Build, Test & Run Commands

  • Build: ./bun run build - Compiles TypeScript to JavaScript
  • Watch mode: ./bun run watch http - Watches for changes and rebuilds automatically
  • Run server: ./bun run start stdio - Starts the MCP server using stdio transport
  • Checks: ./check - All-in-one command to lint and test. Run before every commit. Covers TypeScript (biome, tsc, tests) and Python (ruff format + ruff check in ingest/). Python checks are skipped with a warning if uv is missing.

Code Style Guidelines

  • Use ES modules with .js extension in import paths
  • Strictly type all functions and variables with TypeScript
  • Follow zod schema patterns for tool input validation
  • Use .nullable() instead of .optional() for optional MCP tool parameters (required for gpt-5 compatibility)
  • Prefer async/await over callbacks and Promise chains
  • Place all imports at top of file, grouped by external then internal
  • Use descriptive variable names that clearly indicate purpose
  • Implement proper cleanup for timers and resources in server shutdown
  • Follow camelCase for variables/functions, PascalCase for types/classes, UPPER_CASE for constants
  • Handle errors with try/catch blocks and provide clear error messages
  • Use consistent indentation (2 spaces) and trailing commas in multi-line objects

Python (ingest/)

  • Formatted and linted by ruff; config lives in ingest/pyproject.toml
  • Never commit generated artifacts (pycache/, *.pyc, .venv/, .ruff_cache/)
  • Add dev-only tooling to the dev dependency group, not dependencies
  • Commit the regenerated uv.lock whenever dependencies change; CI runs uv lock --check
  • Chain re-raised exceptions with raise ... from e to preserve the original traceback

Releasing

  • Release with ./bun release from a clean main; don't create tags or releases in the GitHub UI. See DEVELOPMENT.md.
  • The script bumps the version in package.json, .claude-plugin/marketplace.json, and .cursor-plugin/plugin.json, commits release: vX.Y.Z, tags, and pushes. The tag push triggers .github/workflows/publish.yml.
  • The push to main requires bypassing the pull-request rule. Without that access the tag pushes but the commit is rejected, leaving main behind the released version.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Tiger pg-aiguide — MCP Server Code Style Guide?

Tiger pg-aiguide — MCP Server Code Style Guide is a claude.md example for Claude Code and Claude Cowork from the timescale/pg-aiguide repository on GitHub. A tight, transferable style guide for a TypeScript MCP server: ESM with .js import extensions, zod for tool-input validation, and the…

How do I install Tiger pg-aiguide — MCP Server Code Style Guide in Claude Code?

Copy the parts that fit your project into CLAUDE.md at the project root, or into ~/.claude/CLAUDE.md for rules that apply everywhere. Keep it short and specific; remove anything that doesn't match how your team works.

Can I use Tiger pg-aiguide — MCP Server Code Style Guide in Claude Cowork?

Put personal rules in Settings → Instructions for Claude (global instructions). Put project or folder rules in the project's instructions or the folder instructions for that directory.

Is Tiger pg-aiguide — MCP Server Code Style Guide safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.