hadyfayed/laravel-agent/feature-flag-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Define a Laravel Pennant feature flag (class-based or simple), with scoping and rollout; when adding feature flags / A-B tests.
Install
npx vskill@latest install hadyfayed/laravel-agent/feature-flag-makeSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/feature-flag-make.
Current context
!ls -la app/Features/ 2>/dev/null || echo "No Features dir yet"
Task
Generate a Laravel Pennant feature flag class with the requested type and scoping.
Input
- FeatureName: PascalCase class name (e.g.,
NewDashboard,CheckoutVariant) - Type: Feature flag resolution logic (default:
boolean) boolean— Simple on/offab-test— Multiple variants (A/B/C testing with weighted distribution)percentage— Gradual percentage rollout (e.g., 25% of users)segment— User/team/subscription segment (conditional logic)subscription— Subscription plan-based feature gating
- Specification: Scoping details (e.g., percentage value, segment condition, subscription tier)
Steps
- Verify Pennant is installed:
``bash composer show laravel/pennant 2>/dev/null || { echo "Pennant not found. Install with: composer require laravel/pennant" exit 1 } ``
- Create app/Features directory if missing:
``bash mkdir -p app/Features ``
- Generate the feature flag class in
app/Features/<FeatureName>.php:
- Use the patterns in
${CLAUDE_SKILL_DIR}/references/feature-types.md - For `boolean`: Simple true/false in
resolve(mixed $scope): bool - For `ab-test`: Weighted variants using
Arr::random()or lottery, return string variant name - For `percentage`: Use
Lottery::odds($percent, 100)->choose()for gradual rollout - For `segment`: Match pattern on scope (User, Team, etc.), multiple conditions in
resolve() - For `subscription`: Check subscription status on User scope
- Test the feature:
``bash php artisan tinker ` Then in Tinker: `php Feature::active(App\Features\<FeatureName>::class) ``
- Verify the class was created:
``bash cat app/Features/<FeatureName>.php ``
Reference material
For feature class patterns and rollout strategies, see:
${CLAUDE_SKILL_DIR}/references/feature-types.md— class-based examples for each type${CLAUDE_SKILL_DIR}/references/testing.md— test patterns with Pennant${CLAUDE_SKILL_DIR}/references/rollout-strategy.md— phased & scheduled rollouts
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/feature-flag-make/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/feature-flag-make)