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
Own this skill? Claim it
What it does
- Covers defining, checking, and activating feature flags with
Feature::define,Feature::active, andFeature::for - Includes a
@featureBlade directive example with@elsefallback 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 -yInstalls 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
- Check that the feature flag is defined
- 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 5Similar to Pennant Development
More PHP & Laravellaravel-best-practicesSkilllaravel/boost2.8K installsIndex of Laravel best-practice rule files for code writing, review, and refactoring, covering queries, security, and architecture.
feature-flag-systemSkillaj-geddes/useful-ai-prompts448 installsImplementation guide for feature flags covering gradual rollouts, A/B tests, canaries, and kill switches.
launchdarkly-flag-createSkilllaunchdarkly/ai-tooling4.2K installsGuided creation of LaunchDarkly feature flags that first mirrors the codebase's existing flag patterns, naming, and defaults.
laravel-permission-developmentSkillspatie/laravel-permission335 installsAuthorization toolkit for Laravel built on spatie/laravel-permission, covering roles, permissions, middleware, and Blade directives.
feature-flag-managerPlugindevsforge/marketplace81 starsFeature flag management and gradual rollout strategies