skills/eliteforge-sonar-pmd-generator/SKILL.md
Transform user-provided coding specification files into a layered governance plan and validated SonarQube plugin workflow. Automatically classify each requirement into L1/L2/L3/L4, implement L1-L2 as PMD rules for supported languages, route L3 to automation tooling, route L4 to human or AI review, package rules into a custom sonar-pmd plugin, and verify with Docker Sonar + real project scans.
npx skillsauth add cloudsen/eliteforge-skills eliteforge-sonar-pmd-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill converts coding standard documents into enforceable PMD rules and validates them through a real SonarQube server workflow.
Completion requires an end-to-end chain: spec parsing, L1/L2/L3/L4 classification, PMD ruleset generation for L1-L2, automation planning for L3, review planning for L4, custom sonar-pmd plugin packaging, Docker Sonar startup, test project scan, and server-side verification.
ELITEFORGE_SKILL_SONAR_PMD_HOST [optional] SonarQube base URL for reference command snippets; script arguments may override it.ELITEFORGE_SKILL_SONAR_PMD_TOKEN [optional] SonarQube API token for local validation snippets; never print the value.ELITEFORGE_SKILL_SONAR_PMD_PROJECT_KEY [optional] Sonar project key used by API evidence snippets.ELITEFORGE_SKILL_SONAR_PMD_PLUGIN_KEY [optional] Custom Sonar plugin key used by API evidence snippets.ELITEFORGE_SKILL_SONAR_PMD_RULE_REPO_KEY [optional] Custom rule repository key used by API evidence snippets.ELITEFORGE_SKILL_SONAR_PMD_PROFILE_KEY [optional] Quality profile key used by API evidence snippets.scripts/verify_sonar_plugin.sh for quick API-based smoke verification after scan.Use this skill when the request includes one or more of these intents:
L1/L2/L3/L4.pmd-governance/).custom-spec-profile).L1: can be covered by PMD built-in rule(s) for the target language.L2: can be expressed with PMD AST XPath rule(s) for the target language.L3: cannot or should not be expressed in PMD, but can be detected reliably by other automation tools such as formatter, hook, CI job, Checkstyle, Semgrep, ArchUnit, or build plugins.L4: requires human review or AI review because the rule depends on business semantics, architectural intent, or unstable heuristics.L3 or L4 into fragile PMD XPath implementations.For each spec statement, record:
SPEC-IDL1/L2/L3/L4)L4)SPEC-<LANG>-001, ...).L1/L2/L3/L4.mapping/spec-to-governance.csvrulesets/custom-<lang>-ruleset.xmlautomation/l3-tooling-plan.mdmanual-review/l4-review-checklist.mdREADME.mdL1-L2 only:
L1 mapped refs and L2 custom XPath/Java rulesSPEC-IDL3:
L4:
custom-spec-profile or user-provided name)extensions/plugins).mvn sonar:sonar).L3 if another automation tool can enforce themL4Server-side plugin execution:
mvn -DskipTests sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.token=<token>Minimum checks after container startup:
Minimum checks after scan:
L1-L2 go into PMD rules and the custom sonar-pmd plugin.L3 items must be exported into an automation tooling plan instead of being forced into PMD.L4 items must be exported into human or AI review workflows.mapping, ruleset, L3 tooling plan, L4 review checklist).sonar.host.url consistency.testing
Rewrite human-facing prose using Strunk-style rules. Use for docs, README files, technical explanations, PR descriptions, commit messages, error messages, UI copy, reports, and summaries when the user asks to polish, shorten, clarify, de-duplicate, restructure, or normalize tone.
testing
Draft or refine a concise product requirements document from a rough product idea, then write a Typst source file and sibling PDF to a resolved output path.
research
产品经理竞品分析报告生成器。当用户提到竞品分析、竞品调研、竞品对比、竞争对手分析、市场竞争分析、行业竞品研究时触发。也适用于用户要求对比多个产品/平台/公司的功能、商业模式、市场定位等场景。即使用户只是说'帮我分析一下XX和YY'或'XX有哪些竞争对手',只要涉及产品/公司间的对比分析,都应该使用这个 skill。支持任意行业,支持快速分析和深度分析两种模式。
development
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.