[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABVD8FM7FSDA9R296R6NKE":3,"skill-same:01M7ABVD8FM7FSDA9R296R6NKE":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7ABVD8FM7FSDA9R296R6NKE","z-syst-pharmacy-refactor",null,"Refactor Z-Syst Pharmacy Laravel code toward service-driven stock allocation, module provider consistency, and production-ready module routing. Use when replacing legacy Stock\u002FProductStock writes, fixing module auto-registration, or improving pharmacy business logic separation.","darkcsda\u002FZ-Syst","darkcsda","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F315146695?v=4","01M7ABPBWKDCW5K0S2AGFQP0B4","01M7ABPBX9W2V48SH1FAS2ARF8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fz-syst-pharmacy-refactor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: z-syst-pharmacy-refactor\ndescription: \"Refactor Z-Syst Pharmacy Laravel code toward service-driven stock allocation, module provider consistency, and production-ready module routing. Use when replacing legacy Stock\u002FProductStock writes, fixing module auto-registration, or improving pharmacy business logic separation.\"\nargument-hint: \"[task]\"\nlicense: MIT\nmetadata:\n  author: claudekit\n  version: \"1.0.0\"\n---\n\n# Z-Syst Pharmacy Refactor\n\nRefactor helper for the Z-Syst Pharmacy management app. Focuses on converting legacy inventory mutations to `StockAllocationService`, enforcing thin controllers, preserving auditability, and ensuring Laravel module\u002Fprovider routing works correctly.\n\n## When to Use\n\n- Replacing direct `Stock` or `ProductStock` writes with `StockAllocationService`\n- Fixing module service provider discovery in `app\u002FModules`\n- Verifying route loading for modular Laravel providers\n- Refactoring pharmacy stock, sales, GRN, prescription, purchase, and return workflows\n- Ensuring pessimistic locking and consistent audit trail for stock operations\n- Cleaning up legacy stock mutation code paths in controllers and services\n\n## Core Focus\n\n- Keep Controllers thin: validate, delegate, return response\n- Centralize stock mutation in `App\\Services\\Stock\\StockAllocationService`\n- Preserve business rules in Services, not Controllers\n- Use pessimistic locking for stock allocation and release\n- Maintain stock audit trail and avoid inconsistent direct model updates\n- Support real pharmacy flows: purchases, GRN, sales, returns, prescriptions\n\n## Primary Patterns\n\n### Stock Allocation\n\nAlways prefer `StockAllocationService` over direct `Stock` \u002F `ProductStock` mutation:\n\n- `StockAllocationService::addToProductStock($payload)`\n- `StockAllocationService::allocateToProductStock($payload)`\n- `StockAllocationService::addToLegacyStock($payload)`\n- `StockAllocationService::releaseFromProductStock($payload)`\n- `StockAllocationService::allocate($payload)`\n- `StockAllocationService::release($payload)`\n\nUse these methods for:\n\n- GRN receipt\n- Sales and POS deductions\n- Prescription dispensing\n- Purchase returns and sale returns\n- Stock transfers and legacy stock updates\n\n### Service Layer\n\n- Controllers should only orchestrate requests and responses\n- Business logic should live in Service classes such as:\n  - `GoodsReceivedNoteService`\n  - `PrescriptionService`\n  - `PurchaseOrderReturnService`\n  - `SaleService`\n  - `InvoiceOcrService`\n- Use dependency injection and dedicated request validation classes\n\n### Provider Auto-Discovery\n\nFor modular route\u002Fprovider loading, ensure each module exposes a valid provider class in `app\u002FModules\u002F{ModuleName}`. Prefer a fallback resolution strategy when module names do not match provider class names exactly.\n\n### Route Validation\n\nAfter provider fixes, verify module routes using:\n\n```bash\nphp artisan route:list --name=auth\nphp artisan route:list --path=api\n```\n\nand clear caches when needed:\n\n```bash\nphp artisan config:clear\nphp artisan route:clear\nphp artisan cache:clear\ncomposer dump-autoload\n```\n\n## Recommended Workflow\n\n1. Search for legacy stock model usage:\n   ```bash\ngrep -R \"new Stock\\|ProductStock::\\|Stock::\" app\u002FHttp app\u002FServices\n```\n2. Replace direct writes with `StockAllocationService` calls\n3. Keep controller methods thin and move business logic to service methods\n4. Clear Laravel caches and confirm routes\u002Fproviders load\n5. Run focused tests for stock movement and prescription flows\n\n## Avoid\n\n- Direct `Stock::create`, `Stock::update`, or `ProductStock::create` for write operations\n- Business logic scattered across controllers\n- Stale or misnamed module provider classes\n- Ignoring `company_id`, `branch_id`, or warehouse scope in stock workflows\n- Bypassing audit trail on inventory changes\n\n## Example Replacement\n\n```php\n\u002F\u002F BAD\nStock::where('id', $stockId)->decrement('quantity', $qty);\n\n\u002F\u002F GOOD\nStockAllocationService::allocateToProductStock([\n    'product_id' => $productId,\n    'branch_id' => $branchId,\n    'quantity' => $qty,\n    'reference_type' => Sale::class,\n    'reference_id' => $saleId,\n]);\n```\n\n## Scope\n\nThis skill applies to the Z-Syst Pharmacy Laravel codebase, especially the following areas:\n\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FAcnooSaleController.php`\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FGoodsReceivedNoteController.php`\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FV1\u002FPrescriptionController.php`\n- `app\u002FServices\u002FPrescriptionService.php`\n- `app\u002FServices\u002FInvoiceOcrService.php`\n- `app\u002FServices\u002FStock\u002FStockAllocationService.php`\n- `app\u002FShared\u002FProviders\u002FModuleServiceProvider.php`\n\n## When Not to Use\n\n- Generic Laravel apps unrelated to pharmacy or inventory management\n- Tasks that do not involve stock workflows, provider registration, or modular route loading\n- UI-only work without backend inventory\u002Fbusiness logic changes\n","# Z-Syst Pharmacy Refactor\n\nRefactor helper for the Z-Syst Pharmacy management app. Focuses on converting legacy inventory mutations to `StockAllocationService`, enforcing thin controllers, preserving auditability, and ensuring Laravel module\u002Fprovider routing works correctly.\n\n## When to Use\n\n- Replacing direct `Stock` or `ProductStock` writes with `StockAllocationService`\n- Fixing module service provider discovery in `app\u002FModules`\n- Verifying route loading for modular Laravel providers\n- Refactoring pharmacy stock, sales, GRN, prescription, purchase, and return workflows\n- Ensuring pessimistic locking and consistent audit trail for stock operations\n- Cleaning up legacy stock mutation code paths in controllers and services\n\n## Core Focus\n\n- Keep Controllers thin: validate, delegate, return response\n- Centralize stock mutation in `App\\Services\\Stock\\StockAllocationService`\n- Preserve business rules in Services, not Controllers\n- Use pessimistic locking for stock allocation and release\n- Maintain stock audit trail and avoid inconsistent direct model updates\n- Support real pharmacy flows: purchases, GRN, sales, returns, prescriptions\n\n## Primary Patterns\n\n### Stock Allocation\n\nAlways prefer `StockAllocationService` over direct `Stock` \u002F `ProductStock` mutation:\n\n- `StockAllocationService::addToProductStock($payload)`\n- `StockAllocationService::allocateToProductStock($payload)`\n- `StockAllocationService::addToLegacyStock($payload)`\n- `StockAllocationService::releaseFromProductStock($payload)`\n- `StockAllocationService::allocate($payload)`\n- `StockAllocationService::release($payload)`\n\nUse these methods for:\n\n- GRN receipt\n- Sales and POS deductions\n- Prescription dispensing\n- Purchase returns and sale returns\n- Stock transfers and legacy stock updates\n\n### Service Layer\n\n- Controllers should only orchestrate requests and responses\n- Business logic should live in Service classes such as:\n  - `GoodsReceivedNoteService`\n  - `PrescriptionService`\n  - `PurchaseOrderReturnService`\n  - `SaleService`\n  - `InvoiceOcrService`\n- Use dependency injection and dedicated request validation classes\n\n### Provider Auto-Discovery\n\nFor modular route\u002Fprovider loading, ensure each module exposes a valid provider class in `app\u002FModules\u002F{ModuleName}`. Prefer a fallback resolution strategy when module names do not match provider class names exactly.\n\n### Route Validation\n\nAfter provider fixes, verify module routes using:\n\n```bash\nphp artisan route:list --name=auth\nphp artisan route:list --path=api\n```\n\nand clear caches when needed:\n\n```bash\nphp artisan config:clear\nphp artisan route:clear\nphp artisan cache:clear\ncomposer dump-autoload\n```\n\n## Recommended Workflow\n\n1. Search for legacy stock model usage:\n   ```bash\ngrep -R \"new Stock\\|ProductStock::\\|Stock::\" app\u002FHttp app\u002FServices\n```\n2. Replace direct writes with `StockAllocationService` calls\n3. Keep controller methods thin and move business logic to service methods\n4. Clear Laravel caches and confirm routes\u002Fproviders load\n5. Run focused tests for stock movement and prescription flows\n\n## Avoid\n\n- Direct `Stock::create`, `Stock::update`, or `ProductStock::create` for write operations\n- Business logic scattered across controllers\n- Stale or misnamed module provider classes\n- Ignoring `company_id`, `branch_id`, or warehouse scope in stock workflows\n- Bypassing audit trail on inventory changes\n\n## Example Replacement\n\n```php\n\u002F\u002F BAD\nStock::where('id', $stockId)->decrement('quantity', $qty);\n\n\u002F\u002F GOOD\nStockAllocationService::allocateToProductStock([\n    'product_id' => $productId,\n    'branch_id' => $branchId,\n    'quantity' => $qty,\n    'reference_type' => Sale::class,\n    'reference_id' => $saleId,\n]);\n```\n\n## Scope\n\nThis skill applies to the Z-Syst Pharmacy Laravel codebase, especially the following areas:\n\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FAcnooSaleController.php`\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FGoodsReceivedNoteController.php`\n- `app\u002FHttp\u002FControllers\u002FAPI\u002FV1\u002FPrescriptionController.php`\n- `app\u002FServices\u002FPrescriptionService.php`\n- `app\u002FServices\u002FInvoiceOcrService.php`\n- `app\u002FServices\u002FStock\u002FStockAllocationService.php`\n- `app\u002FShared\u002FProviders\u002FModuleServiceProvider.php`\n\n## When Not to Use\n\n- Generic Laravel apps unrelated to pharmacy or inventory management\n- Tasks that do not involve stock workflows, provider registration, or modular route loading\n- UI-only work without backend inventory\u002Fbusiness logic changes\n",{"name":5,"license":14,"metadata":23,"description":7,"argument-hint":26},{"author":24,"version":25},"claudekit","1.0.0","[task]","main","477372ecfb6eb5775bb91e70230c0b07d5466543",".claude\u002Fskills\u002Fz-syst-pharmacy-refactor","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst","https:\u002F\u002Fgithub.com\u002Fdarkcsda","2026-08-10 17:59:07",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add darkcsda\u002FZ-Syst --skill z-syst-pharmacy-refactor",{"tool":39,"command":40},"bunx","bunx skills add darkcsda\u002FZ-Syst --skill z-syst-pharmacy-refactor",{"tool":42,"command":43},"pnpm","pnpm dlx skills add darkcsda\u002FZ-Syst --skill z-syst-pharmacy-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fz-syst-pharmacy-refactor\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":52,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7ABV0D4A10REH1466N8GYKX","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7ABTRB5NK33XX09329ZKJGN","omniroute","Work effectively in the OmniRoute repository by understanding its architecture, implementing features safely, and validating changes across routing, compression, providers, and the UI.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fomniroute\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7ABTGRBWSNGA54AFJPBBEE7","developer-saas","Developer SaaS skill for planning, architecting, implementing, and launching modern software-as-a-service products. Covers multi-tenancy, subscription billing, API design, onboarding, operations, security, and product\u002Fengineering tradeoffs.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdeveloper-saas\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M7ABT8GAEEMYH3S4S18KV9D3","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7ABT48B0TQZA3KPS5QCGFE5","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7ABSD26RJ7NZ33W9E6KGH20","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002Fdarkcsda\u002FZ-Syst\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]