thachvd-kit 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/agents/backend-specialist.md +263 -0
- package/.agent/agents/code-archaeologist.md +106 -0
- package/.agent/agents/database-architect.md +226 -0
- package/.agent/agents/debugger.md +225 -0
- package/.agent/agents/devops-engineer.md +242 -0
- package/.agent/agents/documentation-writer.md +104 -0
- package/.agent/agents/explorer-agent.md +73 -0
- package/.agent/agents/frontend-specialist.md +593 -0
- package/.agent/agents/game-developer.md +162 -0
- package/.agent/agents/mobile-developer.md +377 -0
- package/.agent/agents/orchestrator.md +416 -0
- package/.agent/agents/penetration-tester.md +188 -0
- package/.agent/agents/performance-optimizer.md +187 -0
- package/.agent/agents/product-manager.md +112 -0
- package/.agent/agents/product-owner.md +95 -0
- package/.agent/agents/project-planner.md +406 -0
- package/.agent/agents/qa-automation-engineer.md +103 -0
- package/.agent/agents/security-auditor.md +170 -0
- package/.agent/agents/seo-specialist.md +111 -0
- package/.agent/agents/test-engineer.md +158 -0
- package/.agent/docs/architecture.md +22 -0
- package/.agent/docs/conventions.md +21 -0
- package/.agent/docs/project.md +40 -0
- package/.agent/docs/workflow.md +24 -0
- package/.agent/rules/GEMINI.md +45 -0
- package/.agent/skills/api-design/SKILL.md +156 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/desktop-design/SKILL.md +25 -0
- package/.agent/skills/dispatching-parallel-agents/SKILL.md +112 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/docker-patterns/SKILL.md +232 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/executing-plans/SKILL.md +61 -0
- package/.agent/skills/finishing-a-development-branch/SKILL.md +135 -0
- package/.agent/skills/frontend-design/SKILL.md +418 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/golang-patterns/SKILL.md +226 -0
- package/.agent/skills/golang-testing/SKILL.md +182 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/intelligent-routing/SKILL.md +335 -0
- package/.agent/skills/laravel-patterns/SKILL.md +224 -0
- package/.agent/skills/laravel-security/SKILL.md +171 -0
- package/.agent/skills/laravel-tdd/SKILL.md +149 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +286 -0
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/project-onboarding/SKILL.md +42 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/react-frontend/SKILL.md +25 -0
- package/.agent/skills/receiving-code-review/SKILL.md +120 -0
- package/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/.agent/skills/requesting-code-review/SKILL.md +67 -0
- package/.agent/skills/rust-pro/SKILL.md +176 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/subagent-driven-development/SKILL.md +76 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/using-git-worktrees/SKILL.md +122 -0
- package/.agent/skills/verification-before-completion/SKILL.md +99 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/skills/writing-skills/SKILL.md +110 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +81 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/LICENSE +21 -21
- package/README.md +37 -71
- package/agents/frontend-specialist.md +2 -2
- package/agents/mobile-developer.md +4 -4
- package/bin/cli.js +1239 -1326
- package/kit/PROMPT_RECIPE.md +30 -52
- package/kit/README.md +29 -33
- package/package.json +51 -51
- package/rules/GEMINI.md +43 -207
- package/skills/desktop-design/SKILL.md +25 -25
- package/skills/project-onboarding/SKILL.md +42 -62
- package/skills/react-frontend/SKILL.md +25 -25
- package/PROJECT_CONTEXT.template.md +0 -68
- package/kit/PROJECT_CONTEXT.template.md +0 -35
- package/scripts/init.py +0 -1047
package/kit/PROMPT_RECIPE.md
CHANGED
|
@@ -1,52 +1,30 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Use these
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
> 2. Propose a **Data Flow Diagram** or a sequence of operations.
|
|
32
|
-
> 3. Break down the task into small, manageable files: State/Store, Logic/Service, and UI/Component.
|
|
33
|
-
> 4. Ensure compliance with the project's **Clean Code** standards."
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 🐞 3. Systemic Debugging
|
|
38
|
-
Use this when facing logic errors or unexpected behavior.
|
|
39
|
-
|
|
40
|
-
> "The application is encountering the following issue: [Error Description].
|
|
41
|
-
>
|
|
42
|
-
> **Instructions:**
|
|
43
|
-
> 1. Identify the **Root Cause** by inspecting logs or using diagnostic tools.
|
|
44
|
-
> 2. Verify if this issue impacts the system assumptions defined in `PROJECT_CONTEXT.md`.
|
|
45
|
-
> 3. Fix the issue using a sustainable approach. If an architectural refactor is required for a permanent fix, please propose it first."
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 🔄 4. Context Synchronization
|
|
50
|
-
Use this at the end of a session or after significant structural changes.
|
|
51
|
-
|
|
52
|
-
> "I have completed [Task/Feature]. Please update the **`PROJECT_CONTEXT.md`** file to reflect the latest state of the project, including new files created, technical decisions made, and current progress status."
|
|
1
|
+
# Prompt Recipes
|
|
2
|
+
|
|
3
|
+
Use these prompts after `thachvd-kit init` when you want the AI agent to refine project rules.
|
|
4
|
+
|
|
5
|
+
## Initial Refinement
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Read AGENTS.md and all files under .agent/docs/.
|
|
9
|
+
Scan the current repository.
|
|
10
|
+
Update .agent/docs/project.md, .agent/docs/architecture.md, and .agent/docs/conventions.md with factual project-specific rules.
|
|
11
|
+
Do not implement product code.
|
|
12
|
+
Remove TODO: refine items only when you have real evidence from the codebase.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Before A Feature
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
Read AGENTS.md and .agent/docs/workflow.md.
|
|
19
|
+
Check whether .agent/docs/architecture.md and .agent/docs/conventions.md are accurate for this task.
|
|
20
|
+
If they are stale, update the relevant docs first.
|
|
21
|
+
Then define success criteria, implement the smallest coherent change, and verify.
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## After A Task
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Review the files changed in this task.
|
|
28
|
+
If stack, architecture, conventions, commands, or workflow changed, update the relevant .agent/docs/*.md file.
|
|
29
|
+
Summarize verification evidence before claiming done.
|
|
30
|
+
```
|
package/kit/README.md
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
*Powered by thachvd-kit.*
|
|
1
|
+
# thachvd-kit Kit
|
|
2
|
+
|
|
3
|
+
This kit keeps AI coding behavior consistent across Codex, Antigravity, and Claude Code.
|
|
4
|
+
|
|
5
|
+
## Entry Files
|
|
6
|
+
|
|
7
|
+
- `AGENTS.md`: shared cross-agent instructions.
|
|
8
|
+
- `CLAUDE.md`: Claude Code entry file that imports `AGENTS.md`.
|
|
9
|
+
- `GEMINI.md`: Antigravity entry file that points to `AGENTS.md`.
|
|
10
|
+
|
|
11
|
+
## Shared Docs
|
|
12
|
+
|
|
13
|
+
Project-specific knowledge belongs under `.agent/docs/`:
|
|
14
|
+
|
|
15
|
+
- `project.md`: stack, commands, tools, routing, and scan evidence.
|
|
16
|
+
- `architecture.md`: codebase structure, entry points, and boundaries.
|
|
17
|
+
- `conventions.md`: naming, formatting, testing, API, state, and styling patterns.
|
|
18
|
+
- `workflow.md`: repeatable task flow.
|
|
19
|
+
|
|
20
|
+
Agents should update these docs when they discover real project facts. Keep root entry files short.
|
|
21
|
+
|
|
22
|
+
## Local Kit
|
|
23
|
+
|
|
24
|
+
- `.agent/agents/`: specialist agent guidance.
|
|
25
|
+
- `.agent/skills/`: reusable capability instructions.
|
|
26
|
+
- `.agent/workflows/`: task workflows.
|
|
27
|
+
- `.agent/rules/GEMINI.md`: Antigravity-compatible mirror rules.
|
|
28
|
+
|
|
29
|
+
Powered by thachvd-kit.
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "thachvd-kit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"bin": {
|
|
6
|
-
"thachvd-kit": "./bin/cli.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
],
|
|
20
|
-
"preferGlobal": true,
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=16.7"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"test": "
|
|
26
|
-
"release:patch": "npm version patch",
|
|
27
|
-
"release:dry-run": "npm pack --dry-run",
|
|
28
|
-
"release:publish": "npm publish"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"ai",
|
|
32
|
-
"agent",
|
|
33
|
-
"claude",
|
|
34
|
-
"antigravity",
|
|
35
|
-
"codex"
|
|
36
|
-
],
|
|
37
|
-
"author": "thachvd",
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "https://github.com/holdon1996/thachvd-kit.git"
|
|
42
|
-
},
|
|
43
|
-
"homepage": "https://github.com/holdon1996/thachvd-kit",
|
|
44
|
-
"bugs": {
|
|
45
|
-
"url": "https://github.com/holdon1996/thachvd-kit/issues"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"picocolors": "^1.0.0",
|
|
49
|
-
"prompts": "^2.4.2"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "thachvd-kit",
|
|
3
|
+
"version": "1.0.16",
|
|
4
|
+
"description": "Cross-agent project rules bootstrap kit for Codex, Antigravity, and Claude Code",
|
|
5
|
+
"bin": {
|
|
6
|
+
"thachvd-kit": "./bin/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
".agent",
|
|
10
|
+
"agents",
|
|
11
|
+
"bin",
|
|
12
|
+
"kit",
|
|
13
|
+
"rules",
|
|
14
|
+
"scripts",
|
|
15
|
+
"skills",
|
|
16
|
+
"workflows",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"preferGlobal": true,
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=16.7"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "node test/cli.test.js",
|
|
26
|
+
"release:patch": "npm version patch",
|
|
27
|
+
"release:dry-run": "npm pack --dry-run",
|
|
28
|
+
"release:publish": "npm publish"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"ai",
|
|
32
|
+
"agent",
|
|
33
|
+
"claude",
|
|
34
|
+
"antigravity",
|
|
35
|
+
"codex"
|
|
36
|
+
],
|
|
37
|
+
"author": "thachvd",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://github.com/holdon1996/thachvd-kit.git"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/holdon1996/thachvd-kit",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/holdon1996/thachvd-kit/issues"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"picocolors": "^1.0.0",
|
|
49
|
+
"prompts": "^2.4.2"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/rules/GEMINI.md
CHANGED
|
@@ -1,209 +1,45 @@
|
|
|
1
|
-
---
|
|
2
|
-
trigger: always_on
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# GEMINI.md — Universal Agent Kit
|
|
6
|
-
|
|
7
|
-
> Cross-platform agent protocol. Works with: Antigravity · Claude Code · Codex · OpenCode
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## MANDATORY FIRST ACTION
|
|
12
|
-
|
|
13
|
-
**At session start — before anything else:**
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
14
4
|
|
|
15
|
-
|
|
16
|
-
1. Read PROJECT_CONTEXT.md (if exists) → load stack, agents, constraints
|
|
17
|
-
2. If missing → run @[skills/project-onboarding] to create it
|
|
18
|
-
3. Read PROJECT_CONTEXT context.status and context.needs_ai_refinement
|
|
19
|
-
4. If needs_ai_refinement = true → scan project with AI, update PROJECT_CONTEXT.md, set status=refined and needs_ai_refinement=false
|
|
20
|
-
5. Confirm: "Context loaded: [Project Name] | Stack: [Stack] | Ready."
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
> All routing decisions below depend on PROJECT_CONTEXT.md.
|
|
24
|
-
> Without it, ask user to run: `thachvd-kit init`
|
|
25
|
-
> Baseline context must be refined once when `context.needs_ai_refinement = true`.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## STEP 1 — CLASSIFY REQUEST
|
|
30
|
-
|
|
31
|
-
| Type | Triggers | Action |
|
|
32
|
-
|------|----------|--------|
|
|
33
|
-
| **QUESTION** | "what", "how", "explain", "why" | Direct answer |
|
|
34
|
-
| **SURVEY** | "analyze", "list", "overview", "check" | Analysis only, no code |
|
|
35
|
-
| **SIMPLE FIX** | "fix", "add", "change" (single file) | Inline edit |
|
|
36
|
-
| **BUILD** | "build", "create", "implement", "refactor" | Agent + `{task-slug}.md` |
|
|
37
|
-
| **DESIGN/UI** | "design", "UI", "page", "dashboard" | Agent + `{task-slug}.md` |
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## STEP 2 — AUTO-SELECT AGENT
|
|
42
|
-
|
|
43
|
-
**Protocol:**
|
|
44
|
-
1. Read `stack.primary_language` and `stack.frameworks` from PROJECT_CONTEXT.md
|
|
45
|
-
2. Match to agent table below
|
|
46
|
-
3. Announce before responding:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
🤖 Applying knowledge of `@[agent-name]`...
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Agent Routing Table
|
|
53
|
-
|
|
54
|
-
| Domain | Agent | Skills to Load |
|
|
55
|
-
|--------|-------|---------------|
|
|
56
|
-
| Web frontend (any framework) | `frontend-specialist` | `frontend-design` + framework skill from PROJECT_CONTEXT |
|
|
57
|
-
| Backend API (any language) | `backend-specialist` | language skill + `api-design` |
|
|
58
|
-
| Database / Schema | `database-architect` | `database-design` |
|
|
59
|
-
| Mobile / Desktop (Tauri, RN, Flutter) | `mobile-developer` | platform skill from PROJECT_CONTEXT |
|
|
60
|
-
| DevOps / Cloud / CI | `devops-engineer` | `docker-patterns`, `deployment-procedures` |
|
|
61
|
-
| Security audit | `security-auditor` | `vulnerability-scanner` |
|
|
62
|
-
| Debug / RCA | `debugger` | `systematic-debugging` |
|
|
63
|
-
| Planning / Discovery | `project-planner` | `brainstorming`, `plan-writing` |
|
|
64
|
-
| Multi-domain | `orchestrator` | `dispatching-parallel-agents` |
|
|
65
|
-
|
|
66
|
-
**Framework-specific skill mapping** (reference PROJECT_CONTEXT.stack):
|
|
67
|
-
|
|
68
|
-
| Framework/Language | Load Skill |
|
|
69
|
-
|-------------------|-----------|
|
|
70
|
-
| Vue | `frontend-design` (+ Vue-specific if available) |
|
|
71
|
-
| React | `react-frontend` |
|
|
72
|
-
| Next.js | `nextjs-react-expert` |
|
|
73
|
-
| Laravel | `laravel-patterns` + `laravel-security` |
|
|
74
|
-
| Node.js | `nodejs-best-practices` |
|
|
75
|
-
| Python | `python-patterns` |
|
|
76
|
-
| Go | `golang-patterns` |
|
|
77
|
-
| Rust | `rust-pro` |
|
|
78
|
-
| Tauri | `desktop-design` + `rust-pro` |
|
|
79
|
-
| Docker | `docker-patterns` |
|
|
80
|
-
|
|
81
|
-
> If stack not in mapping → use agent's general skill set + `clean-code`.
|
|
82
|
-
|
|
83
|
-
**MANDATORY checklist before any code:**
|
|
84
|
-
- [ ] Agent identified from PROJECT_CONTEXT.md stack?
|
|
85
|
-
- [ ] Agent `.md` file read/recalled?
|
|
86
|
-
- [ ] Announcement `🤖 Applying knowledge of @[agent]...` written?
|
|
87
|
-
|
|
88
|
-
> 🔴 Code without announcement = **PROTOCOL VIOLATION**
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## STEP 3 — SOCRATIC GATE
|
|
93
|
-
|
|
94
|
-
**Trigger: BUILD or DESIGN/UI requests only**
|
|
95
|
-
|
|
96
|
-
| Scenario | Action |
|
|
97
|
-
|----------|--------|
|
|
98
|
-
| New feature / greenfield | Ask **3 questions**: Purpose · Users · Must-have vs Nice-to-have |
|
|
99
|
-
| Code edit / bug fix | Confirm scope + 1 impact question |
|
|
100
|
-
| Vague request | Ask Purpose + Constraints |
|
|
101
|
-
| User gave full spec | **Proceed immediately** |
|
|
102
|
-
| User says "proceed" / "just do it" | **DO IT — no more questions** |
|
|
103
|
-
|
|
104
|
-
**Rules:**
|
|
105
|
-
- Max 3 questions at once
|
|
106
|
-
- Never ask edge case questions after user already answered
|
|
107
|
-
- Reference `@[skills/brainstorming]` for question format
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## UNIVERSAL RULES (Always Active)
|
|
112
|
-
|
|
113
|
-
### Language
|
|
114
|
-
- Respond in user's language (auto-detect from prompt)
|
|
115
|
-
- Code comments/variables always in English
|
|
116
|
-
|
|
117
|
-
### Code Quality
|
|
118
|
-
- `@[skills/clean-code]` applies to ALL code, ALL languages
|
|
119
|
-
- Tests mandatory: Unit > Integration > E2E
|
|
120
|
-
- `@[skills/verification-before-completion]` before claiming "done"
|
|
121
|
-
|
|
122
|
-
### File Changes
|
|
123
|
-
- Identify dependent files before modifying
|
|
124
|
-
- Update ALL affected files together
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## EXECUTION WORKFLOW
|
|
129
|
-
|
|
130
|
-
**BUILD tasks — 7-step flow:**
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
1. brainstorming → Clarify (Socratic Gate)
|
|
134
|
-
2. plan-writing → Create {task-slug}.md
|
|
135
|
-
3. using-git-worktrees → Isolated workspace
|
|
136
|
-
4. subagent-driven-development → Implement + 2-stage review
|
|
137
|
-
5. requesting-code-review → After each major task
|
|
138
|
-
6. verification-before-completion → Before claiming done
|
|
139
|
-
7. finishing-a-development-branch → Merge / PR / keep
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
**SIMPLE FIX:** Skip to step 4, no worktree needed.
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
## MODE BEHAVIOR
|
|
147
|
-
|
|
148
|
-
| Mode | Behavior |
|
|
149
|
-
|------|----------|
|
|
150
|
-
| **plan** | Analysis → Planning → Architecture → NO CODE until confirmed |
|
|
151
|
-
| **ask** | Questions and analysis only |
|
|
152
|
-
| **edit** | Execute. Multi-file → create `{task-slug}.md`. Single-file → proceed. |
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## FINAL CHECK
|
|
157
|
-
|
|
158
|
-
**Trigger:** "final check", "deploy check", "kiểm tra cuối", "done?"
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
python scripts/checklist.py .
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Priority: Security → Lint → Tests → UX → SEO
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## PATHS
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
agents/ → agents/{agent}.md
|
|
172
|
-
skills/ → skills/{skill}/SKILL.md
|
|
173
|
-
workflows/ → workflows/{command}.md
|
|
174
|
-
scripts/ → scripts/init.py, checklist.py, verify_all.py
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## QUICK SKILL REFERENCE
|
|
180
|
-
|
|
181
|
-
| Need | Skill |
|
|
182
|
-
|------|-------|
|
|
183
|
-
| Clean code (any lang) | `clean-code` |
|
|
184
|
-
| Plan a task | `plan-writing` → `executing-plans` |
|
|
185
|
-
| Parallel agents | `dispatching-parallel-agents` |
|
|
186
|
-
| Code review | `requesting-code-review` / `receiving-code-review` |
|
|
187
|
-
| Git isolation | `using-git-worktrees` |
|
|
188
|
-
| Agent-based dev | `subagent-driven-development` |
|
|
189
|
-
| Verify done | `verification-before-completion` |
|
|
190
|
-
| Finish branch | `finishing-a-development-branch` |
|
|
191
|
-
| Write new skill | `writing-skills` |
|
|
192
|
-
| API design | `api-design` |
|
|
193
|
-
| Docker | `docker-patterns` |
|
|
194
|
-
| Laravel | `laravel-patterns`, `laravel-security`, `laravel-tdd` |
|
|
195
|
-
| Go | `golang-patterns`, `golang-testing` |
|
|
196
|
-
| Debugging | `systematic-debugging` |
|
|
197
|
-
| Security | `vulnerability-scanner` |
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
## CROSS-PLATFORM NOTES
|
|
202
|
-
|
|
203
|
-
| Platform | Rules File | Skills Dir | Workflows |
|
|
204
|
-
|----------|-----------|-----------|-----------|
|
|
205
|
-
| **Antigravity** | `rules/GEMINI.md` (this file) | `skills/` | `workflows/` |
|
|
206
|
-
| **Claude Code** | `CLAUDE.md` at project root | `.agent/skills/` | `.agent/workflows/` |
|
|
207
|
-
| **Codex / OpenCode** | `AGENTS.md` at project root | `.agent/skills/` | `.agent/workflows/` |
|
|
5
|
+
# GEMINI.md
|
|
208
6
|
|
|
209
|
-
|
|
7
|
+
Antigravity-compatible entry rules for thachvd-kit projects.
|
|
8
|
+
|
|
9
|
+
## Startup
|
|
10
|
+
|
|
11
|
+
1. Read `AGENTS.md` at the project root.
|
|
12
|
+
2. Read `.agent/docs/project.md` for stack, commands, and routing.
|
|
13
|
+
3. Read `.agent/docs/workflow.md` before editing.
|
|
14
|
+
4. Read `.agent/docs/architecture.md` and `.agent/docs/conventions.md` before planning non-trivial code changes.
|
|
15
|
+
5. If any `.agent/docs/*.md` file contains `TODO: refine`, update that doc from the real code before product code changes.
|
|
16
|
+
|
|
17
|
+
## Routing
|
|
18
|
+
|
|
19
|
+
- Frontend/UI: `.agent/agents/frontend-specialist.md`
|
|
20
|
+
- Backend/API: `.agent/agents/backend-specialist.md`
|
|
21
|
+
- Database/schema: `.agent/agents/database-architect.md`
|
|
22
|
+
- Mobile/desktop: `.agent/agents/mobile-developer.md`
|
|
23
|
+
- DevOps/CI/deploy: `.agent/agents/devops-engineer.md`
|
|
24
|
+
- Debug/RCA: `.agent/agents/debugger.md`
|
|
25
|
+
- Security: `.agent/agents/security-auditor.md`
|
|
26
|
+
- Multi-domain: `.agent/agents/orchestrator.md`
|
|
27
|
+
|
|
28
|
+
Load only the agent, skill, or workflow files relevant to the current task.
|
|
29
|
+
|
|
30
|
+
## Execution
|
|
31
|
+
|
|
32
|
+
- Questions and analysis: answer directly; do not edit code.
|
|
33
|
+
- Simple fix: inspect dependencies, make the smallest change, verify.
|
|
34
|
+
- Feature or refactor: state assumptions, define success criteria, plan, implement, verify.
|
|
35
|
+
- UI work: use relevant frontend design skills before editing.
|
|
36
|
+
- Security or deploy work: run the matching checklist before claiming done.
|
|
37
|
+
|
|
38
|
+
## Standards
|
|
39
|
+
|
|
40
|
+
- Respond in the user's language.
|
|
41
|
+
- Keep code, identifiers, and code comments in English.
|
|
42
|
+
- Prefer existing project patterns over new abstractions.
|
|
43
|
+
- Keep changes surgical.
|
|
44
|
+
- Tests or equivalent verification are mandatory.
|
|
45
|
+
- Update `.agent/docs/*` when stack, architecture, workflow, or conventions change.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: desktop-design
|
|
3
|
-
description: Desktop and cross-platform app design guidance for Tauri and similar desktop shells. Use when building desktop-first interfaces, windowed workflows, keyboard-heavy UX, or cross-platform desktop UI behavior.
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Desktop Design
|
|
8
|
-
|
|
9
|
-
This skill covers desktop-first product thinking where `mobile-design` is the wrong default.
|
|
10
|
-
|
|
11
|
-
Use it for Tauri and other desktop-oriented apps with window management, keyboard shortcuts, dense layouts, or multi-panel workflows.
|
|
12
|
-
|
|
13
|
-
## Guidance
|
|
14
|
-
|
|
15
|
-
- Design for pointer + keyboard, not touch-first.
|
|
16
|
-
- Use information density deliberately; desktop screens can support richer sidebars and multi-column layouts.
|
|
17
|
-
- Respect platform conventions for menus, shortcuts, dialogs, file pickers, and drag/drop.
|
|
18
|
-
- Assume resizing, multiple windows, and long-running sessions are normal.
|
|
19
|
-
- Pair with `rust-pro` for Tauri backend/native concerns and `frontend-design` for UI execution.
|
|
20
|
-
|
|
21
|
-
## Related Skills
|
|
22
|
-
|
|
23
|
-
- `mobile-design` for touch-first mobile products
|
|
24
|
-
- `frontend-design` for visual and interaction design
|
|
25
|
-
- `rust-pro` for Rust and Tauri implementation details
|
|
1
|
+
---
|
|
2
|
+
name: desktop-design
|
|
3
|
+
description: Desktop and cross-platform app design guidance for Tauri and similar desktop shells. Use when building desktop-first interfaces, windowed workflows, keyboard-heavy UX, or cross-platform desktop UI behavior.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Desktop Design
|
|
8
|
+
|
|
9
|
+
This skill covers desktop-first product thinking where `mobile-design` is the wrong default.
|
|
10
|
+
|
|
11
|
+
Use it for Tauri and other desktop-oriented apps with window management, keyboard shortcuts, dense layouts, or multi-panel workflows.
|
|
12
|
+
|
|
13
|
+
## Guidance
|
|
14
|
+
|
|
15
|
+
- Design for pointer + keyboard, not touch-first.
|
|
16
|
+
- Use information density deliberately; desktop screens can support richer sidebars and multi-column layouts.
|
|
17
|
+
- Respect platform conventions for menus, shortcuts, dialogs, file pickers, and drag/drop.
|
|
18
|
+
- Assume resizing, multiple windows, and long-running sessions are normal.
|
|
19
|
+
- Pair with `rust-pro` for Tauri backend/native concerns and `frontend-design` for UI execution.
|
|
20
|
+
|
|
21
|
+
## Related Skills
|
|
22
|
+
|
|
23
|
+
- `mobile-design` for touch-first mobile products
|
|
24
|
+
- `frontend-design` for visual and interaction design
|
|
25
|
+
- `rust-pro` for Rust and Tauri implementation details
|
|
@@ -1,62 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: project-onboarding
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- [ ]
|
|
43
|
-
- [ ] **Identified Frontend/Backend stack?**
|
|
44
|
-
- [ ] **Mapped primary folder structure?**
|
|
45
|
-
- [ ] **Found core business logic entry points?**
|
|
46
|
-
- [ ] **Created/Updated PROJECT_CONTEXT.md?**
|
|
47
|
-
- [ ] **Stated: "Ground Truth identified/established. Ready to proceed."?**
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## ❌ Anti-Patterns
|
|
52
|
-
|
|
53
|
-
**DON'T:**
|
|
54
|
-
- Skip onboarding for "simple" fixes.
|
|
55
|
-
- Assume structure based on generic templates.
|
|
56
|
-
- Start writing code before `PROJECT_CONTEXT.md` exists.
|
|
57
|
-
- Leave the context file empty or vague.
|
|
58
|
-
|
|
59
|
-
**DO:**
|
|
60
|
-
- Perform deep directory analysis.
|
|
61
|
-
- Read core configuration files.
|
|
62
|
-
- Document any project-specific constraints found in existing code.
|
|
1
|
+
---
|
|
2
|
+
name: project-onboarding
|
|
3
|
+
description: Scan the repository and refine `.agent/docs/*` so all supported AI tools share accurate project rules.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Onboarding
|
|
7
|
+
|
|
8
|
+
Use this skill when a project has just run `thachvd-kit init`, when `.agent/docs/*` contains `TODO: refine`, or when the stack/architecture has changed.
|
|
9
|
+
|
|
10
|
+
## Goal
|
|
11
|
+
|
|
12
|
+
Create or update the shared project docs used by Codex, Antigravity, and Claude Code:
|
|
13
|
+
|
|
14
|
+
- `.agent/docs/project.md`
|
|
15
|
+
- `.agent/docs/architecture.md`
|
|
16
|
+
- `.agent/docs/conventions.md`
|
|
17
|
+
- `.agent/docs/workflow.md`
|
|
18
|
+
|
|
19
|
+
Do not create a legacy root context file.
|
|
20
|
+
|
|
21
|
+
## Process
|
|
22
|
+
|
|
23
|
+
1. Read `AGENTS.md`.
|
|
24
|
+
2. Inspect repository structure, package/build config, test config, entry points, and representative source files.
|
|
25
|
+
3. Update `.agent/docs/project.md` with stack, app root, commands, test/lint tooling, and routing.
|
|
26
|
+
4. Update `.agent/docs/architecture.md` with major directories, entry points, boundaries, and important decisions.
|
|
27
|
+
5. Update `.agent/docs/conventions.md` with real naming, formatting, API, state, styling, and testing patterns.
|
|
28
|
+
6. Update `.agent/docs/workflow.md` only when the repository needs project-specific workflow steps.
|
|
29
|
+
|
|
30
|
+
## Rules
|
|
31
|
+
|
|
32
|
+
- Keep docs concise and factual.
|
|
33
|
+
- Mark unknowns as `TODO: refine` only when the codebase does not provide evidence.
|
|
34
|
+
- Do not implement product code during onboarding.
|
|
35
|
+
- Do not overwrite unrelated user-maintained notes.
|
|
36
|
+
|
|
37
|
+
## Completion Checklist
|
|
38
|
+
|
|
39
|
+
- [ ] `.agent/docs/project.md` reflects actual stack and commands.
|
|
40
|
+
- [ ] `.agent/docs/architecture.md` maps the current codebase.
|
|
41
|
+
- [ ] `.agent/docs/conventions.md` captures observed patterns.
|
|
42
|
+
- [ ] `.agent/docs/workflow.md` has the task flow agents should follow.
|