external-gitcode-ascend-ascendc-operator-doc-writer
Installation
SKILL.md
AscendC Operator Doc Writer
Overview
Use the model itself to read a reference README and the target AscendC source files, then synthesize a matching technical document. Do not rely on Python parser scripts to infer operator semantics; use shell search and read tools only to locate files and inspect source text.
Workflow
1. Collect the template and target files
- Read exactly one reference README that represents the desired output format.
- Locate the operator implementation files by basename. In most AscendC projects this means:
- one
op_host/<op_name>.cpp - one
op_host/<op_name>_tiling.h - one
op_kernel/<op_name>.cpp
- one
- If the target repo does not use a per-operator directory like the template repo, create a documentation path grouped by operator name, for example
.../docs/<op_name>/README.md. - When file ownership is ambiguous, inspect
CMakeLists.txtorrgreferences before writing.