agentic-kit: Skill for Claude Code

.agents/skills/ak-docs-gate/SKILL.md

ak-docs-gate is a skill for Claude Code, Codex from pacphi/agentic-kit. It costs 67 tokens per session (1,438 once invoked), scanned A, original, MIT.

A documentation completion check for an agentic-kit code change. It checks documentation layout rules and whether living guides match the change, and can archive completed plans and specifications.

In plain words
What is it for?
Use it to review changed files, enforce documentation naming and location rules, check guides against code, and place completed plans or evidence in the required archive locations.
Why use it?
Documentation can be structurally valid but still describe old behavior, or finished plans can remain mixed with active work. This check catches both kinds of mismatch before a change is considered complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is pacphi/agentic-kit's own configuration. It tells Claude Code and Codex how to work on agentic-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pacphi/agentic-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pacphi/agentic-kit/main/.agents/skills/ak-docs-gate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pacphi/agentic-kit

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 ak-docs-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/pacphi/agentic-kit/ak-docs-gate/github.svg)](https://agentmods.dev/skills/pacphi/agentic-kit/ak-docs-gate)
Your own site
<a href="https://agentmods.dev/skills/pacphi/agentic-kit/ak-docs-gate"><img src="https://agentmods.dev/badge/skills/pacphi/agentic-kit/ak-docs-gate/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 ak-docs-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/pacphi/agentic-kit/ak-docs-gate"><img src="https://agentmods.dev/badge/skills/pacphi/agentic-kit/ak-docs-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,438 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.00067 $0.01438
Opus 5.5 $0.00027 $0.00575
Sonnet 5.5 $0.00013 $0.00288
Haiku 4.5 $0.00007 $0.00144

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

Security

Grade A, and why

ak-docs-gate 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 23d 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.

.agents/skills/ak-docs-gate/SKILL.md · 84 lines

How it starts

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

Docs gate

When to use

A code or docs change is about to be called done, or the maintainer asks for the docs gate. The gate has two halves: the layout rules, which a test enforces, and alignment, which only reading can check.

Preflight

  1. git branch --show-current, git status --short and git worktree list. Work in the checkout this session owns; never write to a checkout another session uses. Never run pnpm in a worktree: use node scripts/run-tests.mjs and node_modules/.bin/*.
  2. git diff --name-only main...HEAD plus uncommitted files: the change under review. If there is no change and no named plan, stop and ask what to check.

The rules (AGENTS.md and CLAUDE.md, "Documentation layout")

  • Markdown file names are lower case. Only README.md, CLAUDE.md, AGENTS.md and SKILL.md keep capitals.
  • Never create a folder under docs/. Plans go to docs/plans/YYYY-MM-DD-<feature>.md, specs to docs/plans/YYYY-MM-DD-<topic>-design.md, never docs/superpowers/. Dated audits and evidence go straight to docs/archive/; dormant proposals go to docs/proposals/.
  • Never move an ADR. Nothing under docs/adr/ is archived, renamed or deleted.
  • Top-level docs/*.md files are living guides. Each is listed in docs/README.md and carries current state only. History stays in ADRs. A retired command gets no alias and no hint in a guide; the old-to-new mapping goes in the PR body and release notes only.
  • docs/plans/README.md defines the ## Status section every plan or spec carries: Active, Blocked, Superseded, or Done, pending archive.

Steps

  1. Layout: node scripts/run-tests.mjs focus tests/kit/docs-layout.test.mjs. Each failure names the file and the fix (layoutProblems in scripts/docs-layout.mjs is the source of the rules; it has no CLI). A fail is a FAIL. Do not edit the test or the script to make it pass.
  2. Alignment: for each changed behavior (command, flag, path, setting, output, default), search the guides, README, AGENTS.md and the packaged templates for the old and new wording (git grep -n on the literal). Update each doc the change touches so it states the new current state only. A code change is not complete until the docs it touches are aligned; list the docs checked, even when none needed edits.
  3. New or renamed guide: it is listed in docs/README.md in the same change.
  4. ADRs: if an ADR describes behavior the change alters, do not edit it. Name the ADR and the claim, and ask whether to update its status and date. Edit only after a yes.
  5. Plans and specs: read the ## Status of each file in docs/plans/. For a "Done, pending archive" file (or one the maintainer names), check it is not still cited by name from a live doc (git grep -n <file name>; a Superseded file stays while cited). Then propose the move:
    • Write a map file OUTSIDE the repository (for example in the scratchpad): one row per file, the source path, a tab, the archive path. A plan docs/plans/<date>-<topic>.md becomes docs/archive/<date>-plan-<topic>.md, and a spec docs/plans/<date>-<topic>-design.md becomes docs/archive/<date>-design-<topic>.md: the name is YYYY-MM[-DD]-<origin>-<topic>.<ext>, with the origins under "Naming convention" in docs/archive/README.md. The destination must not exist.
    • Preview: node scripts/docs-relocate.mjs --map <map file> --mentions --dry-run. It writes nothing. It prints each path mention it would rewrite, a count of the Markdown links it would rewrite and in how many files, and links that are already broken. --bare also rewrites bare file names; use it only if the dry run shows it is needed.
    • Show the maintainer the rows and the dry-run output, and ask for a yes that names the files. A move is a write that rewrites links in other files; a general permission is not a yes.
    • After the yes, run the same command without --dry-run, then add one row per file to docs/archive/README.md (see its existing rows for the format). Re-run step 1.
    • Re-read git status --short and git diff --stat: only the named moves, link rewrites and the index rows may appear. Report anything else.
  6. Markdown lint on the touched files: node_modules/.bin/markdownlint <files>. This is the worktree form of pnpm run lint:md; use the pnpm script only in the main checkout, if it is yours.

Read the full file on GitHub · 84 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. 23d ago First seen · 84 lines · 67 tokens per session scan A 0efe03dd7d5d

Subscribe to this mod's changes

ak-docs-gate is a skill published in the GitHub repository pacphi/agentic-kit (61 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,438 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-10-05.

Related

Other skills, from other repositories

docs-governance

Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references. Use when a user asks for documentation governance, project-knowledge organization, documentation integrity, or a deterministic docs audit…

affaan-m/ECC · 67 tokens

notion

Search, read, create, and update Notion pages via the Notion MCP.

asgeirtj/system_prompts_leaks · 20 tokens

parallel-feature-development

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent implementation. Use this skill when decomposing a large feature into independent work streams, when two or more agents need to implement different layers of the same system…

wshobson/agents · 105 tokens

meeting-action-items

Turn meeting notes into cited decisions, owners, tickets.

NousResearch/hermes-agent · 15 tokens

create-stories

Breaks one epic into implementable stories with acceptance criteria. Use when the user wants stories for an epic or the next batch of work to build. Not for turning the whole design into epics.

Donchitos/Claude-Code-Game-Studios · 44 tokens

story-readiness

Checks whether a story is ready to implement: clear acceptance criteria, no open questions, valid ADR and dependencies. Use when the user asks if a story, or the sprint's stories, are ready to start or build.

Donchitos/Claude-Code-Game-Studios · 48 tokens