Skip to content

[Chore] Add CLAUDE.md and new-operator skill#152

Open
zacharyvincze wants to merge 5 commits into
ROCm:developfrom
zacharyvincze:zv/chore/claude-metadata
Open

[Chore] Add CLAUDE.md and new-operator skill#152
zacharyvincze wants to merge 5 commits into
ROCm:developfrom
zacharyvincze:zv/chore/claude-metadata

Conversation

@zacharyvincze
Copy link
Copy Markdown
Contributor

Description:

This PR adds metadata for Claude Code to help with repository navigation and best practices. It also adds a skill: new-operator which automatically scaffolds new operator implementations.

Copy link
Copy Markdown

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 Claude Code metadata and a new-operator skill intended to scaffold rocCV operators end-to-end (C++ API, kernels, pybind11, and tests) to speed up new operator development.

Changes:

  • Added CLAUDE.md with build/test commands and repo architecture notes.
  • Added .claude/skills/new-operator/ skill definition plus C++/Python scaffolding templates for a new operator.
  • Documented the skill’s workflow/spec placeholders in SKILL.md.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
CLAUDE.md New contributor/agent-facing guidance for building, testing, and navigating rocCV.
.claude/skills/new-operator/SKILL.md Defines the new-operator skill and the spec→template substitution contract.
.claude/skills/new-operator/templates/op_NAME.hpp.template C++ public operator header template (IOperator subclass).
.claude/skills/new-operator/templates/op_NAME.cpp.template C++ operator implementation template (validation + dispatch + kernel calls).
.claude/skills/new-operator/templates/NAME_device.hpp.template HIP device kernel template (pass-through placeholder).
.claude/skills/new-operator/templates/NAME_host.hpp.template CPU kernel template (pass-through placeholder).
.claude/skills/new-operator/templates/py_op_NAME.hpp.template pybind11 header template for Python operator bindings.
.claude/skills/new-operator/templates/py_op_NAME.cpp.template pybind11 implementation template for Python operator bindings.
.claude/skills/new-operator/templates/test_op_NAME.cpp.template C++ test template (negative cases + golden-model harness stub).
.claude/skills/new-operator/templates/test_op_NAME.py.template Python pytest template (op vs _into metadata parity).

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

Comment thread .claude/skills/new-operator/templates/py_op_NAME.cpp.template
Comment thread .claude/skills/new-operator/templates/test_op_NAME.py.template
Comment thread .claude/skills/new-operator/templates/op_NAME.cpp.template
Comment thread .claude/skills/new-operator/SKILL.md Outdated
Comment thread .claude/skills/new-operator/SKILL.md
Comment thread CLAUDE.md
Comment thread .claude/skills/new-operator/templates/op_NAME.hpp.template Outdated
Copy link
Copy Markdown

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

Looks promising for adding new operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants