AGENT SKILL

api-utf8-posting

Prepare non-ASCII API payloads deliberately and verify stored receiver-side text after an authorised external write.

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

01 前言 Front Matter

name
api-utf8-posting
license
MIT
version
0.1.0
metadata
{ "hermes_config_kit": { "adapter": "hermes-agent-config-kit", "conversion": "adapted", "source_path": "rules/api-utf8-posting.md", "source_repo": "AnastasiyaW/claude-code-config" } }
description
Prepare non-ASCII API payloads deliberately and verify stored receiver-side text after an authorised external write.

03 SKILL.md 正文

Api Utf8 Posting

Source: AnastasiyaW/claude-code-config/rules/api-utf8-posting.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.

Unicode payload integrity

This module provides data-integrity guidance for authorised API writes that contain non-ASCII text, including Cyrillic, CJK, Arabic, accented text, and emoji. It is guidance only: it does not send requests, configure a communications channel, activate a hook, access credentials, or retry an external action.

When to use

Use this module when an API request will create or update text outside the local workspace and the body contains characters beyond ASCII. Typical boundaries include issue trackers, messaging gateways, webhooks, and service APIs.

Use verify-at-consumer for the wider receiving-side contract. Use this module for the narrower question: did the stored text retain its intended Unicode characters and UTF-8 encoding?

Read-only preflight

Before an external write:

  1. Confirm the target endpoint, resource identifier, expected response field, and the operator authorisation for the write.
  2. Keep the intended text in a UTF-8 source file or a runtime value whose encoding is explicit; avoid passing non-ASCII payload text through ambiguous shell or console boundaries.
  3. Ensure the request representation declares JSON UTF-8 where the interface supports a content type.
  4. Keep access credentials out of payload files, command history, telemetry, generated artefacts, and reports.
  5. Define the receiver-side read-back query and the exact text or character class that must survive storage.

If the endpoint, encoding contract, or read-back route is unknown, stop and retrieve it before sending. A successful transport response is not proof that stored text is intact.

Authorised write and verification protocol

After operator confirmation for the external write:

  1. Use the approved interface with an explicit UTF-8 payload boundary.
  2. Record only redacted sender evidence, such as a resource identifier or delivery status.
  3. Read the stored field back through the receiving API or consumer interface.
  4. Compare the returned text with the intended text, or check the expected non-ASCII character ranges when a full equality check is impractical.
  5. Treat replacement characters, unexpected question-mark runs, missing expected characters, or decode failures as a data-integrity fault.
  6. Do not repeat the same ambiguous delivery path. Preserve the original identifier for audit, diagnose the boundary, and propose a corrected repost only with the required operator authorisation.

Platform-neutral boundary rules

  • Explicitly encode JSON bytes as UTF-8 in application code.
  • Explicitly decode API response bytes as UTF-8 when the response contract requires it.
  • Open payload and result files with a declared UTF-8 encoding.
  • Prefer a reviewed file or application request path over embedding non-ASCII data in an ad-hoc shell command when console encoding is uncertain.
  • Keep verification independent of display fonts or terminal rendering; inspect returned data from the receiving interface.

Avoid

  • Assuming an HTTP success response proves stored text is readable.
  • Retrying an unchanged path after it has corrupted text.
  • Replacing or deleting an affected external record without an audit-aware recovery decision.
  • Logging access credentials, raw authorization headers, or sensitive external payloads to prove encoding.
  • Adding an active shell hook, automatic repost routine, or communications-channel integration from this guidance.

Reporting

Report the target class, whether the action was read-only or externally write-impacting, the payload encoding boundary, redacted sender evidence, receiver-side read-back result, and any remaining recovery or operator-confirmation point.

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