slashdev 0.1.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Slashdev
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,56 @@
1
+ # Slashdev CLI
2
+
3
+ Skills & workflows for AI agents in the Slashdev ecosystem.
4
+
5
+ ```
6
+ _____ __ __ __
7
+ / ___// /___ ______/ /_ ____/ /__ _ __
8
+ \__ \/ / __ `/ ___/ __ \/ __ / _ \ | / /
9
+ ___/ / / /_/ (__ ) / / / /_/ / __/ |/ /
10
+ /____/_/\__,_/____/_/ /_/\__,_/\___/|___/
11
+ ```
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install -g slashdev
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```bash
22
+ # Show banner and info
23
+ slashdev
24
+
25
+ # Display help
26
+ slashdev --help
27
+
28
+ # Show version
29
+ slashdev --version
30
+ ```
31
+
32
+ ## What is Slashdev?
33
+
34
+ Slashdev is a collection of skills and workflows designed for AI agents. It provides:
35
+
36
+ - **Agent Skills** — Reusable capabilities for AI agents
37
+ - **Workflows** — Orchestrated sequences of agent actions
38
+ - **MCP Integrations** — Connect with Model Context Protocol servers
39
+ - **Team Tools** — Collaboration utilities for agent teams
40
+
41
+ ## Roadmap
42
+
43
+ - [x] v0.1.0 — Initial CLI with banner display
44
+ - [ ] v0.2.0 — `slashdev init` for project scaffolding
45
+ - [ ] v0.3.0 — Skill management commands
46
+ - [ ] v0.4.0 — Workflow definitions
47
+ - [ ] v0.5.0 — MCP server integration
48
+ - [ ] v1.0.0 — Stable API release
49
+
50
+ ## Requirements
51
+
52
+ - Node.js >= 18.0.0
53
+
54
+ ## License
55
+
56
+ MIT
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from '../src/cli.js';
4
+
5
+ run(process.argv.slice(2));
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "slashdev",
3
+ "version": "0.1.0",
4
+ "description": "Skills & workflows for AI agents in the Slashdev ecosystem",
5
+ "type": "module",
6
+ "main": "src/index.js",
7
+ "bin": {
8
+ "slashdev": "./bin/slashdev.js"
9
+ },
10
+ "scripts": {
11
+ "start": "node bin/slashdev.js",
12
+ "test": "node bin/slashdev.js"
13
+ },
14
+ "engines": {
15
+ "node": ">=18.0.0"
16
+ },
17
+ "keywords": [
18
+ "cli",
19
+ "ai",
20
+ "agents",
21
+ "skills",
22
+ "workflows",
23
+ "slashdev",
24
+ "mcp",
25
+ "claude"
26
+ ],
27
+ "author": "Slashdev",
28
+ "license": "MIT",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/slashdev/cli.git"
32
+ },
33
+ "homepage": "https://slashdev.io",
34
+ "bugs": {
35
+ "url": "https://github.com/slashdev/cli/issues"
36
+ },
37
+ "dependencies": {
38
+ "chalk": "^5.3.0",
39
+ "figlet": "^1.7.0"
40
+ }
41
+ }
package/src/banner.js ADDED
@@ -0,0 +1,74 @@
1
+ import chalk from 'chalk';
2
+
3
+ // Primary brand color
4
+ const BRAND_BLUE = '#215ff6';
5
+
6
+ // Blue gradient palette based on brand color
7
+ const blue = {
8
+ brand: chalk.hex(BRAND_BLUE).bold,
9
+ bright: chalk.hex('#4d7fff').bold,
10
+ light: chalk.hex('#7a9fff'),
11
+ soft: chalk.hex('#a6bfff'),
12
+ pale: chalk.hex('#d3dfff'),
13
+ dark: chalk.hex('#1a4cc7').bold,
14
+ };
15
+
16
+ export { blue, BRAND_BLUE };
17
+
18
+ // Clean block text
19
+ const SLASHDEV_TEXT = [
20
+ ' ███████╗██╗ █████╗ ███████╗██╗ ██╗██████╗ ███████╗██╗ ██╗',
21
+ ' ██╔════╝██║ ██╔══██╗██╔════╝██║ ██║██╔══██╗██╔════╝██║ ██║',
22
+ ' ███████╗██║ ███████║███████╗███████║██║ ██║█████╗ ██║ ██║',
23
+ ' ╚════██║██║ ██╔══██║╚════██║██╔══██║██║ ██║██╔══╝ ╚██╗ ██╔╝',
24
+ ' ███████║███████╗██║ ██║███████║██║ ██║██████╔╝███████╗ ╚████╔╝ ',
25
+ ' ╚══════╝╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝ ╚═══╝ ',
26
+ ];
27
+
28
+ const AGENT_SWARM_TEXT = [
29
+ ' █████╗ ██████╗ ███████╗███╗ ██╗████████╗',
30
+ ' ██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝',
31
+ ' ███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║ ',
32
+ ' ██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ',
33
+ ' ██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ ',
34
+ ' ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ',
35
+ '',
36
+ ' ███████╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗',
37
+ ' ██╔════╝██║ ██║██╔══██╗██╔══██╗████╗ ████║',
38
+ ' ███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║',
39
+ ' ╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║',
40
+ ' ███████║╚███╔███╔╝██║ ██║██║ ██║██║ ╚═╝ ██║',
41
+ ' ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝',
42
+ ];
43
+
44
+ const textGradient = [
45
+ '#1a4cc7', // Dark blue
46
+ '#1e54d9',
47
+ '#215ff6', // Brand blue
48
+ '#215ff6', // Brand blue
49
+ '#4d7fff', // Bright
50
+ '#7a9fff', // Light
51
+ ];
52
+
53
+ export function displayBanner() {
54
+ console.log();
55
+
56
+ // Display SLASHDEV text with gradient
57
+ SLASHDEV_TEXT.forEach((line, i) => {
58
+ const colorIndex = i % textGradient.length;
59
+ console.log(chalk.hex(textGradient[colorIndex]).bold(line));
60
+ });
61
+
62
+ console.log();
63
+
64
+ // Display AGENT SWARM in lighter blue
65
+ AGENT_SWARM_TEXT.forEach(line => {
66
+ console.log(chalk.hex('#4d7fff')(line));
67
+ });
68
+
69
+ // Tagline separator
70
+ console.log();
71
+ console.log(chalk.hex('#4d7fff')(' ╔══════════════════════════════════╗'));
72
+ console.log(chalk.hex(BRAND_BLUE).bold(' ║ ╱╱ slashdev.io ╱╱ ║'));
73
+ console.log(chalk.hex('#4d7fff')(' ╚══════════════════════════════════╝'));
74
+ }
package/src/cli.js ADDED
@@ -0,0 +1,23 @@
1
+ import { displayBanner } from './banner.js';
2
+ import { displayInfo, displayVersion, displayHelp } from './info.js';
3
+
4
+ export async function run(args) {
5
+ const flags = new Set(args);
6
+
7
+ // Handle --version / -v
8
+ if (flags.has('--version') || flags.has('-v')) {
9
+ displayVersion();
10
+ return;
11
+ }
12
+
13
+ // Handle --help / -h
14
+ if (flags.has('--help') || flags.has('-h')) {
15
+ await displayBanner();
16
+ displayHelp();
17
+ return;
18
+ }
19
+
20
+ // Default: show banner + info
21
+ await displayBanner();
22
+ displayInfo();
23
+ }
package/src/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // Slashdev CLI - Main Export
2
+ // Skills & workflows for AI agents in the Slashdev ecosystem
3
+
4
+ export { run } from './cli.js';
5
+ export { displayBanner, generateBanner, colorize } from './banner.js';
6
+ export { getPackageInfo, displayInfo, displayVersion, displayHelp } from './info.js';
package/src/info.js ADDED
@@ -0,0 +1,94 @@
1
+ import chalk from 'chalk';
2
+ import { readFileSync } from 'fs';
3
+ import { fileURLToPath } from 'url';
4
+ import { dirname, join } from 'path';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+
9
+ // Primary brand color
10
+ const BRAND_BLUE = '#215ff6';
11
+
12
+ // Blue color palette based on brand
13
+ const blue = {
14
+ brand: chalk.hex(BRAND_BLUE),
15
+ bright: chalk.hex('#4d7fff'),
16
+ light: chalk.hex('#7a9fff'),
17
+ soft: chalk.hex('#a6bfff'),
18
+ pale: chalk.hex('#d3dfff'),
19
+ dark: chalk.hex('#1a4cc7'),
20
+ };
21
+
22
+ export function getPackageInfo() {
23
+ const packagePath = join(__dirname, '..', 'package.json');
24
+ const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
25
+ return {
26
+ name: packageJson.name,
27
+ version: packageJson.version,
28
+ description: packageJson.description,
29
+ };
30
+ }
31
+
32
+ export function displayInfo() {
33
+ const pkg = getPackageInfo();
34
+ const dim = chalk.dim;
35
+
36
+ console.log();
37
+ console.log(` ${blue.brand.bold(pkg.name)} ${dim('v' + pkg.version)}`);
38
+ console.log();
39
+
40
+ // Main value proposition
41
+ console.log(` ${blue.light('Organize your agent skills. Improve your workflows.')}`);
42
+ console.log(` ${blue.light('Add QA processes. Build on the best practices of')}`);
43
+ console.log(` ${blue.light('the Slashdev engineering team.')}`);
44
+ console.log();
45
+
46
+ console.log(` ${blue.brand.bold('What we do')}`);
47
+ console.log(` ${blue.dark('────────────────────────────────────────────────────────')}`);
48
+ console.log(` ${blue.bright('◈')} ${blue.soft('Skill Organization')} ${dim('Structure and manage agent capabilities')}`);
49
+ console.log(` ${blue.bright('◈')} ${blue.soft('Workflow Automation')} ${dim('Streamline tasks with smart workflows')}`);
50
+ console.log(` ${blue.bright('◈')} ${blue.soft('QA Processes')} ${dim('Built-in quality assurance for outputs')}`);
51
+ console.log(` ${blue.bright('◈')} ${blue.soft('Best Practices')} ${dim('The Slashdev engineering playbook')}`);
52
+ console.log();
53
+
54
+ console.log(` ${blue.brand.bold('Commands')}`);
55
+ console.log(` ${blue.dark('────────────────────────────────────────────────────────')}`);
56
+ console.log(` ${blue.bright('slashdev')} ${dim('Show this banner')}`);
57
+ console.log(` ${blue.bright('slashdev --help')} ${dim('Display help information')}`);
58
+ console.log(` ${blue.bright('slashdev --version')} ${dim('Show version number')}`);
59
+ console.log();
60
+
61
+ console.log(` ${blue.brand.bold('Coming Soon')}`);
62
+ console.log(` ${blue.dark('────────────────────────────────────────────────────────')}`);
63
+ console.log(` ${blue.bright('▸')} Agent skills & workflow library`);
64
+ console.log(` ${blue.bright('▸')} MCP server integrations`);
65
+ console.log(` ${blue.bright('▸')} Team collaboration tools`);
66
+ console.log(` ${blue.bright('▸')} Slashdev skill marketplace`);
67
+ console.log();
68
+
69
+ console.log(` ${dim('Learn more at')} ${blue.brand.underline('https://slashdev.io')}`);
70
+ console.log();
71
+ }
72
+
73
+ export function displayVersion() {
74
+ const pkg = getPackageInfo();
75
+ console.log(`${blue.brand(pkg.name)} ${chalk.dim('v' + pkg.version)}`);
76
+ }
77
+
78
+ export function displayHelp() {
79
+ const dim = chalk.dim;
80
+
81
+ console.log();
82
+ console.log(` ${blue.brand.bold('Usage')} ${dim('slashdev [command] [options]')}`);
83
+ console.log();
84
+ console.log(` ${blue.brand.bold('Options')}`);
85
+ console.log(` ${blue.dark('──────────────────────────────')}`);
86
+ console.log(` ${blue.bright('-h, --help')} ${dim('Display this help message')}`);
87
+ console.log(` ${blue.bright('-v, --version')} ${dim('Display version number')}`);
88
+ console.log();
89
+ console.log(` ${blue.brand.bold('Examples')}`);
90
+ console.log(` ${blue.dark('──────────────────────────────')}`);
91
+ console.log(` ${dim('$')} slashdev ${dim('# Show banner and info')}`);
92
+ console.log(` ${dim('$')} slashdev --version ${dim('# Print version')}`);
93
+ console.log();
94
+ }