본문으로 건너뛰기
cccskills
무료GitHub에 공개

feature-flag

Registers a feature flag as additive-only and verifies the flag-off path still matches the previous default. Use whenever adding or extending a feature flag, editing FeatureFlags.cs, changing feature_flags in assembler.yml, gating a code path behind a FEATURE_* environment variable, or enabling a flag in an environment. Do not skip this skill for flag work even if the user does not name it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder스타 25(GitHub 25 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Feature Flag Skill

A feature flag is additive. Flag off keeps the previous default. Flag on adds new behavior only.

When to use

Read this skill before you add any of these:

  • A typed flag on FeatureFlags
  • A feature_flags YAML key
  • A FEATURE_* environment override
  • An if (flag) around a code path

How flags work

  • Typed flags live in src/Elastic.Documentation.Configuration/Builder/FeatureFlags.cs
  • Keys normalize to kebab-case. The env override is FEATURE_<UPPER_SNAKE>
  • Per-environment YAML keys live under feature_flags in config/assembler.yml as UPPER_SNAKE
  • Flags stay off unless listed. Do not enable a new flag in prod when you create it
  • PublishEnvironment.ToFeatureFlags() in src/Elastic.Documentation.Configuration/Assembler/PublishEnvironment.cs loads YAML keys through Set()
  • Follow the test pattern in tests/Elastic.Documentation.Build.Tests/FeatureFlagsTests.cs

Steps

1. Additive means

Flag off equals the previous default in behavior. Flag on adds new behavior only.

Do not move, hide, relocate, or delete existing output when you introduce the flag.

New behavior is a new panel, a new build step, or a new field. It is not a relocated copy of something that already shipped.

2. Register the flag

  1. Add a typed property on FeatureFlags. The default stays false.
  2. Add YAML keys only in the environments that opt in.
  3. Do not turn the flag on in prod as part of creating it.

3. Gate only the new path

Put the if (flag) around new code. Leave the existing branch as it was.

Shared markup, layout, and data wiring that the old path still needs stay outside the flag.

4. Verify additivity before you finish

This step is required. Do not skip it.

  1. List every existing surface the change touches. Include render paths, CLI output, build steps, API payloads, mobile and desktop, and assembler vs isolated builds.
  2. For each surface, compare the flag-off branch to the pre-change code or output.
  3. If anything that already shipped is missing, moved, or changed when the flag is off, stop. Restore it on the default path.

5. Prove it with tests

  • The flag defaults to false.
  • Flag-off preserves existing behavior.
  • Flag-on shows the new behavior.
  • Sibling flags stay unchanged.
  • Prod, or the default environment, does not enable the new flag.

6. Stop conditions

Do not ship a flag whose existing behavior lives only on the new path.

Do not treat "the new path has it" as coverage for the old path.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

commit

무료

Stage relevant files and create a well-formed git commit for the docs-builder repo. Use this when the user asks to commit changes, save work, or create a commit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

issue

무료

File a well-formed bug report or feature request. Use when the user asks to open an issue, report a bug, or request a feature in the docs-builder repo.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

lint

무료

Auto-fix all formatting issues in the docs-builder repo — runs dotnet format for C# and npm fmt:write for TypeScript/JS. Use when the user asks to fix formatting, lint the code, or when a pre-commit hook fails due to formatting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

Search, analyze, and author Elastic documentation using the remote MCP server. Use this when the user asks about Elastic product documentation, features, or APIs; wants to find, read, or verify existing docs pages; is writing or editing documentation; mentions cross-links between repos; asks about documentation structure, coherence, or consistency; wants to generate templates following Elastic content type guidelines; or references elastic.co/docs URLs or Elastic product names.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

pr

무료

Create a GitHub pull request for the current branch with a focused why/what body and exactly one release-drafter label. Use when the user asks to open a PR, create a pull request, or ship a branch.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

Review changed or staged C# code against the docs-builder coding standards and flag violations. Use when the user asks to review code style, check for standards violations, or audit a diff before committing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

elastic/docs-builder252026년 10월 26일 업데이트

elastic의 스킬 모두 보기

이 스킬의 문제 신고