@vesviet/agent-skills 5.7.2 → 5.8.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.
Files changed (80) hide show
  1. package/INDEX.md +19 -16
  2. package/README.md +10 -10
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/ANTIGRAVITY.md +88 -3
  5. package/adapters/antigravity/INDEX_TIER1.json +1287 -0
  6. package/adapters/antigravity/a2a-config.template.yaml +22 -8
  7. package/adapters/antigravity/role-skill-index.json +38 -9
  8. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  9. package/core/contracts/README.md +4 -1
  10. package/core/contracts/schemas/INDEX.md +7 -1
  11. package/core/contracts/schemas/a2a-artifact.json +9 -2
  12. package/core/contracts/schemas/a2a-jsonrpc-envelope.json +7 -2
  13. package/core/contracts/schemas/a2a-task-progress.json +15 -4
  14. package/core/contracts/schemas/a2a-task.json +11 -3
  15. package/core/contracts/schemas/agent-card.json +48 -1
  16. package/core/contracts/schemas/agent-skills-discovery.json +91 -0
  17. package/core/contracts/schemas/compliance-report.json +255 -0
  18. package/core/contracts/schemas/mcp-server-card.json +193 -0
  19. package/core/contracts/schemas/seo-audit-report.json +3 -5
  20. package/core/contracts/schemas/seo-content-brief.json +1 -1
  21. package/core/contracts/schemas/seo-weekly-board.json +1 -1
  22. package/core/contracts/schemas/series-article.json +1 -1
  23. package/core/policies/action-boundaries.yaml +324 -1
  24. package/core/policies/mcp-tool-map.yaml +33 -4
  25. package/core/roles/3d-graphics-engineer.md +39 -24
  26. package/core/roles/agent-coordinator.md +73 -43
  27. package/core/roles/agent-discovery-engineer.md +45 -14
  28. package/core/roles/ai-systems-engineer.md +24 -10
  29. package/core/roles/aws-engineer.md +27 -15
  30. package/core/roles/backend-developer.md +18 -7
  31. package/core/roles/business-analyst.md +16 -3
  32. package/core/roles/cloudflare-engineer.md +35 -21
  33. package/core/roles/content-manager.md +25 -10
  34. package/core/roles/content-writer.md +55 -42
  35. package/core/roles/data-analyst.md +16 -3
  36. package/core/roles/data-engineer.md +15 -2
  37. package/core/roles/devops-engineer.md +72 -62
  38. package/core/roles/ecommerce-engineer.md +31 -25
  39. package/core/roles/frontend-developer.md +20 -11
  40. package/core/roles/game-developer.md +37 -10
  41. package/core/roles/mmo-engineer.md +24 -15
  42. package/core/roles/mobile-engineer.md +76 -61
  43. package/core/roles/product-manager.md +44 -37
  44. package/core/roles/project-manager.md +33 -27
  45. package/core/roles/prompt-engineer.md +32 -4
  46. package/core/roles/qa-engineer.md +23 -10
  47. package/core/roles/researcher.md +55 -46
  48. package/core/roles/reverse-engineer.md +36 -19
  49. package/core/roles/reviewer.md +20 -5
  50. package/core/roles/role-standard.md +15 -1
  51. package/core/roles/sdet.md +32 -2
  52. package/core/roles/security-engineer.md +39 -22
  53. package/core/roles/seo-analyst.md +55 -38
  54. package/core/roles/solution-architect.md +19 -11
  55. package/core/roles/sre.md +27 -8
  56. package/core/roles/system-engineer.md +42 -32
  57. package/core/roles/task-planner.md +42 -30
  58. package/core/roles/teacher.md +33 -11
  59. package/core/roles/technical-architect.md +70 -51
  60. package/core/roles/technical-lead.md +24 -4
  61. package/core/roles/technical-writer.md +49 -30
  62. package/core/roles/ui-ux-designer.md +75 -69
  63. package/core/roles/vietnam-accounting-specialist.md +23 -10
  64. package/core/roles/vietnam-legal-counsel.md +33 -15
  65. package/core/skills/README.md +3 -2
  66. package/core/skills/agent/agent-a2a-protocol/SKILL.md +25 -93
  67. package/core/skills/agent/architect-mcp-server/SKILL.md +35 -27
  68. package/core/skills/agent/configure-agent-skills/SKILL.md +60 -68
  69. package/core/skills/ai/openrouter-task/SKILL.md +86 -0
  70. package/core/skills/ai/openrouter-task/agents/openai.yaml +5 -0
  71. package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-cases.json +529 -0
  72. package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-manifest.yaml +61 -0
  73. package/core/skills/ai-agent/agent-evaluation/scripts/run-eval-benchmark.py +856 -0
  74. package/core/skills/ai-agent/agent-evaluation/tests/test_golden_benchmarks.py +248 -0
  75. package/core/skills/ai-agent/context-optimization/SKILL.md +59 -60
  76. package/overlays/README.md +1 -1
  77. package/overlays/security-research/README.md +1 -1
  78. package/package.json +2 -2
  79. package/packs/real-estate-team/manifest.yaml +2 -2
  80. package/overlays/security-research/skills/reverse-engineer-binary/SKILL.md +0 -129
package/INDEX.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent-Skills Master Index & Router
2
2
 
3
- > **Location:** `core/` & `overlays/` | **Version:** `5.7.2` (A2A 1.0 + Antigravity)
4
- > **Total Catalog:** **39 Roles** | **182 Skills** (167 Core + 15 Overlays) | **25 Workflows** | **60 Data Contracts**
3
+ > **Location:** `core/` & `overlays/` | **Version:** `5.8.0` (A2A 1.0 + Antigravity)
4
+ > **Total Catalog:** **39 Roles** | **183 Skills** (169 Core + 14 Overlays) | **25 Workflows** | **63 Data Contracts**
5
5
 
6
6
  ---
7
7
 
@@ -23,7 +23,11 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
23
23
  ### Resolution Rules
24
24
  1. **Role Matching:** `@<role>` resolves by exact name (e.g., `@content-writer`) or common alias (e.g., `@writer` → `content-writer`, `@be` → `backend-developer`).
25
25
  2. **Skill Matching:** `@<skill>` resolves by exact name (e.g., `@conduct-research`), snake_case (e.g., `@conduct_research`), or composite alias (e.g., `@research_and_writing` → `conduct-research` + `write-article`).
26
- 3. **Automatic Loading:** The agent loads `core/roles/<role>.md` and all resolved `core/skills/<cat>/<skill>/SKILL.md` before executing.
26
+ 3. **Two-Tier Progressive Disclosure & JIT Retrieval:**
27
+ - **Tier 1 (Startup / Passive Discovery):** The agent loads only its assigned role file (`core/roles/<role>.md`) and the lightweight discovery manifest (`adapters/antigravity/INDEX_TIER1.json`, strictly $< 5\text{ KB}$ or $\approx 40$ tokens/skill, total $\approx 7.3\text{k}$ tokens, achieving $97.3\%$ context reduction). No full `SKILL.md` instruction bodies are loaded upfront.
28
+ - **Tier 2 (On-Demand / JIT Asset Retrieval):** When a task intent or `@<skill>` requires specialized execution instructions, the agent fetches the specific `SKILL.md` payload Just-In-Time (JIT) (scoped strictly to 1–3 active skills, ~2,000–4,500 tokens), cryptographically verifies its SHA-256 digest against `INDEX_TIER1.json`, and activates it within the session sandbox.
29
+ - **Candidate Ranking & Escalation:** Candidate skills are matched via hybrid scoring: $S_{\text{match}} = 0.45 \cdot \text{BM25}(S_{\text{desc}}, Q) + 0.55 \cdot \text{DenseSim}(\vec{E}_{S_{\text{desc}}}, \vec{E}_Q)$. If $\max(S_{\text{match}}) < 0.72$, the router halts and triggers Human-in-the-Loop clarification rather than hallucinating an arbitrary skill.
30
+ - **Prohibited Skills Exclusion:** Candidate skills listed in the active role's `### Prohibited Skills` list are immediately disqualified.
27
31
  4. **Contract Output:** Structured outputs must validate against `core/contracts/schemas/<schema>.json`.
28
32
 
29
33
  ---
@@ -32,10 +36,10 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
32
36
 
33
37
  | Role Slug | Title | Common Aliases | Primary Skills | Role File |
34
38
  |:---|:---|:---|:---|:---|
35
- | **`@3d-graphics-engineer`** | 3D Graphics Engineer | `@3d`, `@r3f`, `@threejs` | `debug-3d-scene`, `integrate-r3f-three-legacy`, `optimize-3d-assets` | [`core/roles/3d-graphics-engineer.md`](./core/roles/3d-graphics-engineer.md) |
39
+ | **`@3d-graphics-engineer`** | 3D Graphics Engineer | `@3d`, `@r3f`, `@threejs` | `render-webgl-threejs`, `debug-3d-scene`, `integrate-r3f-three-legacy` *(+1 more)* | [`core/roles/3d-graphics-engineer.md`](./core/roles/3d-graphics-engineer.md) |
36
40
  | **`@agent-coordinator`** | Agent Coordinator | `@coordinator`, `@swarm-coordinator` | `agent-a2a-protocol`, `agent-delegation`, `agent-graph-orchestration` *(+10 more)* | [`core/roles/agent-coordinator.md`](./core/roles/agent-coordinator.md) |
37
41
  | **`@agent-discovery-engineer`** | Agent Discovery Engineer | `@discovery`, `@agent-discovery` | `manage-auth-md`, `configure-oauth-metadata`, `debug-identity-provider` *(+5 more)* | [`core/roles/agent-discovery-engineer.md`](./core/roles/agent-discovery-engineer.md) |
38
- | **`@ai-systems-engineer`** | AI Systems Engineer | `@ai`, `@ml`, `@llm` | `deploy-vllm-inference`, `setup-llm-gateway`, `setup-gpu-finops` *(+2 more)* | [`core/roles/ai-systems-engineer.md`](./core/roles/ai-systems-engineer.md) |
42
+ | **`@ai-systems-engineer`** | AI Systems Engineer | `@ai`, `@ml`, `@llm` | `deploy-vllm-inference`, `openrouter-task`, `setup-llm-gateway` *(+3 more)* | [`core/roles/ai-systems-engineer.md`](./core/roles/ai-systems-engineer.md) |
39
43
  | **`@aws-engineer`** | AWS Engineer | `@aws`, `@cloud` | `aws-infrastructure`, `setup-deployment`, `add-telemetry-instrumentation` | [`core/roles/aws-engineer.md`](./core/roles/aws-engineer.md) |
40
44
  | **`@backend-developer`** | Backend Developer | `@backend`, `@be`, `@backend-dev` | `add-api-endpoint`, `add-event-handler`, `add-service-client` *(+9 more)* | [`core/roles/backend-developer.md`](./core/roles/backend-developer.md) |
41
45
  | **`@business-analyst`** | Business Analyst | `@ba`, `@business` | `analyze-business-requirements`, `elicit-requirements`, `write-use-cases` *(+3 more)* | [`core/roles/business-analyst.md`](./core/roles/business-analyst.md) |
@@ -74,7 +78,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
74
78
 
75
79
  ---
76
80
 
77
- ## 🛠️ Skill Directory (182 Skills)
81
+ ## 🛠️ Skill Directory (183 Skills)
78
82
 
79
83
  ### Category: `agent` (24 skills)
80
84
 
@@ -105,11 +109,12 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
105
109
  | **`@manage-api-catalog`** | Use when publishing and maintaining RFC 9727 API Catalog registries for automated API discovery by a... | [`core/skills/agent/manage-api-catalog/SKILL.md`](./core/skills/agent/manage-api-catalog/SKILL.md) |
106
110
  | **`@manage-auth-md`** | Use when creating, updating, or auditing the /auth.md file at the repository or domain root to ensur... | [`core/skills/agent/manage-auth-md/SKILL.md`](./core/skills/agent/manage-auth-md/SKILL.md) |
107
111
 
108
- ### Category: `ai` (1 skills)
112
+ ### Category: `ai` (2 skills)
109
113
 
110
114
  | Skill Slug | Description | File |
111
115
  |:---|:---|:---|
112
116
  | **`@deploy-vllm-inference`** | Deploy, configure, scale, and optimize high-throughput LLM inference workloads using the vLLM V1 eng... | [`core/skills/ai/deploy-vllm-inference/SKILL.md`](./core/skills/ai/deploy-vllm-inference/SKILL.md) |
117
+ | **`@openrouter-task`** | Offload lightweight tasks, boilerplate code generation, unit tests, summarization, and data transfor... | [`core/skills/ai/openrouter-task/SKILL.md`](./core/skills/ai/openrouter-task/SKILL.md) |
113
118
 
114
119
  ### Category: `ai-agent` (3 skills)
115
120
 
@@ -358,12 +363,6 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
358
363
  |:---|:---|:---|
359
364
  | **`@write-real-estate-astro-data`** | Draft or update Astro Content Collection Markdown/MDX for the Real Estate and HVAC portals. Use when... | [`overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md`](./overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md) |
360
365
 
361
- ### Category: `overlay/security-research` (1 skills)
362
-
363
- | Skill Slug | Description | File |
364
- |:---|:---|:---|
365
- | **`@reverse-engineer-binary`** | Use when deconstructing compiled binaries, Electron bundles, and firmware images in air-gapped sandb... | [`overlays/security-research/skills/reverse-engineer-binary/SKILL.md`](./overlays/security-research/skills/reverse-engineer-binary/SKILL.md) |
366
-
367
366
  ### Category: `platform` (19 skills)
368
367
 
369
368
  | Skill Slug | Description | File |
@@ -407,7 +406,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
407
406
  | **`@review-service`** | Review an entire service for release readiness. Use for full-service audits, production-readiness ch... | [`core/skills/repo-ops/review-service/SKILL.md`](./core/skills/repo-ops/review-service/SKILL.md) |
408
407
  | **`@troubleshoot-service`** | Troubleshoot build, startup, runtime, dependency, and configuration issues by isolating the failing ... | [`core/skills/repo-ops/troubleshoot-service/SKILL.md`](./core/skills/repo-ops/troubleshoot-service/SKILL.md) |
409
408
 
410
- ### Category: `security-data` (9 skills)
409
+ ### Category: `security-data` (10 skills)
411
410
 
412
411
  | Skill Slug | Description | File |
413
412
  |:---|:---|:---|
@@ -418,6 +417,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
418
417
  | **`@optimize-olap-database`** | Design high-throughput OLAP schemas for Iceberg v3, tune ClickHouse/DuckDB columnar engines, configu... | [`core/skills/security-data/optimize-olap-database/SKILL.md`](./core/skills/security-data/optimize-olap-database/SKILL.md) |
419
418
  | **`@prompt-injection-defense`** | Use when safeguarding AI agents against direct and indirect prompt injection attacks, implementing b... | [`core/skills/security-data/prompt-injection-defense/SKILL.md`](./core/skills/security-data/prompt-injection-defense/SKILL.md) |
420
419
  | **`@query-analytical-engine`** | Execute in-process analytical SQL with chDB and DuckDB v1.5+, orchestrate multi-step stateful pipeli... | [`core/skills/security-data/query-analytical-engine/SKILL.md`](./core/skills/security-data/query-analytical-engine/SKILL.md) |
420
+ | **`@reverse-engineer-binary`** | Deconstruct compiled binaries, proprietary protocols, and obfuscated bytecode in air-gapped sandboxe... | [`core/skills/security-data/reverse-engineer-binary/SKILL.md`](./core/skills/security-data/reverse-engineer-binary/SKILL.md) |
421
421
  | **`@security-audit`** | Review code, configuration, and service behavior for security risks by checking trust boundaries, se... | [`core/skills/security-data/security-audit/SKILL.md`](./core/skills/security-data/security-audit/SKILL.md) |
422
422
  | **`@skill-preflight-ast-check`** | Use when performing zero-execution static AST security vetting of third-party agent skills, enforcin... | [`core/skills/security-data/skill-preflight-ast-check/SKILL.md`](./core/skills/security-data/skill-preflight-ast-check/SKILL.md) |
423
423
 
@@ -898,7 +898,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
898
898
  | **`obj-configurator`** | Skill Overlay | Project-specific conventions for the 3D Product Configurator — an interactive WebGL application for ... | 1 rule | 1 skill | [`overlays/obj-configurator/README.md`](./overlays/obj-configurator/README.md) |
899
899
  | **`r3f-stack`** | Skill Overlay | React Three Fiber / Three.js / WebGL+WebGPU skill cluster. Provides 3D rendering skills for projects... | 1 rule | 3 skills | [`overlays/r3f-stack/README.md`](./overlays/r3f-stack/README.md) |
900
900
  | **`real-estate-content`** | Skill Overlay | This overlay contains content-specific extensions for the Real Estate Portal and HVAC Portal Astro c... | 3 rules | 1 skill | [`overlays/real-estate-content/README.md`](./overlays/real-estate-content/README.md) |
901
- | **`security-research`** | Skill Overlay | Composable overlay for the `security-engineer` role when conducting binary disassembly, decompilatio... | 1 rule | 1 skill | [`overlays/security-research/README.md`](./overlays/security-research/README.md) |
901
+ | **`security-research`** | Rule-Only | Composable overlay for the `security-engineer` role when conducting binary disassembly, decompilatio... | 1 rule | 0 skills | [`overlays/security-research/README.md`](./overlays/security-research/README.md) |
902
902
  | **`seo-publishing`** | Rule-Only | Publishing overlay for recurring SEO content on **Real Estate Portal** and **HVAC Authority Portal**... | 4 rules | 0 skills | [`overlays/seo-publishing/README.md`](./overlays/seo-publishing/README.md) |
903
903
  | **`ui-design-system`** | Rule-Only | Composable overlay for the `ui-ux-designer` role when work must follow a **brand or project design s... | 1 rule | 0 skills | [`overlays/ui-design-system/README.md`](./overlays/ui-design-system/README.md) |
904
904
 
@@ -960,7 +960,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
960
960
 
961
961
  ---
962
962
 
963
- ## 📑 Data Contracts & Schemas (60 Data Contract Schemas)
963
+ ## 📑 Data Contracts & Schemas (63 Data Contract Schemas)
964
964
 
965
965
  | Schema File | Schema Title | Path |
966
966
  |:---|:---|:---|
@@ -976,6 +976,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
976
976
  | `adr-spec.json` | Architecture Decision Record | [`core/contracts/schemas/adr-spec.json`](./core/contracts/schemas/adr-spec.json) |
977
977
  | `agent-card.json` | A2A Agent Card | [`core/contracts/schemas/agent-card.json`](./core/contracts/schemas/agent-card.json) |
978
978
  | `agent-eval-report.json` | Agent Evaluation Report | [`core/contracts/schemas/agent-eval-report.json`](./core/contracts/schemas/agent-eval-report.json) |
979
+ | `agent-skills-discovery.json` | agentskills.io Discovery Manifest Schema | [`core/contracts/schemas/agent-skills-discovery.json`](./core/contracts/schemas/agent-skills-discovery.json) |
979
980
  | `agent-trace-span.json` | Agent Trace Span | [`core/contracts/schemas/agent-trace-span.json`](./core/contracts/schemas/agent-trace-span.json) |
980
981
  | `ai-risk-register.json` | AI Risk Register | [`core/contracts/schemas/ai-risk-register.json`](./core/contracts/schemas/ai-risk-register.json) |
981
982
  | `amis-voucher-contract.json` | AMIS Accounting Voucher Contract | [`core/contracts/schemas/amis-voucher-contract.json`](./core/contracts/schemas/amis-voucher-contract.json) |
@@ -985,6 +986,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
985
986
  | `aws-infra-spec.json` | AWS Infrastructure Specification | [`core/contracts/schemas/aws-infra-spec.json`](./core/contracts/schemas/aws-infra-spec.json) |
986
987
  | `code-review-finding.json` | Code Review Finding | [`core/contracts/schemas/code-review-finding.json`](./core/contracts/schemas/code-review-finding.json) |
987
988
  | `compact-working-state.json` | Compact Working State Specification | [`core/contracts/schemas/compact-working-state.json`](./core/contracts/schemas/compact-working-state.json) |
989
+ | `compliance-report.json` | Agent Discovery & Readiness Compliance Report | [`core/contracts/schemas/compliance-report.json`](./core/contracts/schemas/compliance-report.json) |
988
990
  | `content-audit-report.json` | Content Audit Report | [`core/contracts/schemas/content-audit-report.json`](./core/contracts/schemas/content-audit-report.json) |
989
991
  | `content-handoff.json` | Content Handoff | [`core/contracts/schemas/content-handoff.json`](./core/contracts/schemas/content-handoff.json) |
990
992
  | `coordination-plan.json` | Coordination Plan | [`core/contracts/schemas/coordination-plan.json`](./core/contracts/schemas/coordination-plan.json) |
@@ -1002,6 +1004,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
1002
1004
  | `learning-handoff.json` | Learning Handoff | [`core/contracts/schemas/learning-handoff.json`](./core/contracts/schemas/learning-handoff.json) |
1003
1005
  | `legal-compliance-review.json` | Vietnam Legal Compliance Review | [`core/contracts/schemas/legal-compliance-review.json`](./core/contracts/schemas/legal-compliance-review.json) |
1004
1006
  | `legal-opinion-contract.json` | Vietnam Legal Opinion Contract | [`core/contracts/schemas/legal-opinion-contract.json`](./core/contracts/schemas/legal-opinion-contract.json) |
1007
+ | `mcp-server-card.json` | Model Context Protocol (MCP) Server Card | [`core/contracts/schemas/mcp-server-card.json`](./core/contracts/schemas/mcp-server-card.json) |
1005
1008
  | `memory-audit-report.json` | Memory Audit Report | [`core/contracts/schemas/memory-audit-report.json`](./core/contracts/schemas/memory-audit-report.json) |
1006
1009
  | `mmo-campaign-spec.json` | MMO Campaign Specification | [`core/contracts/schemas/mmo-campaign-spec.json`](./core/contracts/schemas/mmo-campaign-spec.json) |
1007
1010
  | `mmo-roi-report.json` | MMO Campaign ROI Report | [`core/contracts/schemas/mmo-roi-report.json`](./core/contracts/schemas/mmo-roi-report.json) |
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Agent Skills — Engineering & Multi-Agent Pack
2
2
 
3
- **Version 5.7.2** · Portable engineering standards, principal-level agent roles, modular skills, structured data contracts, and end-to-end workflows for AI coding assistants and autonomous multi-agent swarms.
3
+ **Version 5.8.0** · Portable engineering standards, principal-level agent roles, modular skills, structured data contracts, and end-to-end workflows for AI coding assistants and autonomous multi-agent swarms.
4
4
 
5
- > **Catalog**: **39 Roles** · **183 Skills** (168 Core + 15 Overlays) · **25 Workflows** · **60 JSON Schemas** · **17 Team Packs** · **21 Overlays**
5
+ > **Catalog**: **39 Roles** · **183 Skills** (169 Core + 14 Overlays) · **25 Workflows** · **63 JSON Schemas** · **17 Team Packs** · **21 Overlays**
6
6
  > **Navigation**: [Master Index (`INDEX.md`)](INDEX.md) · [Machine Registry (`role-skill-index.json`)](core/a2a/.well-known/role-skill-index.json) · [Contributing Guide](CONTRIBUTING.md) · [Changelog](CHANGELOG.md)
7
7
 
8
8
  ---
@@ -12,7 +12,7 @@
12
12
  Modern AI-assisted engineering shifts from ad-hoc prompting to **Context Engineering**, **PromptOps**, and **Autonomous Multi-Agent Swarms**:
13
13
 
14
14
  - **Strict Role & Skill Boundaries**: 39 specialized roles with enforced Primary/Supporting Skill Toolboxes, architectural `*-LOCK` guardrails, and dedicated review checklists.
15
- - **Contract-First Handoffs (A2A 1.0)**: Native Agent-to-Agent (JSON-RPC 2.0 / SSE) discovery and handoffs validated against 60 JSON Schema (Draft 2020-12) contracts.
15
+ - **Contract-First Handoffs (A2A 1.0)**: Native Agent-to-Agent (JSON-RPC 2.0 / SSE) discovery and handoffs validated against 63 JSON Schema (Draft 2020-12) contracts.
16
16
  - **Fail-Closed Policy Governance**: Machine-readable action boundaries (`core/policies/action-boundaries.yaml`), data classification, and OWASP ASI01–ASI10 guardrails.
17
17
  - **Portable Core + Modular Overlays**: Keep `core/` 100% stack- and brand-agnostic while layering project- or domain-specific rules via `overlays/` and `packs/`.
18
18
 
@@ -59,20 +59,20 @@ git submodule add <repo-url> agent-skills
59
59
  |---|---|---|
60
60
  | [`core/rules/`](core/rules/README.md) | Always-on engineering rules, code standards, and commit/release safety gates | [Rules Guide](core/rules/README.md) |
61
61
  | [`core/roles/`](core/roles/README.md) | 39 principal-level role definitions and 39 dedicated review checklists | [Roles Catalog](core/roles/README.md) |
62
- | [`core/skills/`](core/skills/README.md) | 168 portable core skills organized across 22 engineering & domain categories | [Skills Inventory](core/skills/README.md) |
62
+ | [`core/skills/`](core/skills/README.md) | 169 portable core skills organized across 22 engineering & domain categories | [Skills Inventory](core/skills/README.md) |
63
63
  | [`core/workflows/`](core/workflows/README.md) | 25 multi-step, role-tagged standard operating procedures | [Workflows Index](core/workflows/README.md) |
64
- | [`core/contracts/`](core/contracts/README.md) | 60 JSON Schema (Draft 2020-12) specifications for structured agent outputs | [Contracts Catalog](core/contracts/README.md) |
64
+ | [`core/contracts/`](core/contracts/README.md) | 63 JSON Schema (Draft 2020-12) specifications for structured agent outputs | [Contracts Catalog](core/contracts/README.md) |
65
65
  | [`core/policies/`](core/policies/README.md) | Zero-trust action boundaries, data classification, and execution sandbox specs | [Policies Guide](core/policies/README.md) |
66
66
  | [`core/a2a/`](core/a2a/README.md) | A2A 1.0 JSON-RPC/SSE protocol specs, `.well-known` discovery, and 39 Agent Cards | [A2A Architecture](core/a2a/README.md) |
67
67
  | [`core/prompts/`](core/prompts/README.md) | Golden prompt evaluation suites and PromptOps lifecycle assets | [PromptOps Guide](core/prompts/README.md) |
68
- | [`overlays/`](overlays/README.md) | 21 optional stack, project, and domain extensions (15 overlay skills) | [Overlays Index](overlays/README.md) |
68
+ | [`overlays/`](overlays/README.md) | 21 optional stack, project, and domain extensions (14 overlay skills) | [Overlays Index](overlays/README.md) |
69
69
  | [`packs/`](packs/README.md) | 17 ready-to-deploy team manifests combining `core/` with targeted `overlays/` | [Team Packs](packs/README.md) |
70
70
 
71
71
  ---
72
72
 
73
73
  ## Core Catalog Overview
74
74
 
75
- ### 1. Skills by Domain (183 Total: 168 Core + 15 Overlays)
75
+ ### 1. Skills by Domain (183 Total: 169 Core + 14 Overlays)
76
76
 
77
77
  Full searchable inventory: [`core/skills/README.md`](core/skills/README.md)
78
78
 
@@ -80,7 +80,7 @@ Full searchable inventory: [`core/skills/README.md`](core/skills/README.md)
80
80
  |---|---|
81
81
  | **Agent & AI Systems** | **`agent`** (24), **`ai`** (1), **`ai-agent`** (3) — A2A 1.0 protocol, graph orchestration, context compaction, semantic memory, MCP server architecture, vLLM v1 inference (`deploy-vllm-inference`) |
82
82
  | **Software Engineering** | **`foundation`** (22), **`backend`** (8), **`frontend`** (16), **`mobile`** (4), **`repo-ops`** (5) — API endpoints, auth, Postgres optimization, UI components, design systems, systematic debugging, code/service review |
83
- | **Cloud & Platform** | **`platform`** (18), **`security-data`** (10) — AWS OpenTofu/Crossplane (`aws-infrastructure`), EKS Karpenter (`deploy-aws-eks-workloads`), Cloudflare Workers/DO, GPU FinOps, LLM gateway, OWASP ASI security audits |
83
+ | **Cloud & Platform** | **`platform`** (18), **`security-data`** (11) — AWS OpenTofu/Crossplane (`aws-infrastructure`), EKS Karpenter (`deploy-aws-eks-workloads`), Cloudflare Workers/DO, GPU FinOps, LLM gateway, OWASP ASI security audits |
84
84
  | **Product, Business & QA** | **`product`** (4), **`business`** (3), **`meetings-analysis`** (5) — RICE/WSJF roadmaps, SaaS metrics, BABOK requirements elicitation, story mapping, 6-round panel reviews |
85
85
  | **Specialized Verticals** | **`gamedev`** (20), **`commerce`** (6), **`content`** (6), **`seo`** (2), **`mmo`** (8), **`legal-compliance`** (3), **`education`** (5), **`document`** (4), **`documentation`** (3) |
86
86
 
@@ -112,14 +112,14 @@ Full overlay documentation: [`overlays/README.md`](overlays/README.md)
112
112
  Run the automated validation suite after modifying rules, roles, skills, workflows, schemas, or overlays:
113
113
 
114
114
  ```bash
115
- # Run all 18 core pack validators (rules, skills, roles, workflows, packs, overlays, A2A, schemas, policies, indexes)
115
+ # Run all 21 core pack validators (rules, skills, roles, workflows, packs, overlays, A2A, schemas, policies, indexes, discovery)
116
116
  python3 core/scripts/validate-all.py
117
117
 
118
118
  # Regenerate A2A Agent Cards and Master Index after role or version updates
119
119
  python3 core/scripts/generate-a2a-registry.py
120
120
  python3 core/scripts/generate-index.py --check
121
121
 
122
- # Run the empirical pytest challenge suite (700 tests)
122
+ # Run the empirical pytest challenge suite
123
123
  pytest tests/ -q
124
124
  ```
125
125
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.7.2
1
+ 5.8.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use this adapter when running **Google Antigravity IDE v2.5.5+** (or Antigravity-compatible IDEs) with the agent-skills engineering pack.
4
4
 
5
- > **Master Discovery**: **39 Roles** | **183 Skills** (168 Core + 15 Overlays) | **25 Workflows** | **60 Data Contract Schemas**
5
+ > **Master Discovery**: **39 Roles** | **183 Skills** (169 Core + 14 Overlays) | **25 Workflows** | **63 Data Contract Schemas**
6
6
  > **Antigravity Registry**: [`adapters/antigravity/role-skill-index.json`](role-skill-index.json)
7
7
  > **Master Index & Router**: [`../../INDEX.md`](../../INDEX.md)
8
8
  > **Authoritative SOTA Audit**: [`../../reports/role-skill-matrix-sota-audit-2026-2027.md`](../../reports/role-skill-matrix-sota-audit-2026-2027.md)
@@ -47,7 +47,9 @@ python3 core/scripts/generate-a2a-registry.py
47
47
  When operating under this pack in Antigravity:
48
48
 
49
49
  1. Read `core/rules/code.md` before state-changing actions.
50
- 2. Read `core/roles/role-standard.md` then `core/roles/<role>.md` when a role is assigned.
50
+ 2. **Two-Tier JIT Skill Discovery:**
51
+ - **Tier 1 (Startup):** Load assigned `core/roles/<role>.md` and the passive index `adapters/antigravity/INDEX_TIER1.json` (< 5 KB footprint). Do NOT pre-load all skills.
52
+ - **Tier 2 (JIT Execution):** When a specific sub-task or delegation requires a skill, retrieve `core/skills/<cat>/<skill>/SKILL.md` on demand, verify its SHA-256 digest against `INDEX_TIER1.json`, and inject into working state.
51
53
  3. Emit **structured JSON contracts** from `core/contracts/schemas/` for handoffs — not prose-only.
52
54
  4. Use **A2A full lifecycle** via `agent-a2a-protocol` and `agent-delegation`:
53
55
  - Submit: `a2a-task.json` (`state: submitted`)
@@ -57,6 +59,86 @@ When operating under this pack in Antigravity:
57
59
  5. Discover workers via `core/a2a/.well-known/agent-registry.json` and per-role `*.agent-card.json`.
58
60
  6. Obey `core/policies/action-boundaries.yaml` and `data-classification.yaml`.
59
61
 
62
+ ## Two-Tier JIT Skill Discovery Architecture
63
+
64
+ To prevent context window bloat and eliminate prompt degradation (mitigating OWASP ASI06 / Lost-in-the-Middle), the Antigravity adapter implements **Two-Tier Just-In-Time (JIT) Skill Discovery**:
65
+
66
+ ```
67
+ ┌─────────────────────────────────────────────────────────────────────────────┐
68
+ │ TWO-TIER JIT DISCOVERY ENGINE ARCHITECTURE │
69
+ ├─────────────────────────────────────────────────────────────────────────────┤
70
+ │ │
71
+ │ [Turn 1: Agent Initialization] │
72
+ │ │ │
73
+ │ ▼ │
74
+ │ ┌─────────────────────────┐ ┌──────────────────────────────────────┐ │
75
+ │ │ Role Specification │ + │ Tier 1 Discovery Index │ │
76
+ │ │ `core/roles/<role>.md` │ │ `adapters/antigravity/INDEX_TIER1` │ │
77
+ │ │ (~3.5 KB / ~800 tok) │ │ (< 5 KB / ~1,200 tok) │ │
78
+ │ └─────────────────────────┘ └──────────────────┬───────────────────┘ │
79
+ │ │ │
80
+ │ [Turn 2+: Dynamic Capability Resolution] │ │
81
+ │ │ │ │
82
+ │ ▼ ▼ │
83
+ │ ┌──────────────────────────────────────────────────────────────────────┐ │
84
+ │ │ Hybrid Candidate Ranking: │ │
85
+ │ │ S_match = 0.45 * BM25(Q, S_desc) + 0.55 * DenseSim(E(Q), E(S_desc)) │ │
86
+ │ └──────────────────────────────────┬───────────────────────────────────┘ │
87
+ │ │ │
88
+ │ ┌─────────────┴─────────────┐ │
89
+ │ │ S_match >= 0.72 Threshold │ │
90
+ │ └──────┬─────────────┬──────┘ │
91
+ │ │ YES │ NO (< 0.72) │
92
+ │ │ ▼ │
93
+ │ │ [Trigger Human-in-the-Loop Clarify] │
94
+ │ ▼ │
95
+ │ ┌──────────────────────────────────────────────────────────────────────┐ │
96
+ │ │ SHA-256 Digest Verification (OWASP AST02 Supply Chain Check): │ │
97
+ │ │ Digest(SKILL.md) == Tier1_Digest │ │
98
+ │ └──────────────────────────────────┬───────────────────────────────────┘ │
99
+ │ │ PASS │
100
+ │ ▼ │
101
+ │ ┌──────────────────────────────────────────────────────────────────────┐ │
102
+ │ │ Tier 2 JIT Payload Injection: │ │
103
+ │ │ Inject verified SKILL.md into context Layer 4 (Working State). │ │
104
+ │ │ Evict/compact on subtask completion. │ │
105
+ │ └──────────────────────────────────────────────────────────────────────┘ │
106
+ └─────────────────────────────────────────────────────────────────────────────┘
107
+ ```
108
+
109
+ ### 1. Token Budget Enforcement (< 5 KB Tier 1 Footprint)
110
+ * **Legacy Monolithic Overhead:** Loading all 183 skills and full indices upfront consumes $> 274,000$ tokens, exceeding initial KV-cache thresholds and degrading reasoning performance.
111
+ * **Tier 1 Budget Constraint:** The Tier 1 manifest (`adapters/antigravity/INDEX_TIER1.json`) generated by `core/scripts/generate-tier1-index.py` is strictly constrained to $< 5\text{ KB}$ (average $\approx 40$ tokens per skill, $\le 7,500$ tokens for the entire catalog), achieving a **97.3% reduction** in startup overhead.
112
+ * **Entry Schema in Tier 1 Index:**
113
+ ```json
114
+ {
115
+ "name": "integrate-payment-gateway",
116
+ "desc": "Integrate or extend payment gateway (Stripe, VNPay, PayPal, Momo) checkout and webhooks.",
117
+ "url": "core/skills/commerce/integrate-payment-gateway/SKILL.md",
118
+ "digest": "sha256:7b2e...c814"
119
+ }
120
+ ```
121
+
122
+ ### 2. Hybrid Candidate Ranking Formula
123
+ When resolving unmapped task requirements to skills, the candidate ranking engine scores skills using:
124
+
125
+ $$S_{\text{match}}(Q, S) = 0.45 \cdot \text{BM25}(Q, S_{\text{desc}}) + 0.55 \cdot \text{DenseSim}(E(Q), E(S_{\text{desc}}))$$
126
+
127
+ Where:
128
+ * **$\text{BM25}(Q, S_{\text{desc}})$:** Normalized Okapi BM25 score measuring exact keyword and token overlap between the task query $Q$ and skill description $S_{\text{desc}}$.
129
+ * **$\text{DenseSim}(E(Q), E(S_{\text{desc}}))$:** Cosine similarity $\frac{E(Q) \cdot E(S_{\text{desc}})}{\|E(Q)\| \|E(S_{\text{desc}})\|}$ between semantic vector embeddings.
130
+ * **Confidence Threshold Gate ($\tau = 0.72$):**
131
+ $$\text{Action} = \begin{cases} \text{Load Candidate Skill } S & \text{if } \max(S_{\text{match}}) \ge 0.72 \\ \text{Trigger HITL Clarification} & \text{if } \max(S_{\text{match}}) < 0.72 \end{cases}$$
132
+ * **Role Boundary Invariant & Prohibited Skills Exclusion:** A candidate skill $S$ is eligible for direct JIT activation only if $S$ belongs to the assigned role's `Primary Skills` or `Supporting Skills`, or if an explicit A2A task delegation is initiated. Candidate skills listed under the active role's `### Prohibited Skills` are disqualified unconditionally regardless of $S_{\text{match}}$.
133
+
134
+ ### 3. Progressive Disclosure 6-Step Lifecycle
135
+ 1. **Query Ingestion:** Parse user prompt and extract intent, explicit `@skill` handles, and required capabilities.
136
+ 2. **Tier 1 Candidate Evaluation:** Match query against `INDEX_TIER1.json` using the hybrid formula $S_{\text{match}}$.
137
+ 3. **Threshold Gate:** If $\max(S_{\text{match}}) \ge 0.72$, select the top candidate ($k \le 3$). If $< 0.72$, halt and ask user for clarification.
138
+ 4. **Cryptographic Verification (AST02):** Compute SHA-256 hash of target `SKILL.md` and verify exact match with `digest` in `INDEX_TIER1.json`.
139
+ 5. **Tier 2 Context Loading:** Load the verified `SKILL.md` body into session memory Layer 4.
140
+ 6. **Task Eviction:** Upon task completion, evict skill body and emit structured output contract (`a2a-artifact.json`).
141
+
60
142
  ## A2A Config Block
61
143
 
62
144
  Antigravity projects may declare:
@@ -116,6 +198,9 @@ Guardrails to match the rest of the pack.
116
198
  - **Antigravity agent picker bypasses the role standard**: a user assigns a role via `@backend-developer` but the role file is not read. **Mitigation:** the Mandatory Behavior block forces the agent to read `core/roles/role-standard.md` then `core/roles/<role>.md` before any tool call; the adapter cannot weaken this.
117
199
  - **JSON-RPC method missing from the A2A envelope**: an `agent.invoke` request omits `a2a-jsonrpc-envelope.json` fields. **Mitigation:** the Wire Deployments table maps every method to a pack schema; reject requests that do not validate against the schema.
118
200
  - **A2A config block references a non-existent registry path**: a project's `a2a-config.yaml` points to a registry that does not exist. **Mitigation:** the `registry` field is schema-validated against the deployed agent registry; surface a clear error when the path is unreachable.
201
+ - **Tier 1 skill digest mismatch (OWASP AST02)**: a `SKILL.md` file has been tampered with or modified locally without regenerating the Tier 1 index. **Mitigation:** verify SHA-256 hash before loading; reject modified skill and execute `python3 core/scripts/generate-tier1-index.py`.
202
+ - **Skill match below confidence threshold ($\tau < 0.72$)**: ambiguous prompt triggers low semantic match score. **Mitigation:** fail closed; do not hallucinate an unrelated skill; request user confirmation.
203
+ - **Tier 1 index footprint exceeds 5 KB budget**: additions to descriptions bloat the Tier 1 index. **Mitigation:** `generate-tier1-index.py` enforces $< 100$ character sanitized descriptions; CI validator enforces `< 5 KB` ceiling.
119
204
 
120
205
  ### Output Contracts
121
206
 
@@ -133,4 +218,4 @@ When this adapter is used as part of a coordinated multi-role delivery, emit:
133
218
  - **ASI07 Inter-Agent Communication**: every cross-agent payload is untrusted from the receiving endpoint's perspective; require schema validation at every boundary.
134
219
  - **ASI10 Rogue Agents**: detect instruction drift across turns; if a sub-agent starts returning outputs outside its declared toolbox, halt the workflow and require human confirmation.
135
220
 
136
- Last updated: 2026-09-01
221
+ Last updated: 2026-11-06