Doc Gardener

Doc Gardener is a command for GitHub Copilot from jnPiyush/AgentX. It costs 21 tokens per session (587 once invoked), scanned A, original, Apache-2.0.

An automated documentation checker that compares documented counts and references with the files actually present in an AgentX repository. It checks agents, skills, instructions, templates, prompts, and commands.

In plain words
What is it for?
Use it to audit documentation freshness by counting repository files, locating stated counts, and reporting which claims match the files.
Why use it?
It finds stale numbers and inconsistent references after repository content changes. This helps documentation describe the current project rather than an older state.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to audit documentation freshness by counting repository files, locating stated counts, and reporting which claims match the files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jnpiyush/agentx/doc-gardener
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.

Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

Made for: GitHub Copilot.

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 Gardener

README.md
[![agentmods](https://agentmods.dev/badge/commands/jnpiyush/agentx/doc-gardener/github.svg)](https://agentmods.dev/commands/jnpiyush/agentx/doc-gardener)
Your own site
<a href="https://agentmods.dev/commands/jnpiyush/agentx/doc-gardener"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/doc-gardener/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 Gardener

Your own site · 80×15
<a href="https://agentmods.dev/commands/jnpiyush/agentx/doc-gardener"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/doc-gardener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 587 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.00021 $0.00587
Opus 5.5 $0.00008 $0.00235
Sonnet 5.5 $0.00004 $0.00117
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade A, and why

Doc Gardener 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 7d 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.

.github/prompts/doc-gardener.prompt.md · 93 lines

How it starts

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

Doc Gardener

You are a documentation freshness checker for the Frontier repository.

Task

Audit all documentation files for accuracy by counting actual files and comparing to documented claims.

Steps

1. Count Actual Files

Run these commands and record the actual counts:

# Agents (visible + internal)
(Get-ChildItem -Path ".github/agents" -Recurse -Filter "*.agent.md").Count

# Skills
(Get-ChildItem -Path ".github/skills" -Recurse -Filter "SKILL.md").Count

# Instructions
(Get-ChildItem -Path ".github/instructions" -Filter "*.instructions.md").Count

# Templates
(Get-ChildItem -Path ".github/templates" -Filter "*-TEMPLATE.md").Count

# Prompts
(Get-ChildItem -Path ".github/prompts" -Filter "*.prompt.md").Count

# Claude Commands
(Get-ChildItem -Path ".claude/commands" -Filter "*.md").Count

2. Extract Documented Counts

Search these files for numeric claims about agents, skills, instructions, templates, and prompts:

  • AGENTS.md
  • README.md
  • Skills.md
  • CLAUDE.md
  • docs/GUIDE.md
  • vscode-extension/README.md

3. Compare and Report

For each count type, report:

| Item | Actual | AGENTS.md | README.md | Skills.md | CLAUDE.md | Match? |
|------|--------|-----------|-----------|-----------|-----------|--------|

4. Check Cross-References

Verify that every [text](path) link in these files points to an existing file:

  • AGENTS.md
  • docs/WORKFLOW.md
  • docs/QUALITY_SCORE.md
  • docs/GOLDEN_PRINCIPLES.md
  • CLAUDE.md
  • Skills.md

Report any broken links.

5. Check Agent Table Completeness

Verify the agent table in AGENTS.md lists every .agent.md file found in Step 1. Report any agents that exist on disk but are missing from the table.

6. Output

Produce a summary with:

  • PASS items where documented counts match actual counts
  • FAIL items where counts are mismatched (with actual vs documented)
  • WARN broken cross-reference links
  • Recommended fixes (exact file, line, old value -> new value)

Read the full file on GitHub · 93 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. 7d ago Changed 48338a19225e
  2. 1mo ago Changed 284f3916495f
  3. 1mo ago First seen · 93 lines · 21 tokens per session scan A 38a12162b280

Subscribe to this mod's changes

Doc Gardener is a command published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 21 tokens to every session and 587 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-09-06.