/pf-react:pf-design-comments-setupfrom pf-react
Integrates @patternfly/design-comments into React apps for on-page design feedback, pinned comment threads, GitHub Issues sync, and Jira linking. Use when adding or removing design comment overlays.
Ships in pf-react. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add the @patternfly/design-comments floating comment overlay to the user's React app. The package pins feedback to UI elements, detects React components, and optionally syncs with GitHub Issues and Jira.
Confirm before installing:
webpack.dev.js (required for OAuth/Jira/summarize proxy middleware)src/app/ layout similar to PatternFly React Seed@patternfly/react-core, @patternfly/react-icons, react-router-dom v7If the project uses Vite, Create React App, or a different directory layout, warn the user that npx design-comments init may fail or need manual integration. Offer to scaffold with pf-project-gen first when starting from scratch.
package.json for React, PatternFly, and router versions.src/app/index.tsx, src/app/routes.tsx, and src/app/AppLayout/AppLayout.tsx exist (or note gaps).webpack.dev.js exists at the project root or under a config directory the dev script uses.Use the scoped npm package name:
npm install @patternfly/design-comments
Use yarn add @patternfly/design-comments if the project uses Yarn.
npx design-comments init
The CLI is interactive. It will:
CommentProvider and GitHubAuthProvider in src/app/index.tsxsrc/app/routes.tsxCommentPanel and CommentOverlay in src/app/AppLayout/AppLayout.tsxwebpack.dev.js with proxy middleware for GitHub OAuth, Jira, and optional AI summariessrc/app/Comments/Comments.tsx and env templatesLet the user answer prompts for GitHub OAuth and Jira. Both are optional — the overlay works without them.
After init, guide the user through env setup:
.env (client-safe values, may be committed)
.env.server (secrets — should stay in .gitignore)
MAAS_API_KEY, MAAS_ENDPOINT_URL, MAAS_MODEL (default gpt-4o-mini)See GITHUB_OAUTH_ENV_TEMPLATE.md in the package for OAuth setup details.
For production builds, set SUMMARIZE_API_URL when building so the client calls a hosted summarization endpoint. Do not put private API keys in client-bundled .env values.
npm run start:dev).Report what changed:
package.jsoninit (index, routes, AppLayout, webpack)Always run remove before uninstalling. The package modifies project files.
npx design-comments remove
npm uninstall @patternfly/design-comments
Then restart the dev server.
If the user already uninstalled without running remove and the app is broken:
npm install @patternfly/design-comments
npx design-comments remove
npm uninstall @patternfly/design-comments
The remove script reverses integration in src/app/index.tsx and src/app/AppLayout/AppLayout.tsx. Webpack middleware changes may need manual cleanup. .env and .env.server are kept intentionally.
After integration:
Optional AI summaries (Summarize all threads / this page / this thread) need the local webpack proxy or a production SUMMARIZE_API_URL backend.
If init cannot run, read the package README and scripts/README.md from node_modules/@patternfly/design-comments/ and apply the same changes by hand:
CommentPanel + CommentOverlay in the main layoutImport components from @patternfly/design-comments (package main: src/commenting-system/index.ts).
init only once per project unless the user asks to re-run after a failed partial install (the script is idempotent)eval/cases/boundary-vite-project/annotations.yaml (opens in a new tab)eval/cases/boundary-vite-project/input.yaml (opens in a new tab)eval/cases/explicit-add-comments/annotations.yaml (opens in a new tab)eval/cases/explicit-add-comments/input.yaml (opens in a new tab)eval/cases/negative-non-react/annotations.yaml (opens in a new tab)eval/cases/negative-non-react/input.yaml (opens in a new tab)eval/cases/uninstall-comments/annotations.yaml (opens in a new tab)eval/cases/uninstall-comments/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
patternfly, design-comments, design-review, comment-overlay, github-issues, jira
npx claudepluginhub rh-uxd/ai-helpers --plugin pf-react16 skills in this plugin
/pf-chart-genGenerate PatternFly chart components with theming, responsive sizing, and accessibility. Use when building charts, data visualizations, or dashboards with PatternFly./pf-chatbot-bundle-auditAudit PatternFly ChatBot imports for tree-shaking opportunities. Use when optimizing ChatBot bundle size or after upgrading @patternfly/chatbot.
/pf-component-checkAudit PatternFly React component nesting, wrapper hierarchies, and layout structure. Use when scanning for hierarchy violations or debugging spacing caused by missing wrapper components.Other plugins' skills for the same job