thachvd-kit 1.0.23 → 1.0.24

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.
@@ -12,4 +12,5 @@
12
12
 
13
13
  - Run the focused test or lint command that matches the touched area.
14
14
  - If no automated check exists, document the manual verification performed.
15
+ - For UI/web changes, prioritize using Playwright MCP to automatically verify client-side behavior and capture screenshots.
15
16
  - Do not claim completion without verification evidence.
@@ -6,6 +6,7 @@
6
6
  2. Read .agent/docs/project.md.
7
7
  3. Classify the request: question, survey, simple fix, feature, refactor, debug, UI, security, or deploy.
8
8
  4. Read only the relevant docs under .agent/agents, .agent/skills, .claude/skills, and .agent/workflows.
9
+ 5. Check if MCP servers (like `codegraph`) are active/available and prioritize using them as the primary entry point to search and locate files, symbols, and code blocks.
9
10
 
10
11
  ## Skill Selection
11
12
 
@@ -24,7 +25,7 @@
24
25
  2. Inspect dependent files before editing.
25
26
  3. Make the smallest coherent change.
26
27
  4. Add or update focused tests when behavior changes.
27
- 5. Run verification.
28
+ 5. Run verification (prioritize using Playwright MCP for web/UI changes to automate verification and capture screenshots).
28
29
  6. Summarize changed files and verification evidence.
29
30
 
30
31
  ## When To Update Docs
package/bin/cli.js CHANGED
@@ -931,6 +931,7 @@ If any \`.agent/docs/*.md\` file still contains \`TODO: refine\`, update the doc
931
931
  - State assumptions when the request is ambiguous.
932
932
  - Prefer the existing project style over new abstractions.
933
933
  - Keep changes surgical and remove only dead code introduced by your change.
934
+ - **MCP First**: Prioritize using MCP server tools (e.g., \`codegraph\` for codebase search/symbol tracking, \`context7\` for API/docs queries, and \`playwright\` for browser/UI testing and verification) to explore, search, and verify rather than recursively listing directories, running expensive shell commands/grep, or reading large files. This minimizes token usage and maintains a cleaner context.
934
935
  - Tests or equivalent verification are mandatory before claiming done.
935
936
  - Keep files under ${data.max_file_lines || '300'} lines unless the project already has a different standard in \`.agent/docs/conventions.md\`.
936
937
 
@@ -948,9 +949,11 @@ If any \`.agent/docs/*.md\` file still contains \`TODO: refine\`, update the doc
948
949
  `;
949
950
  }
950
951
 
951
- function generateSharedClaudeMd() {
952
+ function generateSharedClaudeMd(data) {
952
953
  return `@AGENTS.md
953
954
 
955
+ ${generateSharedAgentsMd(data)}
956
+
954
957
  ## Claude Code
955
958
 
956
959
  This repository uses AGENTS.md as the shared cross-agent entry file. Follow the imported instructions and keep Claude-specific notes here only when they cannot apply to Codex or Antigravity.
@@ -966,12 +969,16 @@ Read AGENTS.md first, then follow the shared docs under .agent/docs/.
966
969
  `;
967
970
  }
968
971
 
969
- function generateSharedCursorrules() {
972
+ function generateSharedCursorrules(data) {
970
973
  return `# Cursor Rules
971
974
 
972
975
  This repository uses AGENTS.md as the shared cross-agent entry file. Follow the instructions in AGENTS.md and keep Cursor-specific notes here only when they cannot apply to Codex, Antigravity, or Claude Code.
973
976
 
974
977
  Read AGENTS.md first, then follow the shared docs under .agent/docs/.
978
+
979
+ ---
980
+
981
+ ${generateSharedAgentsMd(data)}
975
982
  `;
976
983
  }
977
984
 
@@ -1119,6 +1126,7 @@ function generateConventionsDoc(data) {
1119
1126
 
1120
1127
  - Run the focused test or lint command that matches the touched area.
1121
1128
  - If no automated check exists, document the manual verification performed.
1129
+ - For UI/web changes, prioritize using Playwright MCP to automatically verify client-side behavior and capture screenshots.
1122
1130
  - Do not claim completion without verification evidence.
1123
1131
  `;
1124
1132
  }
@@ -1132,6 +1140,7 @@ function generateWorkflowDoc() {
1132
1140
  2. Read .agent/docs/project.md.
1133
1141
  3. Classify the request: question, survey, simple fix, feature, refactor, debug, UI, security, or deploy.
1134
1142
  4. Read only the relevant docs under .agent/agents, .agent/skills, .claude/skills, and .agent/workflows.
1143
+ 5. Check if MCP servers (like \`codegraph\`) are active/available and prioritize using them as the primary entry point to search and locate files, symbols, and code blocks.
1135
1144
 
1136
1145
  ## Skill Selection
1137
1146
 
@@ -1150,7 +1159,7 @@ function generateWorkflowDoc() {
1150
1159
  2. Inspect dependent files before editing.
1151
1160
  3. Make the smallest coherent change.
1152
1161
  4. Add or update focused tests when behavior changes.
1153
- 5. Run verification.
1162
+ 5. Run verification (prioritize using Playwright MCP for web/UI changes to automate verification and capture screenshots).
1154
1163
  6. Summarize changed files and verification evidence.
1155
1164
 
1156
1165
  ## When To Update Docs
@@ -1661,9 +1670,9 @@ async function main() {
1661
1670
 
1662
1671
  const generatedFiles = [
1663
1672
  ['AGENTS.md', generateSharedAgentsMd(data)],
1664
- ['CLAUDE.md', generateSharedClaudeMd()],
1673
+ ['CLAUDE.md', generateSharedClaudeMd(data)],
1665
1674
  ['GEMINI.md', generateSharedGeminiMd()],
1666
- ['.cursorrules', generateSharedCursorrules()],
1675
+ ['.cursorrules', generateSharedCursorrules(data)],
1667
1676
  [path.join('.agent', 'docs', 'project.md'), generateProjectDoc(data)],
1668
1677
  [path.join('.agent', 'docs', 'architecture.md'), generateArchitectureDoc(data)],
1669
1678
  [path.join('.agent', 'docs', 'conventions.md'), generateConventionsDoc(data)],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thachvd-kit",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Cross-agent project rules bootstrap kit for Codex, Antigravity, and Claude Code",
5
5
  "bin": {
6
6
  "thachvd-kit": "./bin/cli.js"