doc-management

doc-management is a skill for Claude Code from doancan/mags. It costs 66 tokens per session (1,454 once invoked), scanned A, original, MIT.

A set of rules for creating, editing, organizing, and reviewing project documents, especially Markdown files. It defines required metadata and a draft, review, and locked status process.

In plain words
What is it for?
Use it when creating or updating documentation, adding YAML frontmatter, changing document status, or maintaining related document links.
Why use it?
It keeps documentation consistent, traceable, and clear about whether it is still being written or ready for use.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is See [Database Selection ADR](../adr/001-database-selection.md) for context..

Part of the mags plugin — 17 skills, 2 agents shipped together

Good fit Use it when creating or updating documentation, adding YAML frontmatter, changing document status, or maintaining related document links.

Compare 6 skills from other repositories ↓
View source ↗ doancan/mags
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/doancan/mags
agentmods
npx agentmods add skills/doancan/mags/doc-management

Made for: Claude Code.

Or install mags, the plugin that ships this one along with the rest of its 17 skills, 2 agents.

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 doc-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/doancan/mags/doc-management/github.svg)](https://agentmods.dev/skills/doancan/mags/doc-management)
Your own site
<a href="https://agentmods.dev/skills/doancan/mags/doc-management"><img src="https://agentmods.dev/badge/skills/doancan/mags/doc-management/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 doc-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/doancan/mags/doc-management"><img src="https://agentmods.dev/badge/skills/doancan/mags/doc-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,454 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.00066 $0.01454
Opus 5.5 $0.00026 $0.00582
Sonnet 5.5 $0.00013 $0.00291
Haiku 4.5 $0.00007 $0.00145

Measured 1mo ago against content hash d704979403b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc-management 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 1mo 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.

skills/doc-management/SKILL.md · 148 lines

How it starts

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

Document Management

YAML Frontmatter Rules

Include YAML frontmatter at the top of every document. Use the following required fields:

---
title: Clear, descriptive document title
description: One-line summary of the document purpose
status: draft | review | locked
created: YYYY-MM-DD
updated: YYYY-MM-DD
author: Name or identifier of the creator
tags: [relevant, topic, tags]
---

Add optional fields based on document type:

  • category: for grouping documents (e.g., architecture, guide, reference, adr)
  • related: list of paths to related documents
  • replaces: path to the document this one supersedes
  • version: semantic version for versioned specifications

Always update the updated field when making any content change. Never backdate the created field.

Document Status Workflow

Follow the three-stage status lifecycle strictly:

DRAFT -- The document is being written or heavily modified. Content may be incomplete, structure may change. Any contributor can edit freely. Set status to draft when:

  • Creating a new document
  • Making significant structural changes to an existing document
  • Rewriting more than 30% of the content

REVIEW -- The document is complete and awaiting feedback. Content should be coherent and full. Set status to review when:

  • All sections are filled in
  • The document is ready for others to read and comment on
  • Technical accuracy needs verification

LOCKED -- The document is finalized and approved. Do not edit locked documents directly. Set status to locked when:

  • Review feedback has been incorporated
  • The content is considered stable and authoritative
  • The document serves as a reference others depend on

To modify a locked document, change its status back to draft first, make changes, then move through review again. Never skip from locked directly back to locked after edits.

Section Structure

Organize every document with a consistent heading hierarchy:

  1. H1 (#) -- Document title. Use exactly one per file. Must match the frontmatter title.
  2. H2 (##) -- Major sections. Use for primary topic divisions.
  3. H3 (###) -- Subsections. Use for breakdowns within a major section.
  4. H4 (####) -- Detail sections. Use sparingly for deeply nested topics.

Read the full file on GitHub · 148 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. 1mo ago First seen · 148 lines · 66 tokens per session scan A d704979403b6

Subscribe to this mod's changes

doc-management is a skill published in the GitHub repository doancan/mags (3 stars, last pushed 8mo ago), licensed MIT. It adds 66 tokens to every session and 1,454 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

portable-text-conversion

Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers…

sanity-io/agent-toolkit · 94 tokens

fetch-firecrawl

Use to scrape a URL into clean Markdown when the page is JS-rendered, behind anti-bot, or a PDF — and FIRECRAWLAPIKEY is available. Degrades gracefully to warn when key is missing.

0xmariowu/Autosearch · 49 tokens

kolmopdf

A workflow for using KolmoPDF, a paid cloud service, to process PDFs or Markdown files. It supports PDF parsing, translation, export to common document formats, and reading aids such as outlines and summaries.

komoai2026/claude-plugin · 107 tokens

dokmatiq-docgen

Dokmatiq DocGen skill for Codex, Claude Code, and MCP-enabled AI assistants. Use this skill when the user wants to generate, transform, or analyze documents — including PDF, DOCX, ODT, or Excel/XLSX files — with optional stationery overlay (Briefpapier/letterhead/company letterhead branding applied to generated PDFs).…

dokmatiq/docgen-sdks · 308 tokens

document

Builds technical A4 PDF documents with D2 diagrams (architecture, sequence, mapping, ERD, flowchart and state) from one HTML source, checks every diagram against the page and previews every page. Use it when the user asks for a PDF, a document, a spec with flowcharts or sequence diagrams, or an ERD of a database or an…

supostat/mneme-plugin · 78 tokens

n8n-binary-and-data

Handle files and binary data in n8n correctly. Use when working with files, images, PDFs, attachments, uploads or downloads, base64, vision/multimodal input, or when an AI agent needs a file as tool input or output — and whenever the user mentions $binary, binaryPropertyName, "read the PDF", "attach the file", "send…

czlonkowski/n8n-mcp · 135 tokens