{"kind":"Skill","metadata":{"namespace":"community","name":"feishu-perm","version":"0.1.0"},"spec":{"description":"|","files":{"SKILL.md":"---\nname: feishu-perm\ndescription: |\n  Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.\n---\n\n# Feishu Permission Tool\n\nSingle tool `feishu_perm` for managing file/document permissions.\n\n## Actions\n\n### List Collaborators\n\n```json\n{ \"action\": \"list\", \"token\": \"ABC123\", \"type\": \"docx\" }\n```\n\nReturns: members with member_type, member_id, perm, name.\n\n### Add Collaborator\n\n```json\n{\n  \"action\": \"add\",\n  \"token\": \"ABC123\",\n  \"type\": \"docx\",\n  \"member_type\": \"email\",\n  \"member_id\": \"user@example.com\",\n  \"perm\": \"edit\"\n}\n```\n\n### Remove Collaborator\n\n```json\n{\n  \"action\": \"remove\",\n  \"token\": \"ABC123\",\n  \"type\": \"docx\",\n  \"member_type\": \"email\",\n  \"member_id\": \"user@example.com\"\n}\n```\n\n## Token Types\n\n| Type       | Description             |\n| ---------- | ----------------------- |\n| `doc`      | Old format document     |\n| `docx`     | New format document     |\n| `sheet`    | Spreadsheet             |\n| `bitable`  | Multi-dimensional table |\n| `folder`   | Folder                  |\n| `file`     | Uploaded file           |\n| `wiki`     | Wiki node               |\n| `mindnote` | Mind map                |\n\n## Member Types\n\n| Type               | Description        |\n| ------------------ | ------------------ |\n| `email`            | Email address      |\n| `openid`           | User open_id       |\n| `userid`           | User user_id       |\n| `unionid`          | User union_id      |\n| `openchat`         | Group chat open_id |\n| `opendepartmentid` | Department open_id |\n\n## Permission Levels\n\n| Perm          | Description                          |\n| ------------- | ------------------------------------ |\n| `view`        | View only                            |\n| `edit`        | Can edit                             |\n| `full_access` | Full access (can manage permissions) |\n\n## Examples\n\nShare document with email:\n\n```json\n{\n  \"action\": \"add\",\n  \"token\": \"doxcnXXX\",\n  \"type\": \"docx\",\n  \"member_type\": \"email\",\n  \"member_id\": \"alice@company.com\",\n  \"perm\": \"edit\"\n}\n```\n\nShare folder with group:\n\n```json\n{\n  \"action\": \"add\",\n  \"token\": \"fldcnXXX\",\n  \"type\": \"folder\",\n  \"member_type\": \"openchat\",\n  \"member_id\": \"oc_xxx\",\n  \"perm\": \"view\"\n}\n```\n\n## Configuration\n\n```yaml\nchannels:\n  feishu:\n    tools:\n      perm: true # default: false (disabled)\n```\n\n**Note:** This tool is disabled by default because permission management is a sensitive operation. Enable explicitly if needed.\n\n## Permissions\n\nRequired: `drive:permission`\n"},"import":{"commit_sha":"424c6d0a5f4665b803ad6768d08b0be7659deaf4","imported_at":"2026-05-18T20:13:36Z","license_text":"MIT License\n\nCopyright (c) 2025 Peter Steinberger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","owner":"openclaw","repo":"openclaw/openclaw","source_url":"https://github.com/openclaw/openclaw/tree/424c6d0a5f4665b803ad6768d08b0be7659deaf4/extensions/feishu/skills/feishu-perm"}},"content_hash":[180,85,141,147,141,99,68,194,247,156,244,212,20,87,133,189,74,30,12,26,244,74,37,69,47,153,157,170,73,128,107,112],"trust_level":"unsigned","yanked":false}
