TopRank Skills

Home / Claw Skills / Git / GitHub / PersonalDataHub
Official OpenClaw rules 54%

PersonalDataHub

Pull personal data (emails, issues) and propose outbound actions (drafts, replies) through the PersonalDataHub access control gateway. Data is filtered, redacted, and shaped by the owner's policy before reaching the agent.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 PersonalDataHub 技能。 若已安装,则直接安装 PersonalDataHub 技能。

Overview

Skill Key
haojian/personal-data-hub
Author
haojian
Source Repo
openclaw/skills
Version
0.1.0
Source Path
skills/haojian/personal-data-hub
Latest Commit SHA
e2656d730a7fc6994b7d6d29e84b05d93608a95d

Extracted Content

SKILL.md excerpt

# PersonalDataHub

Access personal data from Gmail, GitHub, and other sources through the PersonalDataHub access control gateway. The data owner controls what the agent can see, which fields are visible, what gets redacted, and which actions are allowed.

## Tools

### personal_data_pull

Pull data from a source. Data is filtered and redacted according to the owner's access control policy.

**Parameters:**
- `source` (required) — The data source (e.g., `"gmail"`, `"github"`)
- `purpose` (required) — Why this data is needed (logged for audit)
- `type` (optional) — Data type (e.g., `"email"`, `"issue"`)
- `query` (optional) — Search query in source-native syntax (e.g., `"is:unread from:alice"`)
- `limit` (optional) — Maximum number of results

**Example:**
```
Pull my recent unread emails about the Q4 report.
```

### personal_data_propose

Propose an outbound action (e.g., draft email). The action is staged for the data owner to review and approve — it does NOT execute until approved.

**Parameters:**
- `source` (required) — The source service (e.g., `"gmail"`)
- `action_type` (required) — Action type (e.g., `"draft_email"`, `"send_email"`, `"reply_email"`)
- `to` (required) — Recipient email address
- `subject` (required) — Email subject
- `body` (required) — Email body
- `purpose` (required) — Why this action is being proposed (logged for audit)
- `in_reply_to` (optional) — Message ID for threading

**Example:**
```
Draft a reply to Alice's Q4 report email thanking her for the numbers.
```

## Direct API Fallback

If the tools above are not available, you can call the PersonalDataHub API directly via HTTP.

**Credentials:** Read `~/.pdh/credentials.json` to get `hubUrl` and `apiKey`.

**Pull data:**
```bash
curl -X POST <hubUrl>/app/v1/pull \
  -H "Authorization: Bearer <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{"source": "gmail", "purpose": "reason for pulling data"}'
```

**Propose an action:**
```bash
curl -X POST <hubUrl>/app/v1/propose \
  -H "...

Related Claw Skills