Skip to content
3 changes: 2 additions & 1 deletion openkb/agent/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ async def _handle_slash_deck(arg: str, kb_dir: Path, style: Style) -> None:
model = config.get("model", DEFAULT_CONFIG["model"])

from openkb.skill.generator import Generator
skill_label = skill_name if skill_name else "openkb-deck-editorial (default)"
from openkb.deck.creator import DEFAULT_DECK_SKILL
skill_label = skill_name if skill_name else f"{DEFAULT_DECK_SKILL} (default)"
_fmt(
style,
("class:slash.help", f"Generating deck '{name}' via skill {skill_label}...\n"),
Expand Down
7 changes: 5 additions & 2 deletions openkb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2261,8 +2261,10 @@ def deck():
"--skill", "skill_name",
metavar="SKILL_NAME",
default=None,
# NOTE: 'openkb-deck-neon' below must stay in sync with
# DEFAULT_DECK_SKILL in openkb/deck/creator.py.
help=(
"Which deck skill to use. Defaults to 'openkb-deck-editorial' "
"Which deck skill to use. Defaults to 'openkb-deck-neon' "
"(the built-in). Pass e.g. 'deck-guizang-editorial' to route to "
"a third-party skill installed under ~/.openkb/skills/."
),
Expand Down Expand Up @@ -2341,7 +2343,8 @@ def deck_new(ctx, name, intent, yes_flag, critique_flag, skill_name):

# Run the generator.
from openkb.skill.generator import Generator
skill_label = skill_name if skill_name else "openkb-deck-editorial (default)"
from openkb.deck.creator import DEFAULT_DECK_SKILL
skill_label = skill_name if skill_name else f"{DEFAULT_DECK_SKILL} (default)"
click.echo(f"Generating deck '{name}' via skill {skill_label}...")
gen = Generator(
target_type="deck",
Expand Down
6 changes: 3 additions & 3 deletions openkb/deck/creator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Thin CLI/Generator wrapper around any deck-producing skill.

The actual deck generation lives in skill packages — by default
``skills/openkb-deck-editorial/SKILL.md``, but the caller may pass
``skills/openkb-deck-neon/SKILL.md``, but the caller may pass
``skill_name`` to route to a different one (e.g.
``deck-guizang-editorial`` from open-design). Skill execution runs
through :func:`openkb.agent.skill_runner.run_skill`, which also handles
Expand Down Expand Up @@ -29,7 +29,7 @@
from openkb.deck import deck_dir


DEFAULT_DECK_SKILL = "openkb-deck-editorial"
DEFAULT_DECK_SKILL = "openkb-deck-neon"
"""Skill name routed to when the CLI / chat doesn't pass ``--skill``."""

CRITIC_SKILL = "openkb-html-critic"
Expand All @@ -52,7 +52,7 @@ async def run_deck_create(

Args:
skill_name: Which deck skill to run. Defaults to the built-in
``openkb-deck-editorial``. Pass ``"deck-guizang-editorial"``
``openkb-deck-neon``. Pass ``"deck-guizang-editorial"``
etc. to route to a third-party skill installed under
``~/.openkb/skills/``.

Expand Down
2 changes: 1 addition & 1 deletion openkb/skill/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
"""Args:
skill_name: For ``target_type="deck"``, which deck skill to use.
Defaults to :data:`openkb.deck.creator.DEFAULT_DECK_SKILL`
(``"openkb-deck-editorial"``). Ignored for skill target.
(``"openkb-deck-neon"``). Ignored for skill target.
"""
if target_type not in ("skill", "deck"):
raise ValueError(
Expand Down
Loading