Skip to content

Commit 56ee489

Browse files
committed
claude: add skill to query ownership
Change-Id: I9d0523670f0b96dac2affaf056b026636e7d7c70
1 parent 8300f7b commit 56ee489

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

.claude/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"Skill(bazel)",
77
"Skill(gerrit)",
88
"Skill(jenkins)",
9+
"Skill(owners)",
910

1011
"Bash(bazel:*)",
1112
"Bash(make:*)",

.claude/skills/owners

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.github/skills/owners

.github/skills/owners/SKILL.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: owners
3+
description: Query Gerrit code review to for code components and owners
4+
---
5+
6+
# When asked to which component a file belongs to:
7+
8+
Query the information from Gerrit
9+
10+
`cmk-components component-for [PATH ..]`
11+
12+
# When asked who the responsible owner of a file is:
13+
14+
Query the information from Gerrit
15+
16+
`cmk-components owners-for [PATH ..]`
17+
18+
# When asked about component information:
19+
20+
Output a list of all component data:
21+
22+
`cmk-components list`
23+
24+
Show owners and members for a component:
25+
26+
`cmk-components members`
27+
28+
# Update this usage guide
29+
30+
This tool is under development. If you find the information here
31+
out of date, consult the help
32+
33+
`cmk-components -h`
34+
35+
and nudge the user to update the skill.
36+
37+
# In case the command gerrit-change-log is missing
38+
39+
Ask the user to clone the zeug_cmk git repository and add it to their PATH.

0 commit comments

Comments
 (0)