Perfly Agent Sync
Use this skill when the user asks you to send today's work to Perfly, summarize local coding work for Perfly, or update a Perfly worklog.
Requirements
Perfly Agent Sync requires the Perfly MCP server to be configured in the user's MCP client.
Production MCP endpoint:
https://api.perfly.dev/mcp
Prefer MCP OAuth discovery when the client supports browser authorization. The user should only need to add the hosted MCP endpoint.
Use a write-only bearer ingestion token only as a fallback for environments that cannot complete browser OAuth, such as headless CLI, SSH, devcontainer, CI, or remote sandbox workflows.
If token fallback is required, the MCP client sends:
Authorization: Bearer $PERFLY_INGESTION_TOKEN
Workflow
- Inspect only local context the user approved or clearly expects you to inspect.
- Prefer metadata such as branch names, recent commit titles, issue keys, task ids, and user-provided notes.
- Do not read or upload full diffs, source files, issue bodies, pull request bodies, logs, documents, secrets, or customer data.
- Draft concise worklog items with one clear title per accomplishment.
- Add a short note only when it improves later recall.
- Use metadata-only evidence refs such as
git_commit:abc123,branch:feature/foo, orissue:ABC-123. - Call
perfly_preview_work_items. - Show the preview to the user and ask for confirmation before writing, unless the user explicitly enabled unattended submission.
- After confirmation, call
perfly_add_work_items.
Payload Rules
datemust be the user's local work date inYYYY-MM-DD.timezonemust be an IANA timezone, such asAsia/Taipei.sourceshould identify the agent, such asagent:codex,agent:claude-code,agent:cursor, oragent:local-cli.itemsmust contain 1 to 50 concise summaries.- Use stable
idempotencyKeyvalues when possible, such asgit:<sha>,issue:<key>, orbranch:<name>:<date>:<slug>.
Privacy Rules
Never submit:
- source code
- diffs
- full terminal logs
- secrets, tokens, passwords, or API keys
- customer data
- document bodies
- issue or pull request bodies
- attachments
If the user asks to include sensitive material, summarize at a higher level and explain that Perfly Agent Sync accepts summary metadata only.
If MCP is unavailable, explain how to set up Perfly Agent Sync with the hosted MCP endpoint first. Do not ask the user to paste an ingestion token directly into chat; if OAuth cannot work in the user's environment, direct them to create a fallback token in the Perfly app setup page.
