export-to-public
Skill3.8k starsChanged 6 days agoApache-2.0View on GitHub
Turn a branch or PR of the private ddoghq/datadog-agent repository into a branch for a public DataDog/datadog-agent PR: cherry-pick only its own commits onto public main and check that no internal commit, file, reference or SHA goes along. Prepares and verifies the branch for a human to push. Use for "open this private PR publicly", "export my branch to the public repo", "move this fix to DataDog/datadog-agent".
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about DataDog/datadog-agent
- aws/aws-sdk-go-v2“[SOLUTION IN THREAD] "not found, ResolveEndpointV2" service modules before 11/15/23 are incompatible …”GitHub · Nov 16, 2023 · 45 reactions
- micrometer-metrics/micrometer“Unix Domain Socket support (StatsD)”GitHub · Aug 17, 2018 · 22 reactions
- golang/go“proposal: x/tools/go/analysis/passes/appends: check for incorrect slice length initialization ”GitHub · Oct 14, 2024 · 18 reactions
- airbytehq/airbyte“[STORAGE-S3] Add Support for Custom S3 Endpoint”GitHub · Aug 16, 2024 · 14 reactions
- prometheus/blackbox_exporter“List of metrics provided in a human-readable format”GitHub · Dec 15, 2021 · 13 reactions
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub and Stack Overflow (54 times).
On GitHub · 46
- Nov 16, 2023[SOLUTION IN THREAD] "not found, ResolveEndpointV2" service modules before 11/15/23 are incompatible against newer root modules — aws/aws-sdk-go-v245 reactions · 33 comments
- Aug 17, 2018Unix Domain Socket support (StatsD) — micrometer-metrics/micrometer22 reactions · 23 comments
- Oct 14, 2024proposal: x/tools/go/analysis/passes/appends: check for incorrect slice length initialization — golang/go18 reactions · 28 comments
- Aug 16, 2024[STORAGE-S3] Add Support for Custom S3 Endpoint — airbytehq/airbyte14 reactions · 21 comments
- Dec 15, 2021List of metrics provided in a human-readable format — prometheus/blackbox_exporter13 reactions · 5 comments
41 more on GitHub
- Feb 26, 2026cmd/go: decide and document official recommendation for typical 'go' version in go.mod for open source libraries — golang/go9 reactions · 13 comments
- Dec 26, 2024[BUG] go.mod tidy fails due to unresolved module in dd-trace-go — DataDog/dd-trace-go9 reactions · 8 comments
- Oct 31, 2018[disk] Blacklist certain partitions by default — DataDog/integrations-core9 reactions · 6 comments
- Mar 27, 2024datadog-agent: panic: must be called from a bundle — NixOS/nixpkgs8 reactions · 5 comments
- Feb 3, 2026cmd/go: go list computes build info for test packages when not needed — golang/go7 reactions · 4 comments
- Jan 28, 2022v1.35.0 breaks any program trying to use a `-v` flag — DataDog/dd-trace-go6 reactions · 5 comments
- May 10, 2021Validator reports false duplicates — dependabot/dependabot-core6 reactions · 2 comments
- Feb 17, 2025[receiver/sqlserver] Support query-level log collection [Top Query] — open-telemetry/opentelemetry-collector-contrib4 reactions · 11 comments
- Nov 4, 2026CONTINT-5659: adds kubernetes_state.pod.unready metric to metadata.csv — DataDog/integrations-core3 reactions · 4 comments
- Jul 20, 2026chore(ci): update Datadog Agent version to 7.81.1 — DataDog/saluki3 reactions · 3 comments
- Jun 20, 2025datadog-agent: 7.56.2 -> 7.70.2 — NixOS/nixpkgs3 reactions · 3 comments
- May 17, 2024Service V2 collector — prometheus-community/windows_exporter3 reactions
- Nov 20, 2026chore(ddtrace/tracer): remove seelog dependency — DataDog/dd-trace-go2 reactions · 10 comments
- Nov 18, 2026[GPU] Rename kai_fraction to kai-fraction in sharing_fraction metadata — DataDog/integrations-core2 reactions · 4 comments
- Nov 13, 2026Publish signed images from registry.ddbuild.io — DataDog/datadog-operator2 reactions · 4 comments
- Nov 13, 2026[Backport v1.32] Remove Autopilot protocol classification workaround — DataDog/datadog-operator2 reactions · 2 comments
- Nov 12, 2026Update dd-pkg to 0.10.0 — DataDog/datadog-agent-buildimages2 reactions · 1 comment
- Nov 9, 2026chore(ci): update Datadog Agent version to 7.85.2 — DataDog/saluki2 reactions · 4 comments
- Nov 6, 2026chore(ci): render SMP regression reports locally — vectordotdev/vector2 reactions · 4 comments
- Nov 2, 2026[Backport v1.32] Update default Agent to `7.85.0` — DataDog/datadog-operator2 reactions · 2 comments
- Nov 2, 2026Update default Agent to `7.85.0` — DataDog/datadog-operator2 reactions · 2 comments
- Oct 26, 2026chore(ci): update Datadog Agent version to 7.84.6 — DataDog/saluki2 reactions · 3 comments
- Oct 21, 2026feat(nodeagent): add DD_POD_NAME as env var — DataDog/datadog-operator2 reactions · 4 comments
- Oct 19, 2026chore(ci): update Datadog Agent version to 7.84.3 — DataDog/saluki2 reactions · 3 comments
- Oct 12, 2026chore(ci): update Datadog Agent version to 7.84.2 — DataDog/saluki2 reactions · 3 comments
- Oct 9, 2026Revert Python version upgrade on 7.84.x — DataDog/integrations-core2 reactions · 6 comments
- Oct 5, 2026chore(ci): update Datadog Agent version to 7.84.1 — DataDog/saluki2 reactions · 2 comments
- Sep 29, 2026Install DotSlash in the standard build images — DataDog/datadog-agent-buildimages2 reactions · 2 comments
- Sep 28, 2026chore(ci): update Datadog Agent version to 7.83.3 — DataDog/saluki2 reactions · 2 comments
- Sep 28, 2026chore(deps): bump the docker-compose-dev group across 2 directories with 14 updates — DataDog/dd-trace-go2 reactions · 2 comments
- Sep 28, 2026Update go dependencies — DataDog/datadog-operator2 reactions · 3 comments
- Sep 21, 2026chore(ci): update Datadog Agent version to 7.83.2 — DataDog/saluki2 reactions · 2 comments
- Sep 15, 2026fix(datadog): configure Core Agent for PAR split mode — DataDog/helm-charts2 reactions
- Sep 4, 2026feat(orchestrator): grant KubeAI collection RBAC — DataDog/datadog-operator2 reactions · 1 comment
- Sep 3, 2026chore(ci): update Datadog Agent version to 7.83.0 — DataDog/saluki2 reactions · 2 comments
- Sep 3, 2026fix(metrics): normalize metric names prior to filtering — DataDog/saluki2 reactions · 4 comments
- Aug 26, 2026chore(ci): update Datadog Agent version to 7.82.3 — DataDog/saluki2 reactions · 2 comments
- Aug 21, 2026Revert "Revert "Make sure we keep the testing params when extra params does not override minor version"" — DataDog/agent-linux-install-scriptsays it tested it2 reactions · 4 comments
- Aug 18, 2026feat(datadog-agent-commons): add minimal IPC TLS feature — DataDog/saluki2 reactions · 2 comments
- Jul 29, 2026[ACIX-1887] Remove legacy devcontainer image — DataDog/datadog-agent-buildimages2 reactions · 1 comment
- Oct 5, 2024Update ecs_fargate docs to note DD_DOGSTATSD_TAG_CARDINALITY setting — DataDog/integrations-core2 reactions · 2 comments
On Stack Overflow · 8
- Mar 13, 2020How do you pass file_system_blacklist arg to Datadog Docker Agent run command?3 votes
- Dec 11, 2019Containers - Failed to get host IPs3 votes
- May 13, 2020Is there a serverless kubernetes datadog agent?2 votes
- Jun 29, 2018How to set docker labels on ECS agent container?2 votes · 1 answer
- Apr 28, 2022Issues with setting up Autodiscovery Auto-Configuration for Kubernetes integration in Datadog1 vote
3 more on Stack Overflow
- Nov 4, 2020How to configure hostname in ECS Fargate task definition1 vote
- Jan 26, 2023datadog local check setup same as check_mk local check for monitoring0 votes
- Mar 31, 2021How does the serverless datadog forwarder encrypt/encode their logs?0 votes
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bazel/AGENTS.mdAGENTS.md
- omnibus/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- tasks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/agent_corecheck.mdcCursor rule
- .cursor/rules/bazel-buildifier.mdcCursor rule
- .cursor/rules/e2e_tests.mdcCursor rule
- .cursor/rules/general-guidelines.mdcCursor rule
- .cursor/rules/system_probe_modules.mdcCursor rule
- .cursor/rules/system_probe_testing.mdcCursor rule
- agent-supply-chain-newsletterSkill
- alliumSkill
- anomalydetection-run-gensim-scenarioSkill
- auto-jiraSkill
- create-componentSkill
- create-config-fieldSkill
- create-core-checkSkill
- create-epic-recapSkill
- create-go-moduleSkill
- create-invoke-taskSkill
- create-prSkill
- create-release-noteSkill
- create-runtime-settingSkill
- create-status-providerSkill
- create-subcommandSkill
- cws-btfhub-syncSkill
- cws-iouring-coverageSkill
- describe-functional-changesSkill
- e2e-auditSkill
- explain-lading-configSkill
- follow-prSkill
- gpu-live-metric-validationSkill
- handle-pr-ci-failureSkill
- injector-devSkill
- locate-config-settingSkill
- quality-gate-size-analysisSkill
- resolve-sync-conflictSkill
- review-pr-commentsSkill
- run-e2eSkill
- run-jiraSkill
- run-windows-e2eSkill
- triage-ci-failureSkill
- update-3rd-party-libsSkill
- update-otel-depsSkill
- write-e2eSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Ask whether the change is a security fix.
- Distinctive: line 38
Run from a clone of the public repository when the user has one: the export commits are then signed with their public signing key, and …
- Distinctive: line 106
If some commits are someone else's, don't rewrite them with the user's identity: ask the user for that person's public name and email, or …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Export a private branch to the public repository
Ownership: maintained by @DataDog/agent-devx.
Prerequisites: Git 2.45 or newer, read access to ddoghq/datadog-agent, and for the
human who pushes: write access to DataDog/datadog-agent, with gh logged in on the public
account (gh auth switch; the _ddog account can't open PRs there).
Internal main is public main plus internal-only commits (CI identity, token policies,
sync tooling) and hourly sync merges. A branch made from it carries all of them, so it
can't be pushed as is: only its own commits must be rebuilt on public main.
Pushing to DataDog/datadog-agent discloses the change at once, even before a PR is
opened, and can't be undone. Prepare and verify; never push, open the public PR or
pass --allow-path yourself unless the user explicitly asks for that step in this session.
1. Confirm what goes public, and when
- Identify the branch: the user's words, else the current branch, else the head branch of
the private PR they point to (
gh pr view <n> -R ddoghq/datadog-agent --json headRefName). - Ask whether the change is a security fix. If it is, the push must wait until the timing is
agreed with
#agent-release-sync: prepare the branch, but say so in the hand-over. - The public branch name is public too. Check it doesn't describe a vulnerability
(e.g.
fix-cve-...); pick a neutral one with--nameif needed.
2. Prepare the branch
Run from a clone of the public repository when the user has one: the export commits are
then signed with their public signing key, and pushed with their public account. Commits made
in a clone with a ddoghq remote are signed with the ddoghq key (Datadog's
git-config-tool switches keys per remote), which may show as Unverified on the public
repository. Fetch the private branch without adding a remote:
git fetch https://github.com/ddoghq/datadog-agent.git <branch>:refs/private/<branch>
tools/ci/export-to-public.sh [--name <public-branch>] refs/private/<branch>From a ddoghq/datadog-agent clone, run tools/ci/export-to-public.sh <branch> instead, and
tell the user in the hand-over that the commits carry the ddoghq signature.
It fetches both main branches (under refs/export-to-public/, remotes untouched), lists
the commits it exports (those of <branch> in neither main, merges excluded), and
cherry-picks them, without -x, in a new worktree on public main. Check that the
listed commits are exactly the user's work; if not, stop and ask.
On a cherry-pick conflict, the change touches a file internal commits modified. In the
worktree, resolve towards the public version: keep the user's change, drop internal
adaptations (ddoghq names, project ID 14012, _ddog handles). Then:
git add <files> && git cherry-pick --continue
tools/ci/export-to-public.sh --check --workdir <worktree>3. Fix what the checks report
The script checks every exported commit, not only the final diff: a reference or file added by one commit and removed by a later one is gone from the result but would still be public in the history. So a fix has to rewrite the commit that introduced the problem, not add a new commit on top.
| Finding | What to do |
| Internal-only file changed | Usually an internal adaptation leaked: drop that part of the change. If the file must change publicly (e.g. a real CODEOWNERS update), show the diff to the user; only they decide to re-run with --allow-path '<glob>'. |
| Lines added by a commit reference internal repos or accounts | Rewrite them with public equivalents, or remove them, in that commit. For the last commit, edit and git commit --amend --no-edit. For an older one, either fix it on the private branch and start step 2 again, or, if the user agrees to lose the commit split, squash the export into one commit: git reset --soft refs/export-to-public/upstream, fix, then commit. |
| Commit message references internal repos | Propose a new message to the user. Apply it with git commit --amend on the last commit; for an older one, reword it on the private branch and start step 2 again. |
| Commit identity uses an internal account | See "Identities" below. |
| Internal main commit / merge commit | Should not happen with the script; start over from step 2 and report it. |
To start step 2 again, first run the cleanup command printed by the script (it removes the
worktree and its export-to-public/<name> branch). Then run --check until it prints
Ready to export.
Identities
The committer is whoever runs the cherry-picks: an internal committer means the clone's
user.name or user.email is set to an internal identity. Ask the user to fix it
(git config user.name, git config user.email), then re-create the commits so they pick it
up:
git rebase --exec 'git commit --amend --no-edit' refs/export-to-public/upstreamThe author is kept from the private commits, and git commit --amend doesn't change it.
Fix it only for the user's own commits, with the identity they confirm for public use (by
default the user.name and user.email of their public clone):
git commit --amend --no-edit --author='Jane Doe <jane.doe@datadoghq.com>' # last commit
git rebase --exec "git commit --amend --no-edit --author='Jane Doe <jane.doe@datadoghq.com>'" \
refs/export-to-public/upstream # every commitIf some commits are someone else's, don't rewrite them with the user's identity: ask the user for that person's public name and email, or leave the commits out.
Review each commit
Then review what the script can't judge, commit by commit (git log -p
refs/export-to-public/upstream..HEAD), not only the final diff: no private PR, Slack thread,
document or internal-only file in any patch or message, and no more detail about a
vulnerability than the fix requires.
4. Hand over
End with a message in this shape, filled in from the script output and your review:
Public branch `<name>` is ready in `<worktree>`, based on public main `<sha>`. Nothing is pushed.
Exported commits (author, subject):
- `<sha>` <author>: <subject>
Checks: `export-to-public.sh --check` passes. Per-commit review: <done, and what was fixed>.
Allowed paths: <none, or each `--allow-path` the user approved>.
Signature: <public key / `ddoghq` key: may show as Unverified>.
Embargo: <not a security fix / security fix: wait for #agent-release-sync before pushing>.
To publish, from `<worktree>`, with your public gh account:
git push https://github.com/DataDog/datadog-agent.git HEAD:refs/heads/<name>
gh pr create --repo DataDog/datadog-agent --head <name> --draft
Then clean up: <cleanup command printed by the script>
Draft PR description:
<description following .github/PULL_REQUEST_TEMPLATE.md, with no link to the private PR>
The public PR runs its own full CI and needs reviews from the public CODEOWNERS: results from
the private PR don't carry over.The /create-pr skill can also produce the description once the branch is pushed.
Once the public PR merges, the hourly sync brings it into internal main; the private PR
can then be closed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

