Agent SkillsDraculabo/AntigravityManager › antigravity-manager

antigravity-manager

GitHub

Antigravity Manager开发者指南,涵盖基于Electron、React和NestJS的混合桌面应用架构、目录结构及开发工作流。指导理解ORPC通信、SQLite数据存储及安全规范,辅助项目开发与维护。

.agent/skills/project_overview/SKILL.md Draculabo/AntigravityManager

Trigger Scenarios

了解Antigravity Manager项目架构 查询项目开发工作流与命令 查找代码目录结构与核心概念

Install

npx skills add Draculabo/AntigravityManager --skill antigravity-manager -g -y
More Options

Non-standard path

npx skills add https://github.com/Draculabo/AntigravityManager/tree/main/.agent/skills/project_overview -g -y

Use without installing

npx skills use Draculabo/AntigravityManager@antigravity-manager

指定 Agent (Claude Code)

npx skills add Draculabo/AntigravityManager --skill antigravity-manager -a claude-code -g -y

安装 repo 全部 skill

npx skills add Draculabo/AntigravityManager --all -g -y

预览 repo 内 skill

npx skills add Draculabo/AntigravityManager --list

SKILL.md

Frontmatter
{
    "name": "antigravity-manager",
    "description": "Comprehensive guide to Antigravity Manager architecture, workflows, and development. Use this to understand how to work on the project."
}

Antigravity Manager Developer Guide

🏗️ Architecture Overview

Antigravity Manager is a hybrid Desktop Application built with Electron, React, and NestJS. It follows a modular architecture where the frontend (Renderer) communicates with the backend (Main) via type-safe IPC (ORPC).

graph TD
    User[User Interface] -->|React/Vite| Renderer[Renderer Process]
    Renderer -->|ORPC Client| IPC[IPC Layer]
    IPC -->|ORPC Router| Main[Main Process]
    Main -->|Bootstraps| Server[NestJS Server]
    Main -->|Calls| Services[Service Layer]
    Services -->|Read/Write| DB[(SQLite Database)]
    Services -->|HTTP| Cloud[Cloud APIs (Google/Anthropic)]

Key Technologies

  • Frontend: React 19, TailwindCSS v4, TanStack Router, TanStack Query.
  • Backend: Electron (Main), NestJS (Core Logic), Better-SQLite3 (Data).
  • Communication: ORPC (Type-safe IPC wrapper around Electron IPC).
  • Build: Electron Forge + Vite.

📂 Directory Structure

  • src/main.ts: Electron Main Process entry point.
  • src/preload.ts: Bridge between Main and Renderer.
  • src/renderer.tsx: React App entry point.
  • src/components/: Reusable React UI components (Radix UI based).
  • src/ipc/: IPC Routers and Handlers (Domain logic).
    • router.ts: Main ORPC router definition.
    • account/, cloud/, database/: Domain-specific handlers.
  • src/server/: NestJS application modules (proxies/gateways).
  • src/services/: Core business logic (framework agnostic).
    • GoogleAPIService.ts: Gemini/Cloud interactions.
    • AutoSwitchService.ts: Account rotation logic.
  • src/routes/: Frontend routing definitions (File-based).

🚀 Development Workflow

Prerequisites

  • Node.js 18+
  • npm (Project uses package-lock.json)

Common Commands

  • Start Dev Server: npm start
  • Lint Code: npm run lint
  • Unit Test: npm run test:unit
  • E2E Test: npm run test:e2e
  • Build Production: npm run make

🧠 Core Concepts

IPC Communication (ORPC)

The project uses orpc for type-safe communication.

  • Define: Create a router in src/ipc/router.ts with Zod schemas.
  • Implement: Add logic in handlers (e.g., src/ipc/account/handler.ts).
  • Call: Use the generated client in React components.

Database Access

Data is stored in a local SQLite file.

  • Use Better-SQLite3 for direct access.
  • Logic should be encapsulated in src/services or src/ipc.

Account Management

  • Accounts are added via OAuth (Google/Claude).
  • GoogleAPIService handles token exchange and refreshing.
  • AutoSwitchService monitors usage and switches active accounts automatically.

⚠️ Critical Rules

  1. Type Safety: strict TypeScript usage; Zod for runtime validation.
  2. Components: Use src/components/ui (Radix primitives) for consistency.
  3. Async: Handle all IPC/DB calls asynchronously with try/catch.
  4. Security: Never commit secrets. API keys are user-provided or encrypted locally.

Version History

  • 4f636a6 Current 2026-08-20 10:03

Same Skill Collection

.agent/skills/openspec-apply-change/SKILL.md
.agent/skills/openspec-archive-change/SKILL.md
.agent/skills/openspec-bulk-archive-change/SKILL.md
.agent/skills/openspec-continue-change/SKILL.md
.agent/skills/openspec-explore/SKILL.md
.agent/skills/openspec-ff-change/SKILL.md
.agent/skills/openspec-new-change/SKILL.md
.agent/skills/openspec-onboard/SKILL.md
.agent/skills/openspec-sync-specs/SKILL.md
.agent/skills/openspec-verify-change/SKILL.md
.agent/skills/ui-ux-pro-max/SKILL.md
.agent/skills/vercel-composition-patterns/SKILL.md
.agent/skills/vercel-react-best-practices/SKILL.md
.agent/skills/web-design-guidelines/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.claude/skills/openspec-apply-change/SKILL.md
.claude/skills/openspec-archive-change/SKILL.md
.claude/skills/openspec-bulk-archive-change/SKILL.md
.claude/skills/openspec-continue-change/SKILL.md
.claude/skills/openspec-explore/SKILL.md
.claude/skills/openspec-ff-change/SKILL.md
.claude/skills/openspec-new-change/SKILL.md
.claude/skills/openspec-onboard/SKILL.md
.claude/skills/openspec-sync-specs/SKILL.md
.claude/skills/openspec-verify-change/SKILL.md
.codex/skills/openspec-apply-change/SKILL.md
.codex/skills/openspec-archive-change/SKILL.md
.codex/skills/openspec-bulk-archive-change/SKILL.md
.codex/skills/openspec-continue-change/SKILL.md
.codex/skills/openspec-explore/SKILL.md
.codex/skills/openspec-ff-change/SKILL.md
.codex/skills/openspec-new-change/SKILL.md
.codex/skills/openspec-onboard/SKILL.md
.codex/skills/openspec-sync-specs/SKILL.md
.codex/skills/openspec-verify-change/SKILL.md
.codex/skills/ui-ux-pro-max/SKILL.md

Metadata

Files
0
Version
4f636a6
Hash
7424ac87
Indexed
2026-08-20 10:03

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 02:52
浙ICP备14020137号-1 $방문자$