skill-rules 0.1.0 → 0.2.0

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/README.md CHANGED
@@ -31,13 +31,14 @@ sr use --off # restore all skills, clear active stage
31
31
 
32
32
  ## Supported IDEs
33
33
 
34
- | IDE | Detected by | Skills directory |
35
- | ----------------------------------------------------- | ------------- | -------------------- |
36
- | Claude Code | `.claude/` | `.claude/skills/` |
37
- | Cursor | `.cursor/` | `.cursor/skills/` |
38
- | Windsurf | `.windsurf/` | `.windsurf/skills/` |
39
- | OpenHands | `.openhands/` | `.openhands/skills/` |
40
- | GitHub Copilot, Cline, VS Code, OpenCode, Codex, Kiro | `.agents/` | `.agents/skills/` |
34
+ | IDE | Detected by | Skills directory |
35
+ | ------------------------------------------- | ------------- | -------------------- |
36
+ | Claude Code | `.claude/` | `.claude/skills/` |
37
+ | Cursor | `.cursor/` | `.cursor/skills/` |
38
+ | Windsurf | `.windsurf/` | `.windsurf/skills/` |
39
+ | OpenHands | `.openhands/` | `.openhands/skills/` |
40
+ | OpenCode | `.opencode/` | `.opencode/skills/` |
41
+ | GitHub Copilot, Cline, VS Code, Codex, Kiro | `.agents/` | `.agents/skills/` |
41
42
 
42
43
  ---
43
44
 
@@ -117,6 +118,7 @@ flowchart TD
117
118
  SR --> WINDSURF[.windsurf/skills/]
118
119
  SR --> AGENTS[.agents/skills/]
119
120
  SR --> OH[.openhands/skills/]
121
+ SR --> OC[.opencode/skills/]
120
122
  ```
121
123
 
122
124
  ### Two files, two owners
@@ -399,7 +401,7 @@ your-project/
399
401
  ## Requirements
400
402
 
401
403
  - Node.js >= 20 (LTS)
402
- - At least one IDE directory (`.claude`, `.cursor`, `.windsurf`, `.agents`, or `.openhands`) at the project root
404
+ - At least one IDE directory (`.claude`, `.cursor`, `.windsurf`, `.agents`, `.openhands`, or `.opencode`) at the project root
403
405
 
404
406
  ---
405
407
 
package/dist/index.js CHANGED
@@ -35,9 +35,14 @@ var IDES = {
35
35
  detectDir: ".openhands",
36
36
  skillsDir: ".openhands/skills"
37
37
  },
38
+ opencode: {
39
+ name: "OpenCode",
40
+ detectDir: ".opencode",
41
+ skillsDir: ".opencode/skills"
42
+ },
38
43
  agents: {
39
- // Shared by: GitHub Copilot, Cline, VS Code, OpenCode, Codex, Kiro, and others
40
- name: "Agents (Copilot, Cline, VS Code, OpenCode, Codex, Kiro)",
44
+ // Shared by: GitHub Copilot, Cline, VS Code, Codex, Kiro, and others
45
+ name: "Agents (Copilot, Cline, VS Code, Codex, Kiro)",
41
46
  detectDir: ".agents",
42
47
  skillsDir: ".agents/skills"
43
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-rules",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Sync AI agent skills across Claude Code, Cursor, Windsurf and more — activate per-environment rule sets with one command",
5
5
  "type": "module",
6
6
  "bin": {