Skip to content

Refactor ai agent config - #10

Merged
kid1412621 merged 3 commits into
mainfrom
refactor-ai-agent-config
Jul 4, 2026
Merged

Refactor ai agent config#10
kid1412621 merged 3 commits into
mainfrom
refactor-ai-agent-config

Conversation

@kid1412621

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request restructures the project's documentation and agent guidelines by modularizing AGENTS.md into domain-specific rule files under .agents/rules/ and introducing comprehensive agent skill definitions (such as Hono, Bun, shadcn, and various TanStack libraries) across the monorepo. Additionally, .dockerignore is updated to exclude agent-related directories. The review feedback identifies a few minor issues: a duplicate placeholderData key in the TanStack Query skill documentation, a missing path for the root .agents/skills directory in .agents/skills.json, and a typo in .dockerignore referencing skill-lock.json instead of skills-lock.json.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +184 to +185
placeholderData: (previousData) => previousData, // keepPreviousData pattern
placeholderData: initialTodos,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The placeholderData key is defined twice in this object literal example. This duplicate key is redundant and can cause confusion or linter warnings. Consider removing one of the definitions or combining them into a single comment/example.

Suggested change
placeholderData: (previousData) => previousData, // keepPreviousData pattern
placeholderData: initialTodos,
placeholderData: (previousData) => previousData, // keepPreviousData pattern (or use initialTodos)

Comment thread .agents/skills.json Outdated
Comment thread .dockerignore Outdated

@kid1412621 kid1412621 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have completed the automated review of PR #10. I found several issues that need to be addressed:

  1. .dockerignore: Typo in lockfile name (skill-lock.json instead of skills-lock.json).
  2. .agents/skills.json: Path resolution issue and redundancy with the default customization root.
  3. client/.agents/skills/tanstack-query/SKILL.md: Duplicate placeholderData keys defined in the same options object inside a useQuery code block.
  4. client/skills-lock.json: Mismatched skillPath values for TanStack skills (contain a plugins/ prefix that doesn't match their actual location).
  5. server/skills-lock.json: Mismatched skillPath values for langchain/langgraph skills (contain a config/ prefix that doesn't match their actual location).
  6. skills-lock.json (root): Mismatched skillPath for the shadcn skill, which actually resides in the client/ workspace directory.

Please see the inline comments for details on how to resolve these issues.

Comment thread .dockerignore
.codex
AGENTS.md
CLAUDE.md
skill-lock.json

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect filename in .dockerignore: skill-lock.json is used here, but the actual lockfiles in the repository are named skills-lock.json (e.g. client/skills-lock.json, server/skills-lock.json, and skills-lock.json at the root).

Please change this to skills-lock.json or **/skills-lock.json to properly ignore these lockfiles.

Comment thread .agents/skills.json
@@ -0,0 +1,7 @@
{
"entries": [
{ "path": ".agents/skills" },

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paths in .agents/skills.json might be incorrect:

  1. .agents/skills is already the standard customization root and is automatically discovered, so registering it here is redundant.
  2. If the engine resolves paths in skills.json relative to the folder containing it (which is .agents/), then all of these paths will resolve to non-existent subdirectories (e.g. .agents/client/.agents/skills). In that case, they should use relative paths:
    • "skills" or "./skills"
    • "../client/.agents/skills"
    • "../server/.agents/skills"

Please verify how the path resolution is handled by the Antigravity engine and update the configuration.

initialData: () => cachedData,
initialDataUpdatedAt: Date.now() - 10000,
placeholderData: (previousData) => previousData, // keepPreviousData pattern
placeholderData: initialTodos,

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate key placeholderData in JS code block:

placeholderData: (previousData) => previousData, // keepPreviousData pattern
placeholderData: initialTodos,

Defining placeholderData twice inside the same options object passed to useQuery is a configuration/syntax error. Please separate these examples or clean it up.

Comment thread client/skills-lock.json
"tanstack-devtools": {
"source": "tanstack-skills/tanstack-skills",
"sourceType": "github",
"skillPath": "plugins/tanstack-devtools/skills/tanstack-devtools/SKILL.md",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect skillPath values for TanStack skills:
The paths are recorded as "plugins/tanstack-devtools/skills/tanstack-devtools/SKILL.md", but the actual files in the repository are located directly at client/.agents/skills/tanstack-devtools/SKILL.md (which maps to skills/tanstack-devtools/SKILL.md relative to the client's customization root).

These should be updated to "skills/tanstack-devtools/SKILL.md", etc.

Comment thread server/skills-lock.json
"langchain-dependencies": {
"source": "langchain-ai/langchain-skills",
"sourceType": "github",
"skillPath": "config/skills/langchain-dependencies/SKILL.md",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect skillPath values for langchain/langgraph skills:
The paths are recorded with a "config/" prefix (e.g. "config/skills/langchain-dependencies/SKILL.md"), but the files are added at server/.agents/skills/langchain-dependencies/SKILL.md (which maps to "skills/langchain-dependencies/SKILL.md" relative to the server customization root).

These should be updated to "skills/langchain-dependencies/SKILL.md", etc.

Comment thread skills-lock.json
"shadcn": {
"source": "shadcn/ui",
"sourceType": "github",
"skillPath": "skills/shadcn/SKILL.md",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect skillPath for shadcn:
The root workspace skills-lock.json registers shadcn with path "skills/shadcn/SKILL.md", but the actual skill file is located at client/.agents/skills/shadcn/SKILL.md. If the root configuration resolves this skill via the entries in skills.json, the path should correctly point to where it actually is, or the duplicate entry in root skills-lock.json should be removed if the root workspace does not load/need the shadcn skill.

@kid1412621
kid1412621 merged commit a87f01d into main Jul 4, 2026
4 checks passed
@kid1412621
kid1412621 deleted the refactor-ai-agent-config branch July 4, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant