Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

write-doc-examples

Skill by ClickHouse

Rewrites loose Java code snippets in documentation into reusable, production-ready methods with the needed library imports. Built for ClickHouse integration guides such as the client and JDBC docs.

  • Score 82
  • 1.6k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install write-doc-examples

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ClickHouse/clickhouse-java /tmp/clickhouse-java && mkdir -p ~/.claude/skills && cp -r /tmp/clickhouse-java/.cursor/skills/write-doc-examples ~/.claude/skills/write-doc-examples

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install write-doc-examples in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The write-doc-examples skill guides an assistant in rewriting loose Java snippets from documentation into reusable, production-ready methods. It wraps code in methods such as client factory methods and read or write helpers, keeps only the library imports a snippet needs, and uses try-with-resources for closable responses. It is published by ClickHouse and targets Java integration guides such as docs/integration-client.md and docs/integration-jdbc.md.

The skill sets style rules for the examples. It asks the rewrite to match earlier sections of the same document, such as a createBaseClient method returning Client.Builder, and to use consistent names like client, schema and settings. It also asks for 4-space indentation, Java 8+ compatibility, and comments at extension points. Use it when writing or formatting Java examples for integration documentation.

Written from the project's SKILL.md and checked against it.

What it can do

  • Wrap snippets in methodsTurns loose Java statements into reusable methods with clear parameters and return types.
  • Prune library importsLists only the com.clickhouse imports a snippet needs and drops common JDK classes.
  • Manage resourcesUses try-with-resources for closable responses and streams.
  • Keep document styleMatches the builder pattern and naming already used earlier in the same document.
  • POJO mapping examplesShows POJO fields mapped to ClickHouse columns when the structure matters.
  • Streaming examplesCovers streaming queries with a binary format reader and callback-based inserts.

Try asking

  • Rewrite this loose Java Client.Builder snippet as a reusable method
  • Format this JDBC example for the integration guide with the right imports
  • Wrap this insert call in a write method with try-with-resources

Good to know

  • Written for Java code examples only.
  • The source's validation checklist is cut off, so the full review steps are not shown.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .cursor/skills/write-doc-examples/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB

Alternatives to write-doc-examples

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

write-doc-examples: common questions

Which documentation files does this skill target?

The source names docs/integration-client.md and docs/integration-jdbc.md as examples of guides it applies to.

Does the skill require a specific Java version?

The source says example code should be valid Java 8 or later and follow repository patterns.

Does it write examples in languages other than Java?

The source covers Java examples only.

How do I install write-doc-examples?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is write-doc-examples free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is write-doc-examples safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to write-doc-examples?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

write-doc-examples Install

Add to stack

Loading.