Hướng dẫn AI Coding Agents tuân thủ SunLint Standards
# Cài đặt sunlint (nếu chưa có)
npm install -g @sun-asterisk/sunlint
# Khởi tạo AI Agent Instructions (chọn tool phù hợp)
cd /path/to/your-project
# Cho GitHub Copilot
sunlint init -t github-copilot -l typescript
# Cho Cursor AI
sunlint init -t cursor -l typescript
# Cho Claude
sunlint init -t claude -l typescript
# Cho Google Antigravity
sunlint init -t antigravity -l typescript
# Cho C# Project (GitHub Copilot)
sunlint init -t github-copilot -l csharp
# Cho Python/PySpark Project
sunlint init -l python
# hoặc: sunlint initLệnh sunlint init -t <tool> sẽ tự động:
your-project/
├── AGENTS.md # Main instructions file
│
├── .github/skills/ # -t github-copilot
│ └── sunlint-code-quality/
│
├── .cursor/skills/ # -t cursor
│ └── sunlint-code-quality/
│
├── .claude/skills/ # -t claude
│ └── sunlint-code-quality/
│
└── .agent/skills/ # -t antigravity
└── sunlint-code-quality/
├── SKILL.md # Chi tiết 65 rules
├── AGENTS.md # Quick reference cho AI
└── rules/ # Individual rule files
├── S017-parameterized-queries.md
├── C029-catch-log-root-cause.md
└── ...GitHub Copilot sẽ nhận diện SunLint rules khi bạn reference file:
AGENTS.md - Bảng kiểm tuân thủ (AGENTS.md).github/skills/ - Hướng dẫn chi tiết (.github/skills/)TypeScript
TypeScript/JavaScript cho React, Vue, Angular, Node.js
C#
C# cho .NET, ASP.NET Core, Unity
Java
Java cho Spring Boot, Jakarta EE, Android
Python
Python cho Django, Flask, FastAPI, PySpark
Go
Go cho microservices, cloud-native apps
PHP
PHP cho Laravel, Symfony, WordPress
Ruby
Ruby cho Ruby on Rails, Sinatra
Kotlin
Kotlin cho Android, Spring Boot, Ktor
Dart / Flutter
Dart/Flutter cho cross-platform mobile
Swift
Swift cho iOS, macOS, watchOS, tvOS
-l typescript, -l csharp, -l java, -l python, -l go, -l php, -l ruby, -l kotlin, -l dart, -l swift# Khởi tạo với tool mặc định (antigravity)
sunlint init
# Chọn AI tool cụ thể với -t/--tool
sunlint init -t github-copilot # .github/skills/
sunlint init -t cursor # .cursor/skills/
sunlint init -t claude # .claude/skills/
sunlint init -t antigravity # .agent/skills/
# Khởi tạo cho một project cụ thể
sunlint init ./path/to/project -t cursor
# Ghi đè nếu đã tồn tại
sunlint init -t claude --force
# Chọn ngôn ngữ mục tiêu (mặc định: typescript, csharp, python)
sunlint init -l csharp
sunlint init -t cursor -l typescript
# Xem help với danh sách tools
sunlint init --helpQuestions? Open an issue on GitHub