Skip to content

feat(cursor-agent): migrate commands to skills under .cursor/skills#2156

Merged
mnriem merged 1 commit intogithub:mainfrom
gabrielhmsantos:feat/cursor-agent-migrate-commands-to-skills
Apr 10, 2026
Merged

feat(cursor-agent): migrate commands to skills under .cursor/skills#2156
mnriem merged 1 commit intogithub:mainfrom
gabrielhmsantos:feat/cursor-agent-migrate-commands-to-skills

Conversation

@gabrielhmsantos
Copy link
Copy Markdown
Contributor

@gabrielhmsantos gabrielhmsantos commented Apr 10, 2026

Description

Addresses #2149.

Migrates the cursor-agent integration from Markdown commands (.cursor/commands, speckit.*.md) to agent skills under .cursor/skills (speckit-*/SKILL.md) using SkillsIntegration, in line with other agents that no longer rely on a pure slash-command install path.

Updates specify init “Next Steps” (skills wording, /speckit-* hints, optional notice for .cursor/skills), HookExecutor invocation for cursor-agent when ai_skills is set, docs/upgrade.md, and integration tests.

Context (from issue #2149)

During testing, moving Spec Kit to skills with /migrate-to-skills showed improved performance. Separately, some agent runs still surface limitations around Cursor slash commands in environments where those commands are not actually runnable (even when docs imply the agent can “activate” commands). Shipping skills under .cursor/skills targets that gap.

Claude in Spec Kit also moved from commands to skills over time; this change applies the same trajectory for Cursor.

Any performance comparison remains informal; independent checks would be welcome.

Closes #2149

Testing

  • Tested locally with uv run specify --help
  • Ran existing tests with uv sync && uv run pytest (e.g. tests/integrations/test_integration_cursor_agent.py, tests/test_cursor_frontmatter.py)
  • Tested with a sample project (if applicable)

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (describe below)

AI was used only for codebase analysis and for drafting the commit message and this pull request. All implementation edits were written and adjusted manually.

Use SkillsIntegration so workflows ship as speckit-*/SKILL.md. Update
init next-steps, extension hook invocation, docs, and tests.

Made-with: Cursor
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Migrates the cursor-agent integration from Markdown-based slash commands under .cursor/commands to skills under .cursor/skills (speckit-*/SKILL.md) by switching the integration to SkillsIntegration, and updates CLI messaging/docs/tests to match.

Changes:

  • Update cursor-agent integration to install skills (.cursor/skills/.../SKILL.md) instead of command files.
  • Render Cursor hook invocations using skill syntax when ai_skills is enabled (e.g., /speckit-plan).
  • Refresh specify init “Next Steps”, upgrade docs, and integration tests for the new skills layout.
Show a summary per file
File Description
tests/integrations/test_integration_cursor_agent.py Switches Cursor integration tests to the shared skills test mixin and adds an --ai cursor-agent auto-promote assertion.
src/specify_cli/integrations/cursor_agent/init.py Converts CursorAgentIntegration to SkillsIntegration and updates config/registrar settings to point at .cursor/skills.
src/specify_cli/extensions.py Adds Cursor skill-mode hook invocation rendering (/speckit-...) when ai_skills is set.
src/specify_cli/init.py Updates init “Next Steps” display logic to show Cursor skill invocation and add a skills-directory hint.
docs/upgrade.md Updates troubleshooting guidance to reference .cursor/skills/ instead of .cursor/commands/.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 5/5 changed files
  • Comments generated: 0

@mnriem mnriem merged commit 5732de6 into github:main Apr 10, 2026
12 checks passed
@mnriem
Copy link
Copy Markdown
Collaborator

mnriem commented Apr 10, 2026

Thank you!

@gabrielhmsantos gabrielhmsantos deleted the feat/cursor-agent-migrate-commands-to-skills branch April 10, 2026 14:57
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.

[Bug]: Cursor agent does not execute extensions set to optional:false.

3 participants