Skip to content

chore: add claude md and serena#297

Open
mrtam wants to merge 1 commit into
masterfrom
no-ticket/claude-md
Open

chore: add claude md and serena#297
mrtam wants to merge 1 commit into
masterfrom
no-ticket/claude-md

Conversation

@mrtam
Copy link
Copy Markdown
Member

@mrtam mrtam commented May 20, 2026

Description

  • Add a generated CLAUDE.md
  • Add a generated .serena/project.yml

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other (please describe)

Additional Notes

@mrtam mrtam requested a review from a team as a code owner May 20, 2026 17:13
Copilot AI review requested due to automatic review settings May 20, 2026 17:13
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository guidance/config files intended for external tooling (Claude Code and Serena) to standardize local setup and provide architectural context.

Changes:

  • Add a generated CLAUDE.md with development setup, commands, architecture, and conventions.
  • Add a generated .serena/project.yml Serena project configuration.
  • Add .serena/.gitignore to keep Serena cache/local config out of version control.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
CLAUDE.md Adds Claude Code-focused repo guidance (setup, commands, architecture notes).
.serena/project.yml Adds Serena project configuration for language/server behavior and project settings.
.serena/.gitignore Ignores Serena cache and local overrides.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CLAUDE.md
```
python -m venv .venv && source .venv/bin/activate
pip install -e .
pip install -r requirements.txt # dev deps (locked); requirements.in is the source list
Comment thread CLAUDE.md
Comment on lines +32 to +35
- `cloudsmith_cli/cli/` — Click commands, decorators, output formatting, validators, config-file parsing, SAML browser-callback webserver. **No direct API calls live here** — commands call into `core/api/*`.
- `cli/commands/main.py` defines the top-level `main` Click group (`cls=AliasGroup`). Every other command module imports `main` and registers itself with `@main.command(...)` or `@main.group(...)`. `cli/commands/__init__.py` imports every module so registration happens on import.
- `cli/command.py` provides `AliasGroup` (DYM + alias support) and JSON-aware Click exception formatting — Click errors are serialized to JSON when `-F json|pretty_json` is in effect (checked from both Click context and `sys.argv`).
- `cli/decorators.py` is the seam between CLI and API: `@common_cli_config_options`, `@common_cli_output_options`, `@common_api_auth_options`, and `@initialise_api` (which calls `core.api.init.initialise_api` to configure the `cloudsmith_api` SDK with key/host/proxy/SSL/retry/SAML token). `@initialise_mcp` wires up the MCP server.
Comment thread CLAUDE.md
Comment on lines +67 to +69
- `pyupgrade --py310-plus` runs on every commit, so use modern syntax (`X | Y` unions, `dict[str, ...]` generics, etc.).
- Adding a new subcommand: create a module under `cli/commands/`, register it in `cli/commands/__init__.py`, and attach it to `main` (or a subgroup) with the `AliasGroup` for alias support.
- Adding a new API call: put SDK wrapping in `core/api/<resource>.py`, translate exceptions to `ApiException`, and call it from the command layer — don't import `cloudsmith_api` directly from `cli/commands/*`.
Comment thread .serena/project.yml
Comment on lines +71 to +72
# To make sure you have the latest list of tools, and to view their descriptions,
# execute `uv run scripts/print_tool_overview.py`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants