Skip to content

[Refactor] drop misleading auto_activate field on SkillRecommendation#26

Open
NickCrew wants to merge 1 commit into
mainfrom
refactor/drop-skill-auto-activate
Open

[Refactor] drop misleading auto_activate field on SkillRecommendation#26
NickCrew wants to merge 1 commit into
mainfrom
refactor/drop-skill-auto-activate

Conversation

@NickCrew
Copy link
Copy Markdown
Owner

@NickCrew NickCrew commented May 7, 2026

Summary

Skill activation was deprecated in favour of progressive disclosure — skills are surfaced via descriptions in context rather than being explicitly activated. The auto_activate: bool field on SkillRecommendation was a vestige of that older model:

  • It was set at construction time (four sites in skill_recommender.py)
  • It was never read by any consumer — the skill formatter (_print_skill_recommendations) groups results into High/Medium/Low confidence tiers and never referenced this field
  • The [AUTO] badge in cmd_suggest.py belongs to _print_agent_recommendations / AgentRecommendation, not the skill path

A user reading cortex suggest --skills could reasonably infer that [AUTO] means a skill will be turned on for them. Nothing happens. This PR removes the field for truth-in-advertising.

Agent activation path is untouched. cmd_ai.py, intelligence/base.py (AgentRecommendation.auto_activate), watch.py daemon — all unchanged.

Follow-up to 6f854cd feat(skills): add project-signature pre-filter.

Changes

  • Removed auto_activate: bool field from SkillRecommendation dataclass (skill_recommender.py:32)
  • Removed four auto_activate=… constructor kwargs (rule-based, agent-based, semantic, and pattern-based recommendation strategies)
  • No changes to cmd_suggest.py — the [AUTO] badge there was already correctly scoped to AgentRecommendation
  • No test changes needed — no test referenced SkillRecommendation.auto_activate

Test plan

  • pytest tests/unit/test_cmd_suggest.py — 31 passed
  • pytest tests/unit/ — 273 passed, 3 pre-existing failures (missing psutil/rich deps, unrelated to this change)
  • mypy --strict claude_ctx_py/skill_recommender.py claude_ctx_py/cmd_suggest.py — all errors in pre-existing TUI modules, none in touched files
  • grep -rn auto_activate claude_ctx_py/cmd_ai.py — agent path unchanged

Generated by Claude Code

…endation

Skill activation was deprecated in favour of progressive disclosure — skills
are surfaced via descriptions in context rather than being activated. The
auto_activate bool was set at construction time but never read by any consumer
(the skill formatter groups by confidence tier; the [AUTO] badge in cmd_suggest
belongs to AgentRecommendation, not SkillRecommendation). Removing the field
eliminates a truth-in-advertising hazard where users might infer high-confidence
skills would be silently turned on for them.

Follow-up to 6f854cd feat(skills): add project-signature pre-filter.
Agent activation path (cmd_ai.py, intelligence/base.py) is unchanged.
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