thachvd-kit 1.0.15 → 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/frontend-specialist.md +2 -2
- package/.agent/agents/mobile-developer.md +4 -4
- 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 +31 -193
- package/.agent/skills/desktop-design/SKILL.md +25 -25
- package/.agent/skills/project-onboarding/SKILL.md +42 -62
- package/.agent/skills/react-frontend/SKILL.md +25 -25
- 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 +1230 -1363
- 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/kit/PROJECT_CONTEXT.template.md +0 -35
- package/scripts/init.py +0 -1047
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# thachvd-kit
|
|
2
2
|
|
|
3
|
-
`thachvd-kit` bootstraps project
|
|
3
|
+
`thachvd-kit` bootstraps shared project rules for AI coding agents.
|
|
4
4
|
|
|
5
|
-
It
|
|
5
|
+
It creates a compact cross-agent entry setup for Codex, Antigravity, and Claude Code, then stores scan-based project knowledge under `.agent/docs/` so the root instruction files stay small.
|
|
6
6
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
@@ -12,101 +12,67 @@ Install globally:
|
|
|
12
12
|
npm install -g thachvd-kit
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Run inside a project:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
thachvd-kit init
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
For existing projects, scan first:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
thachvd-kit init --scan
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
## What `init`
|
|
27
|
+
## What `init` Generates
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
- `AGENTS.md`: shared entry instructions for Codex, Antigravity, and Claude Code.
|
|
30
|
+
- `CLAUDE.md`: Claude Code entry file that imports `AGENTS.md`.
|
|
31
|
+
- `GEMINI.md`: Antigravity entry file that points to `AGENTS.md`.
|
|
32
|
+
- `.agent/docs/project.md`: stack, commands, routing, and scan evidence.
|
|
33
|
+
- `.agent/docs/architecture.md`: architecture map and maintenance rule.
|
|
34
|
+
- `.agent/docs/conventions.md`: coding and verification conventions.
|
|
35
|
+
- `.agent/docs/workflow.md`: repeatable task flow for future AI work.
|
|
36
|
+
- `.agent/agents`, `.agent/skills`, `.agent/workflows`, `.agent/rules`.
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
- Existing project: choose scan mode or manual mode.
|
|
33
|
-
- Scan mode: detect stack from the codebase, show evidence, then either accept detected values or review/edit them.
|
|
38
|
+
## Why Docs Live Under `.agent/docs`
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
Root instruction files are loaded often, so they should stay short and stable. Project-specific details belong in `.agent/docs/`:
|
|
36
41
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- `PROJECT_CONTEXT.md`
|
|
42
|
-
- `CLAUDE.md`
|
|
43
|
-
- `AGENTS.md`
|
|
44
|
-
- `AI_CONTEXT_REFINEMENT.md` when first-session AI refinement is enabled
|
|
42
|
+
- update `project.md` when stack, scripts, or tooling changes;
|
|
43
|
+
- update `architecture.md` when structure or boundaries change;
|
|
44
|
+
- update `conventions.md` when repeated patterns become clear;
|
|
45
|
+
- update `workflow.md` when the repo needs special task steps.
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
`AGENTS.md` tells every AI agent to read these docs before coding. If a doc contains `TODO: refine`, the agent should scan the repository and update the doc before product code changes.
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
## Platform Notes
|
|
49
50
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
The scan preview surfaces:
|
|
55
|
-
|
|
56
|
-
- app root
|
|
57
|
-
- project type
|
|
58
|
-
- primary language
|
|
59
|
-
- frameworks
|
|
60
|
-
- database
|
|
61
|
-
- package manager
|
|
62
|
-
- test framework
|
|
63
|
-
- cloud
|
|
64
|
-
- infrastructure
|
|
65
|
-
- CI/CD
|
|
66
|
-
- evidence for each inferred framework
|
|
67
|
-
|
|
68
|
-
## AI Refinement Flow
|
|
69
|
-
|
|
70
|
-
`init` creates a baseline `PROJECT_CONTEXT.md`.
|
|
71
|
-
|
|
72
|
-
If you enable first-session AI refinement, the generated context is marked with:
|
|
73
|
-
|
|
74
|
-
- `context.status: baseline`
|
|
75
|
-
- `context.needs_ai_refinement: true`
|
|
76
|
-
|
|
77
|
-
Then, when your agent opens the project, `GEMINI.md` / `CLAUDE.md` / `AGENTS.md` instruct it to:
|
|
78
|
-
|
|
79
|
-
1. Read `PROJECT_CONTEXT.md`
|
|
80
|
-
2. Refine the context once if `needs_ai_refinement` is `true`
|
|
81
|
-
3. Update the file to `context.status: refined`
|
|
82
|
-
4. Set `context.needs_ai_refinement: false`
|
|
83
|
-
|
|
84
|
-
This keeps `init` simple while still allowing a deeper AI pass without requiring API-key integration inside the CLI.
|
|
85
|
-
|
|
86
|
-
## Skill Resolution
|
|
87
|
-
|
|
88
|
-
The kit auto-loads generic and framework-specific skills based on detected context.
|
|
89
|
-
|
|
90
|
-
Examples:
|
|
91
|
-
|
|
92
|
-
- React -> `react-frontend`, `frontend-design`
|
|
93
|
-
- Next.js -> `nextjs-react-expert`, `frontend-design`
|
|
94
|
-
- Laravel -> `laravel-patterns`, `laravel-security`, `laravel-tdd`
|
|
95
|
-
- Tauri -> `rust-pro`, `desktop-design`
|
|
96
|
-
|
|
97
|
-
Generic quality skills such as `clean-code` and `systematic-debugging` are always included.
|
|
51
|
+
- Codex reads `AGENTS.md`.
|
|
52
|
+
- Claude Code reads `CLAUDE.md`; this kit uses `@AGENTS.md` inside `CLAUDE.md` so Claude shares the same rules.
|
|
53
|
+
- Antigravity can use `GEMINI.md`; this kit points it back to the shared `AGENTS.md`.
|
|
98
54
|
|
|
99
55
|
## Directory Layout
|
|
100
56
|
|
|
101
57
|
```text
|
|
102
58
|
.agent/
|
|
103
59
|
├── agents/
|
|
60
|
+
├── docs/
|
|
61
|
+
│ ├── architecture.md
|
|
62
|
+
│ ├── conventions.md
|
|
63
|
+
│ ├── project.md
|
|
64
|
+
│ └── workflow.md
|
|
104
65
|
├── rules/
|
|
105
66
|
├── skills/
|
|
106
67
|
└── workflows/
|
|
107
68
|
```
|
|
108
69
|
|
|
109
|
-
##
|
|
70
|
+
## Development
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm install
|
|
74
|
+
npm test
|
|
75
|
+
npm pack --dry-run
|
|
76
|
+
```
|
|
110
77
|
|
|
111
|
-
|
|
112
|
-
- The npm package page updates only after a new `npm publish`, not just after pushing to GitHub.
|
|
78
|
+
The npm package page updates only after `npm publish`.
|
|
@@ -3,7 +3,7 @@ name: frontend-specialist
|
|
|
3
3
|
description: Senior Frontend Architect who builds maintainable React/Next.js systems with performance-first mindset. Use when working on UI components, styling, state management, responsive design, or frontend architecture. Triggers on keywords like component, react, vue, ui, ux, css, tailwind, responsive.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
-
skills: clean-code, react-frontend, nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, lint-and-validate
|
|
6
|
+
skills: clean-code, react-frontend, nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, lint-and-validate
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Senior Frontend Architect
|
|
@@ -575,7 +575,7 @@ After editing any file:
|
|
|
575
575
|
|
|
576
576
|
---
|
|
577
577
|
|
|
578
|
-
> **Note:** This agent loads relevant skills (`react-frontend`, `nextjs-react-expert`, etc.) for detailed guidance. Apply behavioral principles from those skills rather than copying patterns.
|
|
578
|
+
> **Note:** This agent loads relevant skills (`react-frontend`, `nextjs-react-expert`, etc.) for detailed guidance. Apply behavioral principles from those skills rather than copying patterns.
|
|
579
579
|
|
|
580
580
|
---
|
|
581
581
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: mobile-developer
|
|
3
|
-
description: Expert in React Native, Flutter, and Tauri-style app development. Use for cross-platform mobile or desktop apps, native features, and platform-specific UI patterns. Triggers on mobile, desktop, tauri, react native, flutter, ios, android, app store, expo.
|
|
2
|
+
name: mobile-developer
|
|
3
|
+
description: Expert in React Native, Flutter, and Tauri-style app development. Use for cross-platform mobile or desktop apps, native features, and platform-specific UI patterns. Triggers on mobile, desktop, tauri, react native, flutter, ios, android, app store, expo.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
-
skills: clean-code, mobile-design, desktop-design
|
|
6
|
+
skills: clean-code, mobile-design, desktop-design
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Mobile Developer
|
|
10
10
|
|
|
11
|
-
Expert app developer specializing in React Native, Flutter, and Tauri-style cross-platform development.
|
|
11
|
+
Expert app developer specializing in React Native, Flutter, and Tauri-style cross-platform development.
|
|
12
12
|
|
|
13
13
|
## Your Philosophy
|
|
14
14
|
|