Skip to content

Deprecate legacy skill configuration - #487

Open
artjen wants to merge 1 commit into
skill-agent-removefrom
skill-configure-deprecation
Open

Deprecate legacy skill configuration#487
artjen wants to merge 1 commit into
skill-agent-removefrom
skill-configure-deprecation

Conversation

@artjen

@artjen artjen commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Why

After additive add and interactive removal exist, ucode configure skills overlaps with the new workflow but has replacement semantics. Keeping both as equally prominent entry points makes it unclear which command developers should use.

What changed

This PR marks ucode configure skills as deprecated and reorganizes the README around ucode skill add and ucode skill remove.

How it works

  • Typer marks the compatibility command deprecated.
  • Each invocation prints a migration warning with the replacement commands.
  • The implementation and replacement semantics remain unchanged for existing scripts.
  • Documentation presents additive add/remove as the canonical workflow while retaining a compatibility note.

Builds on agent-specific removal in #486.

Testing

  • uv run pytest tests/test_skills_download.py tests/test_mcp.py tests/test_cli.py -q — 514 passed
  • uv run ruff check .
  • uv run ty check src/

Tests verify both migration and utility-only warnings and confirm that the compatibility command still dispatches to its existing implementation.


Stack created with GitHub Stacks CLIGive Feedback 💬

@artjen
artjen marked this pull request as ready for review September 3, 2026 20:11
Copilot AI lite review requested due to automatic review settings September 3, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new deprecation warning message can mislead users because ucode skill add requires --location, so the warning should clarify the utility-tools-only (no --location) case.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR deprecates the legacy ucode configure skills command to reduce confusion with the newer additive ucode skill add / ucode skill remove workflow, while preserving legacy behavior for existing scripts.

Changes:

  • Marked ucode configure skills as deprecated and added a runtime migration warning.
  • Added CLI test coverage to ensure the deprecated command still dispatches to the legacy implementation.
  • Reorganized README “Skills” documentation around ucode skill add / ucode skill remove, keeping configure skills as a compatibility note.
File summaries
File Description
src/ucode/cli.py Deprecates configure skills and prints a migration warning; expands skill remove docstring.
tests/test_cli.py Adds a regression test ensuring the deprecated command warns and still dispatches.
README.md Updates Skills documentation to present skill add/remove as the primary workflow and notes configure skills as deprecated.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/ucode/cli.py Outdated
Copilot AI review requested due to automatic review settings September 3, 2026 20:32
@artjen
artjen force-pushed the skill-configure-deprecation branch from baa430a to 92e359d Compare September 3, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new deprecation warnings risk misleading users about migration semantics (replacement vs additive scope behavior) and should be clarified before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread src/ucode/cli.py
Comment on lines +3201 to +3204
print_warning(
"`ucode configure skills` is deprecated. Use `ucode skill add` to download "
"skills or add MCP scopes, and `ucode skill remove --mcp` to remove MCP scopes."
)
Comment thread src/ucode/cli.py
Comment on lines +3206 to +3209
print_warning(
"`ucode configure skills` is deprecated, but its bare utility-tools-only setup "
"has no replacement yet and remains supported."
)
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.

2 participants