Skip to content

docs: add AGENTS.md and release-prep agent skill - #8646

Open
slashpai wants to merge 4 commits into
prometheus-operator:mainfrom
slashpai:agentsmd
Open

docs: add AGENTS.md and release-prep agent skill#8646
slashpai wants to merge 4 commits into
prometheus-operator:mainfrom
slashpai:agentsmd

Conversation

@slashpai

@slashpai slashpai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.

Add AI agent guidelines and a release preparation skill to help AI agents
(Cursor, Claude, etc.) contribute in line with project conventions.

Also adds:

  • CLAUDE.md symlink → AGENTS.md (so Claude agents pick up the guidelines)
  • .cursor/skills symlink → .agents/skills (so Cursor discovers skills)
  • .claude/skills symlink → .agents/skills (so Claude discovers skills)

Assisted By: Claude Opus 4.6

Closes: #ISSUE-NUMBER

If you're contributing for the first-time, check our contribution guidelines.

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.


@slashpai
slashpai requested a review from a team as a code owner June 24, 2026 05:33
@slashpai
slashpai requested a review from simonpasquier June 24, 2026 05:33
heliapb
heliapb previously approved these changes Jun 25, 2026

@heliapb heliapb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @slashpai does lgtm just has some minor spell checks that need to be fixed :)

@slashpai

Copy link
Copy Markdown
Contributor Author

@simonpasquier could you also please review?

@slashpai

slashpai commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@simonpasquier Could you please take a look?

Comment thread AGENTS.md
*: modernize Go code
```

Common subsystem prefixes: `prometheus`, `alertmanager`, `thanos`, `scrapeconfig`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm myself guilty for not being consistent (I vary between (chore|fix|feat|...): ... and *: ... but my current preference would be for the prefix to describe the type of change (e.g. chore, fix, ...).

Comment thread AGENTS.md Outdated

## Project Overview

Prometheus Operator uses Kubernetes Custom Resource Definitions (CRDs) to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could/should we link to https://prometheus-operator.dev/docs/getting-started/introduction/ or https://prometheus-operator.dev/docs/getting-started/design/? I feel that this information is also useful for humans and I'd rather update our current docs if there are things missing.

Comment thread AGENTS.md Outdated

- Each commit must compile and pass tests independently.
- Keep commits small and focused. Do not bundle unrelated changes in one commit.
If a refactor is necessary, do it in a separate commit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A separate PR might even be better if possible :)

Comment thread AGENTS.md Outdated
- Keep commits small and focused. Do not bundle unrelated changes in one commit.
If a refactor is necessary, do it in a separate commit.
- Sign off every commit with `git commit -s` to satisfy the DCO requirement.
- Commits must be verified (GPG or SSH signed). Configure commit signing with

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't strictly require it, do we?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think its good to enforce for security?

Comment thread AGENTS.md Outdated

---

## Releases

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is the purpose here to guide an agent preparing the release?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

on second thought I think its better have skill for release process :). I will update

Comment thread AGENTS.md Outdated
## CHANGELOG

The CHANGELOG uses the following prefixes. When adding an entry, include the
PR number at the end.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

and the order should be respected (change, feature, enhancement, bugfix).

Comment thread AGENTS.md

---

## Code Style

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we enumerate all our conventions or just tell that golangci-lint needs to pass? Even if golangci-lint can't fix a violation, the agent should be able to figure what to do.

Comment thread AGENTS.md

---

## CRD / API Design

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Provide coding style, commit conventions, CRD overview, CI checklist
and project-specific patterns to help AI agents align with maintainer
expectations. Modeled after the Prometheus project's AGENTS.md

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
@slashpai slashpai changed the title docs: add AGENTS.md for AI agent contribution guidelines docs: add AGENTS.md and release-prep agent skill Aug 11, 2026
@slashpai

Copy link
Copy Markdown
Contributor Author

@simonpasquier Addressed comments. I also added release prep skill as it didnt suit in agents.md
PTAL

Add a vendor-neutral AI agent skill at .agents/skills/release-prep/ that
guides agents through minor release preparation (dependency bumps and
release cuts) with human review gates at every step.

Symlink .cursor/skills to .agents/skills so Cursor discovers the skill.

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Add a section pointing to the AI agent skill for release PR preparation
and how to invoke it.

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants