ai-agent-config 2.1.0 → 2.2.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/.agent/skills/config-manager/SKILL.md +184 -0
- package/.agent/skills/skill-updater/SKILL.md +167 -0
- package/README.md +156 -74
- package/config/official-sources.json +1 -99
- package/package.json +2 -1
- package/scripts/postinstall.js +11 -5
|
@@ -0,0 +1,184 @@
|
|
|
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>`
|
|
@@ -0,0 +1,167 @@
|
|
|
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
|
package/README.md
CHANGED
|
@@ -1,115 +1,197 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ai-agent-config
|
|
2
2
|
|
|
3
|
-
> Universal Global Skills & Workflows for AI Coding Assistants
|
|
3
|
+
> Universal Global Skills & Workflows for AI Coding Assistants - User-configurable skill sources
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/ai-agent-config)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**One command to manage AI coding skills across Claude Code, Antigravity, Cursor, Windsurf, and more.**
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## 🚀 What's New in v2.2
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
│ ├── skills/ ◄── Skills are defined here │
|
|
18
|
-
│ │ ├── code-review/ │
|
|
19
|
-
│ │ └── git-commit/ │
|
|
20
|
-
│ └── workflows/ │
|
|
21
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
22
|
-
│
|
|
23
|
-
│ ai-agent sync
|
|
24
|
-
▼
|
|
25
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
26
|
-
│ Local Cache │
|
|
27
|
-
│ ~/.ai-agent-config-cache/ │
|
|
28
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
29
|
-
│
|
|
30
|
-
│ ai-agent install
|
|
31
|
-
▼
|
|
32
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
33
|
-
│ Platform Global Directories │
|
|
34
|
-
│ ├── ~/.claude/skills/ (Claude Code) │
|
|
35
|
-
│ ├── ~/.gemini/antigravity/skills/ (Antigravity IDE) │
|
|
36
|
-
│ ├── ~/.cursor/skills/ (Cursor) │
|
|
37
|
-
│ └── ~/.windsurf/skills/ (Windsurf) │
|
|
38
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
39
|
-
```
|
|
12
|
+
- ✅ **Minimal core** - Only 2 essential skills bundled (config-manager, skill-updater)
|
|
13
|
+
- ✅ **User-configurable sources** - Add any skill repositories from GitHub
|
|
14
|
+
- ✅ **Source management** - Enable, disable, add, remove sources via CLI
|
|
15
|
+
- ✅ **Config management** - Export/import configs for team sharing
|
|
16
|
+
- ✅ **Zero defaults** - No external sources by default, full user control
|
|
40
17
|
|
|
41
|
-
##
|
|
18
|
+
## 📦 Quick Start
|
|
42
19
|
|
|
43
20
|
```bash
|
|
44
|
-
# Install
|
|
21
|
+
# Install globally
|
|
45
22
|
npm install -g ai-agent-config
|
|
46
23
|
|
|
47
|
-
#
|
|
48
|
-
ai-agent
|
|
24
|
+
# Initialize (creates config at ~/.ai-agent/config.json)
|
|
25
|
+
ai-agent init
|
|
49
26
|
|
|
50
|
-
# Install to
|
|
27
|
+
# Install bundled skills to platforms
|
|
51
28
|
ai-agent install
|
|
52
29
|
```
|
|
53
30
|
|
|
54
|
-
##
|
|
31
|
+
## 🎯 Bundled Skills (2)
|
|
32
|
+
|
|
33
|
+
The package includes 2 core skills for managing the system:
|
|
34
|
+
|
|
35
|
+
1. **config-manager** - Manage configuration and custom sources
|
|
36
|
+
2. **skill-updater** - Update skills from GitHub repositories
|
|
37
|
+
|
|
38
|
+
## 📚 Add More Skills
|
|
39
|
+
|
|
40
|
+
To get more skills, add custom sources from GitHub:
|
|
55
41
|
|
|
56
42
|
```bash
|
|
57
|
-
|
|
58
|
-
ai-agent
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
43
|
+
# Add Vercel Labs skills
|
|
44
|
+
ai-agent source add https://github.com/vercel-labs/agent-skills.git \
|
|
45
|
+
--name vercel-labs \
|
|
46
|
+
--path skills
|
|
47
|
+
|
|
48
|
+
# Add Everything Claude Code
|
|
49
|
+
ai-agent source add https://github.com/affaan-m/everything-claude-code.git \
|
|
50
|
+
--name everything-claude-code \
|
|
51
|
+
--path skills
|
|
52
|
+
|
|
53
|
+
# Update and install
|
|
54
|
+
ai-agent update
|
|
55
|
+
ai-agent install
|
|
63
56
|
```
|
|
64
57
|
|
|
65
|
-
|
|
58
|
+
## 🛠️ CLI Commands
|
|
66
59
|
|
|
60
|
+
### Source Management
|
|
67
61
|
```bash
|
|
68
|
-
ai-agent
|
|
69
|
-
ai-agent
|
|
70
|
-
ai-agent
|
|
62
|
+
ai-agent source add <repo-url> [options] # Add custom source
|
|
63
|
+
ai-agent source remove <name> # Remove source
|
|
64
|
+
ai-agent source list # List all sources
|
|
65
|
+
ai-agent source enable <name> # Enable source
|
|
66
|
+
ai-agent source disable <name> # Disable source
|
|
67
|
+
ai-agent source info <name> # View source details
|
|
71
68
|
```
|
|
72
69
|
|
|
73
|
-
|
|
70
|
+
### Config Management
|
|
71
|
+
```bash
|
|
72
|
+
ai-agent config get <key> # Get config value
|
|
73
|
+
ai-agent config set <key> <value> # Set config value
|
|
74
|
+
ai-agent config edit # Edit in $EDITOR
|
|
75
|
+
ai-agent config validate # Validate config
|
|
76
|
+
ai-agent config export [file] # Export config
|
|
77
|
+
ai-agent config import <file> [--merge] # Import config
|
|
78
|
+
ai-agent config reset --yes # Reset to defaults
|
|
79
|
+
```
|
|
74
80
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
### Installation & Updates
|
|
82
|
+
```bash
|
|
83
|
+
ai-agent init # Initialize/migrate to v2.0
|
|
84
|
+
ai-agent update [--source name] # Update skills from sources
|
|
85
|
+
ai-agent install [--platform name] # Install to platforms
|
|
86
|
+
ai-agent list # List installed skills
|
|
87
|
+
ai-agent platforms # Show detected platforms
|
|
88
|
+
ai-agent uninstall # Remove skills
|
|
89
|
+
```
|
|
82
90
|
|
|
83
|
-
##
|
|
91
|
+
## 🎨 Use Cases
|
|
84
92
|
|
|
85
|
-
|
|
93
|
+
### For Companies
|
|
94
|
+
```bash
|
|
95
|
+
# Add your company's private skills repo
|
|
96
|
+
ai-agent source add https://github.com/acme-corp/coding-standards \
|
|
97
|
+
--name acme-standards
|
|
86
98
|
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
- *More coming soon...*
|
|
99
|
+
# Share config file with team
|
|
100
|
+
ai-agent config export acme-config.json
|
|
90
101
|
|
|
91
|
-
|
|
102
|
+
# Team members import
|
|
103
|
+
ai-agent config import acme-config.json --merge
|
|
104
|
+
```
|
|
92
105
|
|
|
93
|
-
|
|
106
|
+
### For Individual Developers
|
|
107
|
+
```bash
|
|
108
|
+
# Add skills from multiple sources
|
|
109
|
+
ai-agent source add https://github.com/vercel-labs/agent-skills.git --name vercel
|
|
110
|
+
ai-agent source add https://github.com/yourname/my-skills --name personal
|
|
111
|
+
|
|
112
|
+
# Update and install
|
|
113
|
+
ai-agent update
|
|
114
|
+
ai-agent install
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 📍 File Locations
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
~/.ai-agent/
|
|
121
|
+
├── config.json # User configuration
|
|
122
|
+
└── .ai-agent-external-cache/ # Downloaded skill repositories
|
|
123
|
+
|
|
124
|
+
AI Platform Skills:
|
|
125
|
+
~/.claude/skills/ # Claude Code
|
|
126
|
+
~/.gemini/antigravity/skills/ # Antigravity IDE
|
|
127
|
+
~/.cursor/skills/ # Cursor
|
|
128
|
+
~/.windsurf/skills/ # Windsurf
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## 🔧 Configuration File
|
|
132
|
+
|
|
133
|
+
User config at `~/.ai-agent/config.json`:
|
|
94
134
|
|
|
95
135
|
```json
|
|
96
136
|
{
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
137
|
+
"version": "2.0",
|
|
138
|
+
"sources": {
|
|
139
|
+
"official": [],
|
|
140
|
+
"custom": [
|
|
141
|
+
{
|
|
142
|
+
"name": "my-skills",
|
|
143
|
+
"repo": "https://github.com/me/my-skills.git",
|
|
144
|
+
"branch": "main",
|
|
145
|
+
"path": "skills",
|
|
146
|
+
"enabled": true
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"preferences": {
|
|
151
|
+
"autoUpdate": true,
|
|
152
|
+
"updateInterval": "weekly"
|
|
101
153
|
}
|
|
102
154
|
}
|
|
103
155
|
```
|
|
104
156
|
|
|
105
|
-
## Contributing
|
|
157
|
+
## 🤝 Contributing
|
|
158
|
+
|
|
159
|
+
We welcome contributions! Here's how:
|
|
160
|
+
|
|
161
|
+
1. **Share your skills**: Create skills repo and share with community
|
|
162
|
+
2. **Report issues**: [GitHub Issues](https://github.com/dongitran/ai-agent-config/issues)
|
|
163
|
+
3. **Submit PRs**: Improve the core tool
|
|
164
|
+
|
|
165
|
+
## 🌟 Why ai-agent-config?
|
|
166
|
+
|
|
167
|
+
- ✅ **Minimal & focused** - Only 2 core skills bundled, add what you need
|
|
168
|
+
- ✅ **Full control** - No default external sources, you decide what to install
|
|
169
|
+
- ✅ **User-configurable** - Add unlimited custom skill sources
|
|
170
|
+
- ✅ **Team-friendly** - Export/import configs for collaboration
|
|
171
|
+
- ✅ **Zero dependencies** - Lightweight, fast, secure
|
|
172
|
+
- ✅ **Open & extensible** - Use any GitHub repo as skill source
|
|
173
|
+
|
|
174
|
+
## 📊 Supported Platforms
|
|
175
|
+
|
|
176
|
+
| Platform | Status | Skills Directory |
|
|
177
|
+
|----------|--------|------------------|
|
|
178
|
+
| Claude Code | ✅ Supported | `~/.claude/skills/` |
|
|
179
|
+
| Antigravity IDE | ✅ Supported | `~/.gemini/antigravity/skills/` |
|
|
180
|
+
| Cursor | ✅ Supported | `~/.cursor/skills/` |
|
|
181
|
+
| Windsurf | ✅ Supported | `~/.windsurf/skills/` |
|
|
182
|
+
| Codex CLI | ✅ Supported | `~/.codex/skills/` |
|
|
183
|
+
|
|
184
|
+
## 📄 License
|
|
185
|
+
|
|
186
|
+
MIT © [Dong Tran](https://github.com/dongitran)
|
|
106
187
|
|
|
107
|
-
|
|
188
|
+
## 🔗 Links
|
|
108
189
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
190
|
+
- **NPM**: https://www.npmjs.com/package/ai-agent-config
|
|
191
|
+
- **GitHub**: https://github.com/dongitran/ai-agent-config
|
|
192
|
+
- **Issues**: https://github.com/dongitran/ai-agent-config/issues
|
|
193
|
+
- **Changelog**: [CHANGELOG.md](CHANGELOG.md)
|
|
112
194
|
|
|
113
|
-
|
|
195
|
+
---
|
|
114
196
|
|
|
115
|
-
|
|
197
|
+
**Keywords**: AI coding assistant, Claude Code, Antigravity, Cursor, Windsurf, AI skills, code automation, developer tools, coding standards, best practices, AI agent config, skill management, team collaboration, custom skills, GitHub integration
|
|
@@ -1,103 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://ai-agent-config.dev/schema/v2.json",
|
|
3
3
|
"version": "2.0",
|
|
4
|
-
"sources": [
|
|
5
|
-
{
|
|
6
|
-
"name": "vercel-labs",
|
|
7
|
-
"repo": "https://github.com/vercel-labs/agent-skills.git",
|
|
8
|
-
"branch": "main",
|
|
9
|
-
"skills": [
|
|
10
|
-
{
|
|
11
|
-
"path": "skills/react-best-practices",
|
|
12
|
-
"name": "react-best-practices"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"path": "skills/web-design-guidelines",
|
|
16
|
-
"name": "web-design-guidelines"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"attribution": "Skills from Vercel Labs (https://github.com/vercel-labs/agent-skills)"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "everything-claude-code",
|
|
24
|
-
"repo": "https://github.com/affaan-m/everything-claude-code.git",
|
|
25
|
-
"branch": "main",
|
|
26
|
-
"skills": [
|
|
27
|
-
{
|
|
28
|
-
"path": "skills/backend-patterns",
|
|
29
|
-
"name": "backend-patterns"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "skills/coding-standards",
|
|
33
|
-
"name": "coding-standards"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "skills/continuous-learning",
|
|
37
|
-
"name": "continuous-learning"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"path": "skills/eval-harness",
|
|
41
|
-
"name": "eval-harness"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "skills/frontend-patterns",
|
|
45
|
-
"name": "frontend-patterns"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "skills/postgres-patterns",
|
|
49
|
-
"name": "postgres-patterns"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"path": "skills/project-guidelines-example",
|
|
53
|
-
"name": "project-guidelines-example"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"path": "skills/security-review",
|
|
57
|
-
"name": "security-review"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "skills/strategic-compact",
|
|
61
|
-
"name": "strategic-compact"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"path": "skills/tdd-workflow",
|
|
65
|
-
"name": "tdd-workflow"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"path": "skills/verification-loop",
|
|
69
|
-
"name": "verification-loop"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"license": "MIT",
|
|
73
|
-
"attribution": "Skills from Everything Claude Code by Affaan Mustafa (https://github.com/affaan-m/everything-claude-code)"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "playwright-skill",
|
|
77
|
-
"repo": "https://github.com/lackeyjb/playwright-skill.git",
|
|
78
|
-
"branch": "main",
|
|
79
|
-
"skills": [
|
|
80
|
-
{
|
|
81
|
-
"path": "skills/playwright-skill",
|
|
82
|
-
"name": "playwright"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"license": "MIT",
|
|
86
|
-
"attribution": "Playwright skill from lackeyjb (https://github.com/lackeyjb/playwright-skill)"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "agent-nestjs-skills",
|
|
90
|
-
"repo": "https://github.com/Kadajett/agent-nestjs-skills.git",
|
|
91
|
-
"branch": "main",
|
|
92
|
-
"skills": [
|
|
93
|
-
{
|
|
94
|
-
"path": ".",
|
|
95
|
-
"name": "nestjs-best-practices",
|
|
96
|
-
"excludePaths": [".git", ".github", "README.md", "scripts", "website"]
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"license": "MIT",
|
|
100
|
-
"attribution": "NestJS Best Practices from Kadajett (https://github.com/Kadajett/agent-nestjs-skills)"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
4
|
+
"sources": []
|
|
103
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-agent-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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,6 +42,7 @@
|
|
|
42
42
|
"bin/",
|
|
43
43
|
"scripts/",
|
|
44
44
|
"config/",
|
|
45
|
+
".agent/",
|
|
45
46
|
"index.js",
|
|
46
47
|
"README.md"
|
|
47
48
|
]
|
package/scripts/postinstall.js
CHANGED
|
@@ -23,13 +23,19 @@ function main() {
|
|
|
23
23
|
console.log("");
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
console.log("📦 Bundled Skills:\n");
|
|
27
|
+
console.log(" • config-manager - Manage configuration and sources");
|
|
28
|
+
console.log(" • skill-updater - Update skills from repositories\n");
|
|
29
|
+
|
|
26
30
|
console.log("📖 Quick Start:\n");
|
|
27
|
-
console.log(" 1.
|
|
28
|
-
console.log(" $ ai-agent
|
|
29
|
-
console.log(" 2. Install to
|
|
31
|
+
console.log(" 1. Initialize config:");
|
|
32
|
+
console.log(" $ ai-agent init\n");
|
|
33
|
+
console.log(" 2. Install bundled skills to platforms:");
|
|
30
34
|
console.log(" $ ai-agent install\n");
|
|
31
|
-
console.log(" 3.
|
|
32
|
-
console.log(" $ ai-agent
|
|
35
|
+
console.log(" 3. (Optional) Add more skills from GitHub:");
|
|
36
|
+
console.log(" $ ai-agent source add <repo-url>\n");
|
|
37
|
+
console.log(" 4. Update & install additional skills:");
|
|
38
|
+
console.log(" $ ai-agent update && ai-agent install\n");
|
|
33
39
|
console.log("📦 Repository: https://github.com/dongitran/ai-agent-config\n");
|
|
34
40
|
}
|
|
35
41
|
|