add-polyfill
Skill by Bownlux
Guides developers through restoring a removed API in Retromod with a focused polyfill that delegates to current behavior. It is for crashes like ClassNotFoundException or NoSuchMethodError when a redirect alone is not enough.
Install add-polyfill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Bownlux/Retromod /tmp/Retromod && mkdir -p ~/.claude/skills && cp -r /tmp/Retromod/.claude/skills/add-polyfill ~/.claude/skills/add-polyfillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Bownlux/Retromod /tmp/Retromod && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Retromod/.claude/skills/add-polyfill ~/.gemini/antigravity-cli/skills/add-polyfillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The add-polyfill skill is a step-by-step guide for restoring a removed API in the Retromod project. It applies when an old mod fails with ClassNotFoundException or NoSuchMethodError and a redirect alone is not enough. The guide says a polyfill should keep the useful part of the old contract, not just hide the first crash. It covers confirming what disappeared, writing a stub class, and registering it through a PolyfillProvider.
The skill lists the usual triggers, the steps to create a PolyfillProvider and register it in the ServiceLoader file, and the polyfill categories such as fabric_api, forge and thirdparty. It is aimed at developers maintaining Retromod who need older Minecraft mods to run on newer game or loader versions. Implementations go under the polyfill stubs package, and the guide recommends delegating to a current API whenever one exists.
Written from the project's SKILL.md and checked against it.
What it can do
- Confirm removed APIsIdentify the exact owner, member and descriptor from a crash before choosing a fix.
- Build stub implementationsWrite Retromod-owned replacement classes that delegate to current behavior.
- Create a PolyfillProviderDeclare removed classes, their polyfill replacements and the class redirects to register.
- Register via ServiceLoaderAdd the provider to the META-INF services file so Retromod loads it.
- Match the old type shapePreserve whether the API was a class or interface, and check superclass redirects if inheritance changed.
- Test polyfill behaviorAdd focused unit tests and run the affected mod, since loading alone is not enough.
What you need
- Access to the Retromod source tree
Try asking
- Add a polyfill for the removed Baubles class in my Retromod setup
- Write a PolyfillProvider for a removed method causing NoSuchMethodError
- Show me how to register a polyfill in the ServiceLoader file
Good to know
- A no-op is only for APIs with no meaningful replacement, and the limitation must be documented.
- Users can toggle polyfill categories in config.json.
- Polyfill counts change often, so the service file is the reference.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-polyfill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to add-polyfill
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
add-polyfill: common questions
When should I use a polyfill instead of a redirect?
The source says to use a polyfill when a redirect alone is not enough, such as ClassNotFoundException or NoSuchMethodError failures. A rename belongs in a shim instead.
Where do polyfill stubs go?
Retromod-owned implementations go under the existing embedded or stub package used by the surrounding provider. Loader-owned packages should be avoided because they can cause split-package failures.
What if the old API has no replacement?
A no-op can be used only when the old behavior has no meaningful replacement. The guide says to document that limitation for users.
How do I install add-polyfill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-polyfill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is add-polyfill safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-polyfill?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
