@xscriptor/skill-devx 1.0.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/LICENSE +21 -0
- package/README.md +40 -0
- package/bin/install.js +48 -0
- package/package.json +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xscriptor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<h1 align="center">@xscriptor/skill-devx</h1>
|
|
2
|
+
|
|
3
|
+
<p>Development workflows skill for the DevX platform. Contains code structure conventions, platform mapping, design token system, and project organization guidelines.</p>
|
|
4
|
+
|
|
5
|
+
<h2>Installation</h2>
|
|
6
|
+
|
|
7
|
+
<pre><code># Install to OpenCode (~/.config/opencode/skills/devx/)
|
|
8
|
+
npx @xscriptor/skill-devx
|
|
9
|
+
|
|
10
|
+
# Install to Claude Code (~/.claude/skills/devx/)
|
|
11
|
+
npx @xscriptor/skill-devx --anthropic
|
|
12
|
+
|
|
13
|
+
# Preview what will be installed
|
|
14
|
+
npx @xscriptor/skill-devx --dry-run</code></pre>
|
|
15
|
+
|
|
16
|
+
<h2>Usage</h2>
|
|
17
|
+
|
|
18
|
+
<p>Once installed, the skill is loaded automatically when working on DevX projects. Invoke it manually with <code>/devx</code> in Claude Code, or use <code>@devx</code> in OpenCode.</p>
|
|
19
|
+
|
|
20
|
+
<p>The skill covers:</p>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><strong>Architecture</strong> — modular platform design, packages, apps separation</li>
|
|
23
|
+
<li><strong>Code structure</strong> — module conventions, barrel exports, internal directories</li>
|
|
24
|
+
<li><strong>Platform mapping</strong> — web, mobile, API conventions per platform</li>
|
|
25
|
+
<li><strong>Design tokens</strong> — color, spacing, typography, elevation system</li>
|
|
26
|
+
<li><strong>Layout system</strong> — responsive grid, breakpoints, container patterns</li>
|
|
27
|
+
</ul>
|
|
28
|
+
|
|
29
|
+
<h2>Resources</h2>
|
|
30
|
+
|
|
31
|
+
<ul>
|
|
32
|
+
<li><a href="https://github.com/xscriptor/ai">github.com/xscriptor/ai</a></li>
|
|
33
|
+
<li><a href="https://dev.xscriptor.com/en/resources/ai/">dev.xscriptor.com/en/resources/ai/</a></li>
|
|
34
|
+
</ul>
|
|
35
|
+
|
|
36
|
+
<hr>
|
|
37
|
+
|
|
38
|
+
<p><strong>License:</strong> <a href="./LICENSE">MIT</a><br>
|
|
39
|
+
<strong>Report issues:</strong> <a href="https://github.com/xscriptor/ai/issues">github.com/xscriptor/ai/issues</a><br>
|
|
40
|
+
<strong>Changelog:</strong> <a href="https://github.com/xscriptor/ai/releases">github.com/xscriptor/ai/releases</a></p>
|
package/bin/install.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @xscriptor/skill-devx - Install the DevX development skill.
|
|
3
|
+
// Usage: npx @xscriptor/skill-devx [--opencode|--anthropic|--dry-run]
|
|
4
|
+
import { existsSync, mkdirSync, copyFileSync, readdirSync, statSync } from "fs";
|
|
5
|
+
import { join, dirname } from "path";
|
|
6
|
+
import { fileURLToPath } from "url";
|
|
7
|
+
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const PKG_DIR = join(__dirname, "..");
|
|
10
|
+
const REPO_DIR = join(PKG_DIR, "..", "..");
|
|
11
|
+
|
|
12
|
+
function dstPath(target) {
|
|
13
|
+
const home = process.env.HOME || process.env.USERPROFILE || "";
|
|
14
|
+
if (target === "anthropic") return join(home, ".claude", "skills", "devx");
|
|
15
|
+
const xdg = process.env.XDG_CONFIG_HOME || join(home, ".config");
|
|
16
|
+
return join(xdg, "opencode", "skills", "devx");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function srcPath() {
|
|
20
|
+
const p = join(PKG_DIR, "skills", "web", "dev", "devx");
|
|
21
|
+
const r = join(REPO_DIR, "skills", "web", "dev", "devx", "devx");
|
|
22
|
+
return existsSync(p) ? p : r;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function copyDir(s, d, dry) {
|
|
26
|
+
let c = 0;
|
|
27
|
+
for (const e of readdirSync(s)) {
|
|
28
|
+
const sp = join(s, e), dp = join(d, e);
|
|
29
|
+
if (statSync(sp).isDirectory()) { if (!dry) mkdirSync(dp, { recursive: true }); c += copyDir(sp, dp, dry); }
|
|
30
|
+
else if (e.endsWith(".md") || e.endsWith(".json")) {
|
|
31
|
+
if (!dry) { mkdirSync(d, { recursive: true }); copyFileSync(sp, dp); }
|
|
32
|
+
console.log(` ${dry ? "-" : "+"} ${e}`); c++;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return c;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const args = process.argv.slice(2);
|
|
39
|
+
const target = args.includes("--anthropic") ? "anthropic" : "opencode";
|
|
40
|
+
const dryRun = args.includes("--dry-run");
|
|
41
|
+
const src = srcPath();
|
|
42
|
+
const dst = dstPath(target);
|
|
43
|
+
|
|
44
|
+
if (!existsSync(src)) { console.error("Skill source not found"); process.exit(1); }
|
|
45
|
+
|
|
46
|
+
console.log(`==> @xscriptor/skill-devx -> ${dst}\n`);
|
|
47
|
+
const c = copyDir(src, dst, dryRun);
|
|
48
|
+
console.log(dryRun ? `\n==> Would install ${c} files` : `\n==> ${c} files installed`);
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xscriptor/skill-devx",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "DevX development workflows skill for OpenCode and Claude Code. Code structure, platform mapping, and project conventions.",
|
|
5
|
+
"keywords": ["opencode", "claude-code", "skill", "devx", "development"],
|
|
6
|
+
"homepage": "https://github.com/xscriptor/ai",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "xscriptor (https://xscriptor.com)",
|
|
9
|
+
"repository": { "type": "git", "url": "git+https://github.com/xscriptor/ai.git" },
|
|
10
|
+
"bin": { "skill-devx": "./bin/install.js" },
|
|
11
|
+
"type": "module",
|
|
12
|
+
"files": ["bin/", "LICENSE", "README.md"],
|
|
13
|
+
"engines": { "node": ">=18" },
|
|
14
|
+
"private": false,
|
|
15
|
+
"publishConfig": { "access": "public" }
|
|
16
|
+
}
|