fix-continuation-leakage
Skill by DataDog
Diagnoses and fixes scope or continuation lifecycle failures in dd-trace-java instrumentation tests. Built for developers who see continuation leaks, double resolution, activation after resolve, or unclosed scopes in test output.
Install fix-continuation-leakage
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DataDog/dd-trace-java /tmp/dd-trace-java && mkdir -p ~/.claude/skills && cp -r /tmp/dd-trace-java/.agents/skills/fix-continuation-leakage ~/.claude/skills/fix-continuation-leakageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install fix-continuation-leakage in Claude Code
git clone --depth 1 https://github.com/DataDog/dd-trace-java /tmp/dd-trace-java && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dd-trace-java/.agents/skills/fix-continuation-leakage ~/.gemini/antigravity-cli/skills/fix-continuation-leakageAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install fix-continuation-leakage in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Fix-continuation-leakage is a skill for diagnosing and fixing scope or continuation lifecycle failures in dd-trace-java instrumentation tests. It runs the failing test, reads the automatic scope and continuation timeline, and finds the lifecycle edge that skipped release or close. It then guides the fix, covering success, failure, cancellation, and rejection cleanup, and explains the result with a short Mermaid diagram.
It is aimed at developers working on dd-trace-java instrumentation who see reports of continuation leaks, double resolution, activation after resolve, or unclosed scopes. The skill keeps strict trace writes enabled and warns against hiding evidence by disabling tracking. It also separates lifecycle defects from possible production effects, and notes that a deferred root iteration cleanup is not a leak.
Written from the project's SKILL.md and checked against it.
What it can do
- Run the failing testRuns the smallest failing instrumentation test with Gradle and saves the full output.
- Read the lifecycle timelineFinds the scope and continuation timeline and follows the failing record from its first event.
- Classify lifecycle recordsInterprets records such as LEAKED, DOUBLE_FINISH, ACTIVATE_AFTER_RESOLVE, and LATE_FINISH.
- Fix cleanup ownershipGuides repairs so one owner releases or closes the scope across success, error, cancellation, and rejection.
- Handle fixture failuresIdentifies whether a failure belongs to suite setup, one test, or suite cleanup.
- Assess production impactSeparates the observed lifecycle defect from possible production effects and test-only cleanup failures.
- Explain with a diagramWrites a short Mermaid flowchart showing healthy edges and the broken edge with thread handoffs.
What you need
- A dd-trace-java repository checkout
- Gradle wrapper for running instrumentation tests
- Failing instrumentation test output or CI logs
Try asking
- Diagnose the continuation leak in this failing dd-trace-java test
- Find the broken lifecycle edge in the scope timeline and fix it
- Explain this DOUBLE_FINISH record with a Mermaid diagram
Good to know
- Strict trace writes stay enabled; the skill does not add an opt-out for them.
- The TrackScopeContinuations opt-out is only for cases where the diagnostic is incompatible with the test.
- Deferred root iteration scopes are not leaks, and other ITERATION scopes must still close normally.
- Code that runs before the test harness initializes the tracer is outside the recording window.
Security check
B- Allowed to use Bash, Edit without limitsIn
SKILL.md
Checked automatically: .agents/skills/fix-continuation-leakage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadEditGlobGrepAskUserQuestion
-
SKILL.md6 KB
Alternatives to fix-continuation-leakage
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fix-continuation-leakage: common questions
What does fix-continuation-leakage do with a LEAKED record?
It finds the success, error, cancellation, and rejection exits that skipped release or close. It then repairs the cleanup so every exit releases the scope.
Can I disable continuation tracking to make a failing test pass?
The skill advises against it. It says to fix the lifecycle, or quarantine the test with @Flaky, and to keep tracking enabled so the failure stays diagnosable.
Is a deferred-cleanup scope a leak?
The source says a root iteration scope handed to the bounded iteration cleaner may stay open at the test boundary and is not a leak.
How do I install fix-continuation-leakage?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-continuation-leakage free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is fix-continuation-leakage safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, edit without limits). Review the code before you install. How grades work.
What are alternatives to fix-continuation-leakage?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
