CtrlK
BlogDocsLog inGet started
Tessl Logo

apply-patch

Apply multi-file or tricky edits atomically with git apply instead of many fragile edit_file calls. Use when changing several files at once or when edit_file fails to match.

73

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An exemplary compact skill body: concise, immediately actionable, with validation-before-apply and an explicit retry loop for the main failure mode. The only improvement space is making the diff example fully concrete or showing how to generate one, which keeps actionability at 4.

DimensionReasoningScore

Conciseness

Lean and efficient: the body is ~33 lines, every command and step earns its place, and the one piece of explanatory text (edit_file's exact-match limitation) is harness-specific knowledge Claude doesn't already have. No filler, no explaining concepts Claude knows.

5 / 5

Actionability

Concrete executable commands throughout: 'git apply --check changes.patch', 'git apply changes.patch' with the '-p0' flag caveat, and a recovery step ('read_file the exact lines again, regenerate the diff'). Not a 5 because the unified-diff snippet is a placeholder skeleton (path/to/file, @@ -10,7 +10,7 @@) rather than a complete runnable example, and no command is shown for generating the diff in the first place.

4 / 5

Workflow Clarity

Clear numbered sequence with an explicit validation checkpoint ('Validate before applying: git apply --check') and a feedback loop for error recovery ('If git apply rejects the hunk... regenerate the diff with correct context, and retry'). Despite being a batch/atomic operation, validation is present, so the destructive/batch cap does not apply.

5 / 5

Progressive Disclosure

A simple skill under 50 lines with no need for external references — no bundle files exist and none are needed. Sections ('Procedure', 'When to prefer this') are well-organized and the body is self-contained, which the rubric's simple-skill exception scores at 5.

5 / 5

Total

19

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that pairs a concrete, mechanism-level 'what' with an explicit 'Use when' clause and distinct trigger conditions. The only gap is keyword coverage: the patch/diff vocabulary that dominates the skill body is missing from the description itself.

Suggestions

Add natural synonyms like 'patch' or 'diff' to the description (e.g. 'Use when applying a patch across several files...') so users who ask in patch vocabulary trigger it.

Consider mentioning re-applying patches produced elsewhere (PRs, git diff) as a trigger, since the body lists it as a use case but the description omits it.

DimensionReasoningScore

Specificity

Concrete actions are stated: 'Apply multi-file or tricky edits atomically with git apply instead of many fragile edit_file calls' names the mechanism (git apply), the operation class (multi-file/tricky edits), and the atomicity guarantee. It stops short of anchor 5 because it doesn't enumerate the fuller range of capabilities covered in the body (validating patches, re-applying external patches); it's above anchor 3 since the action is stated with mechanism and contrast to the alternative, not just named.

4 / 5

Completeness

Explicitly answers both: what ('Apply multi-file or tricky edits atomically with git apply instead of many fragile edit_file calls') and when ('Use when changing several files at once or when edit_file fails to match') with concrete trigger phrases, matching the anchor-5 example structure.

5 / 5

Trigger Term Quality

Natural user phrases are present: 'changing several files at once', 'edit_file fails to match', 'multi-file', 'tricky edits'. Not a 5 because common synonyms users would say — 'patch', 'diff', 'apply this patch', 'bulk edits' — are absent from the description despite being the skill's core vocabulary.

4 / 5

Distinctiveness Conflict Risk

Clear niche — atomic multi-file editing via git apply, explicitly contrasted against edit_file — with triggers ('changing several files at once', 'edit_file fails to match') that are unlikely to fire for other skills. Not a 4 because no closely related skill's trigger surface overlaps these conditions.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
agentscope-ai/agentscope-java
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.