Repository navigation
feat: add /quark and /quark-rule-gen Claude Code skills - #947
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #947 +/- ##
==========================================
+ Coverage 78.89% 80.27% +1.38%
==========================================
Files 81 82 +1
Lines 7131 7185 +54
==========================================
+ Hits 5626 5768 +142
+ Misses 1505 1417 -88
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Two skills that let AI drive Quark Engine directly: - quark: maps user requests to the correct quark CLI flags, prints the command and raw output before any analysis, then offers next steps - quark-rule-gen: guides AI through identifying an API pair from decompiled code, formatting Dalvik descriptors, and validating the generated rule against a real APK via validate_rule.sh before outputting it Key implementation notes: - validate_rule.sh uses -s <rule.json> (not -r) to load a single rule file; -r triggers os.walk() which yields nothing on a file path - Call graph (-g) and web report (-w) require -s or -d to produce output - -C (label comparison) is an interactive TUI and cannot be automated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
haeter525
force-pushed
the
add-quark-ai-plugin-skills
branch
from
July 5, 2026 08:42
f63e173 to
8163b17
Compare
haeter525
marked this pull request as draft
July 5, 2026 10:02
Add a marketplace catalog and a quark-ai-plugin directory that bundle the analysis and rule-gen skills. Users install the plugin from the marketplace and call /quark:analysis and /quark:rule-gen in any project. Document the install steps in the main README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The analysis and rule-gen skills now ship in quark-ai-plugin. Delete the old copies under .claude/skills to avoid loading them twice. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Correct the marketplace and plugin manifests: move the description to the top level, add a version, and point URLs at the ev-flow repository. Update the rule-gen skill to always set a new rule score to 1, since the final score depends on how the behavior spreads across real malware samples. Also clarify the method-listing commands and reference the rule-gen skill by its slash-command name in the analysis skill. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
haeter525
marked this pull request as ready for review
July 10, 2026 14:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds two Claude Code skills that let AI drive Quark Engine directly — running analysis on APKs and generating detection rules — packaged as a Claude Code plugin for easy install.
/quark:analysis— maps a natural-language request to the correctquarkCLI flags, prints the command and raw output, then offers next steps/quark:rule-gen— guides the AI through reading decompiled code, formatting Dalvik descriptors, and validating a generated rule against a real APK before outputting itInstall
How to use
/quark:analysis/quark:analysisto startquarkcommand being run, display the output, then offer follow-up options (detail report, call graph, JSON export, or rule generation)Example: Ahmyth-quark-analysis.html
/quark:rule-gen/quark:rule-gento startExample: Ahmyth-quark-rule-gen.html
Key Changes
.claude/skills/quark/SKILL.md: the/quark:analysisskill — decision table for all automatable quark modes, 5-step workflow, prints command and raw output before analysis.claude/skills/quark/scripts/run_analysis.sh: passthrough CLI wrapper that handles APK path quoting and stderr capture.claude/skills/quark-rule-gen/SKILL.md: the/quark:rule-genskill — Dalvik descriptor guide, score rubric keyed to the five detection stages, canonical label list, and a 3-attempt validation loop.claude/skills/quark-rule-gen/scripts/validate_rule.sh: runs a candidate rule against an APK and checks forconfidence != 0%(not justlen(crimes) > 0— every loaded rule appears in the output JSON regardless of match)plugin.json/ marketplace manifest: packages the two skills as a Claude Code plugin for distribution outside this repoTests
/quark:analysisonAhmyth.apk— summary report produces correct raw output table/quark:rule-genonMicManager.smalifromAhmyth.apk— generated rule matches at 100% confidence on the first attemptTODO
README.mdwith a "Quark-Engine Skills" section — install instructions and usage examplesplugin.jsonmanifest) for distribution outside this repo