ai-agent-config 2.0.3 → 2.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agent-config",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Universal Global Skills & Workflows for AI Coding Assistants (Claude Code, Antigravity, Cursor) - v2.0: User-configurable skill sources",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -85,10 +85,11 @@ function isRepoCached() {
85
85
  function getAvailableSkills() {
86
86
  const skills = new Set();
87
87
 
88
- // Get skills from repo cache
89
- if (fs.existsSync(REPO_SKILLS_DIR)) {
90
- fs.readdirSync(REPO_SKILLS_DIR).forEach((name) => {
91
- const skillPath = path.join(REPO_SKILLS_DIR, name);
88
+ // Get skills from package (.agent/skills/)
89
+ if (fs.existsSync(PACKAGE_SKILLS_DIR)) {
90
+ const packageSkills = fs.readdirSync(PACKAGE_SKILLS_DIR);
91
+ packageSkills.forEach((name) => {
92
+ const skillPath = path.join(PACKAGE_SKILLS_DIR, name);
92
93
  const skillFile = path.join(skillPath, "SKILL.md");
93
94
  if (fs.statSync(skillPath).isDirectory() && fs.existsSync(skillFile)) {
94
95
  skills.add(name);
@@ -96,10 +97,10 @@ function getAvailableSkills() {
96
97
  });
97
98
  }
98
99
 
99
- // Get skills from package (config-manager, skill-updater)
100
- if (fs.existsSync(PACKAGE_SKILLS_DIR)) {
101
- fs.readdirSync(PACKAGE_SKILLS_DIR).forEach((name) => {
102
- const skillPath = path.join(PACKAGE_SKILLS_DIR, name);
100
+ // Get skills from repo cache
101
+ if (fs.existsSync(REPO_SKILLS_DIR)) {
102
+ fs.readdirSync(REPO_SKILLS_DIR).forEach((name) => {
103
+ const skillPath = path.join(REPO_SKILLS_DIR, name);
103
104
  const skillFile = path.join(skillPath, "SKILL.md");
104
105
  if (fs.statSync(skillPath).isDirectory() && fs.existsSync(skillFile)) {
105
106
  skills.add(name);