ChatDOC Studio--KnowledgeMate — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited ChatDOC Studio--KnowledgeMate (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Run a JavaScript workflow that uploads local PDF/DOC/DOCX files to ChatDOC Studio through PDRouter, waits for successful parsing, and creates a knowledge base from the successful uploads in one step.
This is suitable for creating knowledge bases from local files or folders, then using the returned library_id for document listing, retrieval, grep, syllabus reading, and block reading.
npx skills add PaodingAI/skillsFor a local Codex installation, place this skill directory under:
$CODEX_HOME/skills/chatdoc-studio-knowledgemateCreate a knowledge base from files:
node scripts/knowledge-mate.mjs upload-and-create \
--name "Quarterly KB" \
--file ./docs/a.pdf \
--file ./docs/b.docx \
--file ./docs/c.pdfCreate a knowledge base from a folder recursively:
node scripts/knowledge-mate.mjs upload-and-create \
--name "Quarterly KB" \
--dir ./docsQuery an existing knowledge base:
node scripts/knowledge-mate.mjs retrieval --library-id <id> --query <text>
node scripts/knowledge-mate.mjs list-documents --library-id <id>
node scripts/knowledge-mate.mjs stats --library-id <id> --upload-id <id>
node scripts/knowledge-mate.mjs grep --library-id <id> --upload-id <id> --pattern <text>
node scripts/knowledge-mate.mjs read --library-id <id> --upload-id <id> --offset <n>
node scripts/knowledge-mate.mjs read-syllabus --library-id <id> --upload-id <id>scripts/knowledge-mate.mjs directly. Do not reimplement the PDRouter or ChatDOC Studio API flow yourself during normal use./openapi/chatdoc-studio/....Authorization: Bearer <PAODINGAI_API_KEY>.chatdoc_studio directly.X-PD-* signature headers in this skill.upload-and-create for new knowledge bases.PAODINGAI_API_KEY: Required. The Bearer API key for PDRouter. If it is missing, the script fails immediately and tells the user to create a Bearer API Key in pdrouter, then export it before retrying.The PDRouter base URL is fixed in the script as https://platform.paodingai.com. The service code is fixed in the script as chatdoc-studio; users do not need to set base-url or service-code environment variables.
The API key can be obtained from the PDRouter platform.
5..pdf, .doc, and .docx.--dir is scanned recursively.--file and --dir can be mixed in one command.300 supported files are found, the script stops before uploading and asks the user to clean the folder to at most 300 PDF/DOC/DOCX files.PAODINGAI_API_KEY from the environment and use the fixed PDRouter base URL https://platform.paodingai.com.--file inputs and recursively scanned --dir inputs into one de-duplicated file list..pdf, .doc, and .docx files before uploading. If the count is greater than 300, fail immediately without uploading anything.POST /openapi/chatdoc-studio/knowledge-base/upload with concurrency 5.POST /openapi/chatdoc-studio/knowledge-base only with successful upload_ids.data payload. Failed requests print a clear error reason and include the backend response when available.upload-and-create returns a library_id, use the read/query commands for retrieval, listing documents, stats, grep, syllabus reading, or block reading.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.