mad-pro-cli 1.0.0 → 1.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/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # MAD Pro CLI 🛠️
2
+
3
+ The official CLI tool to bootstrap **Modern Android Development (MAD) Skills** for your AI agents.
4
+
5
+ ## Installation
6
+
7
+ Install globally via NPM:
8
+
9
+ ```bash
10
+ npm install -g mad-pro-cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### Initialize Skills
16
+
17
+ Bootstrap the MAD Skills library into your current project:
18
+
19
+ ```bash
20
+ mad-pro init --ai antigravity
21
+ ```
22
+
23
+ This command will:
24
+
25
+ 1. Create a `.agent/skills/mad-skills` directory.
26
+ 2. Copy the full library of 35+ MAD reference modules.
27
+ 3. Enable your AI agent (like Antigravity) to act as a MAD Expert.
28
+
29
+ ### Options
30
+
31
+ - `--ai <name>`: Specify the AI bridge (default: `antigravity`).
32
+ - `--version`: Show the CLI version.
33
+ - `--help`: Display all commands.
34
+
35
+ ## Why use this?
36
+
37
+ AI agents perform significantly better when they have access to specific, high-quality reference material. `mad-pro-cli` ensures your agent follows:
38
+ - Clean Architecture
39
+ - SOLID Principles
40
+ - Jetpack Compose Best Practices
41
+ - Offline-First Data Strategies
42
+
43
+ ## Github
44
+
45
+ [https://github.com/derohimat/MAD-Pro-SKILLS](https://github.com/derohimat/MAD-Pro-SKILLS)
46
+
47
+ ## License
48
+
49
+ MIT
package/index.js CHANGED
@@ -12,6 +12,7 @@ program
12
12
  .command('init')
13
13
  .description('Initialize AI skills for your project')
14
14
  .option('--ai <name>', 'Specify the AI bridge to use (e.g., antigravity)')
15
+ .option('--ide <type>', 'Specify the IDE (vscode, cursor, windsurf, android-studio, intellij, sublime, vim, neovim, zed, code-insiders)')
15
16
  .action(initCommand);
16
17
 
17
18
  program.parse();
@@ -14,11 +14,32 @@ export default async function initCommand(options) {
14
14
 
15
15
  if (aiName === 'antigravity') {
16
16
  try {
17
- // In a published package, templates are bundled inside the package folder
17
+ const ide = options.ide || 'vscode';
18
+
19
+ // Mapping IDE to destination path
20
+ const idePaths = {
21
+ 'vscode': path.join('.agent', 'skills', 'mad-skills'),
22
+ 'code-insiders': path.join('.agent', 'skills', 'mad-skills'),
23
+ 'cursor': path.join('.cursor', 'skills', 'mad-skills'),
24
+ 'windsurf': path.join('.windsurf', 'skills', 'mad-skills'),
25
+ 'android-studio': path.join('.idea', 'skills', 'mad-skills'),
26
+ 'intellij': path.join('.idea', 'skills', 'mad-skills'),
27
+ 'sublime': path.join('.sublime', 'skills', 'mad-skills'),
28
+ 'vim': path.join('.vim', 'skills', 'mad-skills'),
29
+ 'neovim': path.join('.vim', 'skills', 'mad-skills'),
30
+ 'zed': path.join('.zed', 'skills', 'mad-skills'),
31
+ 'antigravity': path.join('.agent', 'skills', 'mad-skills'),
32
+ 'fleet': path.join('.fleet', 'skills', 'mad-skills'),
33
+ 'nova': path.join('.nova', 'skills', 'mad-skills'),
34
+ 'xcode': path.join('Xcode', 'skills', 'mad-skills'),
35
+ 'webstorm': path.join('.idea', 'skills', 'mad-skills')
36
+ };
37
+
38
+ const relativeDestPath = idePaths[ide.toLowerCase()] || idePaths['vscode'];
39
+ const destinationPath = path.join(targetDir, relativeDestPath);
18
40
  const sourceSkillsPath = path.resolve(__dirname, '../../templates/mad-skills');
19
- const destinationPath = path.join(targetDir, '.agent', 'skills', 'mad-skills');
20
41
 
21
- console.log(chalk.yellow(`Installing skills to ${destinationPath}...`));
42
+ console.log(chalk.yellow(`Installing skills for ${chalk.bold(ide)} to ${destinationPath}...`));
22
43
 
23
44
  await fs.ensureDir(destinationPath);
24
45
 
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "mad-pro-cli",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "mad-pro": "./index.js"
8
8
  },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/derohimat/MAD-Pro-SKILLS"
12
+ },
9
13
  "files": [
10
14
  "index.js",
11
15
  "lib",