# 724-office-ai-agent

Sets up an autonomous Python agent system with 26 built-in tools, three-tier memory, and MCP support. Useful when building continuous office automations with scheduled jobs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/724-office-ai-agent/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/724-office-ai-agent

## What it does

This skill guides the setup of an autonomous agent written in roughly 3,500 lines of plain Python without external agent frameworks. Context handling relies on three tiers: the 40 most recent messages in session history, extracted factual summaries, and LanceDB vector storage using a 0.92 similarity deduplication threshold. The entry point `xiaowang.py` runs an HTTP listener on port 8080 to process incoming events, including WeChat Work webhooks.

The system can extend its capabilities at runtime. Through the `create_tool` action, it writes new Python files directly into `workspace/custom_tools/` and loads them immediately without process restarts. External MCP servers connect via stdio or HTTP, mapping their tools under a `servername__toolname` pattern.

Background routines run through `scheduler.py`, which tracks ISO dates and cron rules inside `workspace/jobs.json`. Without installing `croniter`, `lancedb`, and `websocket-client`, the agent service will not start.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill 724-office-ai-agent -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/724-office-ai-agent/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/724-office-ai-agent/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill 724-office-ai-agent -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/724-office-ai-agent/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill 724-office-ai-agent -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/724-office-ai-agent/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills 724-office-ai-agent
```

2. **Manually: put the files in place**
- File: `.github/skills/724-office-ai-agent/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill 724-office-ai-agent -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/724-office-ai-agent
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/724-office-ai-agent/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill 724-office-ai-agent -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/724-office-ai-agent/SKILL.md

## When to use it
- deploy a standalone Python office agent without heavy frameworks
- link external MCP servers via stdio or HTTP transports
- organize three-layer conversation memory using LanceDB
- generate custom agent tools on the fly without restarting
- schedule recurring jobs using cron syntax

## Example prompts
- Configure three-layer memory settings for 724-office-ai-agent
- Connect an external MCP server to 724-office in config.json
- Add a recurring Monday morning task to jobs.json for this agent

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 139 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
