thachvd-kit 1.0.17 → 1.0.19
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 -22
- package/.agent/docs/conventions.md +21 -21
- package/.agent/docs/project.md +40 -40
- package/.agent/docs/tooling.md +123 -0
- package/.agent/docs/workflow.md +28 -17
- package/.agent/rules/GEMINI.md +45 -45
- package/.agent/skills/desktop-design/SKILL.md +25 -25
- package/.agent/skills/project-onboarding/SKILL.md +42 -42
- package/.agent/skills/react-frontend/SKILL.md +25 -25
- package/LICENSE +21 -21
- package/README.md +86 -55
- package/agents/frontend-specialist.md +2 -2
- package/agents/mobile-developer.md +4 -4
- package/bin/cli.js +561 -250
- package/kit/PROMPT_RECIPE.md +30 -30
- package/kit/README.md +29 -29
- package/package.json +1 -1
- package/rules/GEMINI.md +45 -45
- package/skills/desktop-design/SKILL.md +25 -25
- package/skills/project-onboarding/SKILL.md +42 -42
- package/skills/react-frontend/SKILL.md +25 -25
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: react-frontend
|
|
3
|
-
description: React-focused frontend guidance for component architecture, state flow, rendering boundaries, and maintainable UI systems. Use for plain React apps that are not specifically Next.js-first.
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# React Frontend
|
|
8
|
-
|
|
9
|
-
This skill is the React-first counterpart to `nextjs-react-expert`.
|
|
10
|
-
|
|
11
|
-
Use it when the project uses React without needing Next.js-specific assumptions such as SSR, App Router, or server components.
|
|
12
|
-
|
|
13
|
-
## Guidance
|
|
14
|
-
|
|
15
|
-
- Prefer the existing project architecture over introducing a new pattern.
|
|
16
|
-
- Keep state ownership shallow and explicit.
|
|
17
|
-
- Separate presentational UI from data-fetching and side effects when it improves maintainability.
|
|
18
|
-
- Optimize rendering only after confirming an actual bottleneck.
|
|
19
|
-
- Pair with `frontend-design` for UI/UX decisions.
|
|
20
|
-
|
|
21
|
-
## Related Skills
|
|
22
|
-
|
|
23
|
-
- `nextjs-react-expert` for Next.js-specific performance and routing concerns
|
|
24
|
-
- `frontend-design` for layout, visual hierarchy, and responsive design
|
|
25
|
-
- `clean-code` for naming, file boundaries, and readability
|
|
1
|
+
---
|
|
2
|
+
name: react-frontend
|
|
3
|
+
description: React-focused frontend guidance for component architecture, state flow, rendering boundaries, and maintainable UI systems. Use for plain React apps that are not specifically Next.js-first.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# React Frontend
|
|
8
|
+
|
|
9
|
+
This skill is the React-first counterpart to `nextjs-react-expert`.
|
|
10
|
+
|
|
11
|
+
Use it when the project uses React without needing Next.js-specific assumptions such as SSR, App Router, or server components.
|
|
12
|
+
|
|
13
|
+
## Guidance
|
|
14
|
+
|
|
15
|
+
- Prefer the existing project architecture over introducing a new pattern.
|
|
16
|
+
- Keep state ownership shallow and explicit.
|
|
17
|
+
- Separate presentational UI from data-fetching and side effects when it improves maintainability.
|
|
18
|
+
- Optimize rendering only after confirming an actual bottleneck.
|
|
19
|
+
- Pair with `frontend-design` for UI/UX decisions.
|
|
20
|
+
|
|
21
|
+
## Related Skills
|
|
22
|
+
|
|
23
|
+
- `nextjs-react-expert` for Next.js-specific performance and routing concerns
|
|
24
|
+
- `frontend-design` for layout, visual hierarchy, and responsive design
|
|
25
|
+
- `clean-code` for naming, file boundaries, and readability
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 thachvd
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 thachvd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,78 +1,109 @@
|
|
|
1
|
-
# thachvd-kit
|
|
2
|
-
|
|
3
|
-
`thachvd-kit` bootstraps shared project rules for AI coding agents.
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
## Quick Start
|
|
8
|
-
|
|
9
|
-
Install globally:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install -g thachvd-kit
|
|
13
|
-
```
|
|
14
|
-
|
|
1
|
+
# thachvd-kit
|
|
2
|
+
|
|
3
|
+
`thachvd-kit` bootstraps shared project rules for AI coding agents.
|
|
4
|
+
|
|
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
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
Install globally:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g thachvd-kit
|
|
13
|
+
```
|
|
14
|
+
|
|
15
15
|
Run inside a project:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
thachvd-kit
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For existing projects, scan first:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
thachvd-kit init --scan
|
|
18
|
+
thachvd-kit
|
|
25
19
|
```
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- `
|
|
32
|
-
-
|
|
21
|
+
By default, `thachvd-kit` scans the current project, generates shared AI-agent files, installs/configures Codegraph when needed, and configures Context7, Codegraph, and Playwright MCP for local AI clients. Use `--no-setup-mcp` to skip machine-level MCP setup.
|
|
22
|
+
|
|
23
|
+
## What `init` Generates
|
|
24
|
+
|
|
25
|
+
- `AGENTS.md`: shared entry instructions for Codex, Antigravity, and Claude Code.
|
|
26
|
+
- `CLAUDE.md`: Claude Code entry file that imports `AGENTS.md`.
|
|
27
|
+
- `GEMINI.md`: Antigravity entry file that points to `AGENTS.md`.
|
|
28
|
+
- `.agent/docs/project.md`: stack, commands, routing, and scan evidence.
|
|
33
29
|
- `.agent/docs/architecture.md`: architecture map and maintenance rule.
|
|
34
30
|
- `.agent/docs/conventions.md`: coding and verification conventions.
|
|
35
31
|
- `.agent/docs/workflow.md`: repeatable task flow for future AI work.
|
|
32
|
+
- `.agent/docs/tooling.md`: setup hints for Playwright, codegraph, and native Codex/Claude skill folders.
|
|
36
33
|
- `.agent/agents`, `.agent/skills`, `.agent/workflows`, `.agent/rules`.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- update `
|
|
45
|
-
- update `
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
|
|
34
|
+
- `.agents/skills`: selected repo-native Codex skills copied from the kit.
|
|
35
|
+
- `.claude/skills`: selected Claude Code project skills copied from the kit.
|
|
36
|
+
|
|
37
|
+
## Why Docs Live Under `.agent/docs`
|
|
38
|
+
|
|
39
|
+
Root instruction files are loaded often, so they should stay short and stable. Project-specific details belong in `.agent/docs/`:
|
|
40
|
+
|
|
41
|
+
- update `project.md` when stack, scripts, or tooling changes;
|
|
42
|
+
- update `architecture.md` when structure or boundaries change;
|
|
43
|
+
- update `conventions.md` when repeated patterns become clear;
|
|
44
|
+
- update `workflow.md` when the repo needs special task steps.
|
|
45
|
+
|
|
46
|
+
`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
|
+
|
|
49
48
|
## Platform Notes
|
|
50
49
|
|
|
51
50
|
- Codex reads `AGENTS.md`.
|
|
52
51
|
- Claude Code reads `CLAUDE.md`; this kit uses `@AGENTS.md` inside `CLAUDE.md` so Claude shares the same rules.
|
|
53
52
|
- Antigravity can use `GEMINI.md`; this kit points it back to the shared `AGENTS.md`.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
- `.agent/skills` is committed shared knowledge. `thachvd-kit` also copies selected native skills into `.agents/skills` for Codex and `.claude/skills` for Claude Code.
|
|
54
|
+
|
|
55
|
+
## Skill Usage Best Practice
|
|
56
|
+
|
|
57
|
+
Skills work best through progressive disclosure: the agent should first see skill names and descriptions, then read only the matching `SKILL.md` body.
|
|
58
|
+
|
|
59
|
+
- Keep `.agent/skills` as the complete shared source from the kit.
|
|
60
|
+
- Let `thachvd-kit` copy selected skills to `.agents/skills` for Codex and `.claude/skills` for Claude Code.
|
|
61
|
+
- Make every `SKILL.md` frontmatter `description` specific: include when to use it, trigger phrases, and boundaries.
|
|
62
|
+
- Run `thachvd-kit --help` to see a compact workflow guide without adding that guidance to every agent context. It recommends when to use `/brainstorm`, `/plan`, `/create`, `/enhance`, `/debug`, `/test`, `/preview`, `/deploy`, `/status`, and `/orchestrate`.
|
|
63
|
+
- Use explicit prompts when implicit matching misses, for example `Use $webapp-testing to verify this UI` or `Use $clean-code before refactoring`.
|
|
64
|
+
- Restart Codex or Claude Code if a newly copied or edited skill does not appear.
|
|
65
|
+
|
|
66
|
+
## Optional Tooling
|
|
67
|
+
|
|
68
|
+
`init` performs setup and prints what it configured:
|
|
69
|
+
|
|
70
|
+
- Playwright: install browsers with `npx playwright install` for Node projects, or `pip install playwright && playwright install chromium` when using the Python helper.
|
|
71
|
+
- Auto setup: `thachvd-kit` installs the Codegraph CLI when missing and merges MCP config for Codex, Gemini/Antigravity, and Claude Code.
|
|
72
|
+
- Codex MCP: uses `~/.codex/config.toml` with `[mcp_servers.context7]`, `[mcp_servers.codegraph]`, and `[mcp_servers.playwright]`.
|
|
73
|
+
- Gemini/Antigravity MCP: uses `mcp_config.json` with a top-level `mcpServers` object. The generated config includes `codegraph`, `context7`, and `playwright`.
|
|
74
|
+
- Claude Code MCP: uses `~/.claude.json` with a top-level `mcpServers` object.
|
|
75
|
+
- Codegraph indexes: `.codegraph/` is local state and should not be committed.
|
|
76
|
+
- Native skills: Codex repo skills live in `.agents/skills/`, Claude Code project skills live in `.claude/skills/`, and the full shared source remains in `.agent/skills/`. Codex may also keep installed/system skills in `$CODEX_HOME/skills` such as `~/.codex/skills`; do not treat repo `.codex/skills` as the generated project skill folder.
|
|
77
|
+
|
|
78
|
+
## Directory Layout
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
.agent/
|
|
82
|
+
├── agents/
|
|
83
|
+
├── docs/
|
|
61
84
|
│ ├── architecture.md
|
|
62
85
|
│ ├── conventions.md
|
|
63
86
|
│ ├── project.md
|
|
87
|
+
│ ├── tooling.md
|
|
64
88
|
│ └── workflow.md
|
|
65
|
-
├── rules/
|
|
66
|
-
├── skills/
|
|
89
|
+
├── rules/
|
|
90
|
+
├── skills/
|
|
67
91
|
└── workflows/
|
|
68
92
|
```
|
|
69
93
|
|
|
70
|
-
|
|
94
|
+
The generated project also gets selected native skill folders:
|
|
71
95
|
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
npm pack --dry-run
|
|
96
|
+
```text
|
|
97
|
+
.agents/skills/
|
|
98
|
+
.claude/skills/
|
|
76
99
|
```
|
|
77
|
-
|
|
78
|
-
|
|
100
|
+
|
|
101
|
+
## Development
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm install
|
|
105
|
+
npm test
|
|
106
|
+
npm pack --dry-run
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
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
|
|