ai-agent-config 2.0.5 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agent-config",
3
- "version": "2.0.5",
3
+ "version": "2.1.0",
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": {
@@ -42,7 +42,6 @@
42
42
  "bin/",
43
43
  "scripts/",
44
44
  "config/",
45
- ".agent/",
46
45
  "index.js",
47
46
  "README.md"
48
47
  ]
@@ -1,184 +0,0 @@
1
- # Config Manager Skill
2
-
3
- Manage ai-agent-config user configuration interactively.
4
-
5
- ## When to Use This Skill
6
-
7
- Use this skill when the user needs to:
8
- - Add a new custom skill source from GitHub
9
- - Configure sync settings
10
- - Manage their skill sources (enable/disable/remove)
11
- - Export or import config files
12
- - Share config with team members
13
- - Understand how to configure ai-agent-config
14
-
15
- ## Capabilities
16
-
17
- - **Source Management**: Add, remove, enable, disable custom skill sources
18
- - **Config Operations**: Get, set, validate, export, import config values
19
- - **Migration Support**: Help users migrate from v1 to v2
20
- - **Team Sharing**: Export configs for team collaboration
21
-
22
- ## Command Reference
23
-
24
- ### Source Management
25
- ```bash
26
- # Add a custom source
27
- ai-agent source add <repo-url> --name <name> --branch <branch>
28
-
29
- # List all sources
30
- ai-agent source list
31
-
32
- # Enable/disable a source
33
- ai-agent source enable <name>
34
- ai-agent source disable <name>
35
-
36
- # Remove a custom source
37
- ai-agent source remove <name>
38
-
39
- # Get source info
40
- ai-agent source info <name>
41
- ```
42
-
43
- ### Config Management
44
- ```bash
45
- # Get config value
46
- ai-agent config get <key>
47
-
48
- # Set config value
49
- ai-agent config set <key> <value>
50
-
51
- # Edit config in editor
52
- ai-agent config edit
53
-
54
- # Validate config
55
- ai-agent config validate
56
-
57
- # Export config
58
- ai-agent config export [output-file]
59
-
60
- # Import config
61
- ai-agent config import <file> [--merge]
62
-
63
- # Reset to defaults
64
- ai-agent config reset --yes
65
- ```
66
-
67
- ## Examples
68
-
69
- ### Adding Company Skills
70
-
71
- **User**: "Add skills from my company's GitHub repo"
72
-
73
- **Assistant**: I'll help you add your company's skills repository. Use this command:
74
-
75
- ```bash
76
- ai-agent source add https://github.com/yourcompany/ai-skills \
77
- --name company-skills \
78
- --branch main
79
- ```
80
-
81
- After adding the source, you'll need to:
82
- 1. Update skills: `ai-agent update --source company-skills`
83
- 2. Edit config to specify which skills to use: `ai-agent config edit`
84
- 3. Install to platforms: `ai-agent install`
85
-
86
- ### Sharing Config with Team
87
-
88
- **User**: "How do I share my skill configuration with my team?"
89
-
90
- **Assistant**: You can export your config and share it with your team:
91
-
92
- ```bash
93
- # Export your config
94
- ai-agent config export team-config.json
95
-
96
- # Team members can import it
97
- ai-agent config import team-config.json --merge
98
- ```
99
-
100
- The `--merge` flag will combine your existing config with the imported one, keeping both official and custom sources.
101
-
102
- ### Checking Current Config
103
-
104
- **User**: "What sources do I have configured?"
105
-
106
- **Assistant**: Run this command to see all your sources:
107
-
108
- ```bash
109
- ai-agent source list
110
- ```
111
-
112
- This will show both official sources (from the package) and your custom sources.
113
-
114
- ## Config File Location
115
-
116
- - **User config**: `~/.ai-agent/config.json`
117
- - **Cache**: `~/.ai-agent-external-cache/`
118
-
119
- ## Config Structure
120
-
121
- The v2.0 config file has this structure:
122
-
123
- ```json
124
- {
125
- "version": "2.0",
126
- "sources": {
127
- "official": [
128
- {
129
- "name": "vercel-labs",
130
- "repo": "https://github.com/vercel-labs/agent-skills.git",
131
- "branch": "main",
132
- "enabled": true,
133
- "skills": [...]
134
- }
135
- ],
136
- "custom": [
137
- {
138
- "name": "my-skills",
139
- "repo": "https://github.com/me/my-skills.git",
140
- "branch": "main",
141
- "enabled": true,
142
- "skills": [...]
143
- }
144
- ]
145
- },
146
- "sync": {
147
- "enabled": false,
148
- "provider": null,
149
- "config": {}
150
- },
151
- "preferences": {
152
- "autoUpdate": true,
153
- "updateInterval": "weekly"
154
- }
155
- }
156
- ```
157
-
158
- ## Migration from v1.x
159
-
160
- If the user is on v1.x, help them migrate:
161
-
162
- ```bash
163
- ai-agent init
164
- ```
165
-
166
- This will automatically create the v2.0 config file with all official sources enabled.
167
-
168
- ## Tips
169
-
170
- 1. **Test before sharing**: Always validate your config before sharing: `ai-agent config validate`
171
- 2. **Backup**: The config manager automatically creates backups when modifying config
172
- 3. **Edit safely**: Use `ai-agent config edit` to open in your editor with syntax checking
173
- 4. **Source names**: Use descriptive names for custom sources (e.g., "company-standards", "team-utils")
174
-
175
- ## Troubleshooting
176
-
177
- **Problem**: "Source already exists" error
178
- **Solution**: Remove the old source first or use a different name
179
-
180
- **Problem**: Config validation errors
181
- **Solution**: Run `ai-agent config validate` to see specific errors, then fix manually or reset
182
-
183
- **Problem**: Can't find custom source
184
- **Solution**: Check the source is enabled: `ai-agent source info <name>`
@@ -1,167 +0,0 @@
1
- # Skill Updater
2
-
3
- Automatically update skills from all configured sources (official and custom).
4
-
5
- ## When to Use This Skill
6
-
7
- Use this skill when the user wants to:
8
- - Update all skills from configured sources
9
- - Update a specific source
10
- - Update a specific skill
11
- - Sync latest changes from external repositories
12
- - Keep skills up to date with latest best practices
13
-
14
- ## Capabilities
15
-
16
- - **Multi-Source Updates**: Updates from both official and custom sources
17
- - **Selective Updates**: Update specific source or skill
18
- - **Force Updates**: Overwrite local changes
19
- - **Progress Reporting**: Shows what was updated, copied, or skipped
20
-
21
- ## Command Reference
22
-
23
- ```bash
24
- # Update all skills from all sources
25
- ai-agent update
26
-
27
- # Update from specific source
28
- ai-agent update --source vercel-labs
29
-
30
- # Update specific skill
31
- ai-agent update --skill react-best-practices
32
-
33
- # Force overwrite existing skills
34
- ai-agent update --force
35
-
36
- # Combine options
37
- ai-agent update --source company-skills --force
38
- ```
39
-
40
- ## How It Works (v2.0)
41
-
42
- 1. **Reads User Config**: Loads `~/.ai-agent/config.json`
43
- 2. **Gets Enabled Sources**: Filters for enabled sources (official + custom)
44
- 3. **Clones/Updates Repos**: For each source, clones to `~/.ai-agent-external-cache/`
45
- 4. **Copies Skills**: Copies skills to `.agent/skills/` in the package directory
46
- 5. **Reports Results**: Shows what was updated
47
-
48
- ## Examples
49
-
50
- ### Regular Update
51
-
52
- **User**: "Update my skills"
53
-
54
- **Assistant**: I'll update all your skills from configured sources:
55
-
56
- ```bash
57
- ai-agent update
58
- ```
59
-
60
- This will:
61
- - Pull latest from Vercel Labs, Everything Claude Code, etc.
62
- - Update your custom sources too
63
- - Copy new/updated skills to your system
64
- - Show what changed
65
-
66
- ### Update After Adding Custom Source
67
-
68
- **User**: "I just added a custom source, how do I get the skills?"
69
-
70
- **Assistant**: After adding a source, update it:
71
-
72
- ```bash
73
- # Update just your new source
74
- ai-agent update --source your-source-name
75
-
76
- # Then install to platforms
77
- ai-agent install
78
- ```
79
-
80
- ### Force Update
81
-
82
- **User**: "Some skills aren't updating"
83
-
84
- **Assistant**: Use `--force` to overwrite existing skills:
85
-
86
- ```bash
87
- ai-agent update --force
88
- ```
89
-
90
- ⚠️ Warning: This will overwrite any local modifications you made to skills.
91
-
92
- ## What's New in v2.0
93
-
94
- - ✅ **Custom Sources**: Updates from your custom sources, not just official ones
95
- - ✅ **User Config**: Reads from `~/.ai-agent/config.json` instead of hard-coded list
96
- - ✅ **Selective Sync**: Update specific sources or skills
97
- - ✅ **Better Reporting**: Shows which sources succeeded/failed
98
-
99
- ## Update vs Install
100
-
101
- - **`ai-agent update`**: Downloads latest skills from sources to cache
102
- - **`ai-agent install`**: Installs cached skills to AI platforms (Claude, Antigravity, etc.)
103
-
104
- Typical workflow:
105
- ```bash
106
- ai-agent update # Get latest skills
107
- ai-agent install # Install to platforms
108
- ```
109
-
110
- ## Configuration
111
-
112
- Skills are defined in your config file:
113
-
114
- ```json
115
- {
116
- "sources": {
117
- "official": [
118
- {
119
- "name": "vercel-labs",
120
- "enabled": true,
121
- "skills": [
122
- { "path": "skills/react-best-practices", "name": "react-best-practices" }
123
- ]
124
- }
125
- ],
126
- "custom": [
127
- {
128
- "name": "my-skills",
129
- "enabled": true,
130
- "skills": [
131
- { "path": "skills/my-skill", "name": "my-skill" }
132
- ]
133
- }
134
- ]
135
- }
136
- }
137
- ```
138
-
139
- ## Backward Compatibility
140
-
141
- The old command still works:
142
- ```bash
143
- ai-agent sync-external
144
- ```
145
-
146
- This is now an alias for `ai-agent update`.
147
-
148
- ## Tips
149
-
150
- 1. **Regular Updates**: Run `ai-agent update` weekly to get latest skills
151
- 2. **Check Before Install**: After update, review changes before installing
152
- 3. **Test Custom Sources**: When adding custom sources, test with `--source` flag first
153
- 4. **Use Version Control**: If modifying skills, use git to track changes
154
-
155
- ## Troubleshooting
156
-
157
- **Problem**: "Failed to load user config"
158
- **Solution**: Run `ai-agent init` to create config file
159
-
160
- **Problem**: Update fails for a source
161
- **Solution**: Check repo URL is correct: `ai-agent source info <name>`
162
-
163
- **Problem**: Skills not appearing
164
- **Solution**: Make sure source is enabled: `ai-agent source list`
165
-
166
- **Problem**: Git errors
167
- **Solution**: Check internet connection and git is installed