ソース情報
- リポジトリ
- tomevault-io/tomes
- ソースの最終更新活動
- 2026年7月23日 21:48
- 検出された SKILL.md の言語
- 英語
- スター
- 1
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/tomevault-io/tomes --skill cosmos-pre-commit-validationコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
> Use when this capability is needed.
Use when writing kernel, account, or note MASM code that reads from or writes to the advice provider (advice stack / advice map) — validate advice data.
Use when writing a Rust test that exercises a failure path or a MASM test that expects a `panic` / `assert` — assert on the specific expected error variant or error code.
SOC 職業分類に基づく
SKILL.md を表示中
| name | cosmos-pre-commit-validation |
| description | > Use when this capability is needed. |
Use this skill when:
sdk/cosmos/**Follow these steps strictly:
Determine the target path:
scope argument is specified and is not equal (case-insensitive) to all or *, set the target path to sdk/cosmos/<scope> (for example, if scope is azure_data_cosmos, use sdk/cosmos/azure_data_cosmos as the target path).sdk/cosmos.Determine file scope:
changed-only is true (the default), restrict scanning to .rs files that differ between the current local branch and main. Use git diff --name-only main -- <target path> (and include per-crate tests/ directories) to obtain the list. Only .rs files in the result set are scanned; all other files are skipped.changed-only is false, scan all .rs files under the target path(s).generated/ subdirectories — these are produced by external tools and must never be modified.Validate using the Pre-Completion Validation Checklist in sdk/cosmos/AGENTS.md:
-D warnings) to match CI behavior.
Run clippy with RUSTFLAGS=-D warnings set:
RUSTFLAGS='-D warnings' cargo clippy -p <crate> --all-features --all-targets$env:RUSTFLAGS='-D warnings'; cargo clippy -p <crate> --all-features --all-targets; $env:RUSTFLAGS=$nullauto-fix is true and clippy or other tools modified files,
re-run cargo fmt to ensure the auto-fixed code is properly formatted (e.g., cargo clippy --fix can
leave trailing blank lines when removing unused imports)..vscode/cspell.json
with the Cosmos-specific dictionary at sdk/cosmos/.dict.txt. Run locally with:
npx cspell lint --config .vscode/cspell.json --no-must-find-files <target path>/**
If auto-fix is true and unknown words are legitimate (e.g., API type names, technical terms),
add them to sdk/cosmos/.dict.txt.test_category (e.g., emulator, multi-write) are always compiled but are ignored at runtime unless the corresponding cfg is set via RUSTFLAGS.
This means cargo check --tests and cargo test will compile these tests without any special flags, so build errors are caught locally.
RUSTFLAGS is only needed when you want to actually run the tests:
RUSTFLAGS='--cfg test_category="emulator"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --testsRUSTFLAGS='--cfg test_category="multi_write"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --tests
On Windows (PowerShell), set the env var first: $env:RUSTFLAGS='--cfg test_category="emulator"' then run the cargo test command, and clear it afterwards with $env:RUSTFLAGS=$null.
These tests require a live Cosmos DB emulator or multi-region account to run.
If targets a specific crate other than , skip these checks.Report results:
auto-fix argument is truesdk/cosmosSource: Azure/azure-sdk-for-rust — distributed by TomeVault.
scopeazure_data_cosmos