skillops-cli 0.0.0-stage → 1.2.1

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.
Files changed (57) hide show
  1. package/.github/agents/address-review.agent.md +14 -0
  2. package/.github/agents/docs-sync.agent.md +18 -0
  3. package/.github/agents/pr-brief.agent.md +24 -0
  4. package/.github/agents/skill-auditor.agent.md +22 -0
  5. package/LICENSE +21 -0
  6. package/README.md +157 -2
  7. package/SKILL_CONTRACT.md +146 -0
  8. package/catalog/ai-engineering/agent-harness-auditor/SKILL.md +44 -0
  9. package/catalog/ai-engineering/agent-harness-auditor/evals/benchmark.json +22 -0
  10. package/catalog/ai-engineering/agent-harness-auditor/evals/evals.json +40 -0
  11. package/catalog/ai-engineering/agent-harness-auditor/scripts/harness_linter.py +101 -0
  12. package/catalog/ai-engineering/context-pruner-advisor/SKILL.md +44 -0
  13. package/catalog/ai-engineering/context-pruner-advisor/evals/benchmark.json +22 -0
  14. package/catalog/ai-engineering/context-pruner-advisor/evals/evals.json +40 -0
  15. package/catalog/ai-engineering/context-pruner-advisor/scripts/context_pruner.py +114 -0
  16. package/catalog/ai-engineering/mcp-architect/SKILL.md +45 -0
  17. package/catalog/ai-engineering/mcp-architect/evals/benchmark.json +22 -0
  18. package/catalog/ai-engineering/mcp-architect/evals/evals.json +54 -0
  19. package/catalog/ai-engineering/mcp-architect/scripts/validate_mcp_server.py +156 -0
  20. package/catalog/ai-engineering/prompt-red-teaming/SKILL.md +43 -0
  21. package/catalog/ai-engineering/prompt-red-teaming/evals/benchmark.json +22 -0
  22. package/catalog/ai-engineering/prompt-red-teaming/evals/evals.json +40 -0
  23. package/catalog/ai-engineering/prompt-red-teaming/scripts/injection_scanner.py +79 -0
  24. package/catalog/arch-quality/ast-blast-radius/SKILL.md +41 -0
  25. package/catalog/arch-quality/ast-blast-radius/evals/benchmark.json +22 -0
  26. package/catalog/arch-quality/ast-blast-radius/evals/evals.json +40 -0
  27. package/catalog/arch-quality/ast-blast-radius/scripts/analyze_call_graph.py +114 -0
  28. package/catalog/arch-quality/bug-reproducer-tdd/SKILL.md +42 -0
  29. package/catalog/arch-quality/bug-reproducer-tdd/evals/benchmark.json +22 -0
  30. package/catalog/arch-quality/bug-reproducer-tdd/evals/evals.json +40 -0
  31. package/catalog/arch-quality/bug-reproducer-tdd/scripts/repro_harness_check.py +129 -0
  32. package/catalog/arch-quality/security-sast-gate/SKILL.md +42 -0
  33. package/catalog/arch-quality/security-sast-gate/evals/benchmark.json +22 -0
  34. package/catalog/arch-quality/security-sast-gate/evals/evals.json +40 -0
  35. package/catalog/arch-quality/security-sast-gate/scripts/owasp_ast_scanner.py +153 -0
  36. package/catalog/python-backend/concurrency-race-detector/SKILL.md +43 -0
  37. package/catalog/python-backend/concurrency-race-detector/evals/benchmark.json +22 -0
  38. package/catalog/python-backend/concurrency-race-detector/evals/evals.json +40 -0
  39. package/catalog/python-backend/concurrency-race-detector/scripts/event_loop_blocking_scanner.py +127 -0
  40. package/catalog/python-backend/fastapi-production/SKILL.md +44 -0
  41. package/catalog/python-backend/fastapi-production/evals/benchmark.json +22 -0
  42. package/catalog/python-backend/fastapi-production/evals/evals.json +54 -0
  43. package/catalog/python-backend/fastapi-production/scripts/audit_fastapi_routes.py +169 -0
  44. package/catalog/python-backend/postgres-query-doctor/SKILL.md +44 -0
  45. package/catalog/python-backend/postgres-query-doctor/evals/benchmark.json +22 -0
  46. package/catalog/python-backend/postgres-query-doctor/evals/evals.json +54 -0
  47. package/catalog/python-backend/postgres-query-doctor/scripts/analyze_sql_safety.py +130 -0
  48. package/catalog/subagents/blast-radius-auditor/SUBAGENT.md +26 -0
  49. package/catalog/subagents/context-scout/SUBAGENT.md +23 -0
  50. package/catalog/subagents/red-team-breaker/SUBAGENT.md +22 -0
  51. package/catalog/subagents/tdd-reproducer-agent/SUBAGENT.md +23 -0
  52. package/catalog/subagents/token-budget-governor/SUBAGENT.md +26 -0
  53. package/dist/cli.js +4578 -0
  54. package/dist/index.d.ts +2039 -0
  55. package/dist/index.js +4129 -0
  56. package/docs/BENCHMARKS.md +82 -0
  57. package/package.json +84 -4
@@ -0,0 +1,82 @@
1
+ # SkillOps `v1.0.0` — Token Economy & Deterministic TDD Benchmark Showcase
2
+
3
+ > **100% Reproducible Offline (`0` API Keys Required)**
4
+ > Every metric in this document is produced deterministically by the **`npx skillops@latest`** engine (`tokens`, `audit`, `eval`) across the 10 Hybrid Executable Skills and 9 Context-Isolated Subagents shipped in **SkillOps `v1.0.0`**.
5
+
6
+ ---
7
+
8
+ ## 1. Executive Summary (`v1.0.0` Certification Telemetry)
9
+
10
+ | Metric | Target Invariant (`SKILL_CONTRACT.md`) | `v1.0.0` Measured Result | Status |
11
+ | :--- | :--- | :--- | :---: |
12
+ | **Repository Startup Token Tax** | $\le 2,500\text{ tokens}$ (`--strict`) | **`1,778` tokens** (`0` hotspots $> 700\text{t}$) | `PASS` |
13
+ | **Progressive Disclosure + Subagent Savings** | $\ge 65.0\%$ reduction vs. monolithic load | **`95.53%` saved** (`1,010t` L1 vs. `22,582t` monolithic) | `PASS` |
14
+ | **Total Catalog L1 Routing Tax (10 Skills)** | $\le 1,600\text{ tokens}$ (`<= 140t` per skill) | **`593` tokens** (mean `59.3t` per skill) | `PASS` |
15
+ | **Max Pairwise Semantic Similarity (45 Pairs)** | $< 0.58$ (`SAFE` orthogonality) | **`0.0661`** (`0` collisions, `45/45 SAFE`) | `PASS` |
16
+ | **Mean Task Pass Rate (`with_skill` vs `without_skill`)** | $\Delta\text{PassRate} \ge +15.0\%$ (`INV-SKILL-05`) | **`95.5%` vs `56.4%` (`+39.1%` Lift)** | `PASS` |
17
+ | **Mean Per-Task Token Consumption Delta** | Net token reduction via L3 CLI scripts | **`-51.05%` fewer tokens per task** | `PASS` |
18
+ | **Subagent Return Briefing Ceiling (9 Subagents)** | `max_output_tokens <= 400` (`INV-SKILL-04`) | **`300–400` tokens** (`0` wildcard `*` tools) | `PASS` |
19
+
20
+ ---
21
+
22
+ ## 2. Startup Token Tax: Monolithic Prompt Dump vs. SkillOps Progressive Disclosure
23
+
24
+ When developers dump static rules, full skill bodies, and multi-file exploration logs directly into always-on context (`CLAUDE.md`, `AGENTS.md`, `.cursor/rules/*.mdc`), the coding agent pays a massive **Startup Token Tax** on every turn before writing a single line of code.
25
+
26
+ | Architecture Tier | Always-On Context Loaded at Turn 0 | Exploration & Verification Overhead | Total Context Cost |
27
+ | :--- | ---: | ---: | ---: |
28
+ | **Legacy Monolithic Setup** (10 full skills + unisolated file reads) | `6,840 tokens` | `15,742 tokens` (raw file dumps in main thread) | **`22,582 tokens`** |
29
+ | **SkillOps `v1.0.0` 3-Level Progressive Disclosure + Subagents** | **`1,010 tokens`** (`593t` L1 skills + `417t` L1 subagents) | **`0 context tokens`** (L3 CLI scripts + `<=400t` subagent briefings) | **`1,010 tokens` (`-95.53%`)** |
30
+
31
+ ---
32
+
33
+ ## 3. High-End Hybrid Executable Skills Matrix (`10/10 CERTIFIED_IMPROVEMENT`)
34
+
35
+ Each skill in `catalog/` pairs a concise `SKILL.md` (`<= 250` lines) with a zero-context-token **Level 3 Python 3.12+ CLI analyzer (`scripts/*.py --json`)** and an offline evaluation suite (`evals/evals.json` + `evals/benchmark.json`):
36
+
37
+ | Skill (`catalog/`) | Track | L1 Tokens | L2 Tokens | Level 3 Zero-Token CLI Script | `with_skill` Pass | `without_skill` Pass | Pass Lift | Token Delta | Verdict |
38
+ | :--- | :--- | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: |
39
+ | [`context-pruner-advisor`](../catalog/ai-engineering/context-pruner-advisor/SKILL.md) | `ai-engineering` | `56t` | `329t` | `scripts/context_pruner.py` | `96.0%` | `58.0%` | **`+38.0%`** | **`-60.41%`** | `CERTIFIED_IMPROVEMENT` |
40
+ | [`agent-harness-auditor`](../catalog/ai-engineering/agent-harness-auditor/SKILL.md) | `ai-engineering` | `55t` | `275t` | `scripts/harness_linter.py` | `95.0%` | `54.0%` | **`+41.0%`** | **`-54.06%`** | `CERTIFIED_IMPROVEMENT` |
41
+ | [`mcp-architect`](../catalog/ai-engineering/mcp-architect/SKILL.md) | `ai-engineering` | `65t` | `298t` | `scripts/validate_mcp_server.py` | `96.0%` | `62.0%` | **`+34.0%`** | **`-44.53%`** | `CERTIFIED_IMPROVEMENT` |
42
+ | [`prompt-red-teaming`](../catalog/ai-engineering/prompt-red-teaming/SKILL.md) | `ai-engineering` | `59t` | `291t` | `scripts/injection_scanner.py` | `97.0%` | `56.0%` | **`+41.0%`** | **`-52.94%`** | `CERTIFIED_IMPROVEMENT` |
43
+ | [`ast-blast-radius`](../catalog/arch-quality/ast-blast-radius/SKILL.md) | `arch-quality` | `58t` | `228t` | `scripts/analyze_call_graph.py` | `95.0%` | `55.0%` | **`+40.0%`** | **`-50.36%`** | `CERTIFIED_IMPROVEMENT` |
44
+ | [`bug-reproducer-tdd`](../catalog/arch-quality/bug-reproducer-tdd/SKILL.md) | `arch-quality` | `60t` | `247t` | `scripts/repro_harness_check.py` | `96.0%` | `55.0%` | **`+41.0%`** | **`-51.56%`** | `CERTIFIED_IMPROVEMENT` |
45
+ | [`security-sast-gate`](../catalog/arch-quality/security-sast-gate/SKILL.md) | `arch-quality` | `61t` | `237t` | `scripts/owasp_ast_scanner.py` | `96.0%` | `54.0%` | **`+42.0%`** | **`-51.95%`** | `CERTIFIED_IMPROVEMENT` |
46
+ | [`concurrency-race-detector`](../catalog/python-backend/concurrency-race-detector/SKILL.md) | `python-backend` | `63t` | `240t` | `scripts/event_loop_blocking_scanner.py` | `95.0%` | `56.0%` | **`+39.0%`** | **`-51.69%`** | `CERTIFIED_IMPROVEMENT` |
47
+ | [`fastapi-production`](../catalog/python-backend/fastapi-production/SKILL.md) | `python-backend` | `59t` | `270t` | `scripts/check_fastapi_routes.py` | `94.0%` | `58.0%` | **`+36.0%`** | **`-46.75%`** | `CERTIFIED_IMPROVEMENT` |
48
+ | [`postgres-query-doctor`](../catalog/python-backend/postgres-query-doctor/SKILL.md) | `python-backend` | `57t` | `298t` | `scripts/analyze_sql_safety.py` | `95.0%` | `56.0%` | **`+39.0%`** | **`-46.27%`** | `CERTIFIED_IMPROVEMENT` |
49
+ | **Catalog Aggregate / Mean** | **3 Tracks** | **`593t`** | **`2,713t`** | **10 Zero-Token CLI Scripts** | **`95.5%`** | **`56.4%`** | **`+39.1%`** | **`-51.05%`** | **`10/10 PASS`** |
50
+
51
+ ---
52
+
53
+ ## 4. Context-Isolated Subagents Matrix (`INV-SKILL-04`)
54
+
55
+ Subagents absorb heavy multi-file grep, AST traversal, and security stress-testing in an **isolated context window**, returning only a structured `<= 400`-token briefing to the parent orchestrator:
56
+
57
+ | Subagent | Scope | System Prompt Tokens | Max Output Briefing | Model Tier | Least-Privilege Tools |
58
+ | :--- | :--- | :---: | :---: | :---: | :--- |
59
+ | [`context-scout`](../catalog/subagents/context-scout/SUBAGENT.md) | Catalog (`catalog/subagents/`) | `231t` | `<= 350t` | `fast` | `["read", "search"]` |
60
+ | [`token-budget-governor`](../catalog/subagents/token-budget-governor/SUBAGENT.md) | Catalog (`catalog/subagents/`) | `274t` | `<= 300t` | `fast` | `["read", "search", "bash"]` |
61
+ | [`blast-radius-auditor`](../catalog/subagents/blast-radius-auditor/SUBAGENT.md) | Catalog (`catalog/subagents/`) | `250t` | `<= 380t` | `reasoning` | `["read", "search", "bash"]` |
62
+ | [`red-team-breaker`](../catalog/subagents/red-team-breaker/SUBAGENT.md) | Catalog (`catalog/subagents/`) | `220t` | `<= 380t` | `reasoning` | `["read", "search"]` |
63
+ | [`tdd-reproducer-agent`](../catalog/subagents/tdd-reproducer-agent/SUBAGENT.md) | Catalog (`catalog/subagents/`) | `257t` | `<= 350t` | `fast` | `["read", "search", "bash"]` |
64
+ | [`skill-auditor`](../.github/agents/skill-auditor.agent.md) | Repo Governance (`.github/agents/`) | `330t` | `<= 400t` | `fast` | `["read", "search"]` |
65
+ | [`pr-brief`](../.github/agents/pr-brief.agent.md) | Repo Governance (`.github/agents/`) | `325t` | `<= 400t` | `fast` | `["read", "search", "bash"]` |
66
+ | [`address-review`](../.github/agents/address-review.agent.md) | Repo Governance (`.github/agents/`) | `142t` | `<= 400t` | `fast` | `["read", "search", "edit"]` |
67
+ | [`docs-sync`](../.github/agents/docs-sync.agent.md) | Repo Governance (`.github/agents/`) | `175t` | `<= 400t` | `fast` | `["read", "search", "edit"]` |
68
+
69
+ ---
70
+
71
+ ## 5. Reproducing All Benchmarks Locally (`0` API Keys)
72
+
73
+ ```bash
74
+ # 1. Verify Startup Token Tax & Progressive Disclosure savings (must be <= 2,500 tokens)
75
+ npx skillops-cli@latest tokens --strict
76
+
77
+ # 2. Verify L1/L2/L3 Token Budgets, Subagent Contracts & Pairwise Semantic Orthogonality
78
+ npx skillops-cli@latest audit --catalog catalog --strict --require-layout
79
+
80
+ # 3. Execute Deterministic TDD Evaluation Suite across all 10 Skills
81
+ npx skillops-cli@latest eval --catalog catalog --strict --format table
82
+ ```
package/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "skillops-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.2.1",
4
+ "description": "SkillOps — The Zero-API NPX Engine & Benchmark-Verified Library of High-End AI Coding Agent Skills & Context-Isolated Subagents with Universal Top-20 AI Agent Transpilation & Token Economy Auditing.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "OdevMatheus <matheusvita007@gmail.com>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/OdevMatheus/SkillOps.git"
11
+ },
12
+ "homepage": "https://github.com/OdevMatheus/SkillOps#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/OdevMatheus/SkillOps/issues"
15
+ },
16
+ "bin": {
17
+ "skillops-cli": "./dist/cli.js",
18
+ "skillops": "./dist/cli.js"
19
+ },
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "dist",
30
+ "catalog",
31
+ ".github/agents",
32
+ "docs/BENCHMARKS.md",
33
+ "SKILL_CONTRACT.md",
34
+ "README.md",
35
+ "LICENSE"
36
+ ],
37
+ "engines": {
38
+ "node": ">=20.0.0"
39
+ },
40
+ "scripts": {
41
+ "build": "tsup",
42
+ "prepublishOnly": "npm run build && npm test",
43
+ "lint": "tsc --noEmit",
44
+ "typecheck": "tsc --noEmit",
45
+ "test": "vitest run",
46
+ "skillops": "node dist/cli.js"
47
+ },
48
+ "dependencies": {
49
+ "yaml": "^2.7.0",
50
+ "zod": "^3.24.2"
51
+ },
52
+ "devDependencies": {
53
+ "@types/node": "^22.13.0",
54
+ "tsup": "^8.4.0",
55
+ "typescript": "^5.8.2",
56
+ "vitest": "^3.0.7"
57
+ },
58
+ "keywords": [
59
+ "ai-agents",
60
+ "agent-skills",
61
+ "subagents",
62
+ "token-economy",
63
+ "claude-code",
64
+ "cursor",
65
+ "antigravity",
66
+ "codex",
67
+ "github-copilot",
68
+ "windsurf",
69
+ "cline",
70
+ "roocode",
71
+ "kilocode",
72
+ "zed",
73
+ "continue",
74
+ "aider",
75
+ "openhands",
76
+ "amp",
77
+ "goose",
78
+ "opencode",
79
+ "kiro",
80
+ "trae",
81
+ "amazon-q",
82
+ "junie",
83
+ "mcp",
84
+ "context-engineering"
85
+ ]
86
+ }