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.
npx skills add queelius/claude-anvil --skill cross-reference-disciplinegit clone --depth 1 https://github.com/queelius/claude-anvilWrote 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.
[](https://agentmods.dev/skills/queelius/claude-anvil/cross-reference-discipline)<a href="https://agentmods.dev/skills/queelius/claude-anvil/cross-reference-discipline"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/cross-reference-discipline/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.
<a href="https://agentmods.dev/skills/queelius/claude-anvil/cross-reference-discipline"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/cross-reference-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.00933 |
| Opus 5.5 | $0.00020 | $0.00373 |
| Sonnet 5.5 | $0.00010 | $0.00187 |
| Haiku 4.5 | $0.00005 | $0.00093 |
Grade A, and why
cross-reference-discipline 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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cross-reference Discipline (bookwright)
LaTeX cross-references are mechanical. The trouble with them is that LaTeX silently emits "Reference undefined" warnings without erroring out, and over a long manuscript a single typo can cascade into chapters of broken refs that nobody notices. This skill encodes the discipline that prevents that.
Header comment block (every section)
Every section file starts with a comment block. Template:
% §X.Y Section Title
%
% Cross-reference resolution status:
%
% DEFINED here: labels this section creates.
% \label{sec:foo}
% \label{def:bar}
% \label{thm:baz}
%
% RESOLVED (chapter X):
% \Cref{sec:foo-prior} -- file: book/chapters/chXX/foo.tex
% \Cref{def:bar-prior} -- file: book/chapters/chXX/bar.tex
%
% FORWARD REFS (resolve in later sections/chapters):
% \Cref{sec:foo-future} -- target: ch. Y §Y.Z (this plan's Task N)
% \Cref{ch:future-chapter} -- target: ch. Z (drafted in a future plan)
Why: the cross-ref-auditor and the integration check both read these blocks. The comment is the section's contract with the rest of the book.
Label naming conventions
sec:foo-bar: section labels (kebab-case after the type prefix).def:foo-bar: definitions.prop:foo-bar: propositions.thm:foo-bar: theorems.cor:foo-bar: corollaries.lem:foo-bar: lemmas.eq:foo-bar: display equations.tab:foo-bar: tables.fig:foo-bar: figures.alg:foo-bar: algorithms.ex:chN-M: exercises (chapter N, exercise number M).ch:foo-bar: chapters.
Label names should be the section/concept name in kebab-case. Avoid generic names like sec:intro or def:1 that collide across chapters.
When to use \Cref vs prose-only
- Use
\Cref{...}when the target label EXISTS at build time. - Use prose-only (e.g., "chapter 17 covers this") when:
- The target chapter is not yet drafted (Plan 0 stubs aside).
- The reference is informal ("the next chapter," "the appendix").
- The reference is to an external paper (use
\cite{}instead).
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.
- 1mo ago Changed 3667aa32781f
- 3mo ago First seen · 82 lines · 49 tokens per session scan A f8b8a7e5191c
cross-reference-discipline is a skill published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 933 once invoked, about $0.0002 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.
cross-reference-discipline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cross-reference-disciplinequeelius/claude-anvil | Skill | 3 | 1mo ago | MIT | A | 49 | Claude Code |
| demoalivecontext/alive | Skill | 132 | 15d ago | MIT | A | 50 | Claude Code |
| system-upgradealivecontext/alive | Skill | 132 | 15d ago | MIT | A | 55 | Claude Code |
| karpenternitinjain999/platform-skills | Skill | 74 | 3d ago | Apache-2.0 | A | 131 | Claude Code |
| session-historyalivecontext/alive | Skill | 132 | 15d ago | MIT | A | 74 | Claude Code |
| worldalivecontext/alive | Skill | 132 | 15d ago | MIT | A | 61 | Claude Code |
| azurenitinjain999/platform-skills | Skill | 74 | 3d ago | Apache-2.0 | A | 39 | Claude Code |