fix-package-docs
Skill by elastic
Fixes API documentation issues in Kibana plugins and packages using check_package_docs. Built for developers who need to clear JSDoc validation failures.
Install fix-package-docs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/.agents/skills/fix-package-docs ~/.claude/skills/fix-package-docsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/.agents/skills/fix-package-docs ~/.gemini/antigravity-cli/skills/fix-package-docsAntigravity 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
This skill fixes API documentation issues in a Kibana plugin or package. It runs the check_package_docs script to write a stats.json file listing missing comments, missing returns, mismatched parameter docs, undocumented complex types and any types. It then edits the flagged files to add JSDoc, following rules such as documenting only exported public API and never changing runtime behavior.
Missing exports and unnamed exports are left for a developer to review, since fixing them changes the public API. The workflow ends with a final check, then running check_changes, and the PR description should list before and after issue counts. It is aimed at developers working in the Kibana repository who need to clear API docs validation failures.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate issue reportRuns check_package_docs with --write to create a stats.json file of documentation issues.
- Add missing commentsAdds JSDoc to undocumented exported functions, interfaces, types, constants and classes.
- Add missing returnsAdds @returns tags to existing JSDoc on non-void functions.
- Complete param docsAdds @param tags so every parameter in a flagged signature is documented.
- Document complex typesAdds JSDoc to undocumented interface, object and union type declarations.
- Replace any typesSwaps any for specific types or unknown when the correct type is clear from context.
- Flag review itemsLists missing exports and unnamed exports for a developer instead of fixing them.
What you need
- Node.js, since the workflow runs node scripts
- A Kibana repository checkout with scripts/check_package_docs.js
- kibana.jsonc files for the target plugin or package
Try asking
- Fix the API docs for the dashboard plugin
- Add missing JSDoc to the exports in this package
- Fix the check_package_docs failures for the dashboard plugin
Good to know
- Only documents exported public API; internal helpers are skipped.
- Documentation edits only, with no changes to logic, types or signatures.
- Missing exports and unnamed exports need human review and are not fixed.
- Set to disable model invocation in its frontmatter.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/fix-package-docs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fix-package-docs
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-package-docs: common questions
Does this skill change how the code runs?
No. The source says it makes documentation edits only, with no logic, type or signature changes.
What happens to missing exports?
They are skipped and should be flagged for human judgment in the PR. The same applies to unnamed exports.
When should I use this skill?
Use it when asked to fix, improve or add JSDoc for a Kibana plugin or package, or when check_package_docs validation fails.
How do I install fix-package-docs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-package-docs free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is fix-package-docs safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. 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 fix-package-docs?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
