mvc-kit 2.5.0 → 2.5.1
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
|
@@ -26,7 +26,7 @@ npx mvc-kit-setup cursor # Cursor only
|
|
|
26
26
|
npx mvc-kit-setup copilot # GitHub Copilot only
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
**Claude Code** — installs `.claude/rules
|
|
29
|
+
**Claude Code** — installs `.claude/rules/`, `.claude/commands/`, and `.claude/agents/`. Auto-updates on subsequent `npm install`/`npm update`.
|
|
30
30
|
|
|
31
31
|
**Cursor** — writes `.cursorrules`. **Copilot** — writes `.github/copilot-instructions.md`. Both use idempotent markers, safe to re-run.
|
|
32
32
|
|
|
@@ -88,6 +88,7 @@ function setupClaude() {
|
|
|
88
88
|
}
|
|
89
89
|
console.log('');
|
|
90
90
|
console.log(' Commands: /project:mvc-kit-scaffold, /project:mvc-kit-review');
|
|
91
|
+
console.log(' Agent: mvc-kit-architect (architecture planning)');
|
|
91
92
|
console.log(' Reference: Auto-loaded via .claude/rules/mvc-kit.md\n');
|
|
92
93
|
}
|
|
93
94
|
|
|
@@ -5,6 +5,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = dirname(__filename);
|
|
7
7
|
const SKILLS_DIR = join(__dirname, '..', 'claude-code', 'skills');
|
|
8
|
+
const AGENTS_DIR = join(__dirname, '..', 'claude-code', 'agents');
|
|
8
9
|
|
|
9
10
|
const AUTO_HEADER = '<!-- Auto-generated by mvc-kit. Updated on npm install/update. Do not edit. -->\n\n';
|
|
10
11
|
|
|
@@ -26,6 +27,7 @@ function ensureDir(dir) {
|
|
|
26
27
|
* .claude/rules/mvc-kit.md — Framework reference (always loaded in context)
|
|
27
28
|
* .claude/commands/mvc-kit-scaffold.md — Scaffold command (/project:mvc-kit-scaffold)
|
|
28
29
|
* .claude/commands/mvc-kit-review.md — Review command (/project:mvc-kit-review)
|
|
30
|
+
* .claude/agents/mvc-kit-architect.md — Architecture planning agent
|
|
29
31
|
*
|
|
30
32
|
* @param {string} projectRoot — Absolute path to the consuming project's root
|
|
31
33
|
* @returns {{ files: string[] }} — List of created/updated file paths (relative to projectRoot)
|
|
@@ -34,9 +36,11 @@ export function installClaude(projectRoot) {
|
|
|
34
36
|
const claudeDir = join(projectRoot, '.claude');
|
|
35
37
|
const rulesDir = join(claudeDir, 'rules');
|
|
36
38
|
const commandsDir = join(claudeDir, 'commands');
|
|
39
|
+
const agentsDir = join(claudeDir, 'agents');
|
|
37
40
|
|
|
38
41
|
ensureDir(rulesDir);
|
|
39
42
|
ensureDir(commandsDir);
|
|
43
|
+
ensureDir(agentsDir);
|
|
40
44
|
|
|
41
45
|
const files = [];
|
|
42
46
|
|
|
@@ -83,5 +87,10 @@ For complete API details, patterns, and anti-patterns, read the files in:
|
|
|
83
87
|
writeFileSync(join(commandsDir, 'mvc-kit-review.md'), AUTO_HEADER + reviewBody, 'utf-8');
|
|
84
88
|
files.push('.claude/commands/mvc-kit-review.md');
|
|
85
89
|
|
|
90
|
+
// 4. Architect agent
|
|
91
|
+
const architectAgent = readFileSync(join(AGENTS_DIR, 'mvc-kit-architect.md'), 'utf-8');
|
|
92
|
+
writeFileSync(join(agentsDir, 'mvc-kit-architect.md'), AUTO_HEADER + architectAgent, 'utf-8');
|
|
93
|
+
files.push('.claude/agents/mvc-kit-architect.md');
|
|
94
|
+
|
|
86
95
|
return { files };
|
|
87
96
|
}
|