canicode 0.11.3 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +15 -0
- package/README.md +2 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/docs/CUSTOMIZATION.md +2 -0
- package/package.json +2 -1
- package/skills/canicode/SKILL.md +14 -1
- package/skills/canicode-gotchas/SKILL.md +16 -1
- package/skills/canicode-roundtrip/SKILL.md +16 -1
- package/skills/canicode-roundtrip/helpers-bootstrap.js +1 -1
- package/skills/canicode-roundtrip/helpers-installer.js +1 -1
- package/skills/cursor/canicode/SKILL.md +14 -1
- package/skills/cursor/canicode-gotchas/SKILL.md +16 -1
- package/skills/cursor/canicode-roundtrip/SKILL.md +16 -1
- package/skills/cursor/canicode-roundtrip/helpers-bootstrap.js +1 -1
- package/skills/cursor/canicode-roundtrip/helpers-installer.js +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "canicode",
|
|
3
|
+
"version": "0.11.4",
|
|
4
|
+
"description": "Lint Figma designs for AI code-gen and roundtrip the answers back into the file. CLI + MCP server.",
|
|
5
|
+
"skills": [
|
|
6
|
+
"./skills/canicode",
|
|
7
|
+
"./skills/canicode-gotchas",
|
|
8
|
+
"./skills/canicode-roundtrip"
|
|
9
|
+
],
|
|
10
|
+
"mcpServers": {
|
|
11
|
+
"canicode": {
|
|
12
|
+
"command": "canicode-mcp"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/README.md
CHANGED
|
@@ -150,6 +150,8 @@ Drops three skills into `./.claude/skills/`:
|
|
|
150
150
|
- **canicode-gotchas** — standalone gotcha survey (use `/canicode-gotchas <figma-url>`)
|
|
151
151
|
- **canicode-roundtrip** — full analyze → gotcha → apply roundtrip (use `/canicode-roundtrip <figma-url>`)
|
|
152
152
|
|
|
153
|
+
> **Explicit invocation:** the SKILL.md `description` fields advertise TRIGGER conditions so the model auto-routes Figma-URL prompts to the right skill, but routing is non-deterministic. For deterministic invocation, type `/canicode <figma-url>`, `/canicode-gotchas <figma-url>`, or `/canicode-roundtrip <figma-url>` directly — the slash command bypasses model-based routing.
|
|
154
|
+
|
|
153
155
|
The skills shell out to `npx canicode …` for analyze / gotcha-survey when the canicode MCP server is not installed — both paths produce the same JSON shape. The Figma MCP server is still required for the apply step (Step 4 in `/canicode-roundtrip`); see the prereq note above.
|
|
154
156
|
|
|
155
157
|
Flags: `--global` installs into `~/.claude/skills/` instead. `--cursor-skills` also installs Cursor copies under `.cursor/skills/`. `--force` overwrites existing skill files without prompting. Run `canicode docs setup` for the full setup guide.
|
package/dist/cli/index.js
CHANGED
|
@@ -4245,7 +4245,7 @@ function computeApplyContext(violation, instanceContext) {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
|
|
4247
4247
|
// package.json
|
|
4248
|
-
var version2 = "0.11.
|
|
4248
|
+
var version2 = "0.11.4";
|
|
4249
4249
|
|
|
4250
4250
|
// src/core/engine/scoring.ts
|
|
4251
4251
|
var GRADE_ORDER = ["S", "A+", "A", "B+", "B", "C+", "C", "D", "F"];
|