parser-bug
Skill by lucasrodes
Guides an AI assistant through fixing parsing bugs, security reports and CVEs in the whatstk WhatsApp chat parser. Aimed at whatstk maintainers and contributors.
Install parser-bug
Built from the published package, never by AI.
git clone --depth 1 https://github.com/lucasrodes/whatstk /tmp/whatstk && mkdir -p ~/.claude/skills && cp -r /tmp/whatstk/.claude/skills/parser-bug ~/.claude/skills/parser-bugRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lucasrodes/whatstk /tmp/whatstk && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/whatstk/.claude/skills/parser-bug ~/.gemini/antigravity-cli/skills/parser-bugAntigravity 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 guides an AI assistant through fixing a bug in whatstk, a Python library that parses WhatsApp chat exports. It covers chats that fail to parse, produce wrong or missing rows, get the wrong header format from auto-detection, or show mangled emoji and unicode. It also covers triaging security reports and CVEs against the parser.
The skill follows a fixed order. It asks for a minimal, redacted reproduction, bisects the parser pipeline to find the responsible layer, and requires a failing regression test before any fix. Verification runs the full test suite and checks all 96 header formats against the parser. It is aimed at maintainers and contributors to the whatstk repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Reproduce with minimal inputBuilds the smallest redacted chat snippet that shows the problem, keeping header structure intact.
- Localise the parser layerSteps through read, clean, header inference, regex, parse and alert stripping to find the failing stage.
- Symptom to layer mapMaps common symptoms such as missing rows or swapped day and month to the file responsible.
- Write a failing test firstAdds a regression test built from the real-world snippet before changing any code.
- Fix at the right layerAdvises narrow changes, such as editing the header format catalogue or narrowing text cleaning.
- Cross-format regression checkRuns a script that compares automatic and manual parsing across all 96 header formats.
- Triage security reportsExplains how to test reported zip, decompression, regex and URL issues before accepting them.
- Ship via develop branchDescribes branching from develop and opening pull requests back into develop, not main.
What you need
- Python 3
- whatstk source checkout
- make
Try asking
- Help me reproduce a whatstk chat that parses into missing rows
- Triage this security report against the whatstk parser
- Write a regression test for an iOS 12h header parsing bug
Good to know
- The existing test suite does not catch real-world parsing bugs on its own
- Written for the whatstk repository, not for general chat analysis
- Pull requests target the develop branch, not main
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/parser-bug/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to parser-bug
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
parser-bug: common questions
What kinds of whatstk bugs does this skill cover?
It covers chats that fail to parse, wrong or missing rows, auto-header detection picking the wrong format, and emoji or unicode problems. It also covers triage of security reports and CVEs.
Why does the skill insist on a failing test before a fix?
The skill notes that the existing test suite is built from whatstk's own generated chats, so it can stay green while a real-world bug is live. A failing test built from the real snippet shows the bug directly.
Does the skill treat zip path traversal as a real issue?
The source lists zip slip in _str_from_file as a verified non-issue, because CPython extractall sanitises member paths. It advises testing any new report before accepting it.
How do I install parser-bug?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is parser-bug free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is parser-bug safe to use?
It scores 71 of 100. Grades: maintenance A, licence C, 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 parser-bug?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
