agentleFS
VCnoCVCnoC/Claude-Code-Zen-mcp-Skill-Work/zen-mcp-server/AGENTS.md

Claude-Code-Zen-mcp-Skill-Work / zen-mcp-server

AGENTS.md116 starsChanged 13 months agoApache-2.0View on GitHub

See requirements.txt and requirements-dev.txt Also read CLAUDE.md and CLAUDE.local.md if available. Run code quality checks: For example, this is how we run an individual / all tests:

  • Reads credentials
  • Installs packages
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run code quality checks:

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guidelines

See requirements.txt and requirements-dev.txt

Also read CLAUDE.md and CLAUDE.local.md if available.

Project Structure & Module Organization

Zen MCP Server centers on server.py, which exposes MCP entrypoints and coordinates multi-model workflows. Feature-specific tools live in tools/, provider integrations in providers/, and shared helpers in utils/. Prompt and system context assets stay in systemprompts/, while configuration templates and automation scripts live under conf/, scripts/, and docker/. Unit tests sit in tests/; simulator-driven scenarios and log utilities are in simulator_tests/ with the communication_simulator_test.py harness. Authoritative documentation and samples live in docs/, and runtime diagnostics are rotated in logs/.

Build, Test, and Development Commands

  • source .zen_venv/bin/activate – activate the managed Python environment.
  • ./run-server.sh – install dependencies, refresh .env, and launch the MCP server locally.
  • ./code_quality_checks.sh – run Ruff autofix, Black, isort, and the default pytest suite.
  • python communication_simulator_test.py --quick – smoke-test orchestration across tools and providers.
  • ./run_integration_tests.sh [--with-simulator] – exercise provider-dependent flows against remote or Ollama models.

Run code quality checks:

.zen_venv/bin/activate && ./code_quality_checks.sh

For example, this is how we run an individual / all tests:

.zen_venv/bin/activate && pytest tests/test_auto_mode_model_listing.py -q
.zen_venv/bin/activate && pytest -q

Coding Style & Naming Conventions

Target Python 3.9+ with Black and isort using a 120-character line limit; Ruff enforces pycodestyle, pyflakes, bugbear, comprehension, and pyupgrade rules. Prefer explicit type hints, snake_case modules, and imperative commit-time docstrings. Extend workflows by defining hook or abstract methods instead of checking hasattr()/getattr()—inheritance-backed contracts keep behavior discoverable and testable.

Testing Guidelines

Mirror production modules inside tests/ and name tests test_<behavior> or Test<Feature> classes. Run python -m pytest tests/ -v -m "not integration" before every commit, adding --cov=. --cov-report=html for coverage-sensitive changes. Use python communication_simulator_test.py --verbose or --individual <case> to validate cross-agent flows, and reserve ./run_integration_tests.sh for provider or transport modifications. Capture relevant excerpts from logs/mcp_server.log or logs/mcp_activity.log when documenting failures.

Commit & Pull Request Guidelines

Follow Conventional Commits: type(scope): summary, where type is one of feat, fix, docs, style, refactor, perf, test, build, ci, or chore. Keep commits focused, referencing issues or simulator cases when helpful. Pull requests should outline intent, list validation commands executed, flag configuration or tool toggles, and attach screenshots or log snippets when user-visible behavior changes.

GitHub CLI Commands

The GitHub CLI (gh) streamlines issue and PR management directly from the terminal.

Viewing Issues

# View issue details in current repository
gh issue view <issue-number>

# View issue from specific repository
gh issue view <issue-number> --repo owner/repo-name

# View issue with all comments
gh issue view <issue-number> --comments

# Get issue data as JSON for scripting
gh issue view <issue-number> --json title,body,author,state,labels,comments

# Open issue in web browser
gh issue view <issue-number> --web

Managing Issues

# List all open issues
gh issue list

# List issues with filters
gh issue list --label bug --state open

# Create a new issue
gh issue create --title "Issue title" --body "Description"

# Close an issue
gh issue close <issue-number>

# Reopen an issue
gh issue reopen <issue-number>

Pull Request Operations

# View PR details
gh pr view <pr-number>

# List pull requests
gh pr list

# Create a PR from current branch
gh pr create --title "PR title" --body "Description"

# Check out a PR locally
gh pr checkout <pr-number>

# Merge a PR
gh pr merge <pr-number>

Install GitHub CLI: brew install gh (macOS) or visit https://cli.github.com for other platforms.

Security & Configuration Tips

Store API keys and provider URLs in .env or your MCP client config; never commit secrets or generated log artifacts. Use run-server.sh to regenerate environments and verify connectivity after dependency changes. When adding providers or tools, sanitize prompts and responses, document required environment variables in docs/, and update claude_config_example.json if new capabilities ship by default.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.