name: lightcloud-api description: Integrate with Qingyun/Lightcloud (輕雲) API to manage form documents - fetch access tokens, retrieve, create, update, and delete form data. Use this skill when users request to interact with Qingyun/Lightcloud API, get access tokens, retrieve/create/update/delete form data, or work with Qingyun documents. Triggers include mentions of "輕雲", "yunzhijia", "qingyun", "lightcloud", or requests to fetch/create/update/delete form data, access tokens, or document operations from Qingyun platform.
Provides seamless integration with Qingyun/Lightcloud (輕雲) open API using curl/PowerShell commands that work cross-platform without requiring Python. Supports full CRUD operations on form documents.
# Download and install the skill
curl -L -o lightcloud-api.skill https://your-domain.com/skills/lightcloud-api.skill
# Or if you have the skill file locally
cp lightcloud-api.skill ~/.claude/skills/
wget -O lightcloud-api.skill https://your-domain.com/skills/lightcloud-api.skill
cp lightcloud-api.skill ~/.claude/skills/
lightcloud-api.skill file~/.claude/skills/%USERPROFILE%\.claude\skills\This skill is compatible with OpenClaw, the popular open-source Claude Code alternative.
# Navigate to OpenClaw skills directory
cd ~/.openclaw/skills/
# Download the skill
curl -L -O https://your-domain.com/skills/lightcloud-api.skill
# Or copy from local
cp /path/to/lightcloud-api.skill .
# Restart OpenClaw to load the skill
After installation, test with natural language:
"獲取輕雲的access token"
"從輕雲獲取表單資料"
Test the skill is working:
# In Claude Code or OpenClaw, simply say:
"幫我獲取輕雲的access token"
If the skill responds with API call instructions, it's working correctly.
To remove the skill:
rm ~/.claude/skills/lightcloud-api.skill
# Or on Windows:
del %USERPROFILE%\.claude\skills\lightcloud-api.skill
First, generate a timestamp (must be within 3 minutes):
timestamp=$(($(date +%s) * 1000))
Then call the API:
curl -X POST "https://www.yunzhijia.com/gateway/oauth2/token/getAccessToken" \
-H "Content-Type: application/json" \
-d '{
"appId": "YOUR_APP_ID",
"eid": "YOUR_EID",
"secret": "YOUR_SECRET",
"timestamp": '$timestamp',
"scope": "team"
}'
First, generate a timestamp:
$timestamp = [int64](Get-Date -UFormat %s) * 1000
Then call the API:
$headers = @{
"Content-Type" = "application/json"
}
$body = @{
appId = "YOUR_APP_ID"
eid = "YOUR_EID"
secret = "YOUR_SECRET"
timestamp = $timestamp
scope = "team"
} | ConvertTo-Json
Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/oauth2/token/getAccessToken" `
-Method POST -Headers $headers -Body $body
Required parameters:
- appId: Light application ID (輕應用id)
- eid: Team ID (團隊id)
- secret: Application secret (輕應用secret)
- timestamp: Current Beijing time, Unix timestamp in milliseconds (13 digits), valid for 3 minutes
- scope: Authorization level (use "team")
Response:
{
"data": {
"accessToken": "xxx",
"expireIn": 7200,
"refreshToken": "xxx"
},
"errorCode": 0,
"success": true
}
curl -X POST "https://www.yunzhijia.com/gateway/lightcloud/data/list?accessToken=YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eid": "YOUR_EID",
"formCodeId": "YOUR_FORM_CODE_ID",
"formInstIds": ["FORM_ID_1", "FORM_ID_2"]
}'
$headers = @{
"Content-Type" = "application/json"
}
$body = @{
eid = "YOUR_EID"
formCodeId = "YOUR_FORM_CODE_ID"
formInstIds = @("FORM_ID_1", "FORM_ID_2")
} | ConvertTo-Json
Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/lightcloud/data/list?accessToken=YOUR_ACCESS_TOKEN" `
-Method POST -Headers $headers -Body $body
Required parameters:
- accessToken: Access token from step 1 (in URL query parameter)
- eid: Workspace eid (工作圈eid)
- formCodeId: Form code ID (表單codeId)
- formInstIds: Array of form instance IDs (單據id陣列)
Optional parameters:
- oid: Query user openid (查詢人openid)
curl -X POST "https://www.yunzhijia.com/gateway/lightcloud/data/batchDelete?accessToken=YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eid": "YOUR_EID",
"formCodeId": "YOUR_FORM_CODE_ID",
"formInstIds": ["FORM_ID_1", "FORM_ID_2"]
}'
$headers = @{
"Content-Type" = "application/json"
}
$body = @{
eid = "YOUR_EID"
formCodeId = "YOUR_FORM_CODE_ID"
formInstIds = @("FORM_ID_1", "FORM_ID_2")
} | ConvertTo-Json
Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/lightcloud/data/batchDelete?accessToken=YOUR_ACCESS_TOKEN" `
-Method POST -Headers $headers -Body $body
Required parameters:
- accessToken: Access token (in URL)
- eid: Workspace eid (工作圈eid)
- formCodeId: Form code ID (表單codeId)
- formInstIds: Array of form instance IDs to delete (單據id陣列)
Optional parameters:
- oid: Deleter openid (刪除人openid) - required for workflow documents
curl -X POST "https://www.yunzhijia.com/gateway/lightcloud/data/batchSave?accessToken=YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eid": "YOUR_EID",
"formCodeId": "YOUR_FORM_CODE_ID",
"oid": "YOUR_OID",
"data": [
{
"formInstId": "FORM_INST_ID",
"widgetValue": {
"_S_TITLE": "Document Title",
"Te_0": "Text field value"
},
"details": {
"Dd_0": {
"widgetValue": [
{
"_id_": "1",
"Te_0": "Detail field value"
}
]
}
}
}
]
}'
$headers = @{ "Content-Type" = "application/json" } $body = @{ eid = "YOUR_EID" formCodeId = "YOUR_FORM_CODE_ID" oid = "YOUR_OID" data = @( @{ formInstId = "FORM_INST_ID" widgetValue = @{ "_S_TITLE" = "Document Title" "Te_0" = "Text field value" } details = @{ "Dd_0" = @{ widgetValue = @( @{ "_id_" = "1" "Te_0" = "Detail field value" } ) } } } ) } | ConvertTo-Json -Depth 10 Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/lightcloud/data/batchSave?accessToken=YOUR_ACCESS_TOKEN" ` -Method POST -Headers $headers -Body $body來源於7w4.net。
Required parameters:
- accessToken: Access token (in URL)
- eid: Workspace eid (工作圈eid)
- formCodeId: Form code ID (表單codeId)
- oid: Creator openid (新增人openid)
- data: Array of form instances (單據例項陣列)
Data structure:
- formInstId: Form instance ID - required for updates, omit for new documents
- widgetValue: Main form fields (主表單控制元件欄位)
- _S_TITLE: Document title
- Other field codeIds and values
- details: Detail/form grid fields (明細控制元件欄位)
- Key is detail widget codeId
- widgetValue: Array of detail rows
- _id_: Row ID (required)
- Other field codeIds and values
"獲取輕雲的access token" → Provide user with curl/PowerShell command with placeholders for credentials
"從輕雲獲取單據資料" → First help get access token, then provide form retrieval command
"幫我呼叫輕雲API獲取表單資料" → Two-step process: authenticate, then fetch forms using appropriate platform commands
"刪除輕雲單據" → Provide batch delete command with user's access token and form IDs
"建立新的輕雲表單" → Help construct batchSave request with widget values
"更新輕雲表單資料" → Use batchSave with formInstId to update existing documents
"批次操作輕雲單據" → Determine operation type (fetch/delete/save) and execute appropriate API call
expireIn field (typically 7200 seconds)success field in responseFor quick execution, use these complete one-liners:
curl -X POST "https://www.yunzhijia.com/gateway/oauth2/token/getAccessToken" -H "Content-Type: application/json" -d '{"appId":"YOUR_APP_ID","eid":"YOUR_EID","secret":"YOUR_SECRET","timestamp":'$(($(date +%s) * 1000))',"scope":"team"}'
$body = @{appId="YOUR_APP_ID";eid="YOUR_EID";secret="YOUR_SECRET";timestamp=[int64](Get-Date -UFormat %s)*1000;scope="team"} | ConvertTo-Json; Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/oauth2/token/getAccessToken" -Method POST -Headers @{"Content-Type"="application/json"} -Body $body
curl -X POST "https://www.yunzhijia.com/gateway/lightcloud/data/batchDelete?accessToken=YOUR_TOKEN" -H "Content-Type: application/json" -d '{"eid":"YOUR_EID","formCodeId":"YOUR_FORM_ID","formInstIds":["ID1","ID2"]}'
$body = @{eid="YOUR_EID";formCodeId="YOUR_FORM_ID";formInstIds=@("ID1","ID2")} | ConvertTo-Json; Invoke-RestMethod -Uri "https://www.yunzhijia.com/gateway/lightcloud/data/batchDelete?accessToken=YOUR_TOKEN" -Method POST -Headers @{"Content-Type"="application/json"} -Body $body
For detailed API documentation including: - Complete request/response formats - Field type definitions - System reserved fields - Error codes and troubleshooting
See references/api_reference.md
✅ Fully Compatible
- Native skill support
- Automatic loading from ~/.claude/skills/
- Natural language triggers
✅ Fully Compatible
- OpenClaw 1.0+ supported
- Install to ~/.openclaw/skills/
- All features work identically
- Community-tested and verified
✅ Standards Compliant - Works with any platform supporting Claude Code skill format - No platform-specific dependencies - Pure curl/PowerShell implementation
Skill not loading?
# Check skill file exists
ls -la ~/.claude/skills/lightcloud-api.skill
# Verify file integrity
file ~/.claude/skills/lightcloud-api.skill
# Should show: Zip archive data
# Reinstall if needed
rm ~/.claude/skills/lightcloud-api.skill
# Then reinstall using method above
OpenClaw not recognizing skill?
# Ensure OpenClaw skills directory exists
mkdir -p ~/.openclaw/skills
# Copy skill to OpenClaw directory
cp ~/.claude/skills/lightcloud-api.skill ~/.openclaw/skills/
# Restart OpenClaw
Token expired? - Tokens typically expire in 2 hours (7200 seconds) - Get a new token using the access token endpoint
Timestamp errors? - Ensure timestamp is within 3 minutes - Use automatic timestamp generation in commands
Platform detection wrong? - Skill auto-detects Bash vs PowerShell - Manual override: specify platform in request
MIT License - Free to use, modify, and distribute
這個 Skill 質量還不錯,文件寫得清楚明白,安裝和 API 呼叫步驟都有詳細說明,同時支援 Windows 和 Mac/Linux 系統。功能覆蓋了表單資料的增刪改查基本操作,使用起來比較順手。主要不足是隻有說明文件沒有可執行的示例檔案,複雜操作時可能需要自己摸索,憑證管理等安全方面的指引也較少。總體適合需要整合輕雲 API 的開發者使用。