JGit documentation and API reference with code examples
92
Pending
Does it follow best practices?
Impact
92%
1.09xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "Tests whether the agent implements repository initialization utility following JGit best practices: proper resource management, error handling, and use of appropriate APIs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Try-with-resources pattern",
"description": "Uses try-with-resources for Repository and/or Git objects to ensure automatic cleanup",
"max_score": 10
},
{
"name": "FileRepositoryBuilder or Git.init()",
"description": "Uses either FileRepositoryBuilder or Git.init() to create/initialize repository",
"max_score": 10
},
{
"name": "GitAPIException handling",
"description": "Properly catches and handles GitAPIException (not just throwing or printing stack trace)",
"max_score": 10
},
{
"name": "IOException handling",
"description": "Properly catches and handles IOException for file operations",
"max_score": 10
},
{
"name": "Resource cleanup",
"description": "Ensures resources are closed (either via try-with-resources or explicit close() in finally block)",
"max_score": 10
},
{
"name": "Porcelain commands",
"description": "Uses Git class porcelain commands (add(), commit()) for high-level operations",
"max_score": 10
},
{
"name": "Non-bare repository",
"description": "Specifies setBare(false) or equivalent for repository with working tree",
"max_score": 10
},
{
"name": "Method separation",
"description": "Separates initialization, file adding, and commit into distinct methods with clear responsibilities",
"max_score": 10
},
{
"name": "Error propagation",
"description": "Uses appropriate exception types for error conditions (not just RuntimeException)",
"max_score": 10
},
{
"name": "Build configuration",
"description": "Includes correct JGit dependency in pom.xml or build.gradle with appropriate version",
"max_score": 10
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5