🎯 技能系统

技能(Skill)是将常用工作流封装成可复用模块的系统。NeoWeb AI 内置 18 个预置技能,覆盖开发、运维、写作等场景,同时支持完全自定义。

什么是技能?

技能本质上是一段预设的系统提示(System Prompt)+ 工具权限组合。激活技能后,AI 会以特定的专业角色和工作方式与你交互,无需每次都重复说明背景。

例如,激活「代码审查」技能后,AI 会自动以资深代码审查员的视角分析你的代码,关注安全性、性能和可维护性。

预置技能(18 个)

🔍 代码审查

专业代码审查,关注安全漏洞、性能瓶颈、代码规范和可维护性。

📝 文档生成

自动为代码生成 API 文档、README、注释,支持多种格式。

🐛 Debug 助手

系统化排查 Bug,分析错误日志,定位问题根因并给出修复方案。

🚀 部署助手

引导完成应用部署流程,包括环境配置、服务启动和健康检查。

📊 日志分析

解析系统日志、应用日志,识别异常模式,生成分析报告。

🛡️ 安全审计

检查系统安全配置,发现潜在漏洞,提供加固建议。

✍️ 技术写作

撰写技术文章、博客、教程,语言清晰、结构合理。

🔄 代码重构

识别代码异味,提出重构方案,提升代码质量和可读性。

🌐 研究助手

网络信息收集、整理和分析,生成结构化研究报告。

💾 数据库助手

SQL 优化、数据库设计、查询调试和性能分析。

🐳 容器管理

Docker / Kubernetes 配置、部署、排障,容器化最佳实践。

📈 性能优化

分析应用性能瓶颈,给出前端、后端、数据库层面的优化建议。

🧪 测试工程师

编写单元测试、集成测试,设计测试用例,提升代码覆盖率。

🎨 前端开发

HTML/CSS/JS 开发辅助,响应式设计,框架使用指导。

🔧 运维助手

Linux 运维、服务器管理、自动化脚本编写,DevOps 实践。

🌍 翻译助手

技术文档翻译,中英文互译,保留专业术语准确性。

📋 项目规划

项目拆解、任务排期、风险识别,生成结构化项目计划。

🤖 AI 助理

通用智能助理,处理日常任务、信息查询和工作辅助。

如何使用技能

  1. 在 NeoWeb AI 界面中,点击左侧的「技能」面板(🎯 图标)
  2. 浏览预置技能列表,点击任意技能卡片查看详情
  3. 点击「激活」按钮,技能即被应用到当前对话
  4. 新建对话或点击「停用」即可切换回普通模式

自定义技能

NeoWeb AI 支持创建完全自定义的技能,满足个性化的工作场景需求。

创建新技能

进入 技能 → 新建技能,填写以下信息:

json
{
  "name": "我的代码助手",
  "description": "专注于 Python 和 FastAPI 开发的助手",
  "icon": "🐍",
  "systemPrompt": "你是一位 Python 专家,精通 FastAPI、SQLAlchemy 和异步编程。...",
  "tools": ["fs_read", "fs_write", "shell_exec", "python_exec"],
  "temperature": 0.3
}

System Prompt 编写建议

  • 明确角色定位:「你是一位...专家」
  • 说明专业范围:具体技术栈、擅长领域
  • 设定工作方式:回答风格、详细程度
  • 可加入背景信息:项目背景、团队规范

技能 API

技能也可通过 REST API 管理,详情请参考 API 参考文档

bash
# 列出所有技能
GET /api/skills

# 删除技能
DELETE /api/skills/:id

🎯 Skill System

Skills package common workflows into reusable modules. NeoWeb AI includes 18 preset skills covering development, operations, writing, and more — fully customizable.

What Is a Skill?

A skill is essentially a preset system prompt + tool permission combination. Once activated, AI interacts with you in a specific professional role and work style.

For example, activating "Code Review" makes AI analyze your code from a senior reviewer's perspective, focusing on security, performance, and maintainability.

18 Preset Skills

🔍Code Review

Professional code review focusing on security vulnerabilities, performance bottlenecks, code standards, and maintainability.

📝Doc Generator

Automatically generate API docs, README, and code comments. Supports multiple formats.

🐛Debug Assistant

Systematically troubleshoot bugs, analyze error logs, pinpoint root causes, and provide fixes.

🚀Deploy Assistant

Guide through the deployment process including env setup, service launch, and health checks.

📊Log Analyzer

Parse system and application logs, identify anomaly patterns, generate analysis reports.

🛡️Security Audit

Check system security config, find potential vulnerabilities, provide hardening recommendations.

✍️Tech Writer

Write technical articles, blogs, and tutorials with clear language and logical structure.

🔄Refactor

Identify code smells, propose refactoring plans, improve code quality and readability.

🌐Research Assistant

Collect, organize, and analyze web information, generate structured research reports.

💾DB Assistant

SQL optimization, database design, query debugging, and performance analysis.

🐳Container Mgmt

Docker / Kubernetes config, deployment, troubleshooting, and container best practices.

📈Perf Optimizer

Analyze app performance bottlenecks, provide frontend, backend, and DB optimization advice.

🧪Test Engineer

Write unit and integration tests, design test cases, improve code coverage.

🎨Frontend Dev

HTML/CSS/JS development, responsive design, framework usage guidance.

🔧Ops Assistant

Linux admin, server management, automation scripting, DevOps practices.

🌍Translator

Technical document translation, Chinese-English bilingual, preserving accurate terminology.

📋Project Planner

Break down projects, schedule tasks, identify risks, generate structured project plans.

🤖AI Assistant

General-purpose intelligent assistant for daily tasks, information lookup, and work support.

How to Use Skills

  1. Click the "Skills" panel (🎯 icon) on the left side of the NeoWeb AI interface
  2. Browse the preset skills list, click any skill card to view details
  3. Click "Activate" — the skill is applied to the current conversation
  4. Start a new conversation or click "Deactivate" to switch back to normal mode

Custom Skills

NeoWeb AI supports creating fully custom skills to meet your specific work needs.

Create a New Skill

Go to Skills → New Skill and fill in:

json
{
  "name": "My Code Assistant",
  "description": "Focused on Python and FastAPI development",
  "icon": "🐍",
  "systemPrompt": "You are a Python expert, proficient in FastAPI, SQLAlchemy and async programming...",
  "tools": ["fs_read", "fs_write", "shell_exec", "python_exec"],
  "temperature": 0.3
}

Skills API

Skills can also be managed via the REST API. See the API Reference for details.

bash
# List all skills
GET /api/skills

# Delete a skill
DELETE /api/skills/:id