Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

PgDog 4 min read Opinion mediumAdept

Writing nothing but docs for a week

Documentation, not code comments, is what makes infrastructure software trustworthy enough to adopt, argues PgDog's founder after spending a week expanding its MkDocs docs to about 3k lines. To keep examples accurate, a Python script regex-extracts TOML config blocks and validates them with PgDog's new `configcheck` command (similar to `nginx -t`), and SQL snippets are parsed with pglast (a binding over pg_query) in CI, which eliminated typos in both. LLMs help only with spelling and grammar, and need explicit, repeated prompting even for that.

Related posts

  • How we use Vale to improve our documentation editing process

    Datadog Engineering mediumAdept

    Datadog's documentation team, outnumbered roughly 200 developers to 1 writer and merging over 20,000 docs PRs in 2023, encodes its style guide as Vale prose-linting rules in an open-sourced datadog-vale repo. The rules run in a GitHub Action on every docs pull request and locally in VS Code, flagging long sentences, jargon, Latin abbreviations, temporal words and missing Oxford commas before a writer reviews. Rules are written in Vale's YAML format using existence and substitution checks with regex tokens, and Hugo shortcodes are excluded via regex. The repo now serves as the company-wide single source of truth for style, and other teams contribute their own terminology to it.

  • Using Docker AI Tools for Devs to Provide Context for Better Code Fixes

    Docker mediumAdept

    LLMs fix lint violations far better when given the surrounding code, so Docker Labs built a prompt-driven pipeline where each step runs in a container: Pylint produces a violation report, violations are loaded into SQLite, and Tree-sitter parses the project into an AST whose top-level statement ranges are indexed alongside the source. The LLM then queries this database (writing its own SQL from the schema) to retrieve the enclosing function for a violation before proposing a fix. This sidesteps context-window limits of reading whole files, and the same pattern generalizes to any tool that maps code locations to issues.

  • Writing Test Evals For Our MCP Server

    Neon mediumAdept

    Neon tests its 20+ tool MCP server with Braintrust evals that check whether an LLM correctly uses the stateful prepare_database_migration / complete_database_migration workflow instead of applying schema changes directly via run_sql. Each eval pairs a natural-language migration request with an expected response and scores it two ways: a Claude-based LLM-as-a-judge factuality classifier with weighted choice scores, and a main-branch integrity check that diffs pg_dump schemas before and after the run. Pass rate rose from about 60% to 100% purely by rewriting the tool descriptions, with no code changes.

  • How We Made Our Docs Test Themselves

    LangChain mediumAdept

    LangChain made its documentation code samples testable by delegating the migration to the Deep Agents CLI using a reusable skill file. The skill instructs the agent to move inline code into standalone files under src/code-samples/{product}, add setup and teardown, lint, mark snippets with :snippet-start:/:snippet-end: tags, run the samples, and generate Mintlify snippet includes via Bluehawk. A GitHub Action then runs the samples regularly and opens tickets when one fails, so stale examples surface in CI rather than with readers.

  • Vibe Coding With AI to Generate Synthetic Data: Part 1

    Neon mediumAdept

    Asking Claude to generate synthetic Postgres seed data directly as SQL INSERT statements from a schema-only dump breaks down quickly: claude-3-5-sonnet lost referential integrity somewhere between 20 and 100 rows, and claude-3-7-sonnet often failed with 'model overloaded' errors. A hybrid approach scaled much further. There the model emits JavaScript objects that use faker.js, and the script converts them into INSERTs, which passed at 3,000 rows before foreign-key errors appeared at 5,000. GPT-4.5 showed the same pattern. The pipeline runs in GitHub Actions for Neon dev/test branches, and the open question is whether better prompting costs less effort than maintaining seed scripts by hand.

The quest for software engineering knowledge.

Look:
Layout: