ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

Auto add empty skill array when running ai-devkit install

Open codeaholicguy opened this issue 7 months ago • 1 comments

Version: 0.23.0 Precondition:

  • There is content in .ai-devkit.json, ex:
{
  "version": "0.23.0",
  "environments": [
    "cursor",
    "claude",
    "codex"
  ],
  "phases": [
    "requirements",
    "design",
    "planning",
    "implementation",
    "testing"
  ],
  "createdAt": "2026-04-17T17:17:15.973Z",
  "updatedAt": "2026-04-17T17:17:34.208Z",
  "mcpServers": {
    "memory": {
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-devkit/memory"
      ]
    },
    "notion": {
      "transport": "http",
      "url": "https://mcp.notion.com/mcp"
    }
  },
}

Reproduce:

  • Run ai-devkit install
  • It adds an empty array in the .ai-devkit.json content
{
  "version": "0.23.0",
  "environments": [
    "cursor",
    "claude",
    "codex"
  ],
  "phases": [
    "requirements",
    "design",
    "planning",
    "implementation",
    "testing"
  ],
  "createdAt": "2026-04-17T17:17:15.973Z",
  "updatedAt": "2026-04-17T17:17:34.208Z",
  "mcpServers": {
    "memory": {
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-devkit/memory"
      ]
    },
    "notion": {
      "transport": "http",
      "url": "https://mcp.notion.com/mcp"
    }
  },
  "skills": []
}

Expect: Should not add skills empty array.

codeaholicguy avatar Apr 17 '26 17:04 codeaholicguy

Fixed in https://github.com/codeaholicguy/ai-devkit/commit/80f257a0a627dede2322eee70a8b1940b15e63cb

codeaholicguy avatar Apr 17 '26 17:04 codeaholicguy