Chalk Labs
Need help deploying tencent-docs-api-v3?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/gricn-tencent-docs-api-v3
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, security, writing, sales
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tencent-docs-api-v3
What's inside
- Skill name
tencent-docs-api-v3- Description
- Tencent Docs API V3 client wrapper. OAuth2 auth, batch read/write, bounded auto-retry. Used to replace a subset of browser-automation operations and reduce API calls. The free 100/day quota covers daily inventory and sales-record updates.
- License
- MIT
- Instructions
- 110 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- .gitkeep · scripts/
- README.md · scripts/
SKILL.md (first lines)
# Tencent Docs API V3
## Capabilities
- **OAuth2 auth**: automatic token management, caching, expiry detection.
- **Batch read/write**: wraps `batchUpdate` and `read_cells`.
- **Bounded retry**: exponential backoff, default max 2 attempts.
- **Quota-friendly**: 100/day free tier is sufficient for routine ops.
## Applicable scenarios
- Inventory read.
- Surgery-date / patient-id back-fill.
- Sales-record base writes.
- **NOT applicable**: cell merge, border, filter — still require the browser.
## Default priority
- This is the **lower-level capability** under Tencent Docs flows. It is not the user-facing entry skill for coupled tasks like "ship the goods" — those default to `medical-inventory-tencent-import`, which then dispatches into this API as needed.
- Whenever a Tencent Docs step can be done with `access_token + client_id + open_id` API, prefer this path.
- For pure-read or pure-value-write steps already covered by the official API, do not default to in-page `behaviorApi / mutationApi`.
- Browser automation is reserved for what the official API does not cover: row insert, merge, border / font / alignment, filter.
- The API path must work under the free tier — never adopt "paid quota + many retries" as a baseline success contract.
- A single request failure may retry within a short bounded chain; on persistent failure, report — do not paper over with long retries.
## Usage
### 1. Basic read
```python
from skills.tencent-docs-api-v3.scripts.tencent-docs-api-v3 import create_client_from_env
client = create_client_from_env()
sheets = client.list_sheets("<doc-id>")
data = client.read_cells("<doc-id>", sheets[0]["sheetId"], "A1:J100")
```
### 2. Batch write
```python
requests = [{
"updateRangeRequest": {
"sheetId": sheet_id,
"gridData": {
"startRow": 10,
"startColumn": 8, # column I
"rows": [{"values": [{"cellValue": {"text": "2026/03/27"}}]}],
},
}
}]
result = client.batch_update("<doc-id>", requests)
```
Notes:
- The actually writable request name is `updateRangeRequest`, not `updateCellsRequest`.
- Single `batchUpdate` carries at most 5 requests; 6 triggers a `BatchSize Validate error`.
### 3. Tests
```bash
./.venv/bin/python skills/tencent-docs-api-v3/scripts/test_smoke.py
```
## Quota
| Item | Value |
|------|------|
| Free tier | 100/day |
| Estimated daily use | 15–25 |
| Headroom | 75–85 |
**No paid plan required.**
## Environment variables
Configured under `workspaces/tencent-docs-api/.env`:
```
CLIENT_ID=<your_client_id>
ACCESS_TOKEN=<your_access_token>
OPEN_ID=<your_open_id>
```
## Doc ID mapping
| Env | Type | Doc ID |
|-----|------|--------|
| test | inventory | `<test-inv-doc-id>` |
| test | sales | `<test-sales-doc-id>` |
| prod | inventory | `<prod-inv-doc-id>` |
| prod | sales | `<prod-sales-doc-id>` |
## Limitations
- No cell merge support.
- No border setting.
- No font / alignment style.
- No filter operations.
- If an API experiment breaks the live test / prod doc, recover via Tencent Docs revision history to a clearly known version — do not "write back to look approximately right".
These features still require browser automation.
## References
- Detailed evaluation: `workspaces/tencent-docs-api/API_V3_MIGRATION_PLAN.md` (private repo)
- Implementation summary: `workspaces/tencent-docs-api/IMPLEMENTATION_SUMMARY.md` (private repo)From gricn/clinical-ops-skill-kit, MIT.
More from gricn/clinical-ops-skill-kit
- 0.479score
cathlab-schedule-ocr
gricn
Handle cathlab surgery schedule input (images, Word docs, or mixed multi-file).
SkillCFreshness: CClaude Code +9 - 0.479score
gsheet-append-dedup
gricn
Safely write structured surgery rows (TSV / row arrays) into Google Sheet with dedup by primary key, date-correct insertion when filling earlier dates…
SkillCFreshness: CClaude Code +9 - 0.479score
surgery-volume-summary
gricn
Strictly summarize user-supplied weekly / monthly / yearly surgery statistics into a single closed-form line.
SkillCFreshness: CClaude Code +9 - 0.479score
vendor-invoice-records
gricn
On an Android device with the vendor B2B app, iterate orders, enter detail, click "申请开票" to open the invoice WebView, capture the commodity-fee and…
SkillCFreshness: CClaude Code +9 - 0.479score
warehouse-shipment-planning
gricn
After each surgery day, compute a shipment / replenishment plan for the upstream warehouse, based on the "patient_id = blank" remainder rows in the formal…
SkillCFreshness: CClaude Code +9 - 0.475score
spd-confirm-supply
gricn
On the `<hospital>` SPD / sp.<vendor-portal>.com homepage right-side to-do, handle "you have N pending-confirm orders": enter the pending-confirm order…
SkillCFreshness: CClaude Code +9 - 0.475score
vendor-sales-inventory-sync
gricn
When the user says "materials have arrived", "today's materials are in the cath lab", or similar, auto-trigger this skill.
SkillCFreshness: CClaude Code +9 - 0.475score
material-complaint-update
gricn
Update existing rows in the formal Tencent Docs inventory sheet for live material-complaint cases based on package-label photos and same-day case context.
SkillCFreshness: CClaude Code +9 - 0.475score
order-shipment
gricn
Full pipeline for `<hospital>` SPD / sp.<vendor-portal>.com shipment orders: login, scan pending shipments, lock this round's scope (this batch from Excel /…
SkillCFreshness: CClaude Code +9 - 0.475score
spd-confirm-delivery
gricn
Fast path: in the `<hospital>` SPD / sp.<vendor-portal>.com visible page, complete the current pending slip's `发货 → 确认` chain and verify success.
SkillCFreshness: CClaude Code +9 - 0.474score
task-closeout-standards
gricn
When the user asks to summarize pitfalls, codify lessons, tighten closeout standards, or judge whether a task is truly closed, trigger this thin entry.
SkillCFreshness: CClaude Code +9 - 0.473score
surgery-summary
gricn
Summarize daily surgery records from markdown files under `surgery_records/YYYY/MM/`.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 26, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/gricn/clinical-ops-skill-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from gricn
- 0.479score
vendor-invoice-records
gricn
On an Android device with the vendor B2B app, iterate orders, enter detail, click "申请开票" to open the invoice WebView, capture the commodity-fee and…
SkillCFreshness: CClaude Code +9 - 0.479score
warehouse-shipment-planning
gricn
After each surgery day, compute a shipment / replenishment plan for the upstream warehouse, based on the "patient_id = blank" remainder rows in the formal…
SkillCFreshness: CClaude Code +9 - 0.479score
gsheet-append-dedup
gricn
Safely write structured surgery rows (TSV / row arrays) into Google Sheet with dedup by primary key, date-correct insertion when filling earlier dates…
SkillCFreshness: CClaude Code +9 - 0.479score
surgery-volume-summary
gricn
Strictly summarize user-supplied weekly / monthly / yearly surgery statistics into a single closed-form line.
SkillCFreshness: CClaude Code +9 - 0.479score
cathlab-schedule-ocr
gricn
Handle cathlab surgery schedule input (images, Word docs, or mixed multi-file).
SkillCFreshness: CClaude Code +9 - 0.475score
spd-confirm-supply
gricn
On the `<hospital>` SPD / sp.<vendor-portal>.com homepage right-side to-do, handle "you have N pending-confirm orders": enter the pending-confirm order…
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get tencent-docs-api-v3 running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
tencent-docs-api-v3 skill. Agent Mart. https://agentmart.dev/skills/gricn-tencent-docs-api-v3 (last updated 2026-10-24)