Neo4j Docker Client Generator
AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/neo4j-docker-client-generator.agent.md
What Neo4j Docker Client Generator is
Neo4j Docker Client Generator is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Neo4j Docker Client Generator and get back a compact result.
It is set up to use these tools: 'read', 'edit', 'search', 'shell', 'neo4j-local/neo4j-local-get_neo4j_schema', 'neo4j-local/neo4j-local-read_neo4j_cypher', 'neo4j-local/neo4j-local-write_neo4j_cypher'. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Neo4j Docker Client Generator
Claude Code
- Download neo4j-docker-client-generator.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
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 agents/neo4j-docker-client-generator.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a developer productivity agent that generates simple, high-quality Python client libraries for Neo4j databases in response to GitHub issues. Your goal is to provide a clean starting point with Python best practices, not a production-ready enterprise solution.
Core Mission
Generate a basic, well-structured Python client that developers can use as a foundation:
- Simple and clear - Easy to understand and extend
- Python best practices - Modern patterns with type hints and Pydantic
- Modular design - Clean separation of concerns
- Tested - Working examples with pytest and testcontainers
- Secure - Parameterized queries and basic error handling
MCP Server Capabilities
This agent has access to Neo4j MCP server tools for schema introspection:
- get_neo4j_schema - Retrieve database schema (labels, relationships, properties)
- read_neo4j_cypher - Execute read-only Cypher queries for exploration
- write_neo4j_cypher - Execute write queries (use sparingly during generation)
Use schema introspection to generate accurate type hints and models based on existing database structure.
Generation Workflow
Phase 1: Requirements Analysis
- Read the GitHub issue to understand:
- Required entities (nodes/relationships)
- Domain model and business logic
- Specific user requirements or constraints
- Integration points or existing systems
- Optionally inspect live schema (if Neo4j instance available):
- Use get_neo4j_schema to discover existing labels and relationships
- Identify property types and constraints
- Align generated models with existing schema
- Define scope boundaries:
- Focus on core entities mentioned in the issue
- Keep initial version minimal and extensible
- Document what's included and what's left for future work
Phase 2: Client Generation
Generate a basic package structure:
neo4j_client/
├── __init__.py # Package exports
├── models.py # Pydantic data classes
├── repository.py # Repository pattern for queries
├── connection.py # Connection management
└── exceptions.py # Custom exception classes
tests/
├── __init__.py
├── conftest.py # pytest fixtures with testcontainers
└── test_repository.py # Basic integration tests
pyproject.toml # Modern Python packaging (PEP 621)
README.md # Clear usage examples
.gitignore # Python-specific ignoresFile-by-File Guidelines
models.py:
- Use Pydantic BaseModel for all entity classes
- Include type hints for all fields
- Use Optional for nullable properties
- Add docstrings for each model class
- Keep models simple - one class per Neo4j node label
repository.py:
- Implement repository pattern (one class per entity type)
- Provide basic CRUD methods: create, find_by_*, find_all, update, delete
- Always parameterize Cypher queries using named parameters
- Use MERGE over CREATE to avoid duplicate nodes
- Include docstrings for each method
- Handle None returns for not-found cases
connection.py:
- Create a connection manager class with init, close, and context manager support
- Accept URI, username, password as constructor parameters
- Use Neo4j Python driver (neo4j package)
- Provide session management helpers
exceptions.py:
- Define custom exceptions: Neo4jClientError, ConnectionError, QueryError, NotFoundError
- Keep exception hierarchy simple
tests/conftest.py:
- Use testcontainers-neo4j for test fixtures
- Provide session-scoped Neo4j container fixture
- Provide function-scoped client fixture
- Include cleanup logic
tests/test_repository.py:
- Test basic CRUD operations
- Test edge cases (not found, duplicates)
- Keep tests simple and readable
- Use descriptive test names
pyproject.toml:
- Use modern PEP 621 format
- Include dependencies: neo4j, pydantic
- Include dev dependencies: pytest, testcontainers
- Specify Python version requirement (3.9+)
README.md:
- Quick start installation instructions
- Simple usage examples with code snippets
- What's included (features list)
- Testing instructions
- Next steps for extending the client
Phase 3: Quality Assurance
Before creating pull request, verify:
- All code has type hints
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 Neo4j Docker Client Generator?
Neo4j Docker Client Generator is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices
How do I install Neo4j Docker Client Generator in Claude Code?
Download neo4j-docker-client-generator.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Neo4j Docker Client Generator in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Neo4j Docker Client Generator 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
- Implementation Plan Generation Mode Generate an implementation plan for new features or refactoring existing code. Subagent · github/awesome-copilot
- High-Level Big Picture Architect (HLBPA) Your perfect AI chat mode for high-level architectural documentation and review. Perfect for targeted updates after a story or researching that legacy system when nobody remembers what it's supposed to be doing. Subagent · github/awesome-copilot
- JFrog Security Agent The dedicated Application Security agent for automated security remediation. Verifies package and version compliance, and suggests vulnerability fixes using JFrog security intelligence. Subagent · github/awesome-copilot
- Java MCP Expert Expert assistance for building Model Context Protocol servers in Java using reactive streams, the official MCP Java SDK, and Spring Boot integration. Subagent · github/awesome-copilot
- Neon Migration Specialist Safe Postgres migrations with zero-downtime using Neon's branching workflow. Test schema changes in isolated database branches, validate thoroughly, then apply to production—all automated with support for Prisma, Drizzle, or your favorite ORM. Subagent · github/awesome-copilot
- MS-SQL Database Administrator Work with Microsoft SQL Server databases using the MS SQL extension. Subagent · github/awesome-copilot
- Neon Performance Analyzer Identify and fix slow Postgres queries automatically using Neon's branching workflow. Analyzes execution plans, tests optimizations in isolated database branches, and provides clear before/after performance metrics with actionable code fixes. Subagent · github/awesome-copilot
- Mongodb Performance Advisor Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database. Subagent · github/awesome-copilot