agentleFS
aicayzeraicayzer/bigquery-mcp/CLAUDE.md

bigquery-mcp

CLAUDE.md2 starsChanged 17 months agoMITView on GitHub

This document provides guidelines for Claude when working on the BigQuery MCP project. Before considering work complete: - [ ] Tests pass - [ ] Code is clean and follows style guidelines - [ ] Documentation is updated - [ ] No sensitive data in commits - [ ] TASKS.md is updated - [ ] Appropriate commits made

The file

Show its rules and text

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

31 rules. About 0 are common, 30 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈30

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Completing Tasks: When you complete a task, mark it as done by changing [ ] to [x]

    line 9
  2. Distinctive:

    Remove completed tasks from TASKS.md

    line 11
  3. Distinctive:

    Update CHANGELOG.md with the version changes

    line 12
  4. Distinctive:

    Ask about incrementing the version number

    line 13
  5. Distinctive:

    When in doubt, ask whether changes warrant a new version

    line 20
  6. Distinctive:

    Use inline comments sparingly, only where logic is non-obvious

    line 25
  7. Distinctive:

    Keep comments concise and to the point

    line 26
  8. Distinctive:

    No decorative comment blocks or ASCII art

    line 27
  9. Distinctive:

    Keep files focused and under 300 lines where possible

    line 32
  10. Distinctive:

    Use descriptive variable names, but concise where appropriate

    line 33
  11. Distinctive:

    Follow PEP 8 style guidelines

    line 34
  12. Distinctive:

    No emoji or decorative elements

    line 40
  13. Distinctive:

    Commit after completing each meaningful unit of work

    line 50
  14. Distinctive:

    Ensure understanding of the specific task

    line 56
  15. Distinctive:

    Check for any blocking dependencies

    line 57
  16. Distinctive:

    Write tests alongside implementation

    line 60
  17. Distinctive:

    Keep security in mind (no credentials in code)

    line 62
  18. Distinctive:

    Update documentation if needed

    line 67
  19. Distinctive:

    Use fixtures for test data, never real company data

    line 75
  20. Distinctive:

    No company-specific information in tests

    line 79
  21. Distinctive:

    Use generic examples (e.g., "analytics_dataset" not "business_banking_demo")

    line 80
  22. Distinctive:

    Keep examples generic and professional

    line 85
  23. Distinctive:

    Update when adding new features

    line 86
  24. Distinctive:

    Ensure all code examples are tested

    line 87
  25. Distinctive:

    Use clear, user-focused language

    line 91
  26. Distinctive:

    Never commit credentials or sensitive data

    line 96
  27. Distinctive:

    All SQL operations must be read-only

    line 97
  28. Distinctive:

    Use parameterized queries where applicable

    line 99
  29. Distinctive:

    Before considering work complete:

    line 104
  30. Distinctive:

    When unsure about a decision, ask for clarification

    line 137
  31. Distinctive:

    Keep the user experience simple and intuitive

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.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
CLAUDE.md

Claude Development Guidelines

This document provides guidelines for Claude when working on the BigQuery MCP project.

Task Management

Working with TASKS.md

  1. Completing Tasks: When you complete a task, mark it as done by changing [ ] to [x]
  2. Version Batches: Once all tasks for a version are complete:
    • Remove completed tasks from TASKS.md
    • Update CHANGELOG.md with the version changes
    • Ask about incrementing the version number

Version Management

  • Pre-1.0 versions use 0.x.y format
  • Minor version (0.x.0) for new features/significant changes
  • Patch version (0.x.y) for bug fixes and minor improvements
  • When in doubt, ask whether changes warrant a new version

Code Style

Comments

  • Use inline comments sparingly, only where logic is non-obvious
  • Keep comments concise and to the point
  • No decorative comment blocks or ASCII art
  • Docstrings for all public functions/classes

Code Organization

  • Functions should do one thing well
  • Keep files focused and under 300 lines where possible
  • Use descriptive variable names, but concise where appropriate
  • Follow PEP 8 style guidelines

Git Commits

Commit Messages

  • Single line, imperative mood: "Add list_projects tool"
  • No emoji or decorative elements
  • Be specific but concise
  • Examples:
    • "Add BigQuery client initialization"
    • "Fix SQL validation for nested queries"
    • "Update dependencies to latest versions"

Commit Frequency

  • Logical, atomic commits
  • One feature/fix per commit where possible
  • Commit after completing each meaningful unit of work

Development Workflow

  1. Before Making Changes:
    • Review current TASKS.md
    • Ensure understanding of the specific task
    • Check for any blocking dependencies
  2. While Developing:
    • Write tests alongside implementation
    • Run tests frequently
    • Keep security in mind (no credentials in code)
  3. After Changes:
    • Update TASKS.md
    • Make appropriate git commit(s)
    • Update documentation if needed
    • Note any new tasks discovered

Testing

Test Organization

  • tests/unit/ - Fast tests with mocked dependencies
  • tests/integration/ - Tests requiring BigQuery connection
  • Use fixtures for test data, never real company data

Test Data

  • Anonymize any data from sandbox environments
  • No company-specific information in tests
  • Use generic examples (e.g., "analytics_dataset" not "business_banking_demo")

Documentation

README Updates

  • Keep examples generic and professional
  • Update when adding new features
  • Ensure all code examples are tested

Changelog

  • Group changes by type: Added, Changed, Fixed, Removed
  • Use clear, user-focused language
  • Date entries when releasing versions

Security Reminders

  1. Never commit credentials or sensitive data
  2. All SQL operations must be read-only
  3. Validate all user inputs
  4. Use parameterized queries where applicable
  5. Keep dependencies updated

Quality Checklist

Before considering work complete:

  • Tests pass
  • Code is clean and follows style guidelines
  • Documentation is updated
  • No sensitive data in commits
  • TASKS.md is updated
  • Appropriate commits made

Common Patterns

Error Handling

try:
    result = perform_operation()
except SpecificError as e:
    logger.error(f"Operation failed: {e}")
    return {"status": "error", "error": str(e)}

Tool Response Format

return {
    "status": "success",  # or "error"
    "data": result_data,
    "metadata": {
        "row_count": len(results),
        "execution_time_ms": elapsed_time
    }
}

Notes

  • When unsure about a decision, ask for clarification
  • Prioritize security and reliability over features
  • Keep the user experience simple and intuitive
  • Remember this is a read-only tool for data exploration

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.