Agent skill

Writing Code Commentary

by purefunctor in purefunctor/purescript-iris

Writes and reviews Iris compiler comments, algorithm traces, and documentation examples.

Custom licenceAuto-check passed

Install Writing Code Commentary

skills CLI
$ npx skills add purefunctor/purescript-iris --skill writing-code-commentary -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install purefunctor/purescript-iris writing-code-commentary --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/purefunctor/purescript-iris.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-code-commentary .claude/skills/writing-code-commentary && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
writing-code-commentary
GitHub stars
117
Token cost
~2.8k tokens
SKILL.md length
1,386 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

Writes and reviews Iris compiler comments, algorithm traces, and documentation examples.

  • Works in 4 steps: State one generalized rule → Introduce concrete source and target types → Trace examples beside the corresponding… → …
  • Documenting non-obvious compiler transformations
  • SKILL.md covers Establish the local style, Write from the goal, not from…, Structure staged algorithm… and Describe recursion by semantic…, plus 8 more sections
  • Calls just, git and cargo

What it does

Writing Code Commentary is an agent skill from purefunctor/purescript-iris. Writes and reviews Iris compiler comments, algorithm traces, and documentation examples. Use when documenting non-obvious compiler transformations, revising inline commentary, or applying documentation-focused review nits.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A compiler for the PureScript programming language.

When your agent uses it

  • Documenting non-obvious compiler transformations
  • Revising inline commentary
  • Applying documentation-focused review nits

Example prompts

  • “Use the writing-code-commentary skill to write and reviews Iris compiler comments, algorithm traces, and documentation examples”
  • “/writing-code-commentary”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. State one generalized rule
  2. Introduce concrete source and target types
  3. Trace examples beside the corresponding construction steps
  4. Complete every example in parallel

What it can do on your machine

Read from SKILL.md and the folder at commit f62075e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • just
    • git
    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Writing Code Commentary loads about 2.8k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 1,386 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,386 words (~2,787 tokens).

“Make difficult compiler code reviewable without narrating code that already explains itself.”

— opening of SKILL.md by purefunctor, Custom licence
name
writing-code-commentary

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/writing-code-commentary of purefunctor/purescript-iris.

Open the folder on GitHubat commit f62075e

Compare with similar skills

Writing Code Commentary next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Writing Code Commentary compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Code Commentary this skillpurefunctor/purescript-iris117—~2.8kAutomated safety check: PassCustom licence
Observe Traceruvnet/ruflo74k—~522Automated safety check: NotesMIT
No Commentscursor/plugins10k7 repos~640Automated safety check: PassNone
Commentsanthropics/claude-for-legal9.6k1 repos~1kAutomated safety check: PassApache-2.0
Clean Up Commentsthedaviddias/Front-End-Checklist74k—~435Automated safety check: PassMIT
Comment Checkercode-yeongyu/oh-my-openagent70k—~160Automated safety check: PassCustom licence

Similar skills

  • Observe Trace

    ruvnet/ruflo

    Trace agent execution by collecting spans and building a trace tree for a task

    74k GitHub stars~522 tokensUpdated today
    Auto-check: notes
  • No Comments

    cursor/plugins

    Official

    Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints.

    10k GitHub starsUsed in 7 repos~640 tokens
    Auto-check passed
  • Comments

    anthropics/claude-for-legal

    Official

    Review open NPRM comment periods, log decisions, track deadlines.

    9.6k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Clean Up Comments

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Remove comments and debug code in production.

    74k GitHub stars~435 tokensUpdated 2 days ago
    Auto-check passed
  • Comment Checker

    code-yeongyu/oh-my-openagent

    A skill your agent uses when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.

    70k GitHub stars~160 tokensUpdated today
    Auto-check passed
  • Official

    Creates original generative art in two steps: a written algorithmic philosophy, then a p5.js sketch with seeded randomness and an interactive viewer for exploring parameters.

    180k GitHub starsUsed in 38 repos~4.9k tokens
    Media & CreativeAuto-check passed

More from purefunctor/purescript-iris

All 8 skills in this repo
  • Running Compatibility Checks

    purefunctor/purescript-iris

    Runs Iris package-set compatibility comparisons with release-built verifiers.

    117 GitHub stars~605 tokensUpdated today
    Auto-check passed
  • Cutting Releases

    purefunctor/purescript-iris

    Cuts Iris GitHub releases through the version-bump PR, merge commit, tag-driven build workflow, attestations, installer tests, and generated release notes.

    117 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Stylex

    purefunctor/purescript-iris

    Write StyleX styles in PureScript with Iris through the built-in Iris.StyleX, Iris.StyleX.When, and Iris.StyleX.Types modules, which Iris compiles to @stylexjs/stylex calls.

    117 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Watch

    purefunctor/purescript-iris

    Ask a running iris watch about a PureScript project with iris watch query for signatures, module exports, definitions, references, instances, dependent modules, name search, diagnostics, and…

    117 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Workflow Integration Tests

    purefunctor/purescript-iris

    Workflow for adding and updating Iris integration-test fixtures for unified compiler, lowering, resolving, and LSP behavior.

    117 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Workflow Regression Tests

    purefunctor/purescript-iris

    Workflow for producing auditable Git or jj history for a known compiler bug fix.

    117 GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Questions about Writing Code Commentary

What does Writing Code Commentary do?

Writes and reviews Iris compiler comments, algorithm traces, and documentation examples. Writing Code Commentary is an agent skill from purefunctor/purescript-iris. Writes and reviews Iris compiler comments, algorithm traces, and documentation examples.

When should I use Writing Code Commentary?

Writing Code Commentary fits situations like: documenting non-obvious compiler transformations; revising inline commentary; applying documentation-focused review nits.

How do I install Writing Code Commentary in Claude Code?

Run `npx skills add purefunctor/purescript-iris --skill writing-code-commentary -a claude-code`. Or copy the skill folder (.agents/skills/writing-code-commentary in purefunctor/purescript-iris) into .claude/skills/writing-code-commentary in your project. Claude Code loads it when a task matches its description.

How do I install Writing Code Commentary in Codex?

Run `npx skills add purefunctor/purescript-iris --skill writing-code-commentary -a codex`. Or copy the skill folder (.agents/skills/writing-code-commentary in purefunctor/purescript-iris) into .agents/skills/writing-code-commentary in your project. Codex loads it when a task matches its description.

Can I use Writing Code Commentary in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add purefunctor/purescript-iris --skill writing-code-commentary -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-code-commentary, .gemini/skills/writing-code-commentary, .github/skills/writing-code-commentary and .opencode/skills/writing-code-commentary in your project.

What does Writing Code Commentary need to run?

Going by SKILL.md and its folder, Writing Code Commentary needs the command-line tools its instructions call (just, git and cargo).

Does Writing Code Commentary access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Writing Code Commentary safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Writing Code Commentary use?

Writing Code Commentary has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Writing Code Commentary use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Writing Code Commentary?

Skills that share tags, products or a category with Writing Code Commentary: Observe Trace (ruvnet/ruflo, 74k stars), No Comments (cursor/plugins, 10k stars), Comments (anthropics/claude-for-legal, 9.6k stars) and Clean Up Comments (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Code Commentary?

purefunctor (a GitHub user) maintains it in purefunctor/purescript-iris, which has 117 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 8, 2026.

Source: purefunctor/purescript-iris on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.