thachvd-kit
v1.0.26
Published
Cross-agent project rules bootstrap kit for Codex, Antigravity, and Claude Code
Maintainers
Readme
thachvd-kit
thachvd-kit bootstraps shared project rules for AI coding agents.
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.
Quick Start
Install globally:
npm install -g thachvd-kitRun inside a project:
thachvd-kitBy 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.
What init Generates
AGENTS.md: shared entry instructions for Codex, Antigravity, Claude Code, and Cursor.CLAUDE.md: Claude Code entry file that importsAGENTS.md.GEMINI.md: Antigravity entry file that points toAGENTS.md..cursorrules: Cursor entry file that points toAGENTS.md..agent/docs/project.md: stack, commands, routing, and scan evidence..agent/docs/architecture.md: architecture map and maintenance rule..agent/docs/conventions.md: coding and verification conventions..agent/docs/workflow.md: repeatable task flow for future AI work..agent/docs/tooling.md: setup hints for Playwright, codegraph, and native Codex/Claude skill folders..agent/agents,.agent/skills,.agent/workflows,.agent/rules.~/.codex/skills/: selected Codex skills copied to the global user dir..claude/skills: selected Claude Code project skills copied from the kit.
Why Docs Live Under .agent/docs
Root instruction files are loaded often, so they should stay short and stable. Project-specific details belong in .agent/docs/:
- update
project.mdwhen stack, scripts, or tooling changes; - update
architecture.mdwhen structure or boundaries change; - update
conventions.mdwhen repeated patterns become clear; - update
workflow.mdwhen the repo needs special task steps.
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.
Platform Notes
- Codex reads
AGENTS.md. - Claude Code reads
CLAUDE.md; this kit uses@AGENTS.mdinsideCLAUDE.mdso Claude shares the same rules. - Antigravity can use
GEMINI.md; this kit points it back to the sharedAGENTS.md. .agent/skillsis committed shared knowledge.thachvd-kitalso copies selected native skills into~/.codex/skills/for Codex and.claude/skillsfor Claude Code.
Skill Usage Best Practice
Skills work best through progressive disclosure: the agent should first see skill names and descriptions, then read only the matching SKILL.md body.
- Keep
.agent/skillsas the complete shared source from the kit. - Let
thachvd-kitcopy selected skills to~/.codex/skills/for Codex and.claude/skillsfor Claude Code. - Make every
SKILL.mdfrontmatterdescriptionspecific: include when to use it, trigger phrases, and boundaries. - Run
thachvd-kit --helpto 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. - Use explicit prompts when implicit matching misses, for example
Use $webapp-testing to verify this UIorUse $clean-code before refactoring. - Restart Codex or Claude Code if a newly copied or edited skill does not appear.
Optional Tooling
init performs setup and prints what it configured:
- Playwright: install browsers with
npx playwright installfor Node projects, orpip install playwright && playwright install chromiumwhen using the Python helper. - Auto setup:
thachvd-kitinstalls the Codegraph CLI when missing and merges MCP config for Codex, Gemini/Antigravity, and Claude Code. - Codex MCP: uses
~/.codex/config.tomlwith[mcp_servers.context7],[mcp_servers.codegraph], and[mcp_servers.playwright]. - Gemini/Antigravity MCP: uses
mcp_config.jsonwith a top-levelmcpServersobject. The generated config includescodegraph,context7, andplaywright. - Claude Code MCP: uses
~/.claude.jsonwith a top-levelmcpServersobject. - Codegraph indexes:
.codegraph/is local state and should not be committed. - Native skills: Codex global skills live in
~/.codex/skills/, Claude Code project skills live in.claude/skills/, and the full shared source remains in.agent/skills/.
Directory Layout
.agent/
├── agents/
├── docs/
│ ├── architecture.md
│ ├── conventions.md
│ ├── project.md
│ ├── tooling.md
│ └── workflow.md
├── rules/
├── skills/
└── workflows/The generated project copies selected native skills to global user folder and project folder:
~/.codex/skills/
.claude/skills/Development
npm install
npm test
npm pack --dry-runThe npm package page updates only after npm publish.
