Agent skill

C Code Documentation

by hyvanmielenpelit in hyvanmielenpelit/GnollHack

Best practices for AI agents documenting the GnollHack C codebase.

Custom licenceAuto-check passedDevelopment

Install C Code Documentation

skills CLI
$ npx skills add hyvanmielenpelit/GnollHack --skill c-code-documentation -a claude-code

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

GitHub CLI
$ gh skill install hyvanmielenpelit/GnollHack c-code-documentation --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/hyvanmielenpelit/GnollHack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/c-code-documentation .claude/skills/c-code-documentation && 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
c-code-documentation
GitHub stars
161
Token cost
~164 tokens
SKILL.md length
51 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

Best practices for AI agents documenting the GnollHack C codebase.

  • Tasks that involve Technical documentation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

C Code Documentation is an agent skill from hyvanmielenpelit/GnollHack. Best practices for AI agents documenting the GnollHack C codebase. Covers file headers, function documentation, inline comments, macro explanations, and strategies for making legacy NetHack-derived C code understandable to modern developers.

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

It sits in Development, covering Technical documentation. The repository describes itself as: Modern evolution of the classic roguelike game NetHack.

When your agent uses it

  • Tasks that involve Technical documentation

Example prompts

  • “/c-code-documentation”

What it can do on your machine

Read from SKILL.md and the folder at commit 9df8a69. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

C Code Documentation loads about 164 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 51 words of instructions outside code blocks.

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

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 51 words (~164 tokens).

“The full skill lives in this repository's tool-neutral agent directory (.agents/), which is shared with other AI coding agents. This file is only a pointer.”

— opening of SKILL.md by hyvanmielenpelit, Custom licence
name
c-code-documentation

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/c-code-documentation of hyvanmielenpelit/GnollHack.

Open the folder on GitHubat commit 9df8a69

Compare with similar skills

C Code Documentation 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.

C Code Documentation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
C Code Documentation this skillhyvanmielenpelit/GnollHack161—~164Automated safety check: PassCustom licence
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Simple Englishmoeru-ai/airi50k2 repos~4.6kAutomated safety check: PassMIT
Get API Docs with chubandrewyng/context-hub14k2 repos~775Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mailspring App ScreenshotsFoundry376/Mailspring18k—~1.5kAutomated safety check: PassGPL-3.0

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 2 repos~775 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mailspring App Screenshots

    Foundry376/Mailspring

    Captures screenshots of the running Mailspring dev app for docs, PRs or visual checks by launching it with a debugging port, driving the UI and clipping to an element.

    18k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes

More from hyvanmielenpelit/GnollHack

All 11 skills in this repo
  • Client Implementation Planning

    hyvanmielenpelit/GnollHack

    Implementation planning overlay for the GnollHack client repository.

    161 GitHub stars~238 tokensUpdated today
    Auto-check passed
  • Sentry Crash Analysis

    hyvanmielenpelit/GnollHack

    Systematic methodology for diagnosing GnollHack crash reports from the Sentry MCP server.

    161 GitHub stars~222 tokensUpdated today
    Auto-check passed
  • Adding Game Content

    hyvanmielenpelit/GnollHack

    Patterns for adding monsters, objects, and artifacts to GnollHack.

    161 GitHub stars~169 tokensUpdated today
    Auto-check passed
  • Build Pipeline

    hyvanmielenpelit/GnollHack

    Guide on building GnollHack native C libraries, processing assets with makedefs/levcomp/dgncomp/dlb, packaging nhdat, and compiling the C .NET MAUI frontend for Android, iOS, and Windows.

    161 GitHub stars~147 tokensUpdated today
    Auto-check passed
  • Client Subagent Guidelines

    hyvanmielenpelit/GnollHack

    Subagent constraints specific to the GnollHack client repository.

    161 GitHub stars~222 tokensUpdated today
    Auto-check passed
  • Csharp Code Documentation

    hyvanmielenpelit/GnollHack

    Best practices for AI agents documenting the GnollHack C .NET MAUI codebase.

    161 GitHub stars~166 tokensUpdated today
    Auto-check passed

Categories

Questions about C Code Documentation

What does C Code Documentation do?

Best practices for AI agents documenting the GnollHack C codebase. C Code Documentation is an agent skill from hyvanmielenpelit/GnollHack. Best practices for AI agents documenting the GnollHack C codebase.

When should I use C Code Documentation?

C Code Documentation fits situations like: tasks that involve Technical documentation.

How do I install C Code Documentation in Claude Code?

Run `npx skills add hyvanmielenpelit/GnollHack --skill c-code-documentation -a claude-code`. Or copy the skill folder (.claude/skills/c-code-documentation in hyvanmielenpelit/GnollHack) into .claude/skills/c-code-documentation in your project. Claude Code loads it when a task matches its description.

How do I install C Code Documentation in Codex?

Run `npx skills add hyvanmielenpelit/GnollHack --skill c-code-documentation -a codex`. Or copy the skill folder (.claude/skills/c-code-documentation in hyvanmielenpelit/GnollHack) into .agents/skills/c-code-documentation in your project. Codex loads it when a task matches its description.

Can I use C Code Documentation 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 hyvanmielenpelit/GnollHack --skill c-code-documentation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/c-code-documentation, .gemini/skills/c-code-documentation, .github/skills/c-code-documentation and .opencode/skills/c-code-documentation in your project.

What does C Code Documentation need to run?

SKILL.md names no scripts, command-line tools or credentials: C Code Documentation is instructions for the agent only.

Does C Code Documentation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is C Code Documentation 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 C Code Documentation use?

C Code Documentation 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 C Code Documentation use?

About 164 tokens (SKILL.md is roughly 656 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 C Code Documentation?

Skills that share tags, products or a category with C Code Documentation: Diagram Design (cathrynlavery/diagram-design, 45k stars), Simple English (moeru-ai/airi, 50k stars), Get API Docs with chub (andrewyng/context-hub, 14k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains C Code Documentation?

hyvanmielenpelit (a GitHub organization) maintains it in hyvanmielenpelit/GnollHack, which has 161 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

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