Adk Sample Creator
google/adk-python
Creates a new sample agent in the ADK Python repository — the sample directory, its agent.py, and its README.md — following the conventions the existing samples already use.
Generate documentation for Python APIs, functions, classes, and modules — including English docstrings and Chinese RST docs.
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mindspore-ai/docs doc-generate-api-mindspore --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/doc-generate-api-mindspore .claude/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .claude/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindsporeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mindspore-ai/docs doc-generate-api-mindspore --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/doc-generate-api-mindspore .agents/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .agents/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mindspore-ai/docs doc-generate-api-mindspore --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/doc-generate-api-mindspore .cursor/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .cursor/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mindspore-ai/docs.git --path skills/doc-generate-api-mindspore--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mindspore-ai/docs doc-generate-api-mindspore --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/doc-generate-api-mindspore .gemini/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .gemini/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mindspore-ai/docs doc-generate-api-mindsporeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/doc-generate-api-mindspore .github/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .github/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mindspore-ai/docs doc-generate-api-mindspore --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mindspore-ai/docs.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/doc-generate-api-mindspore .opencode/skills/doc-generate-api-mindspore && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "doc-generate-api-mindspore" agent skill from https://github.com/mindspore-ai/docs/tree/master/skills/doc-generate-api-mindspore into .opencode/skills/doc-generate-api-mindspore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doc-generate-api-mindspore", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
doc-generate-api-mindsporeGenerate documentation for Python APIs, functions, classes, and modules — including English docstrings and Chinese RST docs.
Doc Generate API Mindspore is an agent skill from mindspore-ai/docs. Generate documentation for Python APIs, functions, classes, and modules — including English docstrings and Chinese RST docs. Use when adding docstrings to new functions or classes, writing API reference docs, creating examples, documenting classes, or following Python doc conventions. Triggers on phrases like "API documentation", "API docs", "document API", "write API documentation", "generate API docs", "API reference".
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `rules/chinese-rst-guide.md` and `rules/python-docstring-guide.md`).
It sits in Development, covering Technical documentation. It works with Python. The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 33a632b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Doc Generate API Mindspore loads about 2k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 928 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mindspore-ai/docs at commit 33a632b, republished under its Apache-2.0 licence (© mindspore-ai). 928 words, ~2,012 tokens.
.claude/skills/doc-generate-api-mindspore/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.This skill generates Python API documentation in English docstrings (.py) and/or Chinese RST docs (.rst).
Ask generation scope: Use the question tool to ask the user (single choice, labels in Chinese):
Collect references: PR links, test files, design docs, issue descriptions
Read the source code: Understand function signatures, parameter types, return values
Verify parameter types: Cross-reference type hints with references for untyped params
Run or infer examples: Get actual output values from test files or references
Check existing files (if scope includes Chinese RST): Search the docs directory for existing .rst files.
glob with *<api_name>.rst across docs/, or (b) by content — use grep for the API name within .rst files under docs/..py file) have RST files → Derive the naming convention from the sibling's filename (e.g., if sibling uses pkg.module.API, trim the source filename segment); skip project-wide pattern alignment; proceed to step 6 Path Mapping only.Identify naming + file paths (only when no existing file): Determine the .py source path. Determine the dotted path via Naming Convention (filename = title = directive), check the depth threshold and ask the user if trimming is needed. Then determine the output directory via Path Mapping.
| Output | File Type | Location | Tools |
|---|---|---|---|
| English docstring | .py | Directly into the Python source file | Read + Edit |
| Chinese RST doc | .rst | Project-specific (see Naming Convention + Path Mapping below) | Read + Edit / Write |
RST filename = title (1st line) = .. py:: directive path. One file per API, all three always identical.
The full dotted path from the package root is the default. For deeply nested paths, the user may trim intermediate levels — all three use the shorter path together.
Rules:
mindspore.ops.affine_grid), always includes the package name. The package root is the top-level Python package directory in the repo (typically matches the repo name or main source dir), not inferred from internal import statements..rst files in the project's docs directory. If the prevailing pattern consistently omits the source filename (e.g., pkg.module.API rather than pkg.module.filename.API), automatically trim accordingly to match.mindspore.a.b.c.ReLU is 5 levels), must ask the user whether to trim further. Provide concrete trimming suggestions — list options that keep package + API name and remove different combinations of middle segments. 4 levels or fewer use the current path directly without asking.func_ prefix in filename, removed in title/directive.The dotted path determines the filename, title, and directive — all three must always be identical.
Examples:
| File | Title | Directive |
|---|---|---|
mindspore.nn.Tanh.rst | mindspore.nn.Tanh | .. py:class:: mindspore.nn.Tanh |
mindspore.ops.AffineGrid.rst | mindspore.ops.AffineGrid | .. py:class:: mindspore.ops.AffineGrid |
mindspore.ops.func_abs.rst(例外) | mindspore.ops.abs | .. py:function:: mindspore.ops.abs |
mindspore.Tensor.abs.rst | mindspore.Tensor.abs | .. py:method:: mindspore.Tensor.abs |
For the exception row (3rd), the func_ prefix is present in the filename but omitted from the title and directive.
Once the naming convention (dotted path) is determined, map it to the output directory (where the .rst file will be saved).
Examples (illustrative only, not an allowlist):
| Repository | Source | Dotted Path → Filename | Output Directory |
|---|---|---|---|
| mindspore | mindspore/python/mindspore/nn/tanh.py | mindspore.nn.Tanh | docs/api/api_python/nn/ |
| mindspore-lite | mindspore-lite/python/api/model.py | mindspore_lite.model | docs/api/lite_api_python/ |
| lite_boost | lite_boost/python/parallel/context_parallel.py | lite_boost.parallel.context_parallel | lite_boost/docs/api/lite_boost_api_python/lite_boost/ |
The directory is derived by: (a) checking existing docs dirs, (b) matching module hierarchy, (c) confirming .rst format from neighbors. The table above is only illustrative — every repo follows this same process.
If the directory still cannot be determined after applying these rules, ask the user where to save the .rst file.
Load rules: Read the corresponding rules file(s):
rules/python-docstring-guide.mdrules/chinese-rst-guide.mdrules/python-docstring-guide.md and rules/chinese-rst-guide.mdGenerate: Apply the loaded rules to create or update the target file(s) at the mapped paths.
Compare English docstring and Chinese RST for consistency on shared content: params, return type, exception types, math formulas, opening description.
Do NOT flag: Chinese RST omits Examples and Supported Platforms, uses different heading formats.
If any item is not satisfied, fix it directly.
r"""...""" raw string prefix.. py:: directive path, all three consistent (exception: func_ prefix kept in filename, omitted in title/directive)= underline before directive参数: / 返回: / 异常: / 输入: / 输出:- **name** (Type) - Description..py file path. If an existing Chinese RST was found with inconsistencies, list them..rst file path. If an existing English docstring was found with inconsistencies, list them.Tip: After generation, additional references (PR links, test files, etc.) can be provided to refine accuracy.
© mindspore-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/doc-generate-api-mindspore of mindspore-ai/docs.
Open the folder on GitHubat commit 33a632b
Doc Generate API Mindspore next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Doc Generate API Mindspore this skillmindspore-ai/docs | 167 | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Adk Sample Creatorgoogle/adk-python | 22k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Crafting Effective Readmescumbucadev/cinemaempoa | 146 | 5 repos | ~669 | Automated safety check: Pass | GPL-3.0 | |
| Acquire Codebase Knowledgegithub/awesome-copilot | 40k | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Docs Conventionsflet-dev/flet | 17k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| DDNS Provider DevelopmentNewFuture/DDNS | 4.7k | — | ~558 | Automated safety check: Pass | MIT |
google/adk-python
Creates a new sample agent in the ADK Python repository — the sample directory, its agent.py, and its README.md — following the conventions the existing samples already use.
cumbucadev/cinemaempoa
A skill your agent uses when writing or improving README files.
github/awesome-copilot
Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.
flet-dev/flet
A skill your agent uses when writing or reviewing Flet documentation, including Python docstrings (Google style, reST roles, admonitions), Markdown docs (cross-references, images, code examples)…
NewFuture/DDNS
Adds or changes a DNS provider in the DDNS project while keeping its code, schemas, tests and Chinese and English docs consistent.
jeka-dev/jeka
MkDocs documentation project reference covering CLI commands, mkdocs.yml configuration, Material theme setup, and plugin integration.
mindspore-ai/docs
检查文档质量的工具。当用户提到检查文档质量、审查文档、文档检查、文档审查、lint文档, 或者提供文档URL/PR链接/本地文件路径要求检查时触发。支持通用性检查、教程检查和API文档检查。
mindspore-ai/docs
MindSpore 文档发布新分支时,链接更替与组件清洗技能,用于清理组件和替换链接. An agent skill from mindspore-ai/docs.
Works with
Categories
Generate documentation for Python APIs, functions, classes, and modules — including English docstrings and Chinese RST docs. Doc Generate API Mindspore is an agent skill from mindspore-ai/docs. Generate documentation for Python APIs, functions, classes, and modules — including English docstrings and Chinese RST docs.
Doc Generate API Mindspore fits situations like: adding docstrings to new functions; writing API reference docs; creating examples; documenting classes.
Run `npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a claude-code`. Or copy the skill folder (skills/doc-generate-api-mindspore in mindspore-ai/docs) into .claude/skills/doc-generate-api-mindspore in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a codex`. Or copy the skill folder (skills/doc-generate-api-mindspore in mindspore-ai/docs) into .agents/skills/doc-generate-api-mindspore in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mindspore-ai/docs --skill doc-generate-api-mindspore -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doc-generate-api-mindspore, .gemini/skills/doc-generate-api-mindspore, .github/skills/doc-generate-api-mindspore and .opencode/skills/doc-generate-api-mindspore in your project.
SKILL.md names no scripts, command-line tools or credentials: Doc Generate API Mindspore is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Doc Generate API Mindspore is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Doc Generate API Mindspore: Adk Sample Creator (google/adk-python, 22k stars), Crafting Effective Readmes (cumbucadev/cinemaempoa, 146 stars), Acquire Codebase Knowledge (github/awesome-copilot, 40k stars) and Docs Conventions (flet-dev/flet, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mindspore-ai (a GitHub organization) maintains it in mindspore-ai/docs, which has 167 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 29, 2026.
Source: mindspore-ai/docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.