发布

  • feat(core): improve configure-ai-agents to copy nx skills/subagents/plugins (#34176)

    frostbyte_neo 发布于 2026-01-27 16:10:28 +00:00

    Current Behavior

    The configure-ai-agents command sets up rules files (CLAUDE.md,
    AGENTS.md, GEMINI.md) and MCP configurations for AI coding agents, but
    doesn't provide extensibility artifacts like commands, skills, or
    subagents.

    Expected Behavior

    The command now:

    • Adds OpenCode as a new supported agent with project-level MCP
      config
    • Configures Claude plugin via marketplace settings
      (.claude/settings.json with extraKnownMarketplaces)
    • Copies extensibility artifacts (commands, skills, subagents) from
      nrwl/nx-ai-agents-config repo for non-Claude agents
    • Caches the config repo in
      /tmp/nx-ai-agents-config/<commit-hash>/ with automatic cleanup of old
      versions

    Agent Distribution Matrix

    Agent Rules MCP Config Commands Skills Subagents Plugin
    Claude CLAUDE.md .mcp.json - - - ✓ (marketplace)
    OpenCode AGENTS.md opencode.json -
    Copilot AGENTS.md Nx Console -
    Cursor AGENTS.md Nx Console - -
    Gemini GEMINI.md .gemini/settings.json - -

    Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
    Co-authored-by: MaxKless MaxKless@users.noreply.github.com
    Co-authored-by: FrozenPandaz jasonjean1993@gmail.com

    下载附件