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.
git clone --depth 1 https://github.com/terrene-foundation/kailash-coc-claude-pynpx agentmods add commands/terrene-foundation/kailash-coc-claude-py/sync-from-templateWrote 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/commands/terrene-foundation/kailash-coc-claude-py/sync-from-template)<a href="https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/sync-from-template"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/sync-from-template/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/commands/terrene-foundation/kailash-coc-claude-py/sync-from-template"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/sync-from-template.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.00024 | $0.02343 |
| Opus 5 | $0.00012 | $0.01171 |
| Sonnet 5 | $0.00005 | $0.00469 |
| Haiku 4.5 | $0.00002 | $0.00234 |
Grade A, and why
sync-from-template 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 9d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pull the latest CO/COC artifacts from the upstream USE template and merge them INBOUND into this consumer repo, preserving project-specific artifacts. /sync-from-template is the downstream-consumer half of the inbound sync family (mirroring loom's /sync-from-build + /sync-from-use and the template's /sync-from-downstream).
loom (source) → USE template → THIS REPO
↑ you are here
Detailed protocol: skills/30-claude-code-patterns/sync-flow.md § Downstream Sync.
Usage: /sync-from-template — no target.
Step 0: Verify Repo Class (this verb is for downstream consumers)
Read .claude/VERSION → type. /sync-from-template is valid at a downstream consumer (type: coc-project). This repo inherits its .claude/ from a USE template (recorded in .claude/.coc-sync-marker; auto-detected at first run).
Evaluate these in order and take the FIRST match — the credibility arms are deliberately ahead of the plain-type arms. A template-derived repo carries type: coc-use-template verbatim (it is a byte copy), so a plain-type arm placed first would match it and route to /sync-from-downstream — the wrong verb, on a declaration this step is about to disbelieve.
coc-project→ proceed below.coc-use-template/coc-buildwhose declaration is NOT credible (.claude/VERSION::reponames a different repo than this one'sgit remote get-url origin— the "Use this template" byte-copy case) → STOP and report; do NOT proceed on a class you just decided to disbelieve. Correcting it is an EXPLICIT, reviewable edit the operator approves: settype: coc-projectand populateupstream.template/upstream.template_repo(.claude/hooks/lib/version-utils.js::computeTemplateDerivedCorrectionreturns the suggested object — it is PURE and writes nothing). Re-run/sync-from-templateafter the edit lands. NEVER rewrite.claude/VERSIONsilently or as a side effect: it is the repo-CLASS root of trust (bin/lib/manifest-source.mjs::readRepoClasstruststypeverbatim), which is exactly whyvalidate-bash-command.jsBLOCKS agent writes to it at the Bash boundary.coc-use-template/coc-buildwhose declaration is UNDETERMINED (no.claude/VERSION::repo, and no legacy-allowlist match) → report the ambiguity and ask; do not guess a class and do not re-route on the guess. This is the expected shape of an unstamped byte-copy during the migration window, so it must not fall through to the plain-typearm below.coc-source(loom) → STOP: "this is loom — ingest the upstream streams with/sync-from-build+/sync-from-use."coc-use-template(credible) → STOP: "this is a USE template — ingest the downstream inbox with/sync-from-downstream."coc-build(credible) → STOP: "BUILD repos receive artifacts via/sync-to-buildrun at loom."- Missing → ask the user what class this repo is.
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.
- 9d ago First seen · 63 lines · 24 tokens per session scan A aa90c9bfc61b
sync-from-template is a command published in the GitHub repository terrene-foundation/kailash-coc-claude-py (12 stars, last pushed 24d ago), licensed Apache-2.0. It adds 24 tokens to every session and 2,343 once invoked, about $0.0001 per session on Opus 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-03.
Other commands, from other repositories
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
handoff
Export a Waybill Bundle by default, or import one when requested.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.