ai-agent-config 2.1.1 → 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 +32 -127
- 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
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
**One command to manage AI coding skills across Claude Code, Antigravity, Cursor, Windsurf, and more.**
|
|
9
9
|
|
|
10
|
-
## 🚀 What's New in v2.
|
|
10
|
+
## 🚀 What's New in v2.2
|
|
11
11
|
|
|
12
|
-
- ✅ **
|
|
12
|
+
- ✅ **Minimal core** - Only 2 essential skills bundled (config-manager, skill-updater)
|
|
13
|
+
- ✅ **User-configurable sources** - Add any skill repositories from GitHub
|
|
13
14
|
- ✅ **Source management** - Enable, disable, add, remove sources via CLI
|
|
14
15
|
- ✅ **Config management** - Export/import configs for team sharing
|
|
15
|
-
- ✅ **
|
|
16
|
-
- ✅ **Backward compatible** - All v2.0 commands still work
|
|
16
|
+
- ✅ **Zero defaults** - No external sources by default, full user control
|
|
17
17
|
|
|
18
18
|
## 📦 Quick Start
|
|
19
19
|
|
|
@@ -24,87 +24,31 @@ npm install -g ai-agent-config
|
|
|
24
24
|
# Initialize (creates config at ~/.ai-agent/config.json)
|
|
25
25
|
ai-agent init
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
ai-agent update
|
|
29
|
-
|
|
30
|
-
# Install to your AI platforms
|
|
31
|
-
ai-agent install
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## 🎯 Key Features
|
|
35
|
-
|
|
36
|
-
### Add Custom Skills from Any GitHub Repo
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# Add your company's skills
|
|
40
|
-
ai-agent source add https://github.com/mycompany/ai-skills \
|
|
41
|
-
--name company-skills \
|
|
42
|
-
--branch main \
|
|
43
|
-
--path skills \
|
|
44
|
-
--exclude .git,README.md
|
|
45
|
-
|
|
46
|
-
# Update and install
|
|
47
|
-
ai-agent update
|
|
27
|
+
# Install bundled skills to platforms
|
|
48
28
|
ai-agent install
|
|
49
29
|
```
|
|
50
30
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
# List all sources (official + custom)
|
|
55
|
-
ai-agent source list
|
|
31
|
+
## 🎯 Bundled Skills (2)
|
|
56
32
|
|
|
57
|
-
|
|
58
|
-
ai-agent source disable playwright-skill
|
|
59
|
-
ai-agent source enable vercel-labs
|
|
33
|
+
The package includes 2 core skills for managing the system:
|
|
60
34
|
|
|
61
|
-
|
|
62
|
-
|
|
35
|
+
1. **config-manager** - Manage configuration and custom sources
|
|
36
|
+
2. **skill-updater** - Update skills from GitHub repositories
|
|
63
37
|
|
|
64
|
-
|
|
65
|
-
ai-agent source info company-skills
|
|
66
|
-
```
|
|
38
|
+
## 📚 Add More Skills
|
|
67
39
|
|
|
68
|
-
|
|
40
|
+
To get more skills, add custom sources from GitHub:
|
|
69
41
|
|
|
70
42
|
```bash
|
|
71
|
-
#
|
|
72
|
-
ai-agent
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
ai-agent config import team-config.json --merge
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## 📚 Available Skills
|
|
79
|
-
|
|
80
|
-
### Official Sources (4 curated repositories)
|
|
81
|
-
|
|
82
|
-
After running `ai-agent update`, you'll have access to 15+ skills from:
|
|
83
|
-
|
|
84
|
-
1. **Vercel Labs** - Frontend best practices
|
|
85
|
-
- `react-best-practices`, `web-design-guidelines`
|
|
86
|
-
|
|
87
|
-
2. **Everything Claude Code** - Full-stack development
|
|
88
|
-
- `backend-patterns`, `coding-standards`, `continuous-learning`
|
|
89
|
-
- `eval-harness`, `frontend-patterns`, `postgres-patterns`
|
|
90
|
-
- `project-guidelines-example`, `security-review`
|
|
91
|
-
- `strategic-compact`, `tdd-workflow`, `verification-loop`
|
|
92
|
-
|
|
93
|
-
3. **Playwright Skill** - Browser automation
|
|
94
|
-
- `playwright`
|
|
95
|
-
|
|
96
|
-
4. **NestJS Skills** - Backend framework
|
|
97
|
-
- `nestjs-best-practices`
|
|
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
|
|
98
47
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
ai-agent source add https://github.com/yourname/my-skills
|
|
104
|
-
|
|
105
|
-
# Add company skills
|
|
106
|
-
ai-agent source add https://github.com/company/team-skills \
|
|
107
|
-
--name company-standards
|
|
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
|
|
108
52
|
|
|
109
53
|
# Update and install
|
|
110
54
|
ai-agent update
|
|
@@ -148,40 +92,26 @@ ai-agent uninstall # Remove skills
|
|
|
148
92
|
|
|
149
93
|
### For Companies
|
|
150
94
|
```bash
|
|
151
|
-
#
|
|
152
|
-
# 2. Add to all team members
|
|
95
|
+
# Add your company's private skills repo
|
|
153
96
|
ai-agent source add https://github.com/acme-corp/coding-standards \
|
|
154
97
|
--name acme-standards
|
|
155
98
|
|
|
156
|
-
#
|
|
99
|
+
# Share config file with team
|
|
157
100
|
ai-agent config export acme-config.json
|
|
158
|
-
# Send to team via Slack/Email
|
|
159
101
|
|
|
160
|
-
#
|
|
102
|
+
# Team members import
|
|
161
103
|
ai-agent config import acme-config.json --merge
|
|
162
104
|
```
|
|
163
105
|
|
|
164
106
|
### For Individual Developers
|
|
165
107
|
```bash
|
|
166
108
|
# Add skills from multiple sources
|
|
167
|
-
ai-agent source add https://github.com/
|
|
168
|
-
ai-agent source add https://github.com/
|
|
169
|
-
|
|
170
|
-
# Disable skills you don't use
|
|
171
|
-
ai-agent source disable playwright-skill
|
|
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
|
|
172
111
|
|
|
173
|
-
#
|
|
112
|
+
# Update and install
|
|
174
113
|
ai-agent update
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### For Open Source Projects
|
|
178
|
-
```bash
|
|
179
|
-
# Create project-specific skills
|
|
180
|
-
# Share via GitHub repo
|
|
181
|
-
# Contributors use the same standards
|
|
182
|
-
|
|
183
|
-
ai-agent source add https://github.com/project/ai-skills \
|
|
184
|
-
--name project-standards
|
|
114
|
+
ai-agent install
|
|
185
115
|
```
|
|
186
116
|
|
|
187
117
|
## 📍 File Locations
|
|
@@ -206,22 +136,13 @@ User config at `~/.ai-agent/config.json`:
|
|
|
206
136
|
{
|
|
207
137
|
"version": "2.0",
|
|
208
138
|
"sources": {
|
|
209
|
-
"official": [
|
|
210
|
-
{
|
|
211
|
-
"name": "vercel-labs",
|
|
212
|
-
"repo": "https://github.com/vercel-labs/agent-skills.git",
|
|
213
|
-
"branch": "main",
|
|
214
|
-
"enabled": true,
|
|
215
|
-
"skills": [...]
|
|
216
|
-
}
|
|
217
|
-
],
|
|
139
|
+
"official": [],
|
|
218
140
|
"custom": [
|
|
219
141
|
{
|
|
220
142
|
"name": "my-skills",
|
|
221
143
|
"repo": "https://github.com/me/my-skills.git",
|
|
222
144
|
"branch": "main",
|
|
223
145
|
"path": "skills",
|
|
224
|
-
"excludePaths": [".git", "README.md"],
|
|
225
146
|
"enabled": true
|
|
226
147
|
}
|
|
227
148
|
]
|
|
@@ -237,32 +158,16 @@ User config at `~/.ai-agent/config.json`:
|
|
|
237
158
|
|
|
238
159
|
We welcome contributions! Here's how:
|
|
239
160
|
|
|
240
|
-
1. **
|
|
161
|
+
1. **Share your skills**: Create skills repo and share with community
|
|
241
162
|
2. **Report issues**: [GitHub Issues](https://github.com/dongitran/ai-agent-config/issues)
|
|
242
|
-
3. **
|
|
243
|
-
|
|
244
|
-
## 📖 Migration from v1.x
|
|
245
|
-
|
|
246
|
-
v2.0 automatically migrates your setup:
|
|
247
|
-
|
|
248
|
-
```bash
|
|
249
|
-
# Install v2.0
|
|
250
|
-
npm install -g ai-agent-config@latest
|
|
251
|
-
|
|
252
|
-
# Run init (auto-detects v1 and migrates)
|
|
253
|
-
ai-agent init
|
|
254
|
-
|
|
255
|
-
# ✅ Done! All your skills are preserved
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
**No breaking changes** - All v1 commands work in v2.
|
|
163
|
+
3. **Submit PRs**: Improve the core tool
|
|
259
164
|
|
|
260
165
|
## 🌟 Why ai-agent-config?
|
|
261
166
|
|
|
262
|
-
- ✅ **
|
|
167
|
+
- ✅ **Minimal & focused** - Only 2 core skills bundled, add what you need
|
|
168
|
+
- ✅ **Full control** - No default external sources, you decide what to install
|
|
263
169
|
- ✅ **User-configurable** - Add unlimited custom skill sources
|
|
264
170
|
- ✅ **Team-friendly** - Export/import configs for collaboration
|
|
265
|
-
- ✅ **Auto-sync** - Weekly updates from official sources
|
|
266
171
|
- ✅ **Zero dependencies** - Lightweight, fast, secure
|
|
267
172
|
- ✅ **Open & extensible** - Use any GitHub repo as skill source
|
|
268
173
|
|
|
@@ -274,7 +179,7 @@ ai-agent init
|
|
|
274
179
|
| Antigravity IDE | ✅ Supported | `~/.gemini/antigravity/skills/` |
|
|
275
180
|
| Cursor | ✅ Supported | `~/.cursor/skills/` |
|
|
276
181
|
| Windsurf | ✅ Supported | `~/.windsurf/skills/` |
|
|
277
|
-
|
|
|
182
|
+
| Codex CLI | ✅ Supported | `~/.codex/skills/` |
|
|
278
183
|
|
|
279
184
|
## 📄 License
|
|
280
185
|
|
|
@@ -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
|
|