validate-content

validate-content is a command for Claude Code from gosha70/code-copilot-team. It costs 0 tokens per session (336 once invoked), scanned A, original, MIT.

A command that checks packaged content and confirms that both the Java and Python wrappers can load it. It also checks the manifest, file format, synchronized copies, and test suites.

In plain words
What is it for?
It helps validate XML or other declared content formats, synchronize resources, and run JVM and Python tests locally.
Why use it?
It finds invalid content or mismatches between the source package and its language-specific copies before CI runs.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/sync-content.sh.

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/gosha70/code-copilot-team
agentmods
npx agentmods add commands/gosha70/code-copilot-team/validate-content

Made for: Claude Code.

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 validate-content

README.md
[![agentmods](https://agentmods.dev/badge/commands/gosha70/code-copilot-team/validate-content.svg)](https://agentmods.dev/commands/gosha70/code-copilot-team/validate-content)
Your own site
<a href="https://agentmods.dev/commands/gosha70/code-copilot-team/validate-content"><img src="https://agentmods.dev/badge/commands/gosha70/code-copilot-team/validate-content.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.00336
Opus 5 $0.00000 $0.00168
Sonnet 5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00034

Measured 3d ago against content hash ce697962436c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

validate-content 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 3d 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.

shared/templates/domain-pack/commands/validate-content.md · 37 lines

What it actually says

/validate-content

Run all content validators locally — same gates the CI workflow pack-content.yml enforces.

Procedure

# 1. Manifest schema check
python - <<'PY'
import sys, yaml
m = yaml.safe_load(open("content/manifest.yaml"))
required = ["name", "version", "schema_version", "content_format", "content_file", "licenses"]
missing = [k for k in required if k not in m]
if missing:
    print(f"manifest.yaml missing: {missing}", file=sys.stderr); sys.exit(1)
for k in ("data", "code"):
    assert k in m["licenses"], f"licenses.{k} required"
print(f"OK: {m['name']} {m['version']} ({m['content_format']})")
PY

# 2. Content file format validation
xmllint --noout content/data.tbx        # for tbx-3.0
# riot --validate content/data.ttl      # for turtle
# pyld --validate content/data.jsonld   # for json-ld

# 3. Sync round-trip — both wrapper resource dirs must update without error
bash scripts/sync-content.sh
test -f jvm-wrapper/src/main/resources/domain-pack/manifest.yaml
test -f python-wrapper/src/domain_pack/data/manifest.yaml

# 4. Both loaders parse the synced content
(cd jvm-wrapper && ./gradlew test)
(cd python-wrapper && pytest)

If any step fails, fix it before opening a PR. The CI workflow runs the same checks and will block merge on failure.

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. 3d ago First seen · 37 lines · 0 tokens per session scan A ce697962436c

Subscribe to this mod's changes

validate-content is a command published in the GitHub repository gosha70/code-copilot-team (6 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 336 tokens. 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-03.