.cursor/skills/nazim-help-center-management/SKILL.md
Platform admin help center CRUD for categories and articles. Use when working on Help Center Management page, categories, articles, slugs, or ordering. Uses platformApi and usePlatformAdminPermissions; no organization_id.
npx skillsauth add AHMADJAN-New/nazim-web nazim-help-center-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Platform admins manage help center categories and articles via the Platform Admin app. This skill covers the CRUD UI and API patterns. For generating article content (EN→PS workflow), use nazim-help-articles.
/platform/help-center; uses platformApi, usePlatformAdminPermissionsFrom frontend/src/platform/hooks/usePlatformAdminComplete.tsx:
usePlatformCreateHelpCenterCategory, usePlatformUpdateHelpCenterCategory, usePlatformDeleteHelpCenterCategoryusePlatformCreateHelpCenterArticle, usePlatformUpdateHelpCenterArticle, usePlatformDeleteHelpCenterArticleCategories and articles are fetched via platformApi.helpCenter.categories.list() and platformApi.helpCenter.articles.list() (query keys: platform-help-center-categories, platform-help-center-articles).
categories.list(params?), categories.get(id), categories.create(data), categories.update(id, data), categories.delete(id)articles.list(params?), articles.get(id), articles.create(data), articles.update(id, data), articles.delete(id), articles.publish(id), articles.unpublish(id)All endpoints use /platform/help-center/* prefix.
name, slug, description, icon, color, order, is_active, parent_idcategory_id, title, slug, excerpt, content, content_type ('markdown' | 'html'), language ('en' | 'ps' | 'fa' | 'ar')is_published, is_featured, is_pinned, ordermeta_title, meta_description, tags, related_article_ids, author_idTypes: frontend/src/types/api/helpCenter.ts
After adding or updating articles (e.g. from markdown or API), sync to DB with:
cd backend && php artisan db:seed --class=HelpCenterArticleSeeder
platformApi.helpCenter.* (not main app apiClient)usePlatformAdminPermissions(); redirect if no subscription.adminplatform-help-center-categories and platform-help-center-articles after mutationstools
Toast notifications for Nazim. Use when showing success/error/info messages. ALWAYS use showToast from @/lib/toast with translation keys; never toast from sonner directly. RTL positioning is automatic.
tools
Enforces status badge patterns for Nazim UI. Use when displaying status in tables, cards, or dialogs. Covers Badge variants, semantic colors, statusBadgeVariant, statusOptions with color.
development
Enforces mobile-first responsive patterns for Nazim UI. Use when building pages, tables, forms, charts, or buttons. Covers page container, FilterPanel, tabs, grids, tables, charts, cards, buttons.
development
PDF and Excel report generation for Nazim. Use when adding or changing reports. Backend uses ReportService and ReportConfig; frontend uses useServerReport. Covers branding, DateConversionService, RTL, acceptance criteria.