| name | qcc-check |
| description | Audit this go-qcc-sdk repository against official Qichacha QCC OpenAPI documentation for interface coverage by ApiCode. Use when the user invokes $qcc-check, /qcc:check, qcc:check, /qcc-check, or asks to compare local {ApiCode}.go implementations with https://openapi.qcc.com/dataApi docs, find missing interfaces, identify deprecated local ApiCodes, or generate a QCC SDK coverage report. |
QCC Check
Purpose
Audit whether this repository implements the same number of interfaces documented by the official QCC OpenAPI pages. Count coverage by ApiCode and endpoint count only; do not review request parameters, response fields, JSON tags, or implementation correctness.
Workflow
-
Read the official documentation first.
-
Parallelize official docs extraction safely when possible.
- The bundled extractor uses a thread pool by default, which is preferred in restricted shell environments because it avoids brittle
curl | python pipelines and keeps the network request in one auditable command.
- Split ApiCodes into independent batches and assign multiple subagents only when the user or current tool policy explicitly allows subagent work.
- Keep one coordinator agent responsible for merging, local scanning, and final reporting.
- If subagents are unavailable or approval does not allow them, use the bundled extractor or run the same extraction sequentially and mention the fallback in the report.
-
Scan local SDK implementation.
- Run
python3 skills/qcc-check/scripts/qcc_check.py --repo <repo> --local-json to list local numeric Go files and method counts.
- The scanner only considers root-level files named
{ApiCode}.go.
- It counts SDK methods with an
*Api receiver inside each file; for example, 213.go can contain two implemented methods.
-
Compare official docs with local implementation.
-
Report next actions.
- For missing or out-of-date interfaces, recommend using this repository's
qcc-create skill with the target ApiCode.
- For official docs that no longer exist but local code exists, ask the user to choose whether to keep for compatibility, delete, or mark as deprecated.
- Do not modify SDK code as part of this audit skill.
-
Validate skill tooling after editing this skill.
Safety
- Only access official documentation pages at
https://openapi.qcc.com/dataApi and https://openapi.qcc.com/dataApi/{ApiCode}.
- Do not call real paid QCC API endpoints during an audit, including
https://api.qichacha.com/...; endpoint addresses from that host may be parsed as strings from docs pages but must not be requested.
- Do not save API keys, secret keys, generated tokens, cookies, account data, paid responses, or private documentation dumps.
- Use single-command Python scripts for network extraction in approval-restricted environments; avoid shell pipelines that obscure which segment needs network approval.
- Do not hardcode macOS-only temp paths such as
/private/tmp in skill instructions or reusable reports. Prefer the extractor default temp path, a user-provided artifact path, or a repo-local ignored output path chosen for the current runtime.
- If official documentation cannot be verified, stop and ask for source material instead of inventing endpoints or counts.