Skip to content

Commit f98b6a9

Browse files
committed
feat: move structure of skill to a claude plugin offering subagent
1 parent 132e187 commit f98b6a9

10 files changed

Lines changed: 333 additions & 321 deletions

File tree

.agents/skills/lgtm-review/SKILL.md

Lines changed: 0 additions & 154 deletions
This file was deleted.

.agents/skills/lgtm-review/reviewer-prompt.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

.agents/skills/lgtm-review/summarizer-prompt.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
run: |
4747
just lint
4848
49-
- name: Check skill prompts are up to date
49+
- name: Check plugin prompts are up to date
5050
run: |
51-
just check-skill-prompts
51+
just check-plugin-prompts
5252
5353
lint-commit:
5454
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ repos:
1919
entry: "poetry check --lock"
2020
language: system
2121
pass_filenames: false
22-
- id: build-skill-prompts
23-
name: Keep skill prompts up to date
24-
entry: "just build-skill-prompts"
22+
- id: build-plugin-prompts
23+
name: Keep plugin prompts up to date
24+
entry: "just build-plugin-prompts"
2525
language: system
2626
pass_filenames: false
2727
stages:

justfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ lint-commit: venv
6767
build:
6868
docker build -t lgtm-ai .
6969

70-
# Builds the lgtm-review skill prompt files from the Python source prompts.
71-
build-skill-prompts: venv
70+
# Injects the lgtm-ai prompts inline into the Claude plugin agent file.
71+
build-plugin-prompts: venv
7272
{{ run }} python scripts/build_skill_prompts.py
7373

74-
# Checks that the skill prompt files are up to date with the Python source prompts. Fails if they differ.
75-
check-skill-prompts: build-skill-prompts
76-
git diff --exit-code .agents/skills/lgtm-review/reviewer-prompt.md .agents/skills/lgtm-review/summarizer-prompt.md
74+
# Checks that the inlined prompts in the Claude plugin agent file are up to date. Fails if they differ.
75+
check-plugin-prompts: venv
76+
{{ run }} python scripts/build_skill_prompts.py --check
7777

7878
# Pushes the docker image to the registry
7979
push version: build
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "lgtm-review",
3+
"description": "A plugin that integrates an LGTM AI code reviewer agent into Claude, providing consistent code reviews of code changes.",
4+
"version": "1.5.6",
5+
"author": {
6+
"name": "Sergio Castillo",
7+
"email": "s.cast.lara@gmail.com"
8+
}
9+
}

0 commit comments

Comments
 (0)