codecompanion-writing-docs

codecompanion-writing-docs is a skill for Claude Code, Codex from olimorris/codecompanion.nvim. It costs 26 tokens per session (2,112 once invoked), scanned A, original, Apache-2.0.

A writing guide for CodeCompanion.nvim documentation. CodeCompanion.nvim is a Neovim plugin, and Neovim is a text editor commonly extended with Lua plugins.

In plain words
What is it for?
Use it when creating or editing pages in the project's documentation directory, then regenerate the Vim help files after changes.
Why use it?
It gives contributors consistent rules for wording, page structure, headings, and generated documentation. This reduces unclear or inconsistent instructions across the project.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it when creating or editing pages in the project's documentation directory, then regenerate the Vim help files after changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/olimorris/codecompanion.nvim/codecompanion-writing-docs
About the project

CodeCompanion.nvim is a Neovim plugin that connects the editor to large language models and coding agents. Neovim users employ it for chat, inline code changes, refactoring, reviews, workflows, and integrations through protocols such as ACP and MCP. Catalogue add-ons provide instructions for using the plugin.

olimorris/codecompanion.nvim · 6,960 stars · on GitHub · codecompanion.olimorris.dev

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.

Any agent
npx skills add olimorris/codecompanion.nvim --skill codecompanion-writing-docs
Clone the repo
git clone --depth 1 https://github.com/olimorris/codecompanion.nvim

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codecompanion-writing-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs/github.svg)](https://agentmods.dev/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs)
Your own site
<a href="https://agentmods.dev/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs"><img src="https://agentmods.dev/badge/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codecompanion-writing-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs"><img src="https://agentmods.dev/badge/skills/olimorris/codecompanion.nvim/codecompanion-writing-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.02112
Opus 5.5 $0.00010 $0.00845
Sonnet 5.5 $0.00005 $0.00422
Haiku 4.5 $0.00003 $0.00211

Measured 6d ago against content hash 4edaed6c9cdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codecompanion-writing-docs 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 6d 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.

.codecompanion/skills/codecompanion-writing-docs/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing Docs

Write CodeCompanion.nvim's docs following the Microsoft Writing Style Guide with the overrides below. Run make docs after changing any page to regenerate the vimdoc.

Voice and Tone

  • Write like you speak: friendly, direct and human, aimed at Neovim users. Avoid jargon where a familiar word works.
  • Lead with what matters most. Front-load keywords so readers can scan.
  • Say what happens, including the edge cases: "Optional arguments can be left blank, and cancelling at any point adds nothing".
  • Be brief. Cut filler words, unnecessary adverbs and phrases like "you can", "there is" and "there are" where they add nothing. Prefer one-word verbs ("try", not "attempt to").
  • Avoid marketing language and hedging: no "simply", "powerful", "awesome", "seamless" or "journey".
  • Start with the content. Don't open with "This guide is intended to help you..." or close with "This is useful for...".

Page Structure

  • Frontmatter description: one sentence, what the page lets you do.
  • The # title is "Using X" for usage pages, "Configuring X" for configuration pages and "Extending with X" for extending pages. Guides take a task title: "Running Local Models", "Choosing an Adapter".
  • Open with one to three sentences: what the feature is, then how CodeCompanion does it. If the feature solves a problem, name the problem in a sentence first.
  • ## then ### is the ceiling. For a sub-point under ###, use a bold line (**Images**) instead of a deeper heading.
  • Section names are short nouns or gerunds: "Directories", "Groups", "Autoload", "Editing and Deleting".
  • End with a "Limitations" section when there are any, stated honestly.

Code First

The rhythm is a one-line lead-in ending in a colon, then the code block:

Skills are enabled by default. To disable them:

```lua
require("codecompanion").setup({
  skills = {
    opts = {
      chat = {
        enabled = false,
      },
    },
  },
})
```
  • Lead-ins: "This can be configured with:", "You can override this with:", "To set an adapter:".
  • Always wrap config examples in the full require("codecompanion").setup({ ... }) nesting, so they can be pasted as-is.
  • Use realistic values, not foo or bar.
  • Inline comments list the allowed values or the unit, nothing more: -- Can be "default", "telescope", "fzf_lua", "mini_pick" or "snacks", -- milliseconds.
  • Use ::: code-group for alternatives (Static and Conditional, Markdown and Lua) rather than two blocks with prose between them.
  • Ex commands go in a bare fenced block with no language.
  • Let the snippet speak for itself. Only add a sentence after it for behaviour the code can't show: "A directory further down the list takes precedence if skills of the same name clash".

Read the full file on GitHub · 147 lines

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. 6d ago First seen · 147 lines · 26 tokens per session scan A 4edaed6c9cdb

Subscribe to this mod's changes

codecompanion-writing-docs is a skill published in the GitHub repository olimorris/codecompanion.nvim (6,960 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 2,112 once invoked, about $0.0001 per session on Opus 5.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-11-24.

Related

codecompanion-writing-docs compared with skills from other repositories

codecompanion-writing-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codecompanion-writing-docsolimorris/codecompanion.nvimSkill7.0kyesterdayApache-2.0A26Claude Code, Codex
lynkrFast-Editor/LynkrSkill642todayApache-2.0A50Claude Code, Codex
session-rag-evalchatboxai/chatboxSkill43k12d agoGPL-3.0A25Claude Code, Codex
native-game-referencenodetool-ai/nodetoolSkill670todayAGPL-3.0A71Claude Code, Codex
storyboard-corenodetool-ai/nodetoolSkill670todayAGPL-3.0A28Claude Code, Codex
timeline-edit-opsnodetool-ai/nodetoolSkill670todayAGPL-3.0A163Claude Code, Codex
sandbox-timelinenodetool-ai/nodetoolSkill670todayAGPL-3.0A27Claude Code, Codex