本文へ移動
cccskills
無料GitHub で公開

doc-generation

Guide for regenerating Axone contract schemas and rendered Markdown docs. Use when contract APIs or metadata change, when checking generated-doc drift, or when preparing documentation commits.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Generated Documentation

Source of Truth

Generated docs come from Rust API types and schema metadata:

Rust messages/types + metadata.json
              ↓
      contracts/*/schema/*
              ↓
          docs/*.md

In this repository, the canonical command is:

cargo make docs

Do not treat docs/*.md as hand-edited source files. The Rust types and metadata are the source of truth.

What cargo make docs really does

cargo make docs already depends on:

  • prerequisite checks (npx, awk, perl, jq)
  • cargo make schema

That means one docs refresh can update both:

  • contracts/*/schema/*
  • docs/*.md

Standard Workflow

Regenerate everything

cargo make docs

Inspect what changed

git status --short
git diff -- docs contracts

Commit the generated artifacts

If the change is documentation generation only, prefer a message such as:

docs(gov): regenerate documentation
docs(vc): regenerate documentation
docs: regenerate generated documentation

Avoid vague subjects such as docs: update generated documentation.

When regeneration is required

Refresh generated docs whenever you change:

  • message types in msg.rs
  • response types exported in schemas
  • doc comments that feed schema descriptions
  • metadata.json
  • schema generation code in src/bin/schema.rs
  • the docs generation pipeline in Makefile.toml

File Expectations

After regeneration, review and commit all relevant generated artifacts:

  • docs/*.md
  • contracts/*/schema/*

Even if CI only reports drift on docs/*.md, schema files are still generated source artifacts in this repo and should stay in sync with the code.

Repo-Specific Notes

  • cargo make docs is the preferred entrypoint; it already triggers schema generation.
  • The docs renderer uses @fadroma/schema, jq, awk, perl, and prettier through Makefile.toml.
  • The generated docs reflect the semantics encoded in Rust doc comments. Fix the Rust comments first, then regenerate.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Best practices for designing CosmWasm smart contract APIs. Use when defining message types, designing execute/query interfaces, or optimizing API ergonomics.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

Guide for writing Rust doc comments that produce accurate generated contract documentation. Use when editing Instantiate/Execute/Query/Response types or any public schema-facing API.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

Guide for writing conventional commit messages. Use when committing changes, writing commit messages, or reviewing commit history.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

Axone contract structure and Abstract SDK patterns. Use when scaffolding or refactoring contracts, deciding layer boundaries, wiring AppContract entrypoints, or adding module metadata and replies.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

Axone deployment workflows with cargo-make, cw-orch, and Abstract. Use when publishing modules, installing them on accounts, running local chain tasks, or inspecting deployments.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

Domain-driven modeling patterns for Axone contracts. Use when introducing domain concepts, encoding invariants, or deciding boundaries between domain, handlers, services, gateways, queries, and state.

日本語の概要は準備中です。原文の説明を表示しています。

axone-protocol/contracts1232026年10月9日 更新

axone-protocol のスキルをすべて見る

このスキルの問題を報告する