Skip to content

improve agent skills and docs for AI integration#142

Merged
eluce2 merged 1 commit intomainfrom
03-15-improve_agent_skills_and_docs_for_ai_integration
Mar 15, 2026
Merged

improve agent skills and docs for AI integration#142
eluce2 merged 1 commit intomainfrom
03-15-improve_agent_skills_and_docs_for_ai_integration

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Mar 15, 2026

  • Add warnings to skills to prevent manually adding fields/entity IDs
  • Deduplicate common mistakes across skills with cross-refs to typegen-setup
  • Move tanstack intent install instruction after package install in docs
  • Add 'Built for AI Agents' section to docs homepage
  • Add clarifying note to fmodata overview AI section

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Summary by CodeRabbit

  • New Features

    • Added a "Built for AI Agents" section on the homepage highlighting agent-focused capabilities.
  • Documentation

    • Stronger guidance recommending automatic schema generation and re-running the generator after metadata changes.
    • Explicit warnings that field and entity IDs must come from generated metadata—do not invent or manually add them.
    • Reorganized and clarified AI Agent integration and setup instructions to reduce common mistakes.

@vercel
Copy link

vercel bot commented Mar 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
proofkit-docs Ready Ready Preview Mar 15, 2026 8:04pm

Request Review

Copy link
Collaborator Author

eluce2 commented Mar 15, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@eluce2
Copy link
Collaborator Author

eluce2 commented Mar 15, 2026

CleanShot 2026-03-15 at 14 53 02@2x

@eluce2 eluce2 marked this pull request as ready for review March 15, 2026 19:53
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 15, 2026

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@142

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@142

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@142

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@142

@proofkit/fmodata

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmodata@142

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@142

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@142

commit: 94f4443

@coderabbitai
Copy link

coderabbitai bot commented Mar 15, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 67f97325-1c2f-41cf-8a71-e2c406c7c838

📥 Commits

Reviewing files that changed from the base of the PR and between 94f4443 and f3980b1.

📒 Files selected for processing (9)
  • .changeset/fix-skill-typegen-warnings.md
  • apps/docs/content/docs/fmodata/index.mdx
  • apps/docs/content/docs/fmodata/quick-start.mdx
  • apps/docs/src/app/(home)/page.tsx
  • packages/fmdapi/skills/fmdapi-client/SKILL.md
  • packages/fmodata/skills/fmodata-client/SKILL.md
  • packages/fmodata/skills/odata-query-optimization/SKILL.md
  • packages/typegen/skills/getting-started/SKILL.md
  • packages/typegen/skills/typegen-setup/SKILL.md

📝 Walkthrough

Walkthrough

Adds a changeset and updates documentation and a docs homepage section to warn that schema files and entity IDs must be generated by @proofkit/typegen (avoid manual field additions or invented FMFID/FMTID), reorganizes quick-start content, and references a centralized typegen-setup for overrides.

Changes

Cohort / File(s) Summary
Typegen & Skill docs
packages/typegen/skills/getting-started/SKILL.md, packages/typegen/skills/typegen-setup/SKILL.md, packages/fmdapi/skills/fmdapi-client/SKILL.md, packages/fmodata/skills/fmodata-client/SKILL.md, packages/fmodata/skills/odata-query-optimization/SKILL.md
Added guidance and explicit warnings that fmTableOccurrence schemas, fields, and entity IDs must be generated by @proofkit/typegen from FileMaker metadata; added examples and notes about allowed customizations via typegen override files and not to invent FMFID/FMTID.
Docs site content
apps/docs/content/docs/fmodata/index.mdx, apps/docs/content/docs/fmodata/quick-start.mdx
Refined AI Agent Integration wording in index and moved/relocated the AI Agent block into the first step of quick-start; preserved commands and intent while changing placement and surrounding structure.
Docs homepage UI
apps/docs/src/app/(home)/page.tsx
Expanded lucide-react imports and added a "Built for AI Agents" UI section with three feature blocks and icons (Brain, ShieldCheck, Bot / WandSparkles heading).
Changeset / Release
.changeset/fix-skill-typegen-warnings.md
New changeset bumping patch versions for @proofkit/fmdapi, @proofkit/fmodata, and @proofkit/typegen; documents behavioral change introducing typegen-related warnings and deduplication of common skill mistakes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • chriscors
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'improve agent skills and docs for AI integration' directly aligns with the main objectives of the PR, which include enhancing skills documentation with warnings and adding AI-focused content to the homepage.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 03-15-improve_agent_skills_and_docs_for_ai_integration
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/docs/src/app/(home)/page.tsx (1)

128-151: Use heading elements for feature titles and mark icons as decorative.

At Line 128, Line 138, and Line 148, consider <h3> instead of <div> for feature titles, and set icon components to aria-hidden="true" to avoid noisy screen-reader output.

♻️ Suggested refinement
- <div className="flex items-center gap-2 font-semibold">
-   <Brain className="size-5 text-brand" />
-   Expert knowledge built in
- </div>
+ <h3 className="flex items-center gap-2 font-semibold">
+   <Brain aria-hidden="true" className="size-5 text-brand" />
+   <span>Expert knowledge built in</span>
+ </h3>

- <div className="flex items-center gap-2 font-semibold">
-   <ShieldCheck className="size-5 text-brand" />
-   Type-safe by default
- </div>
+ <h3 className="flex items-center gap-2 font-semibold">
+   <ShieldCheck aria-hidden="true" className="size-5 text-brand" />
+   <span>Type-safe by default</span>
+ </h3>

- <div className="flex items-center gap-2 font-semibold">
-   <Bot className="size-5 text-brand" />
-   Works with any agent
- </div>
+ <h3 className="flex items-center gap-2 font-semibold">
+   <Bot aria-hidden="true" className="size-5 text-brand" />
+   <span>Works with any agent</span>
+ </h3>

As per coding guidelines, "Use semantic HTML and ARIA attributes for accessibility ... Use semantic elements (<button>, <nav>, etc.) instead of divs with roles."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/src/app/`(home)/page.tsx around lines 128 - 151, Replace the
non-semantic title containers with heading elements and mark the icons as
decorative: change the three feature title containers that currently use <div
className="flex items-center gap-2 font-semibold"> (the ones containing the
Brain, ShieldCheck, and Bot icons) to <h3> elements for proper document
structure, and add aria-hidden="true" to the Brain, ShieldCheck, and Bot icon
components so screen readers ignore them while keeping the visible layout
intact.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/typegen/skills/typegen-setup/SKILL.md`:
- Around line 66-75: Update the markdown heading "OData generated output
structure" to use the hyphenated form "OData-generated output structure" and add
a fenced-code language marker to the example block (e.g., change the triple
backticks to include a language like "text") so the schema snippet is properly
highlighted; target the heading and the fenced code block in the SKILL.md
section that contains the schema/odata/generated example (search for the
"fmTableOccurrence" mention and the code fence).

---

Nitpick comments:
In `@apps/docs/src/app/`(home)/page.tsx:
- Around line 128-151: Replace the non-semantic title containers with heading
elements and mark the icons as decorative: change the three feature title
containers that currently use <div className="flex items-center gap-2
font-semibold"> (the ones containing the Brain, ShieldCheck, and Bot icons) to
<h3> elements for proper document structure, and add aria-hidden="true" to the
Brain, ShieldCheck, and Bot icon components so screen readers ignore them while
keeping the visible layout intact.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 91f559b1-a3aa-4792-bb15-84b5c60644d7

📥 Commits

Reviewing files that changed from the base of the PR and between 37c3c1f and 94f4443.

📒 Files selected for processing (9)
  • .changeset/fix-skill-typegen-warnings.md
  • apps/docs/content/docs/fmodata/index.mdx
  • apps/docs/content/docs/fmodata/quick-start.mdx
  • apps/docs/src/app/(home)/page.tsx
  • packages/fmdapi/skills/fmdapi-client/SKILL.md
  • packages/fmodata/skills/fmodata-client/SKILL.md
  • packages/fmodata/skills/odata-query-optimization/SKILL.md
  • packages/typegen/skills/getting-started/SKILL.md
  • packages/typegen/skills/typegen-setup/SKILL.md

- Add warnings to skills to prevent manually adding fields/entity IDs
- Deduplicate common mistakes across skills with cross-refs to typegen-setup
- Move tanstack intent install instruction after package install in docs
- Add 'Built for AI Agents' section to docs homepage
- Add clarifying note to fmodata overview AI section
- Restore wrong/correct examples for deduped common mistakes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@eluce2 eluce2 force-pushed the 03-15-improve_agent_skills_and_docs_for_ai_integration branch from 94f4443 to f3980b1 Compare March 15, 2026 20:02
@eluce2 eluce2 merged commit d331642 into main Mar 15, 2026
11 of 13 checks passed
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