con un clic
init
初始化工作区规则文件 (.abu/ABU.md),分析项目结构生成项目规则模板
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
初始化工作区规则文件 (.abu/ABU.md),分析项目结构生成项目规则模板
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
生成可交互的 HTML 可视化组件 — 算法动画、数据图表、概念演示、交互式教程等。当用户需要交互式演示、动画解释、数据探索、UI 原型等场景时触发,直接输出 html 代码块,前端会在安全沙箱中渲染为可交互组件。
生成精美的纯 HTML+CSS 信息图 — 时间线、流程、对比分析、SWOT、金字塔、漏斗、数据卡片、组织架构等。无需外部依赖,在沙箱 iframe 中渲染。适合将结构化信息以海报级视觉效果呈现。
用 Mermaid 语法生成可视化图表 — 流程图、架构图、序列图、ER 图、甘特图、状态图、思维导图、饼图等结构化图表。当用户要求画图/画架构图/画流程图等结构化可视化需求时触发,直接输出 mermaid 代码块,前端会自动转换为 HTML 并在沙箱 iframe 中渲染。
用 SVG 生成精美的架构图、流程图、时序图、层级图、对比图等结构化图表。直接输出 ```html 代码块(内含 SVG),前端在沙箱 iframe 中渲染。效果比 Mermaid 更美观、布局更灵活。
复盘当前对话——回顾任务过程、总结经验教训、主动沉淀可复用的 skill。当用户要求"复盘"、"反思"、"总结一下刚才"、"有什么值得记住的"时使用。
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
| name | init |
| description | 初始化工作区规则文件 (.abu/ABU.md),分析项目结构生成项目规则模板 |
| user-invocable | true |
| context | inline |
| allowed-tools | ["read_file","write_file","list_directory","run_command","find_files"] |
| tags | ["init","初始化","rules","规则"] |
你现在帮用户初始化项目规则文件(.abu/ABU.md)。
.abu/ABU.md 是否已存在。
扫描以下关键文件(按存在情况读取):
package.json — Node.js 项目配置README.md — 项目说明tsconfig.json — TypeScript 配置pyproject.toml / setup.py / requirements.txt — Python 项目Cargo.toml — Rust 项目go.mod — Go 项目pom.xml / build.gradle — Java 项目.eslintrc* / .prettierrc* — 代码风格配置Makefile / Dockerfile / docker-compose.yml — 构建部署.gitignore — 版本控制配置同时用 list_directory 查看项目顶层目录结构。
根据分析结果,生成 .abu/ABU.md 文件,内容包括:
# 项目规则
## 项目概述
<!-- 基于 README 和 package.json 等提取 -->
## 技术栈
<!-- 基于配置文件分析 -->
## 编码规范
<!-- 基于 eslint/prettier 等配置提取,或给出合理默认值 -->
## 构建与运行
<!-- 基于 package.json scripts 或 Makefile 等提取 -->
## 项目结构
<!-- 基于目录结构概述 -->
## 其他约定
<!-- 根据项目特点补充 -->
创建 .abu/rules/ 目录(如果不存在)。
完成后告知用户:
.abu/ABU.md,可以手动编辑补充.abu/rules/ 下创建模块化规则文件(如 coding-style.md、api-conventions.md).abu/ABU.md 和 .abu/rules/ 提交到 git.abu/MEMORY.md 加入 .gitignore(AI 记忆不应入库)