dingtalk-knowledge-organize
Skill0 starsChanged 2 months agoMITView on GitHub
Use when the user wants to inventory, organize, classify, clean up, move, rename, deduplicate, or remediate DingTalk knowledge base files with a CSV approval workflow, especially when only uncertain files should be deep-read before executing approved changes.
In this repository42 other files it gives its agents.
- ai-pr-redteamSkill
- ai-servicesSkill
- build-work-memorySkill
- ceo-calendar-inviteSkill
- ceo-document-reviewSkill
- ceo-email-classifierSkill
- ceo-feedback-iterationSkill
- ceo-feedback-processingSkill
- ceo-mail-reviewSkill
- ceo-meeting-workSkill
- ceo-message-triageSkill
- ceo-minutes-syncSkill
- ceo-personnel-communicationSkill
- ceo-wechatSkill
- ceo-work-trackingSkill
- codex-model-capacity-retrySkill
- daily-frontier-tech-discoverySkill
- dengbao-code-auditSkill
- dingtalk-browser-exportSkill
- dingtalk-minutes-access-requestSkill
- dingtalk-oa-approvalSkill
- dingtang-okr-reviewSkill
- fundflow-investor-meetingSkill
- fxiaoke-crm-cliSkill
- internal-app-standardsSkill
- ocrSkill
- pm-data-adaptation-assistantSkill
- project-delivery-document-collectionSkill
- qa-generated-test-caseSkill
- senior-technical-product-evaluationSkill
- spec-intakeSkill
- sso-oidc-onboardingSkill
- stardust-interviewSkill
- production-devops-sreSkill
- stardust-ttsSkill
- startask-io-contract-auditSkill
- task-managementSkill
- transcribeSkill
- veyra-timesheetSkill
- vibe-coding-rescueSkill
- vibe-codingSkill
- video-transcribeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user wants a controlled organization workflow for a DingTalk knowledge base.
- Distinctive: line 73
Use this exact header:
- Distinctive: line 91
Do not read document bodies in step 1.
- Distinctive: line 109
Keep the deep-read pool small.
- Distinctive: line 113
Do not execute moves, renames, or deletions unless the user explicitly says the admin has confirmed the CSV.
- Distinctive: line 117
When execution is requested:
- Very specific: line 118
treat admin_decision as the source of truth
- Very specific: line 120
create missing folders through dws doc folder create
- Very specific: line 122
leave untouched rows with empty move_to
- Very specific: line 144
if admin_decision is blank, skip the row
- Distinctive: line 154
After execution, produce a report with:
- Very specific: line 183
Use dws doc as the source of truth for execution syntax:
- Distinctive: line 192
When implementing or running execution:
- Very specific: line 194
use --help before relying on a command you have not used recently
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DingTalk Knowledge Organize
Use this skill when the user wants a controlled organization workflow for a DingTalk knowledge base.
This skill uses the dws skill as its execution backend for DingTalk document operations. Prefer dws doc for create/list/read/move/rename/folder-create actions instead of raw HTTP APIs whenever execution in DingTalk is required.
The workflow has five stages:
- Quick scan all files without reading contents.
- Generate an initial remediation CSV with suggested categories and actions.
- Let a human admin review the CSV.
- Re-run with admin feedback and deep-read only the uncertain files.
- Execute the approved CSV and write a report.
What this skill is for
- Full knowledge base inventory, not just
ALIDOC. - Initial classification based on folder path, file name, extension, and metadata.
- Minimal deep reading only for uncertain files.
- Approval-first execution. Do not move or rename anything before admin confirmation.
Current scripts
1. Scan a knowledge base
Use:
python3 /Users/derek/.agents/skills/dingtalk-knowledge-organize/scripts/scan_dingtalk_workspace_inventory.py \
--workspace-name "Global BD/国际业务部"This script:
- reads credentials from
~/.dingtalk-skills/config - finds the workspace by exact name first, then substring match
- recursively walks the entire node tree
- writes a JSON inventory under
/Users/derek/Documents/memory/钉钉知识库/
Inventory generation still uses metadata/API scanning because that is the fastest way to build a complete remediation table.
2. Build the remediation CSV
Use:
python3 /Users/derek/.agents/skills/dingtalk-knowledge-organize/scripts/build_remediation_csv.py \
--inventory-json "/path/to/inventory.json"Optional:
python3 /Users/derek/.agents/skills/dingtalk-knowledge-organize/scripts/build_remediation_csv.py \
--inventory-json "/path/to/inventory.json" \
--existing-csv "/path/to/prior.csv"This script:
- covers all files in the inventory
- proposes
proposed_category - proposes
proposed_action - leaves
move_toblank when no move is suggested - marks uncertain rows with
needs_content_review=yes - preserves
admin_decisionandnotesfrom a prior CSV when provided
CSV schema
Use this exact header:
workspace_name,file_path,size_mb,file_type,source_url,modified_time,proposed_category,name_based_confidence,needs_content_review,review_reason,content_summary,duplicate_group,proposed_action,rename_to,move_to,admin_decision,notesField intent:
file_type: original file type inferred from extension, falling back to DingTalk node categoryproposed_category: target business category after cleanupneeds_content_review:yesonly when path and filename are not enoughproposed_action: one ofkeep,move,rename,move_and_rename,duplicate_candidate,move_to_待归档,pending_reviewmove_to: blank when no move is suggestedadmin_decision: left blank for human review, then filled before execution
Decision rules
Step 1: Quick scan only
Do not read document bodies in step 1.
Use only:
- workspace name
- full path
- file name
- extension
- DingTalk node category
- modified time
Step 2: Mark only uncertain files for deep reading
Mark needs_content_review=yes when:
- the name is generic, such as
test,资料,模板,版本1,副本 - the path and file name point to conflicting business categories
- duplicate candidates need disambiguation
- the item sits at the root or another obviously temporary location
Keep the deep-read pool small. Bias toward path-based decisions first.
Step 3: Approval gate
Do not execute moves, renames, or deletions unless the user explicitly says the admin has confirmed the CSV.
Step 4: Execution
When execution is requested:
- treat
admin_decisionas the source of truth - execute DingTalk operations through
dws doc - create missing folders through
dws doc folder create - move archive candidates into a
待归档folder instead of deleting anything - leave untouched rows with empty
move_to
Use:
python3 /Users/derek/.agents/skills/dingtalk-knowledge-organize/scripts/execute_remediation_csv_dws.py \
--inventory-json "/path/to/inventory.json" \
--csv-path "/path/to/remediation.csv" \
--dry-runThen after explicit admin confirmation:
python3 /Users/derek/.agents/skills/dingtalk-knowledge-organize/scripts/execute_remediation_csv_dws.py \
--inventory-json "/path/to/inventory.json" \
--csv-path "/path/to/remediation.csv" \
--executeExecution rules:
- read
admin_decisionfirst - if
admin_decisionis blank, skip the row - support
keep,move,rename,move_and_rename,move_to_待归档 - require
move_tofor move-like actions exceptmove_to_待归档, which defaults to待归档 - require
rename_tofor rename-like actions - resolve target folders by path under the workspace root, creating missing folders with
dws doc folder create - call
dws doc move --node ... --folder ... --format json - call
dws doc rename --node ... --name ... --format json
Step 5: Report
After execution, produce a report with:
- total files processed
- counts by
proposed_action - counts by final destination
- count of deep-read files
- count of rows skipped due to missing approval
- command-level successes and failures from
dws
Output expectations
For step 1, always return:
- the workspace scanned
- total file count
- output CSV path
- how many rows were marked
needs_content_review=yes - a short note on the main heuristics used
For step 2, always return:
- updated CSV path
- how many admin decisions were preserved
- how many uncertain files still remain
For step 4, always return:
- what was executed
- what was skipped
- the report path
dws doc command notes
Use dws doc as the source of truth for execution syntax:
dws doc list --workspace <WS_ID> --format jsondws doc list --folder <FOLDER_ID> --format jsondws doc folder create --name "xxx" --folder <PARENT_ID> --format jsondws doc move --node <DOC_ID> --folder <TARGET_FOLDER_ID> --format jsondws doc move --node <DOC_ID> --workspace <WS_ID> --format jsondws doc rename --node <DOC_ID> --name "New Name" --format json
When implementing or running execution:
- always pass
--format json - use
--helpbefore relying on a command you have not used recently - for real execution, add
--yesonly after explicit user confirmation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

