Dev Rules
Developmentdev-rulesDev Rules is an Agent Skill for development published in the kubernetes-sigs/agent-sandbox repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Enforces project-specific development rules and conventions.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/kubernetes-sigs/agent-sandbox/blob/HEAD/.agents/skills/dev-rules/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/dev-rules, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Development Rules
Purpose
This skill ensures that AI agents contributing to this project follow project-specific rules regarding code review and style to maintain compliance and quality.
Instructions
- Go Development: Follow standard Kubernetes Go patterns and best practices.
- AI-Assisted Code Reviews:
- Do NOT directly apply code suggestions from Copilot via the GitHub UI. Doing so adds Copilot as a co-author to the commit. Since Copilot cannot sign the Kubernetes CLA, this will cause the CLA check to fail and block the PR. Manual review and application of suggestions are required.
- Once the initial AI review (e.g., by Copilot) is complete, ensure all review comments are addressed and resolved so the PR can be labeled
ready-for-reviewfor maintainers.
- API Conventions: Always use the
k8s-api-conventionsskill when modifying APIs. - Creating Pull Requests: When creating a Pull Request, always use and fill out the project's PR template (
.github/pull_request_template.md).- Description: Provide a clear and concise description in the "What this PR does" section.
- Related Issues: Link related issues using "Fixes #issue" or "Ref link".
- Release Notes: Fill out the
release-noteblock. Note that automated release notes are generated from the description in the first section, so ensure it is comprehensive. For breaking changes, describe required actions and ask the maintainers to label the PR withrelease-note-action-required.
References
- Project rules (as documented in
CONTRIBUTING.md)