AGENT SKILL

edit-formats-and-tiering

Choose a precise file-edit format, keep planning separate from mechanical application when useful, and verify the resulting diff.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
edit-formats-and-tiering
license
MIT
version
0.1.0
metadata
{ "hermes_config_kit": { "adapter": "hermes-agent-config-kit", "conversion": "adapted", "source_path": "rules/edit-formats-and-tiering.md", "source_repo": "AnastasiyaW/claude-code-config" } }
description
Choose a precise file-edit format, keep planning separate from mechanical application when useful, and verify the resulting diff.

03 SKILL.md 正文

Edit Formats And Tiering

Source: AnastasiyaW/claude-code-config/rules/edit-formats-and-tiering.md.

This module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.

Edit Formats and Tiering

Use this module when changing files through an agent interface. It preserves a simple reliability rule: select the smallest edit representation that makes the intended change unambiguous, then verify the result. This is guidance only; it does not select models, activate delegation, apply changes, or alter tool permissions.

Select the edit format

Choose the format from the change, not from habit:

  • Whole file — use for a new small file, a generated file, or a deliberate replacement where preserving untouched content is not required.
  • Targeted replacement — use for a bounded change when the original block is exact and uniquely identifiable. Include sufficient surrounding context to prevent a match in the wrong location.
  • Unified diff — use when a patch is the required interface or when several nearby, reviewable changes belong in one coherent diff.
  • Plan then apply — use when the design decision is materially harder than the mechanical edit. Record the intended change first, then apply it through the appropriate file interface.

Do not rewrite an established file merely to change a few lines. Conversely, do not force a fragile partial replacement when a small complete file is clearer and safer.

Precision protocol

Before a targeted change:

  1. Read the current file and identify the exact intended location.
  2. Check that the match is unique or add stable context until it is.
  3. Separate the semantic decision from mechanical application when review, a second context, or a deterministic interface would reduce risk.
  4. Apply the smallest coherent change.
  5. Inspect the diff and run the narrowest relevant validation before declaring success.

If the expected original content is absent or ambiguous, stop and re-read the current state. Do not approximate a replacement into a file that may have changed underneath the protocol.

Tiering without provider assumptions

Some work benefits from a planning pass followed by mechanical application, but this is a task boundary rather than a provider or price rule. Keep the planner focused on intent, constraints, and acceptance evidence; keep the applier focused on an exact, reviewable artefact.

Use a single context for small, unambiguous edits. Use independent review or a separate application step when a change is high-impact, spans several interfaces, is difficult to reverse, or needs stronger evidence. Any delegation, external model use, or billing-impacting action remains subject to the applicable access and operator-confirmation boundary.

Avoid

  • Whole-file rewrites for small local changes without a preservation reason.
  • Ambiguous replacements that could affect several locations.
  • Treating a plan as a completed change before an artefact and verification exist.
  • Selecting an execution strategy from assumed model capability, cost, or provider behaviour rather than the verified task boundary.
  • Automatically enabling hooks, scripts, workflows, or background processes to enforce an editing convention.

Relationships

  • Use code-quality to keep the implementation proportionate to the requirement.
  • Use proof-loop and independent-verification when the resulting diff needs stronger completion evidence.
  • Use multi-agent-task-decomposition only when a separate planning or review context materially reduces a real risk.
  • Use safe-deletion before an edit removes or replaces retained data.

Reporting

Report the chosen edit format, why its match or scope was safe, the paths changed, diff inspection result, validation evidence, and any approval point. A compact diff is useful only when it is also the right diff.

04 同仓库更多 Skills

hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

owner-voice

暂无简介

★ 1
hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

humanize-russian

Редактировать русский текст для ясности и естественного звучания, сохраняя факты, термины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст живее, отредактировать русский черновик или статью перед публикацией. Не определяет авторство и не обещает обход детекторов. Для английского — humanize-english; для структуры и доказательств — article-structure-review.

★ 1
hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

humanize-english

Edit English drafts for clear, natural language while preserving facts, uncertainty, technical meaning, citations and genre. Use when: humanize this text, remove AI-style filler, improve English prose, or edit an English article before publication. Not an authorship detector or a promise to bypass one. For Russian use humanize-russian; for thesis/evidence and structure use article-structure-review.

★ 1
hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

caveman

Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse "caveman" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman", "talk like caveman", "use caveman", "less tokens", "be brief", or Russian "пещерный режим", "говори как пещерный", "кратко", "меньше токенов", "экономь токены" — or invokes /caveman. Preserves the user's language (Russian in → Russian caveman out). Off only: "stop caveman" / "normal mode" / "обычный режим". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.

★ 1
hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

article-structure-review

Проверить структуру технической статьи после черновика: задача читателя, жанр, опора значимых утверждений на доказательства и честные ограничения. Use after the first draft, before publication. Исправлять структуру, когда это входит в запрос; не создавать обязательный конвейер из других навыков. Для локальной языковой редактуры — humanize-english или humanize-russian.

★ 1
hermes-jarvis-bot
hermes-jarvis-bot/hermes-agent-config-kit

video-post-production

Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames/scenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.

★ 1