agents-templated 1.2.6 → 1.2.8
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 +1 -0
- package/bin/cli.js +69 -4
- package/package.json +1 -1
- package/templates/README.md +1 -0
- package/templates/agents/skills/README.md +2 -0
package/README.md
CHANGED
|
@@ -134,6 +134,7 @@ your-project/
|
|
|
134
134
|
│ │ └── style.mdc # Code style guidelines
|
|
135
135
|
│ └── skills/
|
|
136
136
|
│ ├── find-skills/ # Skill discovery helper
|
|
137
|
+
│ ├── ui-ux-pro-max/ # Advanced UI/UX design implementation skill
|
|
137
138
|
│ ├── README.md # Guide for creating custom skills
|
|
138
139
|
│ └── [your-custom-skills]/ # Your project-specific skills
|
|
139
140
|
│
|
package/bin/cli.js
CHANGED
|
@@ -5,6 +5,7 @@ const inquirer = require('inquirer');
|
|
|
5
5
|
const fs = require('fs-extra');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const chalk = require('chalk');
|
|
8
|
+
const { version } = require('../package.json');
|
|
8
9
|
|
|
9
10
|
// Resolve the templates directory - works in both dev and installed contexts
|
|
10
11
|
const getTemplatesDir = () => {
|
|
@@ -26,7 +27,7 @@ const program = new Command();
|
|
|
26
27
|
program
|
|
27
28
|
.name('agents-templated')
|
|
28
29
|
.description('Technology-agnostic development template with multi-AI agent support')
|
|
29
|
-
.version(
|
|
30
|
+
.version(version);
|
|
30
31
|
|
|
31
32
|
program
|
|
32
33
|
.command('init')
|
|
@@ -427,7 +428,7 @@ program
|
|
|
427
428
|
console.log(chalk.blue.bold('\nAvailable Components:\n'));
|
|
428
429
|
console.log(chalk.yellow('docs') + ' - Documentation files (agent-docs/ directory)');
|
|
429
430
|
console.log(chalk.yellow('rules') + ' - Agent rules (core, database, frontend, security, testing, style)');
|
|
430
|
-
console.log(chalk.yellow('skills') + ' - Agent skills (find-skills,
|
|
431
|
+
console.log(chalk.yellow('skills') + ' - Agent skills (find-skills, ui-ux-pro-max)');
|
|
431
432
|
console.log(chalk.yellow('github') + ' - AI Agent instructions (Cursor, Copilot, VSCode, Gemini)');
|
|
432
433
|
console.log(chalk.yellow('all') + ' - All components');
|
|
433
434
|
|
|
@@ -641,6 +642,11 @@ async function copyDirectory(sourceDir, targetDir, force = false) {
|
|
|
641
642
|
program
|
|
642
643
|
.command('update')
|
|
643
644
|
.description('Check for and apply template updates')
|
|
645
|
+
.option('-a, --all', 'Update all components (docs, rules, skills, github)')
|
|
646
|
+
.option('-d, --docs', 'Update documentation files only')
|
|
647
|
+
.option('-r, --rules', 'Update agent rules only')
|
|
648
|
+
.option('-s, --skills', 'Update skills only')
|
|
649
|
+
.option('-g, --github', 'Update AI agent instruction files only')
|
|
644
650
|
.option('-c, --check-only', 'Only check for updates, don\'t install')
|
|
645
651
|
.option('-f, --force', 'Force overwrite files during update')
|
|
646
652
|
.action(async (options) => {
|
|
@@ -651,7 +657,7 @@ program
|
|
|
651
657
|
console.log(chalk.blue.bold('\n🔄 Checking for template updates...\n'));
|
|
652
658
|
|
|
653
659
|
// Check if templates are installed
|
|
654
|
-
const hasTemplates = await fs.pathExists(path.join(targetDir, 'AGENTS.
|
|
660
|
+
const hasTemplates = await fs.pathExists(path.join(targetDir, 'AGENTS.md')) ||
|
|
655
661
|
await fs.pathExists(path.join(targetDir, 'agents'));
|
|
656
662
|
|
|
657
663
|
if (!hasTemplates) {
|
|
@@ -660,15 +666,74 @@ program
|
|
|
660
666
|
process.exit(0);
|
|
661
667
|
}
|
|
662
668
|
|
|
669
|
+
const hasComponentSelection = options.all || options.docs || options.rules || options.skills || options.github;
|
|
670
|
+
|
|
671
|
+
// Component refresh mode: update selected parts directly without stack/wizard prompts
|
|
672
|
+
if (hasComponentSelection) {
|
|
673
|
+
const selectedComponents = [];
|
|
674
|
+
if (options.all || options.docs) selectedComponents.push('docs');
|
|
675
|
+
if (options.all || options.rules) selectedComponents.push('rules');
|
|
676
|
+
if (options.all || options.skills) selectedComponents.push('skills');
|
|
677
|
+
if (options.all || options.github) selectedComponents.push('github');
|
|
678
|
+
|
|
679
|
+
console.log(chalk.blue('📦 Updating selected components...\n'));
|
|
680
|
+
|
|
681
|
+
if (selectedComponents.includes('docs')) {
|
|
682
|
+
console.log(chalk.yellow('Updating documentation files...'));
|
|
683
|
+
await fs.ensureDir(path.join(targetDir, 'agent-docs'));
|
|
684
|
+
await copyDirectory(
|
|
685
|
+
path.join(templateDir, 'agent-docs'),
|
|
686
|
+
path.join(targetDir, 'agent-docs'),
|
|
687
|
+
true
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (selectedComponents.includes('rules')) {
|
|
692
|
+
console.log(chalk.yellow('Updating agent rules...'));
|
|
693
|
+
await fs.ensureDir(path.join(targetDir, 'agents', 'rules'));
|
|
694
|
+
await copyDirectory(
|
|
695
|
+
path.join(templateDir, 'agents', 'rules'),
|
|
696
|
+
path.join(targetDir, 'agents', 'rules'),
|
|
697
|
+
true
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (selectedComponents.includes('skills')) {
|
|
702
|
+
console.log(chalk.yellow('Updating skills...'));
|
|
703
|
+
await fs.ensureDir(path.join(targetDir, 'agents', 'skills'));
|
|
704
|
+
await copyDirectory(
|
|
705
|
+
path.join(templateDir, 'agents', 'skills'),
|
|
706
|
+
path.join(targetDir, 'agents', 'skills'),
|
|
707
|
+
true
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
if (selectedComponents.includes('github')) {
|
|
712
|
+
console.log(chalk.yellow('Updating AI agent instructions...'));
|
|
713
|
+
await fs.ensureDir(path.join(targetDir, '.github'));
|
|
714
|
+
await copyFiles(templateDir, targetDir, [
|
|
715
|
+
'.cursorrules',
|
|
716
|
+
'.github/copilot-instructions.md',
|
|
717
|
+
'CLAUDE.md',
|
|
718
|
+
'GEMINI.md'
|
|
719
|
+
], true);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
console.log(chalk.green.bold('\n✅ Selected component updates applied successfully!\n'));
|
|
723
|
+
process.exit(0);
|
|
724
|
+
}
|
|
725
|
+
|
|
663
726
|
// List potential updates
|
|
664
727
|
const updates = [];
|
|
665
728
|
const checkFiles = [
|
|
666
729
|
{ file: 'AGENTS.md', component: 'root' },
|
|
667
730
|
{ file: 'agent-docs/ARCHITECTURE.md', component: 'docs' },
|
|
668
|
-
{ file: 'AGENTS.md', component: 'root' },
|
|
669
731
|
{ file: 'agents/rules/security.mdc', component: 'rules' },
|
|
670
732
|
{ file: 'agents/rules/testing.mdc', component: 'rules' },
|
|
671
733
|
{ file: 'agents/rules/core.mdc', component: 'rules' },
|
|
734
|
+
{ file: 'agents/skills/README.md', component: 'skills' },
|
|
735
|
+
{ file: 'agents/skills/find-skills/SKILL.md', component: 'skills' },
|
|
736
|
+
{ file: 'agents/skills/ui-ux-pro-max/SKILL.md', component: 'skills' },
|
|
672
737
|
{ file: '.github/copilot-instructions.md', component: 'github' }
|
|
673
738
|
];
|
|
674
739
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agents-templated",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Technology-agnostic development template with multi-AI agent support (Cursor, Copilot, VSCode, Gemini), security-first patterns, and comprehensive testing guidelines",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/templates/README.md
CHANGED
|
@@ -130,6 +130,7 @@ your-project/
|
|
|
130
130
|
│ │ └── style.mdc # Code style guidelines
|
|
131
131
|
│ └── skills/
|
|
132
132
|
│ ├── find-skills/ # Skill discovery helper
|
|
133
|
+
│ ├── ui-ux-pro-max/ # Advanced UI/UX design implementation skill
|
|
133
134
|
│ ├── README.md # Guide for creating custom skills
|
|
134
135
|
│ └── [your-custom-skills]/ # Your project-specific skills
|
|
135
136
|
│
|
|
@@ -57,6 +57,8 @@ To create a new skill for your specific domain:
|
|
|
57
57
|
agents/skills/
|
|
58
58
|
├── find-skills/
|
|
59
59
|
│ └── SKILL.md # Meta-skill for discovering skills
|
|
60
|
+
├── ui-ux-pro-max/
|
|
61
|
+
│ └── SKILL.md # Premium UI/UX implementation patterns
|
|
60
62
|
├── my-custom-skill/
|
|
61
63
|
│ └── SKILL.md # Your custom skill
|
|
62
64
|
└── README.md # This file
|