news 2026/6/22 7:20:45

和AI一起搞事情#:边剥龙虾边做个中医技能来起号几

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
和AI一起搞事情#:边剥龙虾边做个中医技能来起号几

1. 核心概念

在 Antigravity 中,技能系统分为两层:

Skills (全局库):实际的代码、脚本和指南,存储在系统级目录(如 ~/.gemini/antigravity/skills)。它们是“能力”的本体。

Workflows (项目级):存储在项目根目录的 .agent/workflows 中。它们是“遥控器”,定义了如何在当前项目中调用全局的 Skills。

这种分离设计确保了你的项目代码库保持轻量,同时又能复用强大的全局能力。

2. 全局安装 Skills

2.1 准备目录

首先,确保全局 Skills 目录存在。Antigravity 通常使用以下路径:

mkdir -p ~/.gemini/antigravity/skills

cd ~/.gemini/antigravity/skills

2.2 安装 Anthropic 官方 Skills

这是基础技能库,包含前端设计、文档编写、测试等通用能力。

git clone https://github.com/anthropics/skills.git

# 此时目录结构应为 ~/.gemini/antigravity/skills/skills/...

2.3 安装 UI-UX-Pro-Max

这是进阶的前端设计技能,包含智能配色、排版和反模式检查。

git clone https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git

# 此时目录结构应为 ~/.gemini/antigravity/skills/ui-ux-pro-max-skill/...

全部安装完成后,目录如下:

image

3. 项目级配置 (Workflows)

要在某个项目中使用这些技能,你需要创建 Workflow 文件。建议将 .agent/ 添加到 .gitignore 中,以免污染代码库。

3.1 配置 UI-UX-Pro-Max

在项目根目录下创建 .agent/workflows/ui-ux-pro-max.md:

---

description: Generate a professional design system using UI UX Pro Max skill.

---

# UI UX Pro Max Workflow

This workflow uses the globally installed `ui-ux-pro-max-skill` to generate a comprehensive design system and implementation guidelines.

## 1. Identify Requirements

- **Query**: What is the user trying to build? (e.g., "SaaS landing page", "Crypto dashboard").

- **Stack**: What is the tech stack? (Default: `vue` or `html-tailwind` based on project).

## 2. Generate Design System

- Run the search script to generate the design system.

- **Command**:

```bash

python3 /Users/weiz/.gemini/antigravity/skills/ui-ux-pro-max-skill/src/ui-ux-pro-max/scripts/search.py "[User Query]" --design-system --format markdown --stack vue

```

_(Replace `[User Query]` with the actual request)_

## 3. Apply Design

- Read the output from the script.

- Use the generated colors, typography, and patterns to implement the user's request.

- **Critical**: Follow the "Anti-patterns" section to avoid generic AI mistakes.

3.2 配置通用 Skills (如 Frontend Design)

创建 .agent/workflows/frontend-design.md:

---

description: Apply the frontend-design skill to create distinctive interfaces.

---

# Frontend Design Workflow

This workflow guides the creation of distinctive, production-grade frontend interfaces, avoiding generic "AI aesthetics".

## 1. Analyze Requirements

- **Context**: Understand the user's request (component, page, app).

- **Goal**: Identify the problem to solve and the target audience.

## 2. Adopt Design Persona

- **Tone**: Choose a bold aesthetic (e.g., Brutalist, Glassmorphism, Neobrutalism, Minimalist Luxury).

- **Differentiation**: What makes this design unforgettable?

- **Constraint**: Respect technical constraints (Vue/VitePress in this project).

## 3. Aesthetic Guidelines (The "Pro Max" Standard)

- **Typography**: Use distinctive font weights and tracking. Avoid generic system font stacks if possible, or style them uniquely.

- **Color**: Use cohesive, bold palettes. High contrast or subtle sophisticated gradients.

- **Motion**:

- Use `transition-all duration-xxx` for smooth state changes.

- Add entrance animations (e.g., `animate-fade-in`).

- Micro-interactions on hover/active states.

- **Composition**:

- Use generous negative space.

- Break the grid where appropriate.

- Use depth (shadows, layers, blur).

- **Details**:

- Add texture (noise, gradients).

- Custom cursors or scrollbars if appropriate.

- Glassmorphism (`backdrop-blur`, `bg-opacity`).

## 4. Implementation Steps

1. **Scaffold**: Create the file structure.

2. **Style**: Apply Tailwind classes for the chosen aesthetic.

3. **Interact**: Add Vue logic for state and animations.

4. **Refine**: Review against the "Generic AI" trap. Is it too boring? Add more "juice".

## 5. Review Checklist

- [ ] Is the typography distinct?

- [ ] Are there micro-interactions?

- [ ] Is the layout responsive?

- [ ] Does it feel "Premium"?

3.3 配置技能列表查询

创建 .agent/workflows/list-skills.md:

---

description: List all available agent skills installed in the global workspace.

---

# List Available Skills (Global)

1. **Check Global Skills Directory**:

- List directories in `/Users/weiz/.gemini/antigravity/skills/skills/skills`.

2. **Display Skills**:

- Show the list of available skills to the user.

- Provide a brief description if possible (by reading `SKILL.md`).

// turbo 3. **Run Command**:

`bash ls /Users/weiz/.gemini/antigravity/skills/skills/skills`

4. 如何在项目中使用

配置完成后,你可以通过 Slash Commands 或 自然语言 来调用这些能力。

场景 A:设计一个高大上的落地页

指令:

/ui-ux-pro-max 为我的 SaaS 产品设计一个落地页,风格要科技感强

Agent 行为:

Agent 会自动运行全局的 Python 脚本。

脚本分析需求,生成一套包含配色(如深空蓝+霓虹绿)、排版(如 Inter + JetBrains Mono)和布局建议的设计系统。

Agent 读取这些建议,并直接编写 Vue/React 代码实现页面。

场景 B:查看有哪些能力可用

指令:

/list-skills

Agent 行为:

列出所有已安装的全局技能包。

场景 C:日常开发辅助

指令:

使用 frontend-design skill 帮我优化这个按钮的交互

Agent 行为:

Agent 会参考 frontend-design 工作流中的“反平庸”指南。

它不会只写一个简单的 :hover,而是可能会添加 transform: scale(1.05)、光影流光效果或磁吸效果,确保符合“Pro Max”标准。

5. 总结

通过这种 全局存储 + 本地引用 的方式,你可以:

节省空间:不需要在每个项目中重复下载几百 MB 的技能文件。

保持整洁:项目代码库中只有轻量级的 Workflow 配置文件。

能力复用:一次安装,所有项目受益。杜绦燃平

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/22 7:09:18

区块链技术与网络领域应用

区块链技术与网络领域应用一、什么是区块链技术?1. 概念2. 核心特点(必背)二、区块链在网络中的应用(重点)1. **网络安全增强**2. **去中心化网络架构**3. **物联网设备安全管理**4. **网络身份认证与访问控制**5. **网…

作者头像 李华
网站建设 2026/6/22 7:17:50

低查重黑科技!AI教材生成工具,快速编写高质量教材不再愁!

教材修改与AI工具的引入 教材的初步草稿终于完成,但在修改和优化的过程中,真是让人感到“疲惫不堪”!通读全文,寻找逻辑上的漏洞和知识点的失误,确实耗费时间。调整一个章节的框架,往往会影响到后面的多个…

作者头像 李华
网站建设 2026/4/13 19:45:27

golang如何实现数据库备份恢复_golang数据库备份恢复实现方法

用 os/exec 调用 mysqldump 和 mysql 是最稳的方案:Go 原生无逻辑备份能力,硬写 SQL 难覆盖视图、存储过程等边界;调系统命令最可靠,但需确保部署机已安装对应客户端并注意版本兼容性、密码安全、参数完整性、文件命名规范&#x…

作者头像 李华
网站建设 2026/4/13 19:45:25

低查重AI教材写作神器,一键生成高质量教材,教学更轻松!

许多教材编写者常常面临一个尴尬的局面:即使他们精心打磨了文字内容,如果缺少配套资源,教学效果也会大打折扣。课后练习的题型设计需要具有层次感,但往往缺少创新的灵感;教学课件想要直观易懂,却因技术水平…

作者头像 李华
网站建设 2026/4/13 19:44:36

第1章:初始Linux系统——第15节:重点命令复习①

目录 一、文件与目录基本操作 1. pwd:显示当前工作目录 2. cd:切换目录 3. ls:列出目录内容 4. mkdir:创建目录 5. rmdir:删除空目录 6. touch:创建空文件 / 修改时间戳 7. cp:复制文件…

作者头像 李华
网站建设 2026/4/13 19:43:23

Stata也可以绘制词云图了!wordcloud2 命令实战

温馨提示:若页面不能正常显示数学公式和代码,请阅读原文获得更好的阅读体验。 作者: 连小白 (连享会) 邮箱: lianxhcn163.com Title: Stata也可以绘制词云图了!wordcloud2 命令实战Keywords: Stata, 词云图, wordcloud…

作者头像 李华