Manusで任意のスキルを実行
ワンクリックで
ワンクリックで
ワンクリックでManusで任意のスキルを実行
始めるjacoco
スター3
フォーク0
更新日2026年4月18日 21:21
Check JaCoCo code coverage
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
Check JaCoCo code coverage
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Check and fix Checkstyle and PMD violations
Implement a GitHub issue with branch and pull request workflow
Post a status comment on a GitHub issue (starting work, plan update, completed)
Format, validate checkstyle/PMD, and run tests before committing
Create/update GitHub issue, branch, commit, PR, then continue implementing
Scan code for security vulnerabilities (OWASP patterns, path traversal, injection risks)
SOC 職業分類に基づく
| name | jacoco |
| description | Check JaCoCo code coverage |
| allowed-tools | Bash(./mvnw *), Bash(python3 *) |
./mvnw clean verify -q
python3 -c "
import xml.etree.ElementTree as ET
THRESHOLD = 80
tree = ET.parse('target/site/jacoco/jacoco.xml')
root = tree.getroot()
print(f'{'Type':<12} {'Covered':>8} {'Missed':>8} {'Total':>8} {'Coverage':>10}')
print('-' * 50)
for counter in root.findall('counter'):
ctype = counter.get('type')
missed = int(counter.get('missed'))
covered = int(counter.get('covered'))
total = missed + covered
pct = covered / total * 100 if total > 0 else 0
print(f'{ctype:<12} {covered:>8} {missed:>8} {total:>8} {pct:>9.2f}%')
"
python3 -c "
import xml.etree.ElementTree as ET
tree = ET.parse('target/site/jacoco/jacoco.xml')
root = tree.getroot()
results = []
for pkg in root.findall('.//package'):
for cls in pkg.findall('class'):
for counter in cls.findall('counter'):
if counter.get('type') == 'LINE':
missed = int(counter.get('missed'))
covered = int(counter.get('covered'))
total = missed + covered
if total > 0:
pct = covered / total * 100
results.append((pct, missed, covered, total, cls.get('name')))
results.sort()
print(f'{'Coverage':>10} {'Missed':>8} {'Covered':>8} {'Total':>8} Class')
print('-' * 80)
for pct, missed, covered, total, name in results:
print(f'{pct:>9.1f}% {missed:>8} {covered:>8} {total:>8} {name}')
"
python3 -c "
import xml.etree.ElementTree as ET
import math
THRESHOLD = 80
tree = ET.parse('target/site/jacoco/jacoco.xml')
root = tree.getroot()
for counter in root.findall('counter'):
if counter.get('type') == 'LINE':
missed = int(counter.get('missed'))
covered = int(counter.get('covered'))
total = missed + covered
pct = covered / total * 100 if total > 0 else 0
needed = math.ceil(THRESHOLD / 100 * total) - covered
if needed > 0:
print(f'{pct:.2f}% - need {needed} more lines covered to reach {THRESHOLD}%')
else:
print(f'{pct:.2f}% - ABOVE {THRESHOLD}% (surplus: {-needed} lines)')
"