string

A Haskell guideline for choosing between Text, String, and ByteString when handling text or bytes. Text is intended for normal Unicode text, while ByteString is for binary or uncertain-encoding data.

In plain words
What is it for?
Use it when writing or reviewing Haskell code that stores, displays, parses, or transfers text and binary data.
Why use it?
It helps avoid inefficient text handling and reduces mistakes when Unicode text and raw byte data are mixed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ncaq/konoka/string
Any agent
npx skills add ncaq/konoka --skill string
Clone the repo
git clone --depth 1 https://github.com/ncaq/konoka

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00040 $0.00376
Opus 5 $0.00020 $0.00188
Sonnet 5 $0.00008 $0.00075
Haiku 4.5 $0.00004 $0.00038

Measured 2d ago against content hash 1260cfba8e7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

string scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/haskell-tasuke/skills/string/SKILL.md · 33 lines

What it actually says

文字列型の使い分け

String[Char]のエイリアスであり、 文字列を表現するために使われますが、 非常に非効率的です。

さらにshowで表示したときに日本語を含むマルチバイト文字列がエスケープされます。

昔からある型のため仕方なく使われていますが、 なるべくTextを使ってください。

TextはUnicode文字列を効率的に扱える型です。 基本的にはText.LazyではなくStrictなTextを優先して使ってください。

ByteStringとの使い分けは、 Unicodeで正しく表現できる文字列の場合はTextを使い、 バイナリデータやエンコードが不明なデータ、 非Unicodeでやり取りされるネットワーク上の文字列データなどはByteStringを使います。

Stringは古くから使われているためライブラリに蔓延しているだけです。 ライブラリが関係するときだけ使い、 そのデータを長く使う場合はTextに変換するべきです。

詳しく知りたい場合は、 Haskellの文字列型: 分類と特徴 - Qiita を参照してください。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 33 lines · 40 tokens per session scan A 1260cfba8e7a

Subscribe to this mod's changes

string is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed 4d ago), licensed Apache-2.0. It adds 40 tokens to every session and 376 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

plano-agent-orchestration

Improve multi-agent orchestration in Plano. Use for agent registration, agent listener wiring, and capability-focused agent descriptions for accurate routing.

katanemo/plano · 33 tokens

plano-filter-guardrails

Harden Plano filter chains and guardrails. Use for MCP filter setup, prompt guard responses, and safe filter ordering.

katanemo/plano · 31 tokens

veo-3.2-prompter

Expert prompt engineering for Google Veo 3.2 (Artemis engine). Use when the user wants to generate a video with Veo 3.2, needs help crafting cinematic prompts, or mentions Veo, Google video generation, or Artemis engine.

pexoai/pexo-skills · 63 tokens

ads-linkedin

Audit LinkedIn Ads measurement, Insight Tag and conversions, professional audiences, lead generation, ABM, creative, bidding, budgets, pacing, automation, and policy. Use for LinkedIn Ads, Campaign Manager, Insight Tag, Lead Gen Forms, Thought Leader Ads, ABM campaigns, or B2B paid media.

AgriciDaniel/claude-ads · 68 tokens

military-commander

上将军·运筹帷幄 - 以兵法之道统筹全局,运筹帷幄之中,决胜千里之外,集中优势兵力打歼灭战.

linkerlin/PUAX · 52 tokens