AGENT SKILL

doc-limits

Load to add, tune, or debug document byte ceilings and DOC_LIMITS_* settings.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 93
Forks
37

01 前言 Front Matter

name
doc-limits
license
MIT
metadata
{ "bugs": "https://github.com/vanillagreencom/kendex/issues", "author": "vanillagreen", "source": "kendex", "repository": "https://github.com/vanillagreencom/kendex" }
description
Load to add, tune, or debug document byte ceilings and DOC_LIMITS_* settings.
user-invocable
true

02 资源文件 5

03 SKILL.md 正文

<!-- kendex:project-instructions:start -->

Project Instructions

<!-- kendex:shared-instructions:start --> Problems with a kendex-owned skill go through kendex report; check ownership in the file first. <!-- kendex:shared-instructions:end --> <!-- kendex:project-instructions:end -->

Doc Limits

Run the document byte-ceiling check before review and in CI. The commit-guards pre-commit and pre-push chains use the staged mode; at push the index is held equal to HEAD first, so that mode measures the tree being pushed.

.agents/skills/doc-limits/scripts/doc-limits
.agents/skills/doc-limits/scripts/doc-limits --staged

The check measures AGENTS.md, CLAUDE.md, GEMINI.md and SKILL.md, at the root and at any depth, and no other file. A document over its limit fails the check. Bring it under its limit in this order: cut restated content first, split only at a real subject boundary, and never delete a rule to fit. references/policy.md § Path classes says how a class sets a ceiling among those files.

A document that must stay whole gets a row in the configured excludes file with its reason. Class selection and the exclusion format are references/policy.md. Flags, settings and exit codes are in doc-limits --help.

04 同仓库更多 Skills