thienbun-ai-dev-toolkit
v1.0.4
Published
Personal AI dev toolkit — curated skills, workflows, and rules for Antigravity, Cursor, Claude Code
Maintainers
Readme
AI Dev Toolkit
Personal toolkit for AI-assisted development. Combines curated skills, workflows, and rules for Antigravity, Cursor, Claude Code, and GitHub Copilot.
Table of Contents
- First-Time Setup
- What's Automatic vs Manual
- Repository Structure
- How the 3-Tier System Works
- Skills Reference
- Workflows Reference
- Cross-IDE Support
- Skill Discovery
- Updating
- Adding to a New Project
- Team Onboarding
First-Time Setup
Prerequisites
- macOS with Zsh
- Antigravity IDE (primary)
- Git installed
Step 1: Clone and make executable
cd ~/Documents
git clone <your-repo-url> ai-dev-toolkit
chmod +x ai-dev-toolkit/scripts/setup-antigravity.shStep 2: Run setup from inside your project
cd ~/Documents/Zigvy/hr-forte/hr-leave-module
~/Documents/ai-dev-toolkit/scripts/setup-antigravity.shThis one command does:
| Step | What happens | Auto? |
| ---- | ----------------------------------------------------------------------- | ------------ |
| 1 | Backs up ~/.gemini/GEMINI.md → GEMINI.md.backup | ✅ Automatic |
| 2 | Writes all 42 rules (Sections I–XI) to ~/.gemini/GEMINI.md | ✅ Automatic |
| 3 | Copies skills to ~/.agents/skills/ + symlinks to Antigravity | ✅ Automatic |
| 4 | Copies workflows to ~/.gemini/antigravity/workflows/ and <project>/ | ✅ Automatic |
| 5 | Checks for bloated skills (>50 files = warning) | ✅ Automatic |
| 6 | Creates .cursor/skills/ and .claude/skills/ symlinks | ✅ Automatic |
Step 3: Verify in Antigravity
- Open Antigravity → Customizations → Rules tab
- You should see Sections I–XI (42 rules)
- Open Antigravity → Customizations → Workflows tab
- You should see: plan, review, debug, verify
Step 4: (Optional) Cross-IDE config
If you also use Cursor, Claude Code, or Copilot:
# For Cursor — copy .cursorrules to project root
cp ~/Documents/ai-dev-toolkit/cross-ide/.cursorrules ~/Documents/Zigvy/hr-forte/hr-leave-module/.cursorrules
# For Claude Code — copy CLAUDE.md to project root
cp ~/Documents/ai-dev-toolkit/cross-ide/CLAUDE.md ~/Documents/Zigvy/hr-forte/hr-leave-module/CLAUDE.md
# For GitHub Copilot / Codex — copy AGENTS.md to project root
cp ~/Documents/ai-dev-toolkit/cross-ide/AGENTS.md ~/Documents/Zigvy/hr-forte/hr-leave-module/AGENTS.mdNote: Edit these files after copying to add project-specific context (architecture, DB, key patterns).
What's Automatic vs Manual
✅ Automatic (AI does this without prompting)
| What | How it works | Source file |
| -------------------------- | --------------------------------------------------- | ------------------------------------ |
| TypeScript rules | Enforced via auto-loaded typescript-mastery skill | skills/typescript-mastery/SKILL.md |
| No any, strict types | Enforced via typescript-mastery skill | skills/typescript-mastery/SKILL.md |
| Proposal-only mode | AI proposes first, asks before editing | Section I in rules |
| Verify before done | AI re-reads checklist, runs tsc, reports status | Section X in rules |
| English output | All code, comments, docs in English | Section XI in rules |
| DDD skill | AI reads when task involves DDD patterns | skills/ddd-core-rules/SKILL.md |
| TS patterns | AI reads when writing TypeScript | skills/typescript-mastery/SKILL.md |
| Review checklist | AI reads when reviewing code | skills/code-review/SKILL.md |
| Git conventions | AI reads when making commits | skills/git-workflow/SKILL.md |
🔧 Manual (You trigger these)
| What | How to trigger | When to use |
| --------------------- | -------------------------------- | -------------------------------------------------- |
| Plan workflow | Type /plan in chat | Starting a new feature or complex task |
| Review workflow | Type /review in chat | Before creating a PR |
| Debug workflow | Type /debug in chat | Stuck on a bug |
| Verify workflow | Type /verify in chat | Before declaring task complete |
| Scan workflow | (Merged into /refresh-context) | Map project modules and generate docs |
| Refresh workflow | Type /refresh-context in chat | Setup AI context, detect tech stack, generate docs |
| Docs workflow | Type /docs in chat | Auto-document business decisions |
| Setup script | Run setup-antigravity.sh | New machine, new project, or after toolkit update |
| Cross-IDE configs | Copy files to project root | When using Cursor/Claude/Copilot |
🧠 Semi-Automatic (AI decides)
Skills are read only when relevant. The AI matches the description field in each SKILL.md against your current task:
- Working on DDD module? → AI reads
ddd-core-rules - Writing TypeScript? → AI reads
typescript-mastery - Reviewing code? → AI reads
code-review - Not related? → AI skips it (saves context)
Repository Structure
ai-dev-toolkit/
│
├── README.md ← This file
│
├── skills/ ← Global skills (copied to ~/.agents/skills/)
│ ├── ddd-core-rules/SKILL.md ← DDD best practices (Eric Evans, Fowler)
│ ├── typescript-mastery/SKILL.md ← TS patterns, type guards, generics
│ ├── code-review/SKILL.md ← 8-section review checklist
│ └── git-workflow/SKILL.md ← Conventional Commits, PR workflow
│
│ ├── develop/ ← (Optional) Project-specific workflows
│ ├── plan.md ← /plan — structured planning
│ ├── review.md ← /review — code review
│ ├── debug.md ← /debug — systematic debugging
│ ├── verify.md ← /verify — verification before done
│ ├── refresh-context.md ← /refresh-context — context setup & doc generation
│ └── docs.md ← /docs — auto-documentation
│
├── user-rules/
│ └── memory-rules.md ← All 42 rules (written to ~/.gemini/GEMINI.md)
│
├── cross-ide/ ← Templates for other AI IDEs
│ ├── CLAUDE.md ← Claude Code project config
│ ├── AGENTS.md ← GitHub Copilot / Codex config
│ └── .cursorrules ← Cursor IDE rules
│
├── references/
│ └── skill-discovery.md ← How to find and install new skills
│
├── plans/ ← Implementation plans archive
│ ├── plan-core.md
│ ├── plan-hr-leave-module.md
│ └── plan-hr-forte-mobile.md
│
└── scripts/
└── setup-antigravity.sh ← One-command setup scriptHow the 3-Tier System Works
┌─────────────────────────────────────────────────────────┐
│ Tier 1: RULES (Always Active) │
│ ~/.gemini/GEMINI.md │
│ Applied to EVERY conversation, EVERY project │
│ 42 rules: strict mode, TS, workflow, verify, English │
├─────────────────────────────────────────────────────────┤
│ Tier 2: SKILLS (Semi-Auto) │
│ ~/.agents/skills/*.SKILL.md │
│ AI reads when description matches current task │
│ DDD rules, TS mastery, code review, git workflow │
├─────────────────────────────────────────────────────────┤
│ Tier 3: WORKFLOWS (Manual) │
│ <project>/.agent/workflows/*.md │
│ Triggered by /command in chat │
│ /plan, /review, /debug, /verify │
└─────────────────────────────────────────────────────────┘Key insight: Put rules you want always enforced in Tier 1. Put detailed reference material in Tier 2 (skills). Put step-by-step processes in Tier 3 (workflows).
Skills Reference
ddd-core-rules
- When AI reads it: Working on DDD-structured modules
- Content: Aggregate rules, layer dependencies, tactical patterns, anti-patterns
- Sources: Eric Evans, Martin Fowler, nestjslatam/ddd
typescript-mastery
- When AI reads it: Writing or reviewing TypeScript code
- Content: Type design, discriminated unions, branded types, type guards, generics, RO-RO, pitfalls
- Naming conventions table included
code-review
- When AI reads it: Reviewing code (own or others')
- Content: 8-section checklist (type safety, architecture, performance, error handling, security, testing, docs)
- Severity levels: 🔴 Critical, 🟡 Warning, 🟢 Suggestion
git-workflow
- When AI reads it: Making commits, creating branches, preparing PRs
- Content: Conventional Commits format, branch naming, PR template, release flow diagram
Workflows Reference
| Command | Purpose | When to use |
| --------------- | ------------------------------------- | ----------------------------------- |
| /init-project | Initialize AI context for project | First-time setup, refresh context |
| /plan | Create structured plan with checklist | Starting new feature, 3+ step task |
| /review | Systematic code review | Before PR, after implementation |
| /debug | Step-by-step debugging | Stuck on a bug, unexpected behavior |
| /verify | Evidence-based completion check | Before declaring task done |
| /scan-modules | Scan and document project modules | Onboarding, architecture audit |
Cross-IDE Support
| IDE | Config file | How AI reads it | Template location |
| ------------------ | ------------------------------ | ------------------------------------ | ------------------------- |
| Antigravity | GEMINI.md + .agent/skills/ | Auto (rules always, skills by match) | Setup script handles this |
| Cursor | .cursorrules in project root | Auto reads on project open | cross-ide/.cursorrules |
| Claude Code | CLAUDE.md in project root | Auto reads on project open | cross-ide/CLAUDE.md |
| GitHub Copilot | AGENTS.md in project root | Auto reads for agent mode | cross-ide/AGENTS.md |
Important: After copying cross-IDE templates, edit them to add project-specific details (architecture, database, key patterns). The templates contain generic TypeScript rules only.
Skill Discovery
Find and install new skills
npx skills find <query> # Search by keyword
npx skills add <owner/repo> # Install from GitHubCurated catalogs
| Catalog | URL | | -------------------- | -------------------------------------------------------------------------- | | skills.sh | skills.sh | | Antigravity Awesome | GitHub | | Awesome Agent Skills | GitHub | | Awesome Cursorrules | GitHub |
See references/skill-discovery.md for detailed guide with evaluation criteria.
Updating
When you update this toolkit repo:
# 1. Update the toolkit
cd ~/Documents/ai-dev-toolkit
git pull # or edit files directly
# 2. Re-run setup in each project
cd ~/Documents/Zigvy/hr-forte/hr-leave-module
~/Documents/ai-dev-toolkit/scripts/setup-antigravity.shThe script is idempotent — safe to run multiple times. It will:
- Overwrite rules with the latest version (old version backed up)
- Overwrite skills (latest version)
- Overwrite workflows (latest version)
Adding to a New Project
cd ~/Documents/Zigvy/new-project
~/Documents/ai-dev-toolkit/scripts/setup-antigravity.shThat's it. The script creates .agent/workflows/ in the project and installs global skills + rules.
For cross-IDE support, also copy the config templates:
cp ~/Documents/ai-dev-toolkit/cross-ide/.cursorrules .
cp ~/Documents/ai-dev-toolkit/cross-ide/CLAUDE.md .
cp ~/Documents/ai-dev-toolkit/cross-ide/AGENTS.md .Team Onboarding
For a new team member:
- Clone the project → workflows in
.agent/workflows/are included - Run setup script → installs global rules + skills
- Verify → open Antigravity → Customizations → check Rules + Workflows tabs
- Done — AI now understands project context and follows all conventions
Note: User rules in
GEMINI.mdare personal (not committed to git). Each team member runs the setup script once on their machine.
