Skip to content

Add usehooks-ts AI agent skill and installation docs#722

Open
MAnasLatif wants to merge 3 commits into
juliencrn:masterfrom
MAnasLatif:master
Open

Add usehooks-ts AI agent skill and installation docs#722
MAnasLatif wants to merge 3 commits into
juliencrn:masterfrom
MAnasLatif:master

Conversation

@MAnasLatif
Copy link
Copy Markdown

Summary

  • Added a usehooks-ts AI agent skill under skills/usehooks-ts
  • Included references for hook selection, SSR/Next.js usage, composition recipes, testing, and migration pitfalls
  • Added an audit script for common usehooks-ts integration issues
  • Added agent metadata for OpenAI, Codex, Claude Code, Cursor, Windsurf, Gemini, Copilot, Aider, Cline, Roo Code, and generic loaders
  • Updated README files with skills.sh / npx skills add installation instructions

Validation

  • Parsed all agents/*.yaml files successfully
  • Ran python3 skills/usehooks-ts/scripts/audit_usehooks_ts_usage.py .
  • Result: No obvious usehooks-ts issues found.

Copilot AI review requested due to automatic review settings April 30, 2026 22:56
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

⚠️ No Changeset found

Latest commit: ca993f6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new usehooks-ts “AI agent skill” bundle (prompt + references + agent metadata) plus a Python audit helper script to detect common usehooks-ts integration pitfalls, and documents how to install the skill via npx skills add.

Changes:

  • Added skills/usehooks-ts skill entrypoint (SKILL.md), reference docs, and per-agent YAML metadata.
  • Added audit_usehooks_ts_usage.py script to scan projects for deep imports, removed hooks, and SSR/client-component pitfalls.
  • Updated repository and package READMEs with skills.sh / npx skills add installation instructions.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
skills/usehooks-ts/scripts/audit_usehooks_ts_usage.py New audit script for common import / SSR / migration checks
skills/usehooks-ts/references/testing-pitfalls.md Testing guidance, mocks, and migration pitfalls
skills/usehooks-ts/references/ssr-frameworks.md SSR / hydration guidance for Next.js and other frameworks
skills/usehooks-ts/references/hook-catalog.md Hook selection catalog and API notes aligned to repo v3
skills/usehooks-ts/references/composition-recipes.md Practical composition examples for common UI behaviors
skills/usehooks-ts/agents/windsurf.yaml Agent metadata for Windsurf
skills/usehooks-ts/agents/roo-code.yaml Agent metadata for Roo Code
skills/usehooks-ts/agents/openai.yaml Agent metadata for OpenAI
skills/usehooks-ts/agents/generic.yaml Generic agent loader metadata
skills/usehooks-ts/agents/gemini.yaml Agent metadata for Gemini
skills/usehooks-ts/agents/cursor.yaml Agent metadata for Cursor
skills/usehooks-ts/agents/copilot.yaml Agent metadata for Copilot
skills/usehooks-ts/agents/codex.yaml Agent metadata for Codex
skills/usehooks-ts/agents/cline.yaml Agent metadata for Cline
skills/usehooks-ts/agents/claude-code.yaml Agent metadata for Claude Code
skills/usehooks-ts/agents/aider.yaml Agent metadata for Aider
skills/usehooks-ts/SKILL.md Skill entrypoint with workflow and core rules
packages/usehooks-ts/README.md Documents installing/using the bundled AI agent skill
README.md Documents installing/using the bundled AI agent skill

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +69 to +76
def iter_source_files(root: Path):
for path in root.rglob("*"):
if path.is_dir():
continue
if any(part in IGNORE_DIRS for part in path.parts):
continue
if path.suffix in SOURCE_EXTENSIONS:
yield path
Comment on lines +80 to +84
for raw_line in text.splitlines():
line = raw_line.strip()
if not line or line.startswith("//"):
continue
return line in {"'use client'", '"use client"', "'use client';", '"use client";'}
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.

2 participants