Feishu OpenClaw Paper Manager
Use this skill when the task is to design, review, or implement a paper-management agent that runs through a Feishu bot and OpenClaw.
Primary objective
Build a workflow with three durable outputs:
- A cloud-docs
paperfolder that stores the paper asset or an index document for the source link. - A Feishu multi-dimensional table that stores normalized paper metadata.
- A taxonomy iteration loop that improves labels whenever total paper count crosses
50,100,150, and so on.
Workflow
Follow this sequence:
- Map the ingestion sources from Feishu messages.
- Normalize each paper into one canonical record.
- Save or register the paper in the cloud-docs
paperfolder. - Generate summary and reusable multi-label tags.
- Write the record into the multi-dimensional table.
- Check whether the total record count has reached a multiple of 50.
- If yes, run taxonomy refinement and backfill historical rows.
Ingestion rules
Treat these as valid paper inputs:
- PDF attachment in a Feishu message
- arXiv, OpenReview, ACL Anthology, publisher, or project links in a message
- Mixed messages that contain both a PDF and a source link
For every incoming item:
- Extract the raw message URL, sender, timestamp, and all detected paper candidates.
- Resolve whether the message refers to a new paper or an existing one.
- Create exactly one canonical paper record per paper.
Deduplication priority:
- DOI
- arXiv ID or OpenReview forum ID
- normalized title
- source URL fingerprint
If a duplicate exists, update missing fields instead of creating a new row.
Storage model
Always separate binary storage from metadata storage:
- The cloud-docs
paperfolder is for the PDF file or a small link-index doc when the PDF is unavailable. - The multi-dimensional table is the system of record for metadata, classification, and retrieval.
When a PDF is available:
- upload the PDF into the
paperfolder - use a deterministic filename from
year + first_author + short_title
When only a link is available:
- create a lightweight cloud doc in the
paperfolder containing the title, source link, access date, and capture notes - still create the metadata row in the table
Required table fields
Create or expect these fields in the Feishu multi-dimensional table:
paper_id: stable unique IDtitle: paper titledoc_link: cloud-docs link to the stored PDF or link-index docsource_link: original paper URLsource_type:pdf,arxiv,openreview,publisher,project,othersummary_one_line: one-sentence summary in plain languagetags_topic: reusable topical tagstags_method: reusable method tagstags_task: reusable task tagstags_domain: reusable domain tagstags_stage: reusable maturity tags such asreading,worth-reproducing,survey-onlyauthors: normalized author stringvenue: venue or sourceyear: publication yearstatus:new,classified,taxonomy-reviewed,duplicate,errormessage_link: original Feishu message linkingested_at: ingestion timestamptaxonomy_version: taxonomy version used for the row
Use multi-select fields for all tags_* columns so users can filter and search by labels directly in Feishu.
Tagging policy
A paper can have multiple tags, but tags must stay reusable. Do not create a new free-form label when an existing reusable label is close enough.
Use a layered taxonomy:
tags_topic: broad themes such asllm,multimodal,agent,retrieval,alignment,reasoningtags_method: technical mechanisms such asrag,rl,distillation,synthetic-data,moe,benchmarktags_task: applied tasks such ascode-gen,translation,information-extraction,math,searchtags_domain: business or science domain such asbiology,finance,education,roboticstags_stage: actionability and curation state
Keep tags short, lowercase, and singular where possible.
Prefer this decision rule:
- reuse an existing tag if it is at least 80 percent semantically correct
- add a synonym mapping instead of a brand-new visible tag when possible
- only introduce a new visible tag if it will likely apply to at least 5 papers in the next 100 rows
See references/tag-taxonomy.md for the starter taxonomy and merge rules.
One-line summary policy
The summary_one_line field must answer:
- what the paper does
- what makes it different
- in language that a technically literate teammate can scan in under 10 seconds
Avoid hype, citation-style phrasing, and long clauses.
Taxonomy iteration loop
Whenever the table row count reaches a multiple of 50, run a taxonomy review pass.
The review pass must:
- export or inspect all existing tags and their frequencies
- identify sparse tags, duplicates, synonyms, and overloaded tags
- propose a new taxonomy version that improves reuse and filtering quality
- map old tags to new tags
- backfill historical rows
- mark affected rows with the new
taxonomy_version - produce a short change log explaining merges, splits, and renamed tags
Optimization goals:
- fewer near-duplicate tags
- better coverage of high-volume themes
- stable filters across time
- minimal churn for already-good tags
Do not relabel everything from scratch unless the old taxonomy is clearly broken. Prefer merge-and-backfill over wholesale replacement.
Output contract
When asked to design the system, return:
- end-to-end workflow
- Feishu table schema
- tagging strategy
- taxonomy iteration logic
- implementation notes for Feishu bot and OpenClaw boundaries
When asked to implement or review code, anchor decisions to:
- ingestion reliability
- deduplication correctness
- idempotent writes
- table filterability
- taxonomy evolution safety
Boundary between Feishu bot and OpenClaw
Default division of responsibility:
- Feishu bot: receive messages, fetch attachments or links, send confirmations, surface errors
- OpenClaw: parse payloads, deduplicate, summarize, classify, write docs and table rows, trigger taxonomy reviews
If the user has an existing architecture, preserve it and only adapt the workflow.
Development contract
When the user wants implementation guidance, assume this integration shape unless the project already defines another one:
- Feishu bot receives the event and verifies the request.
- Feishu bot converts the raw event into a normalized ingestion payload.
- Feishu bot calls an OpenClaw workflow entrypoint with that payload.
- OpenClaw performs enrichment, storage, classification, and table updates.
- OpenClaw returns a structured result for user-visible confirmation.
- Feishu bot posts a success, duplicate, or failure message back to the conversation.
Design the integration around these engineering constraints:
- idempotent processing for webhook retries
- explicit deduplication before any write
- append-safe and patch-safe updates to the table
- stable identifiers for files, rows, and taxonomy versions
- clear status reporting back to the chat thread
Use references/api-contracts.md for payload shapes and responsibility boundaries.
Use references/event-flows.md for event sequences and retry behavior.
Feishu-side implementation expectations
On the Feishu side, prefer these components:
- webhook endpoint for message events
- message parser for attachments and URLs
- file fetcher for PDF downloads
- Feishu document client for folder upload or doc creation
- Feishu table client for row create and row update
- reply formatter for confirmations and error notices
The Feishu bot should emit one normalized payload per detected paper candidate, not one per message if a message contains multiple papers.
Before calling OpenClaw, the Feishu side should:
- verify event authenticity
- extract message metadata
- collect attachment metadata and URLs
- collect raw hyperlinks in the message body
- attach a stable
event_idandmessage_id - include enough source metadata for later retries without rereading the original message when possible
OpenClaw-side implementation expectations
On the OpenClaw side, prefer these stages:
- ingest payload validation
- paper candidate normalization
- metadata enrichment from PDF or source page
- duplicate lookup
- cloud-docs write
- one-line summary generation
- multi-dimensional tagging
- table upsert
- taxonomy-threshold check
- taxonomy review workflow when threshold is hit
OpenClaw should treat the table as an upsert target, not append-only storage.
For duplicates:
- keep the canonical row
- patch missing metadata
- optionally append the new
message_linkto notes or an audit field if the implementation supports it - return a
duplicateresult instead of creating a new paper row
Taxonomy review trigger contract
The threshold is based on canonical non-duplicate paper rows, not raw messages.
Trigger a taxonomy review only when:
- the current canonical row count is divisible by
50 - the taxonomy review for that exact threshold has not already run
Persist a review checkpoint such as last_review_count = 100 or taxonomy_version = v3 so retries do not rerun the same migration.
Output expectations for implementation tasks
When implementing code, prefer returning these artifacts:
- module boundaries
- payload schemas
- idempotency rules
- event sequence
- failure handling and retry rules
- sample success and duplicate responses
When reviewing code, check specifically for:
- webhook retry safety
- duplicate PDF uploads
- row duplication from concurrent events
- inconsistent tag writes across dimensions
- taxonomy backfill that can partially fail without rollback
Failure policy
The default failure strategy is:
- fail fast on invalid payloads
- retry transient network or API errors
- do not retry deterministic classification errors forever
- never create a table row before deduplication completes
- never advance taxonomy version markers before backfill succeeds
If partial writes are possible, require compensating logic or a resumable reconciliation job.
Resources
- Table schema and record lifecycle:
references/table-schema.md - Tag starter set and refinement rules:
references/tag-taxonomy.md - Feishu/OpenClaw payload and boundary contracts:
references/api-contracts.md - Event sequences, retries, and examples:
references/event-flows.md