Skip to content

Commit 05a18f9

Browse files
Fix qodercli-skills-migration: migrate QodercliIntegration to SkillsIntegration
Apply the remediation from the bug assessment on issue #4199. Qoder IDE 1.24+ dropped .qoder/commands/ scanning in favour of the skills layout (.qoder/skills/{skill-name}/SKILL.md). Migrated QodercliIntegration from MarkdownIntegration to SkillsIntegration, updating config[commands_subdir] to 'skills' and registrar_config[dir] to '.qoder/skills' with extension '/SKILL.md'. Updated tests to use SkillsIntegrationTests base mixin. Refs #4199 Assisted-by: GitHub Copilot (model: claude-sonnet-4.6, autonomous) Co-authored-by: Copilot <[email protected]>
1 parent 6b7f4aa commit 05a18f9

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
"""Qoder CLI integration."""
1+
"""Qoder CLI integration.
22
3-
from ..base import MarkdownIntegration
3+
Qoder IDE 1.24+ dropped ``.qoder/commands/`` scanning in favour of the
4+
skills layout: ``.qoder/skills/{skill-name}/SKILL.md`` with a ``name``
5+
field in frontmatter. Migrated to ``SkillsIntegration`` to match.
6+
"""
47

8+
from ..base import SkillsIntegration
59

6-
class QodercliIntegration(MarkdownIntegration):
10+
11+
class QodercliIntegration(SkillsIntegration):
712
key = "qodercli"
813
config = {
914
"name": "Qoder CLI",
1015
"folder": ".qoder/",
11-
"commands_subdir": "commands",
16+
"commands_subdir": "skills",
1217
"install_url": "https://qoder.com/cli",
1318
"requires_cli": True,
1419
}
1520
registrar_config = {
16-
"dir": ".qoder/commands",
21+
"dir": ".qoder/skills",
1722
"format": "markdown",
1823
"args": "$ARGUMENTS",
19-
"extension": ".md",
24+
"extension": "/SKILL.md",
2025
}
2126
multi_install_safe = True
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Tests for QodercliIntegration."""
22

3-
from .test_integration_base_markdown import MarkdownIntegrationTests
3+
from .test_integration_base_skills import SkillsIntegrationTests
44

55

6-
class TestQodercliIntegration(MarkdownIntegrationTests):
6+
class TestQodercliIntegration(SkillsIntegrationTests):
77
KEY = "qodercli"
88
FOLDER = ".qoder/"
9-
COMMANDS_SUBDIR = "commands"
10-
REGISTRAR_DIR = ".qoder/commands"
9+
COMMANDS_SUBDIR = "skills"
10+
REGISTRAR_DIR = ".qoder/skills"

0 commit comments

Comments
 (0)