/flc-skills:yuquefrom flc-skills
Reads, searches, creates, and updates Yuque users, groups, repos, docs, TOC structures, and versions via OpenAPI. Includes safety gates for destructive operations.
Ships in flc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Operate on Yuque through its OpenAPI with full capability awareness and explicit safety gates.
Act as a Yuque workspace operator, not as a generic REST client.
Prioritize:
Assume the upstream API base URL is https://www.yuque.com and authentication uses X-Auth-Token unless local evidence shows otherwise.
Read docs/auth.md when wiring local authentication for execution.
Treat Yuque operations as three execution classes.
Default allow.
Includes:
Default allow when the requested target is clear.
Includes:
Default deny for execution. Produce a preflight plan unless the surrounding environment defines an explicit approval path.
Includes:
For dangerous requests:
Prefer readable paths over opaque identifiers.
Prefer this order when the user does not force a specific form:
group_login + book_slug + doc_sluggroup_login + book_slug + doc_idbook_id + doc_idUse the slug-based repo routes when the user speaks in human-readable Yuque paths. Use the ID routes when an existing integration already has stable IDs.
Before any TOC write, read the current TOC first to recover node UUIDs and parent-child relationships.
Follow the smallest workflow that satisfies the request.
Use for questions such as:
Sequence:
body plus the relevant format-specific body field when present.Read references/user-group.md for user, group, and search tasks. Read references/repo.md for repo tasks. Read references/doc.md for document tasks. Read references/toc.md for TOC tasks.
Use for requests such as:
Sequence:
title, body, and optional slug, public, format.format=markdown unless the user clearly requires html or lake.Use for requests such as:
Sequence:
slug, public, and format.Do not treat doc editing as a blind patch. The API is safer to use when the resulting full document state is explicit.
Use for requests such as:
Sequence:
appendNodeprependNode only when head insertion is clearly intendededitNodeDo not use removeNode in normal execution.
markdown for authoring unless the user clearly asks for html, lake, table, or sheet semantics.This skill covers the major Yuque API domains:
Read references/capability-map.md for endpoint coverage and safety classification.
Before executing authenticated scripts, prepare local auth like this:
skills/yuque/.env.example to skills/yuque/.envYUQUE_TOKEN with a real tokenskills/yuque/.env local only and do not commit itThe scripts auto-load skills/yuque/.env when it exists.
Read docs/auth.md for token resolution order and auth details.
Use the bundled scripts when a concrete request should turn into a reproducible Yuque API call.
scripts/heartbeat.mjs and scripts/current-user.mjs: inspect basic auth reachability and token identityscripts/search.mjs: search docs or reposscripts/list-user-groups.mjs, scripts/list-group-members.mjs, scripts/update-group-member-role.mjs: inspect groups and manage non-destructive membership changesscripts/list-repos.mjs, scripts/read-repo.mjs, scripts/create-repo.mjs, scripts/update-repo.mjs: operate on reposscripts/list-docs.mjs, scripts/read-doc.mjs, scripts/create-doc.mjs, scripts/update-doc.mjs: operate on docsscripts/list-doc-versions.mjs, scripts/read-doc-version.mjs: inspect doc historyscripts/read-toc.mjs, scripts/update-toc.mjs, scripts/move-toc-node.mjs: inspect and reorganize TOC without deletionscripts/read-statistics.mjs: inspect team statisticsscripts/*-preflight.mjs: prepare guarded plans for dangerous actions without executing themScript rules:
--execute only when the target is clear and the action is allowed by this skill's safety modelskills/yuque/.env copied from .env.example for normal execution--token to override local config when a one-off token is necessaryUse these defaults:
400: request shape is wrong; re-check path params, query params, and enums401: token missing, invalid, or lacks scope403: token is valid but cannot access the target resource404: repo, doc, group, or node target is wrong422: payload validation failed; inspect required fields and enum values429: rate limited; reduce request volume and retry cautiously500: upstream failure; avoid repeating broad writes until the target state is checked againRead references/auth-and-errors.md for auth and failure handling.
When the user asks for deletion or removal:
Examples:
Read references/safety-policy.md for the full policy.
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)docs/README.md (opens in a new tab)docs/auth.md (opens in a new tab)docs/yuque_openapi_20251121_green.yaml (opens in a new tab)references/auth-and-errors.md (opens in a new tab)references/capability-map.md (opens in a new tab)references/doc.md (opens in a new tab)references/repo.md (opens in a new tab)references/safety-policy.md (opens in a new tab)references/toc.md (opens in a new tab)references/user-group.md (opens in a new tab)scripts/common.mjs (opens in a new tab)scripts/create-doc.mjs (opens in a new tab)scripts/create-repo.mjs (opens in a new tab)scripts/current-user.mjs (opens in a new tab)scripts/delete-doc-preflight.mjs (opens in a new tab)scripts/delete-repo-preflight.mjs (opens in a new tab)scripts/heartbeat.mjs (opens in a new tab)scripts/list-doc-versions.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
yuque, openapi, knowledge-base, documentation, workspace-management, api-client
npx claudepluginhub flc1125/skills --plugin flc-skills31 skills in this plugin
/asyncLaunch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference./code-reviewRequest or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding./create-planCreate and maintain repository-aware technical plans, implementation plans, refactor proposals, design drafts, and migration plans. Use when Codex is asked to investigate a codebase and propose a solution before implementation; write or update a durable plan file; produce a 方案、实施计划或重构计划; split engineering work into phases or pull requests; document scope, non-goals, API and behavior decisions, breaking changes, migrations, risks, testing, or validation; or transition a plan through draft, planned, in-progress, blocked, and completed states./design-workflow-graphsDesign, transform, review, and evolve graph-based workflows with explicit state, nodes, edges, routing, concurrency, joins, loops, approvals, recovery, termination, side effects, and observability. Use when Codex needs to decide whether graph orchestration fits a process; turn requirements, a linear workflow, or an agent loop into a workflow graph; audit an existing DAG or state graph; or produce a framework-neutral graph specification before implementation./eli5Create a simple, picture-first explanation of a topic, defaulting to self-contained HTML. Use when the user says ELI5, asks to explain something like they are five, or wants a visual explanation with very few words; do not use for ordinary concise explanations that do not ask for this style./engineering-backend-architectDesign backend system architecture for new products, large features, platform refactors, API and database design, microservices decomposition, event-driven systems, scaling, reliability, observability, and cloud deployment.Other plugins' skills for the same job