Skip to content

docs(agent-skills): clarify when --family is needed vs auto-detected - #539

Merged
ketanyekale merged 3 commits into
mainfrom
docs/skills-family-autodetect
Oct 6, 2026
Merged

ketanyekale merged 3 commits into
mainfrom
docs/skills-family-autodetect

Conversation

@raj-dubey1

Copy link
Copy Markdown
Contributor

What & why

A support ticket (45571) showed a user running npx @cometchat/skills add in their home directory (no project yet). Detection correctly found no framework and refused; the user then forced --family react, which installed the skills into the home folder — a false "success" in the wrong place. The confusion: it's unclear from the docs that --family is optional and only needed when detection can't resolve a framework.

This clarifies the detection Note on the Agent Skills page (agent-skills.mdx).

Change

Rewrites the Note under Supported platforms to state plainly:

  • --family is optional — run add inside your app and it auto-detects the platform.
  • You only name the platform yourself when detection can't resolve one:
    • New/empty folder (no app yet) or wrong directory → best fix is to cd into your app first (so files land in the project); otherwise pass --family <platform>.
    • Monorepo root → run inside the app package, or pass --family.
    • Headless SDK / calls skills → no UI Kit to detect (existing behavior).

Docs-only; no code changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PT9pMg3MSZEW3gsb6jPc3E

…uired when no framework is detected

Explain that `npx @cometchat/skills add` auto-detects the framework inside an app
and `--family` is only needed when detection can't resolve one — an empty/new folder
(no app yet) or the wrong directory, a monorepo root, or headless SDK/calls skills.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PT9pMg3MSZEW3gsb6jPc3E
@mintlify

mintlify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Oct 6, 2026, 10:05 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@raj-dubey1

Copy link
Copy Markdown
Contributor Author

Added a one-line warning under the empty-folder --family fallback: the skills install into the folder you run the command in, so run it inside your app's project folder.

ketanyekale
ketanyekale previously approved these changes Oct 6, 2026
… the project root

The Note above says a monorepo root is the wrong place to run add; the Install
step now matches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NgVCxHs3h8m72GXvC8HaV1
@raj-dubey1

Copy link
Copy Markdown
Contributor Author

Fixed the Install step's wording to match the Note (it said "project root", which contradicted the monorepo bullet). It now reads: Run the installer in your app's folder (in a monorepo, the app package, not the repo root):

🤖 Generated with Claude Code

https://claude.ai/code/session_01NgVCxHs3h8m72GXvC8HaV1

@ketanyekale
ketanyekale merged commit 5f98b8c into main Oct 6, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
staging — 927f7c9a Deployed Oct 6, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants