Borrowing it
Nothing to install: this file belongs to duckduckgo/apple-browsers. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/duckduckgo/apple-browsers/main/.claude/skills/ddg-add-feature-flag/SKILL.mdgit clone --depth 1 https://github.com/duckduckgo/apple-browsersWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-add-feature-flag)<a href="https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-add-feature-flag"><img src="https://agentmods.dev/badge/skills/duckduckgo/apple-browsers/ddg-add-feature-flag/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-add-feature-flag"><img src="https://agentmods.dev/badge/skills/duckduckgo/apple-browsers/ddg-add-feature-flag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00823 |
| Opus 5.5 | $0.00012 | $0.00329 |
| Sonnet 5.5 | $0.00006 | $0.00165 |
| Haiku 4.5 | $0.00003 | $0.00082 |
Grade A, and why
ddg-add-feature-flag scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Add or change a feature flag
Flags live in FeatureFlag.swift in iOS/LocalPackages/FeatureFlags-iOS/Sources/FeatureFlags/ and
macOS/LocalPackages/FeatureFlags-macOS/Sources/FeatureFlags/. Copy the shape of the neighbouring
cases; the steps below cover what the neighbours don't show.
- Get the flag's Asana task URL from the user. The flag case carries it as a
///doc comment, and so does its subfeature. - Add the subfeature the remote config controls:
- iOS only:
iOSBrowserConfigSubfeature.swift, next toFeatureFlag.swift. - macOS only:
MacOSBrowserConfigSubfeatureinSharedPackages/BrowserServicesKit/Sources/PrivacyConfig/Features/PrivacyFeature.swift. - A feature with its own parent, such as
AIChatSubfeature: that parent's enum in the samePrivacyFeature.swift.
- iOS only:
- Add the flag case and its
Config(...)entry in theconfigswitch.sourceis.remoteReleasable(<Subfeature>.case), or.disabledto switch the flag off everywhere.defaultValueapplies only while the remote config doesn't list the subfeature. Once the config lists it, the config decides for everyone, internal users included..internalOnlyis the usual starting point.- Keep
supportsLocalOverridingat its defaulttrueunless the flag must not be toggled from the debug menu. macOS UI tests crash at launch when they set a flag that doesn't allow it. - macOS: pass
category:(FeatureFlagCategory.swift) to group the flag in the debug menu.
- Gate the code with
featureFlagger.isFeatureOn(.flag)on an injectedFeatureFlagger; on iOS, default the parameter toAppDependencyProvider.shared.featureFlagger. When the flag picks between two UI implementations that bind at launch, read it once at startup instead, asFireModeCapability.resolve(using:)does inMainCoordinator, so a mid-session toggle can't leave the UI half-switched. - Experiment (A/B/N):
- Nest a
<Name>Cohort: String, FeatureFlagCohortDescribingenum inFeatureFlagand pass it ascohortType:. featureFlagger.resolveCohort(for: .flag)enrolls the device, so call it only where the user meets the difference. Anywhere else, read withassignedCohort(for:), which never enrolls.- Fire metrics with
PixelKit.fireExperimentPixel(PixelExperimentKit), and declare them under the experiment in{iOS,macOS}/PixelDefinitions/pixels/native_experiments.json5.
- Nest a
- Test both states with the platform's mock: on iOS,
MockFeatureFlagger(enabledFeatureFlags: [.flag])fromiOS/SharedTestUtils; on macOS and in SharedPackages, the PrivacyConfigMockFeatureFlaggerwithfeaturesStub[flag.rawValue]set. - Tell the user that the rollout happens in the
duckduckgo/privacy-configurationrepository, under the subfeature name from step 2. The embedded config files in this repository are generated copies, so editing them turns nothing on.
Done when the flag compiles on every platform it targets, both of its states are tested, and the user has the subfeature name to add to privacy-configuration.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 49 lines · 30 tokens per session scan A 1a5598c9a21b
ddg-add-feature-flag is a skill published in the GitHub repository duckduckgo/apple-browsers (270 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 823 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-03.
ddg-add-feature-flag compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ddg-add-feature-flagduckduckgo/apple-browsers | Skill | 270 | today | Apache-2.0 | A | 30 | Claude Code |
| verify-vibebuddysemantic-craft/iOS-vibebuddy | Skill | 92 | 24d ago | MIT | C | 77 | Claude Code |
| argent-screenshot-diffsoftware-mansion/argent | Skill | 3.2k | yesterday | Apache-2.0 | A | 59 | Claude Code, Codex |
| mobile-automationmobile-next/mobile-mcp | Skill | 10k | 4d ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| ios-simulator-skillconorluddy/ios-simulator-skill | Skill | 1.3k | yesterday | MIT | A | 106 | Claude Code, Codex |
| boutique-best-practicesmergesort/Boutique | Skill | 1.1k | 5d ago | MIT | A | 56 | Claude Code |
| boutique-swiftuimergesort/Boutique | Skill | 1.1k | 5d ago | MIT | A | 45 | Claude Code |