hadyfayed/laravel-agent/feature-flag-make

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
Source check pending

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-make

Semi-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/off
  • ab-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

  1. Verify Pennant is installed:

``bash composer show laravel/pennant 2>/dev/null || { echo "Pennant not found. Install with: composer require laravel/pennant" exit 1 } ``

  1. Create app/Features directory if missing:

``bash mkdir -p app/Features ``

  1. 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
  1. Test the feature:

``bash php artisan tinker ` Then in Tinker: `php Feature::active(App\Features\<FeatureName>::class) ``

  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/feature-flag-make/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/feature-flag-make)

Something wrong with this skill or its page? Tell us.