lintbase-mcp 0.1.3 → 0.1.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/package.json +1 -1
- package/skill/install-skill.js +10 -11
package/package.json
CHANGED
package/skill/install-skill.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// install-skill.js
|
|
2
|
+
// install-skill.js — CommonJS compatible
|
|
3
3
|
// Installs the LintBase SKILL.md into the current project's .agent/skills/ directory.
|
|
4
|
-
// Run via: npx lintbase-mcp
|
|
5
|
-
// or: node install-skill.js
|
|
4
|
+
// Run via: npx lintbase-mcp-install-skill
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { fileURLToPath } from 'url';
|
|
10
|
-
|
|
11
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
const path = require('path');
|
|
12
8
|
|
|
13
9
|
const SKILL_SRC = path.join(__dirname, 'SKILL.md');
|
|
14
10
|
const TARGET_DIR = path.join(process.cwd(), '.agent', 'skills', 'lintbase');
|
|
@@ -20,10 +16,13 @@ fs.mkdirSync(TARGET_DIR, { recursive: true });
|
|
|
20
16
|
// Copy SKILL.md
|
|
21
17
|
fs.copyFileSync(SKILL_SRC, TARGET_FILE);
|
|
22
18
|
|
|
23
|
-
console.log(`✅ LintBase skill installed to ${TARGET_FILE}`);
|
|
24
19
|
console.log('');
|
|
25
|
-
console.log('
|
|
26
|
-
console.log('
|
|
20
|
+
console.log('✅ LintBase skill installed to:');
|
|
21
|
+
console.log(' ' + TARGET_FILE);
|
|
22
|
+
console.log('');
|
|
23
|
+
console.log('Your AI agent will now automatically check the real Firestore schema');
|
|
24
|
+
console.log('before writing any database code.');
|
|
27
25
|
console.log('');
|
|
28
26
|
console.log('Make sure lintbase-mcp is configured in your IDE:');
|
|
29
27
|
console.log(' → https://www.npmjs.com/package/lintbase-mcp');
|
|
28
|
+
console.log('');
|