Najaah LMS - Code Quality Agent

Enforces code quality standards for the Najaah LMS project using Pest, PHPStan, and Laravel Pint.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/tarekBassiouny/najaah-backend --skill najaah-lms-code-quality-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Najaah LMS - Code Quality Agent
Source: https://github.com/tarekBassiouny/najaah-backend/tree/main/.claude/skills/najaah-quality
Command: npx skills add https://github.com/tarekBassiouny/najaah-backend --skill najaah-lms-code-quality-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining high code quality, ensuring consistency, and preventing bugs in the Najaah LMS project by enforcing testing standards, linting, and type safety.

Core Features & Use Cases

  • Automated Testing: Write and run unit, feature, and integration tests using Pest.
  • Code Quality Checks: Enforce coding standards with Laravel Pint and perform static analysis with PHPStan.
  • CI/CD Integration: Set up quality gates in CI/CD pipelines to maintain project health.
  • Use Case: When developing a new feature, use this Skill to automatically generate tests, run code linters, and perform static analysis to ensure the new code meets project quality standards before merging.

Quick Start

Run all quality checks for the Najaah LMS project using the provided commands.

Frequently Asked Questions about Najaah LMS - Code Quality Agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce code quality standards in a Laravel project using Pest and PHPStan?

You can enforce code quality by running Pest for automated testing, configuring PHPStan for type safety, and applying PSR-12 standards with Laravel Pint. This combination ensures consistency and prevents bugs in your Laravel application.

What is the best way to set up CI/CD quality gates for PHP testing and static analysis?

The best way to set up CI/CD quality gates is to integrate automated testing, static analysis, and linting into your pipeline. This ensures continuous quality assurance by preventing code that fails checks from merging.

Can I use Laravel Pint to enforce PSR-12 coding standards automatically?

Yes, you can use Laravel Pint to automatically enforce PSR-12 coding standards. It acts as a linter and formatter to ensure your PHP code adheres to the defined style guidelines.

How do I generate comprehensive test suites for new features in a Laravel LMS?

You can generate comprehensive test suites by utilizing Pest to write and run unit, feature, and integration tests. This ensures new features meet project quality standards before merging.

Does PHPStan static analysis work well with Pest tests for type safety?

Yes, PHPStan static analysis works alongside Pest tests to enforce type safety. While Pest handles runtime test execution, PHPStan checks code logic and type definitions statically to prevent type-related bugs.

Does PHPStan static analysis work well with Pest tests for type safety?

Yes, PHPStan static analysis works alongside Pest tests to enforce type safety. While Pest handles runtime test execution, PHPStan checks code logic and type definitions statically to prevent type-related bugs.