feature-flag-questions
Use whenever creating a brief for a NEW feature. This will add feature flag requirements into the brief
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- feature-flag-questions
- version
- 1.0.0
- category
- Experience
- description
- Use whenever creating a brief for a NEW feature. This will add feature flag requirements into the brief
03 SKILL.md 正文
Ask a question to the user to ascertain whether or not this new feature should be feature gated. Provide a feature name example.
For user facing features, it lives in apps/web/config/feature-flags.config.ts and follows a schema like:
const FeatureFlagsSchema = z.object({
enableBackgroundAgents: z
.boolean({
error: (issue) =>
issue.input === undefined
? 'Provide the variable NEXT_PUBLIC_ENABLE_BACKGROUND_AGENTS'
: 'Value must be a boolean',
})
.describe('Enable background agent features (Cursor, etc.).'),
enableMonitoring: z
.boolean({
error: (issue) =>
issue.input === undefined
? 'Provide the variable NEXT_PUBLIC_ENABLE_MONITORING'
: 'Value must be a boolean',
})
.describe('Enable monitoring/error tracking with the configured provider.'),
enableGoogleDriveConnector: z
.boolean({
error: (issue) =>
issue.input === undefined
? 'Provide the variable NEXT_PUBLIC_ENABLE_CONNECTOR_GOOGLE_DRIVE'
: 'Value must be a boolean',
})
.describe('Enable Google Drive connector integration.'),
enableConnectorJira: z
.boolean({
error: (issue) =>
issue.input === undefined
? 'Provide the variable NEXT_PUBLIC_ENABLE_CONNECTOR_JIRA'
: 'Value must be a boolean',
})
.describe('Enable the Jira connector in context settings.'),
enableLiveVoice: z
.boolean({
error: (issue) =>
issue.input === undefined
? 'Provide the variable NEXT_PUBLIC_ENABLE_LIVE_VOICE'
: 'Value must be a boolean',
})
.describe('Enable live voice (push-to-talk) via Gemini Live.'),
} satisfies z.infer<typeof FeatureFlagsSchema>);
export default featuresFlagConfig;
function getBoolean(value: unknown, defaultValue: boolean) {
if (typeof value === 'string') {
return value === 'true';
}
return defaultValue;
}
For NestJS applications, a simple:
this.configService.get<string>('ENABLE_LINEAR_TWO_WAY_SYNC') !== 'true'
Is used. If the user answers yes, add this as a requirement to the brief
04 同仓库更多 Skills
writing-waterfall-requirements-documents
Write a waterfall requirements document: elicit, structure and review testable, traceable requirements, then baseline the specification before design.
writing-vision-and-values-statements
Write a V2MOM vision a reader can test and a ranked list of values that settles real tradeoffs, so the rest of the document has a clear anchor.
writing-system-prompts-for-claude
Write Claude prompts and CLAUDE.md files that supply exact inputs, scope the task, and define done so the first attempt can be checked.
writing-page-specific-website-copy
Website copywriting by page type: write homepage, landing page, pricing page and feature page copy that fits each page's visitor and single job.
writing-internal-press-releases
How to write an internal press release: the one-page working backwards press release that opens a PR/FAQ document before anything is built.
writing-email-sequences-that-sell
Email sequence copywriting for nurture and sales: give each email one job, write clear subject lines, and close with one specific call to action.