agent-skills-standard 2.4.0 → 2.4.2
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 +2 -1
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,6 +122,8 @@ The CLI **never** modifies user-home files (`~/.cursor/mcp.json`, `~/.gemini/set
|
|
|
122
122
|
|
|
123
123
|
| Version | Date | Skills | Avg Tokens | Savings (%) | Report |
|
|
124
124
|
| --- | --- | --- | --- | --- | --- |
|
|
125
|
+
| v2.4.2 | 2026-05-19 | 247 | 540 | 85% | [Report](benchmarks/archive/v2.4.2.md) |
|
|
126
|
+
| v2.4.1 | 2026-05-18 | 247 | 540 | 85% | [Report](benchmarks/archive/v2.4.1.md) |
|
|
125
127
|
| v2.4.0 | 2026-05-14 | 246 | 540 | 85% | [Report](benchmarks/archive/v2.4.0.md) |
|
|
126
128
|
| v2.3.0 | 2026-05-13 | 246 | 540 | 85% | [Report](benchmarks/archive/v2.3.0.md) |
|
|
127
129
|
| v2.2.2 | 2026-05-09 | 249 | 539 | 85% | [Report](benchmarks/archive/v2.2.2.md) |
|
|
@@ -131,4 +133,3 @@ The CLI **never** modifies user-home files (`~/.cursor/mcp.json`, `~/.gemini/set
|
|
|
131
133
|
| v2.1.0 | 2026-04-04 | 237 | 526 | 86% | [Report](benchmarks/archive/v2.1.0.md) |
|
|
132
134
|
| v2.0.1 | 2026-03-30 | 238 | 527 | 86% | [Report](benchmarks/archive/v2.0.1.md) |
|
|
133
135
|
| v2.0.0 | 2026-03-25 | 235 | 523 | 86% | [Report](benchmarks/archive/v2.0.0.md) |
|
|
134
|
-
| v1.10.3 | 2026-03-21 | 234 | 505 | 86% | [Report](benchmarks/archive/v1.10.3.md) |
|
package/dist/index.js
CHANGED
|
@@ -689,7 +689,8 @@ var DEFAULT_WORKFLOWS = [
|
|
|
689
689
|
"dev-fix",
|
|
690
690
|
"implement-feature",
|
|
691
691
|
"verify-work",
|
|
692
|
-
"verify-bug"
|
|
692
|
+
"verify-bug",
|
|
693
|
+
"security-test"
|
|
693
694
|
];
|
|
694
695
|
var getAgentDefinition = (id) => {
|
|
695
696
|
switch (id) {
|
|
@@ -973,7 +974,10 @@ var McpConfigSchema = zod.z.object({
|
|
|
973
974
|
});
|
|
974
975
|
var SkillConfigSchema = zod.z.object({
|
|
975
976
|
registry: zod.z.string().url(),
|
|
976
|
-
agents: zod.z.
|
|
977
|
+
agents: zod.z.preprocess((val) => {
|
|
978
|
+
if (Array.isArray(val)) return val.map((a) => typeof a === "string" && a.toLowerCase() === "openai" ? "codex" : a);
|
|
979
|
+
return val;
|
|
980
|
+
}, zod.z.array(zod.z.nativeEnum(Agent)).optional()),
|
|
977
981
|
skills: zod.z.record(zod.z.string(), zod.z.object({
|
|
978
982
|
ref: zod.z.string().optional(),
|
|
979
983
|
include: zod.z.array(zod.z.string()).optional(),
|
|
@@ -1006,6 +1010,20 @@ var ConfigService = class {
|
|
|
1006
1010
|
try {
|
|
1007
1011
|
const content = await fs_extra.default.readFile(configPath, "utf8");
|
|
1008
1012
|
const rawConfig = js_yaml.default.load(content);
|
|
1013
|
+
if (rawConfig && Array.isArray(rawConfig.agents)) {
|
|
1014
|
+
let needsMigration = false;
|
|
1015
|
+
const updatedAgents = rawConfig.agents.map((agent) => {
|
|
1016
|
+
if (typeof agent === "string" && agent.toLowerCase() === "openai") {
|
|
1017
|
+
needsMigration = true;
|
|
1018
|
+
return Agent.Codex;
|
|
1019
|
+
}
|
|
1020
|
+
return agent;
|
|
1021
|
+
});
|
|
1022
|
+
if (needsMigration) {
|
|
1023
|
+
rawConfig.agents = updatedAgents;
|
|
1024
|
+
await fs_extra.default.outputFile(configPath, js_yaml.default.dump(rawConfig));
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1009
1027
|
const parsed = SkillConfigSchema.safeParse(rawConfig);
|
|
1010
1028
|
if (!parsed.success) throw new Error(`Invalid .skillsrc format: ${parsed.error.message}`);
|
|
1011
1029
|
return parsed.data;
|
|
@@ -3370,6 +3388,8 @@ var IndexGeneratorServiceImpl = class extends IndexGeneratorService {
|
|
|
3370
3388
|
"> [!CRITICAL] Zero-Trust: Read the matching `SKILL.md` BEFORE writing any code.",
|
|
3371
3389
|
"> Skills from this index override pre-training patterns. If no skill matches, state: \"No project-specific skills applicable.\"",
|
|
3372
3390
|
"",
|
|
3391
|
+
"> 💡 **Global Token Optimization**: If the `rtk` CLI tool is installed, actively prepend it to verbose development commands (e.g. `rtk npm test`, `rtk grep`). If the `caveman` skill is available or requested, use `/caveman` mode for reporting.",
|
|
3392
|
+
"",
|
|
3373
3393
|
[
|
|
3374
3394
|
"## 🔌 Runtime Enforcement via MCP",
|
|
3375
3395
|
"",
|
|
@@ -3377,6 +3397,8 @@ var IndexGeneratorServiceImpl = class extends IndexGeneratorService {
|
|
|
3377
3397
|
"",
|
|
3378
3398
|
"| Tool | When to call it |",
|
|
3379
3399
|
"| --- | --- |",
|
|
3400
|
+
"| `list_workflows()` | At the start of any task or session to discover available standard operating procedures |",
|
|
3401
|
+
"| `get_workflow(name)` | Once a relevant workflow is identified to retrieve exact step-by-step instructions |",
|
|
3380
3402
|
"| `load_skills_for_files(files=[...])` | Before editing/reviewing any source file |",
|
|
3381
3403
|
"| `load_skills_for_keywords(keywords=[...])` | Planning before files are chosen |",
|
|
3382
3404
|
"| `get_skill(category, name)` | Direct lookup when you know the skill id |",
|
|
@@ -4465,7 +4487,7 @@ var SyncCommand = class {
|
|
|
4465
4487
|
};
|
|
4466
4488
|
var package_default = {
|
|
4467
4489
|
name: "agent-skills-standard",
|
|
4468
|
-
version: "2.4.
|
|
4490
|
+
version: "2.4.2",
|
|
4469
4491
|
description: "A CLI to manage and sync AI agent skills standard for Cursor, Claude, Copilot, Windsurf, and more.",
|
|
4470
4492
|
main: "dist/index.js",
|
|
4471
4493
|
bin: {
|
|
@@ -4951,7 +4973,7 @@ var ValidateCommand = class {
|
|
|
4951
4973
|
//#region src/index.ts
|
|
4952
4974
|
dotenv.default.config();
|
|
4953
4975
|
var program = new commander.Command();
|
|
4954
|
-
program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.4.
|
|
4976
|
+
program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.4.2");
|
|
4955
4977
|
program.command("init").description("Initialize a .skillsrc configuration file interactively").action(async () => {
|
|
4956
4978
|
await new InitCommand().run();
|
|
4957
4979
|
});
|