AI规则技能库

AI Rules Skills 是一个面向团队的技能与规则共享仓库,通过 ai-rules-mcp 将 React、TypeScript、测试、安全、Java Spring 等 AI 开发指南同步到 Cursor、Claude Code 等 IDE,帮助统一团队的 AI 辅助编程规范。

  • by Greg-Klein
  • 本地部署
  • 更新于
在 GitHub 查看 Greg-Klein/ai-rules-skills

使用说明

AI Rules Skills

Skills and rules repository for the ai-rules-mcp MCP server. The server clones this repo and serves skills to Cursor, Claude Code, Cline, Windsurf, etc., so the whole team gets the same AI guidance.

Usage

  1. Point the ai-rules-mcp server at this repo via SKILLS_REPO_URL.
  2. The server syncs this repo on an interval and exposes get_rules, list_skills, and get_skill to your IDE.

Structure

skills/
├── react/SKILL.md
├── typescript/SKILL.md
├── testing/SKILL.md
├── security/SKILL.md
└── java-spring/SKILL.md

Each skill lives in skills/<name>/SKILL.md with YAML frontmatter:

---
name: react
description: React best practices
patterns:
  - "**/*.tsx"
  - "**/*.jsx"
tags: [react, frontend]
priority: high # high | normal | low
always: false # true = always included
---
  • patterns: globs that trigger this skill for a given file path.
  • tags: for manual activation or filtering.
  • always: if true, the skill is always returned by get_rules.

Adding a skill

  1. Create skills/<skill-name>/SKILL.md with the frontmatter above and Markdown content.
  2. Push to the branch the MCP server follows (default master). It will sync on the next interval.