Borrowing it
Nothing to install: this file belongs to initializ/forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/initializ/forge/main/.claude/commands/sync-docs.mdgit clone --depth 1 https://github.com/initializ/forgeWrote 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/initializ/forge/sync-docs)<a href="https://agentmods.dev/commands/initializ/forge/sync-docs"><img src="https://agentmods.dev/badge/commands/initializ/forge/sync-docs/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/initializ/forge/sync-docs"><img src="https://agentmods.dev/badge/commands/initializ/forge/sync-docs.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.00000 | $0.01533 |
| Opus 5.5 | $0.00000 | $0.00613 |
| Sonnet 5.5 | $0.00000 | $0.00307 |
| Haiku 4.5 | $0.00000 | $0.00153 |
Grade A, and why
sync-docs 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 2mo 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 — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sync Documentation
After feature work, update the affected documentation to reflect code changes.
Steps
-
Identify changed files — Run
git diff main --name-onlyto find modified Go files. -
Map files to docs — Use this mapping to determine which docs need updates. Paths match the actual
docs/tree (nested undercore-concepts/,reference/,security/,deployment/,skills/).Changed path pattern Affected docs forge-core/auth/docs/security/authentication.md,docs/security/audit-logging.mdforge-core/runtime/docs/core-concepts/runtime-engine.md,docs/core-concepts/hooks.mdforge-core/security/docs/security/overview.md,docs/security/egress-control.mdforge-core/tools/docs/core-concepts/tools-and-builtins.mdforge-core/llm/docs/core-concepts/runtime-engine.mdforge-core/memory/docs/core-concepts/memory-system.mdforge-core/scheduler/docs/core-concepts/scheduling.mdforge-core/secrets/docs/security/secret-management.mdforge-core/channels/docs/core-concepts/channels.mdforge-core/validate/docs/reference/forge-yaml-schema.mdforge-cli/cmd/docs/reference/cli-reference.mdforge-cli/runtime/docs/core-concepts/runtime-engine.mdforge-cli/server/docs/core-concepts/how-forge-works.mdforge-cli/runtime/admission_engine.go,forge-cli/runtime/admission_loader.go,forge-cli/server/admission_middleware.go,forge-core/runtime/admission.godocs/security/admission.md(full operator + platform-integrator reference),docs/security/audit-logging.md(task_admission_deniedevent row),docs/core-concepts/observability-tracing.md(admission.checkspan attribute table) — keep wire shape, env var names, fail-open semantic, and HTTP 402 response body all in syncforge-cli/channels/docs/core-concepts/channels.mdforge-cli/tools/docs/core-concepts/tools-and-builtins.mdforge-cli/internal/tui/docs/reference/cli-reference.md(wizard flow)forge-plugins/docs/core-concepts/channels.md,docs/reference/framework-plugins.mdforge-ui/docs/reference/web-dashboard.mdforge-ui/handlers_skill_builder.go,forge-ui/skill_builder_context.go,forge-ui/skill_validator.go,forge-ui/static/app.js(SkillBuilderPage),forge-cli/cmd/ui_skill_save.godocs/reference/web-dashboard.md(§ Skill Builder + § Editing an Attached Skill),docs/skills/writing-custom-skills.md(§ Iterating from the Skill Builder UI) — keep edit-mode endpoints, prompt-trailer behavior, and overwrite-clears-scripts rule in syncforge-skills/docs/skills/writing-custom-skills.md,docs/skills/contributing-a-skill.mdforge-skills/registry/image-registry.yaml,forge-core/packaging/docs/core-concepts/binary-dependencies.md— refresh the registry contents, install methods, or Dockerfile shape sections; keep the source-file list at the bottom in sync with the actual files touchedforge-cli/templates/Dockerfile.tmpl,forge-cli/build/dockerfile_stage.godocs/core-concepts/binary-dependencies.md(image-shape section),docs/deployment/docker.mdforge-core/types//forge.yamldocs/reference/forge-yaml-schema.mdCHANGELOG.md(rendered into release notes; no per-doc sync needed) Any of forge-core/**,forge-cli/**,forge-ui/**,forge-plugins/**,forge-skills/**,docs/**,CHANGELOG.md,forge.yamlschema.claude/skills/forge.md— refresh the affected section(s) of the comprehensive knowledge skill. Sweep the specific section that maps to the changed area; don't rewrite the whole file. Keep the table-of-contents anchors in sync with the section headings.forge-ui/skill_builder_context.go(specifically theskillBuilderSystemPromptconstant).claude/skills/forge-skill-builder.md— re-port verbatim. The body must remain byte-identical to the Go constant apart from un-doing the Go string-concatenation escapes (` + "```" + `→ triple-backticks, etc.). Do not edit either side without updating the other.
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.
- 2mo ago First seen · 75 lines · 0 tokens per session scan A ac89e86ea598
sync-docs is a command published in the GitHub repository initializ/forge (235 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,533 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-08-30.
sync-docs compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-docsinitializ/forge | Command | 235 | yesterday | Apache-2.0 | A | 0 | Claude Code |
| 04-content-briefViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 96 | Claude Code |
| 01-intakeViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 0 | Claude Code |
| 02-auditViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 94 | Claude Code |
| 03-gapViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 58 | Claude Code |
| 05-productionViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 74 | Claude Code |
| 06-distributionViryaZheng/recomby-geo | Command | 454 | 4mo ago | MIT | A | 63 | Claude Code |