Skip to content

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

Open
raj-dubey1 wants to merge 2 commits into
mainfrom
docs/skills-family-autodetect
Open

raj-dubey1 wants to merge 2 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 5, 2026, 12:37 PM

💡 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.

This branch was successfully deployed

1 active deployment
staging — 98ac6efa Deployed Oct 5, 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.

1 participant