create-feature-flags
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "create-feature-flags" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4d0aa4cef9d4d752a9dc32f0ba8ee923daed754ff9cddd8ce268fb2c9bd2bb55. Verify the upstream source and version against https://github.com/dykyi-roman/awesome-claude-code before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate a feature-flag implementation for PHP projects. Includes creating a flag service, configuration management, percentage rollouts, user targeting, and integration with deployment pipelines.
Introduction source: third_party · dykyi-roman · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Generates feature flag implementations for PHP projects. Creates flag services, configuration, percentage rollouts, user targeting, and integration with deployment pipelines.
- Testing
- Not tested
Browse files
Frontmatter
name: create-feature-flags
description: Generates feature flag implementations for PHP projects. Creates flag services, configuration, percentage rollouts, user targeting, and integration with deployment pipelines.Feature Flag Generator
Generates feature flag implementation for progressive deployments.
Feature Flag Service Interface
<?php
// src/Infrastructure/FeatureFlag/FeatureFlagServiceInterface.php
declare(strict_types=1);
namespace App\Infrastructure\FeatureFlag;
interface FeatureFlagServiceInterface
{
/**
* Check if a feature is enabled globally.
*/
public function isEnabled(string $feature): bool;
/**
* Check if a feature is enabled for a specific user.
*/
public function isEnabledForUser(string $feature, string $userId): bool;
/**
* Check if a feature is enabled based on percentage rollout.
*/
public function isEnabledForPercentage(string $feature, string $identifier): bool;
/**
* Get the variant for A/B testing.
*/
public function getVariant(string $feature, string $userId): string;
/**
* Get all enabled features for a user.
*/
public function getEnabledFeatures(string $userId): array;
}
Feature Configuration DTO
<?php
// src/Infrastructure/FeatureFlag/FeatureConfig.php
declare(strict_types=1);
namespace App\Infrastructure\FeatureFlag;
final readonly class FeatureConfig
{
/**
* @param string[] $allowedUsers
* @param string[] $blockedUsers
* @param string[] $variants
* @param array<string, mixed> $metadata
*/
public function __construct(
public string $name,
public bool $enabled = false,
public ?int $percentage = null,
public array $allowedUsers = [],
public array $blockedUsers = [],
public array $variants = [],
public array $metadata = [],
) {}
/**
* @param array<string, mixed> $data
*/
public static function fromArray(array $data): self
{
return new self(
name: $data['name'],
enabled: $data['enabled'] ?? false,
percentage: $data['percentage'] ?? null,
allowedUsers: $data['allowed_users'] ?? [],
blockedUsers: $data['blocked_users'] ?? [],
variants: $data['variants'] ?? [],
metadata: $data['metadata'] ?? [],
);
}
}
See references/templates.md for: InMemory implementation, YAML configuration, Config Loader, Attribute, Middleware, Twig Extension, Template usage, CI/CD integration, Redis implementation.
Generation Instructions
-
Choose storage backend:
- In-memory (config file)
- Redis (dynamic updates)
- Database (audit trail)
- External service (LaunchDarkly, etc.)
-
Define flag types:
- Boolean (on/off)
- Percentage rollout
- User targeting
- A/B variants
-
Integrate with framework:
- Middleware for request context
- Twig extension for templates
- Service for business logic
-
Set up CI/CD integration:
- Environment-based defaults
- Dynamic update endpoints
- Rollback capabilities
Usage
Provide:
- Storage backend preference
- Framework (Symfony, Laravel, etc.)
- Flag types needed
- CI/CD platform
The generator will:
- Create interface and implementation
- Add configuration loader
- Integrate with framework
- Set up CI/CD hooks
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 PHP 项目功能标志的完整实现方案,包括服务接口、配置、百分比发布、用户定向和 CI/CD 集成
- 适用于多种存储后端和框架,具有广泛受众的实用能力
Highlights
- description 明确描述了 Skill 的功能和用途,触发词精准完整,覆盖多种变体,边界清晰
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
Skill 结构清晰,但缺少 When to Use 和端到端示例
Recommendation: 建议添加 When to Use 章节和端到端示例,以帮助用户更好地理解和使用 Skill
Highlights
- Skill 结构清晰,包含接口、配置、生成说明和用法
- frontmatter 完整,单文件未超过 500 行
Areas to improve
-
工具来源和参数未明确说明 Reported severity: Minor
Skill 提供了详细的实现方案和集成说明,但未明确说明工具来源和参数
Recommendation: 建议明确说明工具来源和参数,以提高执行可靠性
Highlights
- 提供了详细的实现方案和集成说明
- 覆盖了多种存储后端和框架的集成
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.