Skip to content
laravel avatar

Pennant Development

Laravel Pennant feature flag guidance covering definitions, checks, Blade directives, and scoped activation.

CCM score
63 of 100
skills.sh installs
291
GitHub stars
3.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers defining, checking, and activating feature flags with Feature::define, Feature::active, and Feature::for
  • Includes a @feature Blade directive example with @else fallback and a short verification checklist
  • Flags a common pitfall: forgetting to scope features to specific users or other entities
  • Designed for Laravel projects that gate new functionality behind feature flags

Install

$ npx -y skills add laravel/boost --skill pennant-development -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Pennant features

Documentation

Use search-docs for detailed Pennant patterns and documentation.

Basic usage

Defining features

use Laravel\Pennant\Feature;

Feature::define('new-dashboard', function (User $user) {
    return $user->isAdmin();
});

Checking features

if (Feature::active('new-dashboard')) {
    // Feature is active
}

// With scope
if (Feature::for($user)->active('new-dashboard')) {
    // Feature is active for this user
}

Blade directive

@feature('new-dashboard')
    <x-new-dashboard />
@else
    <x-old-dashboard />
@endfeature

Activating and deactivating

Feature::activate('new-dashboard');
Feature::for($user)->activate('new-dashboard');

Verification

  1. Check that the feature flag is defined
  2. Test with different scopes and users

Common pitfalls

  • Forgetting to scope features for specific users or other entities
  • Not following existing naming conventions

Details

Repository
github.com/laravel/boost
Category
PHP & Laravel
First seen
Jun 3, 2026

Questions

What does the pennant-development skill do?

It guides an agent through Laravel Pennant, the official Laravel feature flag package. It covers defining and checking feature flags, Blade @feature directives, scoping flags to users, testing flags, and A/B testing or gradual rollouts.

How do I install the pennant-development skill?

Run npx -y skills add laravel/boost --skill pennant-development -y in your project. After that the agent can define features, check whether they are active, and scope them to users or teams.

Which category does pennant-development belong to, and how does it rank?

It sits in the PHP & Laravel category on Claude Marketplaces and ranks in the top 100 there. Other popular skills in the category include laravel-specialist, php-pro and laravel-patterns.

When should I use pennant-development instead of a general Laravel skill?

Use it when the task names Pennant or involves feature flags and feature toggles in a Laravel project. It does not cover general Laravel configuration, authorization policies or authentication.

More from laravel/boost

All 5

Similar to Pennant Development

More PHP & Laravel