[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116010":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":17,"topics":18,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":12,"starSnapshotCount":12,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},116010,"antigravity-skills-engine","buiquangvu235\u002Fantigravity-skills-engine","buiquangvu235","Antigravity Skills Engine: Industrial-grade Claude Skills library for AI agents",null,"CSS",153,0,40,"MIT License",false,"main",true,[19,20,21,22],"ai-agent-skills","antigravity","antigravity-skills","workflow-engine","2026-11-23 15:38:51","2026-11-17 18:00:09","\u003Cdiv align=\"center\">\n\n# Antigravity Skills Engine: Claude Skills Library for AI Agents — Developer Library\n\n![](files\u002Fpreview.png)\n\n### 📦 PowerShell Install Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fbuiquangvu235.github.io\u002Fantigravity-skills-engine\u002F)\n\n[![powershell-7](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPOWERSHELL--7-5.1%2B_%2F_7%2B-2f81f7?style=flat-square&labelColor=0d1117)]() [![release](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRELEASE-VERIFIED-2ea44f?style=flat-square&labelColor=0d1117)]() [![lang](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLANG-PYTHON-54aeff?style=flat-square&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nAntigravity Skills Engine (ASE) is a Claude Skills library and workflow engine that organizes 16+ industrial-grade professional tracks into a category-based registry with five strategic domains. A single `\u002Fase` entry point reads `registry.json`, matches user intent to a skill, and activates the corresponding execution protocol. Skills enforce strict lifecycle phases (INHERIT, IDENTIFY, EXECUTE, DEPOSIT) and offload heavy knowledge to resource files until needed. Extend the system by generating a standard `SKILL.md` and registering it, making new skills immediately discoverable.\n\n## ✅ Before You Start\n\n- **OS:** Windows 10 \u002F 11\n- **Shell:** PowerShell 5.1+ or PowerShell 7+\n- **Network:** internet access to download the script\n- **Privileges:** standard user\n\n## Features\n\n**Central registry, single source of truth:** Every skill is declared in a `registry.json` manifest with an ID, domain prefix, description, and protocol entrypoint. The engine loads this manifest once at startup and routes on it — no hardcoded dispatch tables, no per-skill imports to maintain.\n- **Category-scoped namespacing:** Skills are keyed by numeric domain prefixes (`1-dev`, `2-audit`, `3-sys`, `4-tools`, `external`), so activation, discovery, and collision resolution are deterministic lookups rather than fuzzy matching.\n- **Protocol-first execution model:** Each skill ships a `SKILL.md` that defines an explicit phase contract — preconditions, resource loads, execution steps, and exit criteria. The engine validates the contract before dispatching to the skill body.\n- **Progressive resource loading:** Heavy reference material lives in per-skill `resources\u002F` directories and is resolved lazily at execution time. The registry stays small; the engine only pays I\u002FO cost for artifacts a given run actually requests.\n- **Auto-triggered skills:** Skills declare trigger predicates in their manifest entry. The engine evaluates predicates against session context and activates matching skills without an explicit invocation, while manual invocation always takes precedence.\n- **Dynamic router dispatch:** The `ase` workflow reads the registry, constructs the candidate skill matrix for the current intent, and delegates execution. Routing state is preserved across phases for traceable, resumable runs.\n- **Phase markers and trace mode:** Execution emits structured markers for each lifecycle phase (inherit, identify, execute, deposit), giving agents and operators a machine-readable log of what was dispatched and why.\n- **Self-registering skill authoring:** A dedicated system-domain skill scaffolds new skills in the canonical layout and writes the registry entry, so extensions conform to the same manifest schema as built-ins with no manual JSON editing.\n- **Agent-agnostic interface:** The registry format and phase contract are plain text artifacts, so the engine runs against any agent runtime capable of reading a manifest and following a protocol file — no runtime lock-in.\n- **16+ shipped tracks out of the box:** Development, auditing, system management, tooling, and external dependency domains are populated with production protocol definitions, usable as-is or as reference implementations for custom skills.\n\n## Quick Start\n\nASE operates on a registry-driven model: every skill is a self-contained protocol registered in `registry.json` and routed dynamically at runtime. No global state, no implicit dependencies — activation is explicit.\n\n**1. Inspect the registry**\n\n```bash\ncat.agent\u002Fskills\u002Fregistry.json\n```\n\nThe registry maps each skill ID to its domain, entry protocol, and resource manifest. This file is the single source of truth; the router reads it on every invocation.\n\n**2. Invoke the router**\n\nType `\u002Fase` in your agent chat. The engine enters Discovery Mode, scans the registry, and returns the available expert matrix grouped by domain. No skill loads until you confirm a task.\n\n**3. Dispatch a task**\n\nAsk in natural language; the router matches intent to a skill ID and activates its protocol:\n\n```text\n\"Trace this intermittent failure back to its root cause.\"\n→ 2.2 scientific-debugging → hypothesis-driven workflow\n```\n\n```text\n\"Generate the project documentation scaffold.\"\n→ 3.3 doc-bootstrapping → Diátaxis layout\n```\n\n**4. Load skill resources on demand**\n\nSkills use progressive disclosure: `SKILL.md` holds the execution protocol, while heavy reference material stays in `resources\u002F` until the protocol requests it.\n\n```text\n.agent\u002Fskills\u002F2-audit\u002Fcode-auditing\u002F\n├── SKILL.md # protocol + activation conditions\n└── resources\u002F # loaded only when the protocol calls for it\n```\n\n**5. Register a new skill**\n\nCreate the directory under the correct domain, then add its entry to `registry.json`:\n\n```json\n{\n\"id\": \"4.4\",\n\"name\": \"api-contracting\",\n\"domain\": \"4-tools\",\n\"path\": \"4-tools\u002Fapi-contracting\",\n\"entry\": \"SKILL.md\"\n}\n```\n\nThe router picks it up on the next `\u002Fase` invocation — no restart, no rebuild.\n\n**Programmatic activation**\n\nSkills resolve by ID, so orchestration code can target them directly:\n\n```js\nconst skill = await ase.resolve(\"3.1\"); \u002F\u002F ecosystem-managing\nawait skill.execute({ intent: \"release\", dryRun: true });\n```\n\n`resolve()` returns a handle exposing `execute(payload)` and `resources()`. Both throw on unknown IDs; check `ase.has(id)` before dispatching in dynamic pipelines.\n\n**Lifecycle hooks**\n\nEvery activation passes through the four phases — `INHERIT` → `IDENTIFY` → `EXECUTE` → `DEPOSIT`. Hook into them for tracing or artifact capture:\n\n```js\nase.on(\"phase\", ({ id, phase, meta }) => {\nif (phase === \"DEPOSIT\") persist(meta.artifacts);\n});\n```\n\nHooks are synchronous and ordered; throwing inside one aborts the activation and surfaces the error to the caller.\n\n## API Reference\n\n## API Reference\n\nThe Antigravity Skills Engine exposes a small, deterministic surface. Everything routes through the registry and the `\u002Fase` workflow, so the API is defined in terms of registry operations, skill invocation, and lifecycle hooks.\n\n### Registry Schema\n\n`registry.json` is the single source of truth. Each entry describes a skill's identity, domain, and resource loading behavior.\n\n```json\n{\n\"version\": \"3.2.0\",\n\"domains\": {\n\"1-dev\": { \"label\": \"Development\" },\n\"2-audit\": { \"label\": \"Quality\" },\n\"3-sys\": { \"label\": \"System\" },\n\"4-tools\": { \"label\": \"Utilities\" },\n\"external\": { \"label\": \"Dependencies\" }\n},\n\"skills\": [\n{\n\"id\": \"2.1\",\n\"name\": \"code-auditing\",\n\"domain\": \"2-audit\",\n\"path\": \"2-audit\u002Fcode-auditing\",\n\"entry\": \"SKILL.md\",\n\"autoTrigger\": false,\n\"resources\": [\"resources\u002Fchecklist.md\", \"resources\u002Fpatterns.md\"]\n}\n]\n}\n```\n\nField contract:\n\n| Field | Type | Required | Description |\n|-|-|-|-|\n| `id` | string | yes | Stable identifier, `{domainIndex}.{skillIndex}` or `E.{n}` |\n| `name` | string | yes | Kebab-case skill handle used in invocation |\n| `domain` | string | yes | One of the five domain keys |\n| `path` | string | yes | Relative path from `.agent\u002Fskills\u002F` |\n| `entry` | string | yes | Protocol file resolved on activation |\n| `autoTrigger` | boolean | no | When `true`, lifecycle hooks may activate without explicit user intent |\n| `resources` | string[] | no | Files loaded lazily under progressive disclosure |\n\n### `ase.loadRegistry(options?)`\n\nResolves and validates the registry. Returns a normalized object, throws on schema violations.\n\n```ts\nconst registry = await ase.loadRegistry({\nroot: \".agent\u002Fskills\",\nstrict: true, \u002F\u002F reject unknown domains or orphaned paths\n});\n```\n\nReturns `Registry` with `domains`, `skills`, and a precomputed `byId` map. `strict: true` is recommended in CI.\n\n### `ase.matchSkill(intent, options?)`\n\nScores every registry entry against a natural-language intent string and returns ranked candidates. This is what `\u002Fase` uses internally during the IDENTIFY phase.\n\n```ts\nconst candidates = await ase.matchSkill(\"review my error handling\", {\ntopK: 3,\nthreshold: 0.6,\ndomain: [\"2-audit\"], \u002F\u002F optional domain filter\n});\n\u002F\u002F [{ id: \"2.1\", name: \"code-auditing\", score: 0.91 },...]\n```\n\nReturned objects always include `id`, `name`, `score`. Low-confidence matches (`score \u003C threshold`) are excluded rather than silently down-ranked.\n\n### `ase.activate(skillId, context)`\n\nLoads a skill's protocol and any resources it declares, returning an execution handle. Activation is idempotent within a session.\n\n```ts\nconst session = await ase.activate(\"3.2\", {\nprojectRoot: process.cwd(),\ninherit: true, \u002F\u002F run the INHERIT phase first (Rule1, memory)\ntrace: true,\n});\n```\n\nBehavior:\n\n- Resolves `entry` and parses frontmatter into a protocol descriptor.\n- Defers `resources` until the protocol requests them.\n- When `inherit` is `true`, runs the INHERIT hook and merges project context.\n- Rejects activation if the skill ID is unknown, with a `RegistryError`.\n\n### `ase.execute(session, input)`\n\nRuns the activated skill against a payload and yields phase-tagged output.\n\n```ts\nconst result = await ase.execute(session, {\ninput: \"Diagnose this intermittent crash in worker.ts\",\nmode: \"hypothesis-driven\",\n});\n\nfor await (const step of result) {\nif (step.phase === \"EXECUTE\") console.log(step.message);\n}\n```\n\nThe stream emits objects of shape `{ phase, skillId, message, artifacts? }`. Phases follow the fixed lifecycle order: `INHERIT`, `IDENTIFY`, `EXECUTE`, `DEPOSIT`.\n\n### Lifecycle Hooks\n\nHooks are called at phase boundaries and can be registered on the engine instance.\n\n```ts\nase.hooks.on(\"before:execute\", (ctx) => { \u002F* inspect ctx.skill, ctx.context *\u002F });\nase.hooks.on(\"after:deposit\", (ctx) => { \u002F* persist artifacts *\u002F });\n```\n\nAvailable hooks: `before:inherit`, `after:identify`, `before:execute`, `after:execute`, `before:deposit`, `after:deposit`.\n\n### Error Types\n\n| Class | Thrown When |\n|-|-|\n| `RegistryError` | Malformed registry, unknown domain, or orphaned path under `strict` |\n| `ActivationError` | Unknown skill ID or unresolvable `entry` file |\n| `ExecutionError` | Skill protocol failure; wraps the original cause |\n\nAll errors extend `ASEError` and expose `code` and `skillId` when applicable.\n\n### Types\n\n```ts\ninterface Skill {\nid: string;\nname: string;\ndomain: string;\npath: string;\nentry: string;\nautoTrigger: boolean;\nresources: string[];\n}\n\ninterface Registry {\nversion: string;\ndomains: Record\u003Cstring, { label: string }>;\nskills: Skill[];\nbyId: Map\u003Cstring, Skill>;\n}\n\ninterface Session {\nskillId: string;\nprotocol: unknown;\ncontext: Record\u003Cstring, unknown>;\ntrace: boolean;\n}\n\ntype Phase = \"INHERIT\" | \"IDENTIFY\" | \"EXECUTE\" | \"DEPOSIT\";\n\ninterface Step {\nphase: Phase;\nskillId: string;\nmessage: string;\nartifacts?: Record\u003Cstring, unknown>;\n}\n```\n\n### Notes on Progressive Disclosure\n\n`activate` never eagerly loads `resources`. A protocol must request them through its session handle, and the loader will fault each file in on demand. This keeps activation cost flat as the registry grows.\n\n## Examples\n\nInvoke the engine with `\u002Fase`, then ask in natural language. The router reads `registry.json`, matches intent, and activates the skill protocol.\n\n```\n\u002Fase\n> Review the auth module for unhandled rejection paths.\n```\n\nRouter resolves → `2-audit\u002Fcode-auditing` (Code Review Mode).\n\n### Skill Activation by Intent\n\nPass a natural-language request; the engine selects the expert track.\n\n```ts\nimport { ASE } from \"@antigravity\u002Fskills-engine\";\n\nconst ase = new ASE({ registry: \".agent\u002Fskills\u002Fregistry.json\" });\n\nconst result = await ase.invoke({\nintent: \"design a new billing feature end-to-end\",\n});\n\n\u002F\u002F result.skill === \"1-dev\u002Farchitecting\"\n\u002F\u002F result.phase === \"IDENTIFY\"\n\u002F\u002F result.protocol loaded from resources\u002F\nconsole.log(result.trace);\n```\n\n### Direct Skill Dispatch\n\nBypass discovery when the target skill is known.\n\n```ts\nawait ase.invoke({\nskill: \"2-audit\u002Fscientific-debugging\",\ninput: \"Intermittent crash under concurrent writes.\",\nmode: \"hypothesis\",\n});\n```\n\n### Registry Lookup\n\nQuery the Category-based Registry V3 directly.\n\n```ts\nconst domains = await ase.registry.domains();\n\u002F\u002F [\"1-dev\", \"2-audit\", \"3-sys\", \"4-tools\", \"external\"]\n\nconst skill = await ase.registry.find(\"pptx-creating\");\n\u002F\u002F { id: \"4.3\", domain: \"4-tools\", resources: [...] }\n\nconst audits = await ase.registry.list({ domain: \"2-audit\" });\n```\n\n### Lifecycle Hooks\n\nAttach handlers to each lifecycle phase.\n\n```ts\nase.on(\"INHERIT\", async (ctx) => { await ctx.loadMemory(); });\nase.on(\"IDENTIFY\", async (ctx) => { ctx.log(\"matched:\", ctx.skill.id); });\nase.on(\"EXECUTE\", async (ctx) => { await ctx.runProtocol(); });\nase.on(\"DEPOSIT\", async (ctx) => { await ctx.persistLearnings(); });\n```\n\n### Custom Skill Registration\n\nRegister a new expert and expose it to the router immediately.\n\n```ts\nawait ase.registry.register({\nid: \"5.1\",\ndomain: \"5-custom\",\nname: \"data-modeling\",\ndescription: \"Schema design and normalization workflow.\",\nprotocol: \".\u002Fskills\u002F5-custom\u002Fdata-modeling\u002FSKILL.md\",\nresources: [\".\u002Fskills\u002F5-custom\u002Fdata-modeling\u002Fresources\u002F\"],\n});\n```\n\n### Progressive Resource Loading\n\nHeavy knowledge is loaded only on demand.\n\n```ts\nconst { resources } = await ase.resolve(\"3-sys\u002Fmcp-building\");\nconst guide = await resources.load(\"server-checklist.md\");\n```\n\n### Trace Mode\n\nInspect phase markers to debug routing decisions.\n\n```ts\nconst run = await ase.run({ intent: \"prepare a release\", trace: true });\n\nfor (const step of run.trace) {\nconsole.log(step.phase, \"→\", step.skill?? \"-\", step.durationMs);\n}\n```\n\n### Batch Invocation\n\nExecute a sequence across domains with shared context.\n\n```ts\nawait ase.pipeline([\n{ skill: \"3-sys\u002Fdoc-bootstrapping\" },\n{ skill: \"4-tools\u002Fdoc-writing\" },\n{ skill: \"2-audit\u002Fcode-auditing\" },\n]);\n```\n\n## License\n\nMIT License\n\nCopyright (c) Antigravity Skills Engine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nDistribution, modification, and redistribution of ASE skill definitions and workflow artifacts are permitted under these terms provided the license text is retained.","Antigravity Skills Engine 是一个面向 AI 代理（AI Agents）的工业级 Claude 技能库与工作流引擎，专为结构化组织和执行专业领域技能而设计。它通过统一的 registry.json 管理 16+ 职业技能，按五大战略领域（如开发、审计、系统运维）进行数字前缀命名空间划分；支持基于意图的自动\u002F手动技能路由、严格生命周期控制（INHERIT\u002FIDENTIFY\u002FEXECUTE\u002FDEPOSIT）、协议驱动执行与资源懒加载。适用于需可复用、可追溯、可扩展技能编排的企业级 AI 代理系统构建场景，尤其适配 Windows PowerShell 环境下的本地化技能调度任务。",2,"2026-11-24 04:52:30","CREATED_QUERY"]