io-monad SKILL.md skillA
io-monad from ncaq/konoka is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ncaq/konoka/io-monad@git:20260521.04da5a4Pins git:20260521.04da5a4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ncaq/konoka
- Path
plugins/haskell-tasuke/skills/io-monad/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260521.04da5a4, committed May 21, 2026
- Size
- 2,669 bytes
- Repository stars
- 3
- License
- Apache-2.0
Prefer MonadIO and MonadUnliftIO type classes over using IO directly, and avoid redundant liftIO. Use when writing or reviewing Haskell IO actions, monad transformers, or type class abstractions.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# IOモナドの扱い ## `IO`をなるべく直接使わず型クラスを使う `IO`モナドはプリミティブすぎます。 他のモナド変換子などと一緒に取り扱うのが不便です。 呼び出すたびに`liftIO`を使うのは面倒です。 なのでアクションを定義するときは出来る限り`IO`を直接使うのではなく、 [`MonadIO`](https://hackage-content.haskell.org/package/base/docs/Control-Monad-IO-Class.html)や、 [`MonadUnliftIO`](https://hackage.haskell.org/package/unliftio-core/docs/Control-Monad-IO-Unlift.html)といった、 型クラスで抽象化するべきです。 `MonadIO`の方がより一般的なので、 先にそちらで定義出来ないか検討するべきです。 `MonadUnliftIO`の定義では、 ```haskell class MonadIO m => MonadUnliftIO (m :: Type -> Type) ``` となっているため、 `MonadUnliftIO`のインスタンスは必ず`MonadIO`のインスタンスも持ちます。 なので`MonadUnliftIO`の中で`MonadIO`の関数を呼び出すことはできるので、 `MonadIO`にすることに問題はありません。 `MonadUnliftIO`が要求される場合はそちらで定義してください。 ## `IO`内部で`MonadUnliftIO`のアクションを実行する `MonadIO`や`MonadUnliftIO`の文脈で`IO`のアクションを実行する場合は`liftIO`を使うだけで良いです。 `IO`の文脈で`MonadUnliftIO`のアクションを実行する場合はひと工夫必要な時があります。 以下の関数を使うことで解決できます。 ```haskell askRunInIO :: MonadUnliftIO m => m (m a -> IO a) ``` `askRunInIO`を`MonadUnliftIO`の文脈で呼び出すことで、 `MonadUnliftIO`のアクションを`IO`に変換する関数を取得できます。 この関数を`runInIO`関数などの名前で束縛して、 `IO`を要求するライブラリの型に対して、 `MonadUnliftIO`のアクションを`runInIO`で包んで渡すことが出来ます。 または単発で済むならば以下の関数を使っても良いでしょう。 ```haskell toIO :: MonadUnliftIO m => m a -> m (IO a) ``` …
Read the whole file at its exact version.
How to install
mdr add ncaq/konoka/io-monad@sha256:6cb2dfe14cb601e8The line at the top of this page pins the label git:20260521.04da5a4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_oz7oobf3s7q2qevn)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on May 21, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2669 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ncaq/konoka · 3 stars · license Apache-2.0 · pushed 2026-10-19 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_oz7oobf3s7q2qevn GET https://markdownregistry.com/api/v1/resolve?ref=ncaq/konoka/io-monad GET https://markdownregistry.com/api/v1/blob/6cb2dfe14cb601e8237473466b84fa0b5428c4c993350027ae4ac11630161ed7
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.