weknora-shared
यह क्या करती है
यह स्किल कमांड-लाइन टूल के ज़रिए WeKnora ज्ञान आधार सर्वर तक पहुँच सेट करती है। यह उन लोगों के लिए है जिन्हें उसकी सामग्री प्रबंधित या खोजने से पहले WeKnora से जुड़ना है।
कब इस्तेमाल करें
- ✓जब आपको पहली बार WeKnora कमांड-लाइन टूल को सर्वर से जोड़ना हो।
- ✓जब आप WeKnora में ज्ञान आधार, दस्तावेज़, सेशन या एजेंट प्रबंधित करना चाहें।
- ✓जब आपको टूल का JSON आउटपुट या एरर कोड समझना हो।
Skill का लिंक
https://github.com/Tencent/WeKnora/blob/main/cli/skills/weknora-shared/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कमांड लाइन से हमारे WeKnora सर्वर में लॉगिन करने में मदद कीजिए और जाँचिए कि वह काम करता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह सर्वर का पता और API key सेट करने, या नामित प्रोफ़ाइल सहेजने का तरीका बताती है, फिर जाँचती है कि कौन लॉगिन है। यह टूल के संरचित आउटपुट और एरर कोड पढ़ने का तरीका भी समझाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
WeKnora CLI — shared base
weknora is the agent-first CLI for a WeKnora RAG server. Every command prints
a JSON envelope and uses a typed exit code, so you branch on machine-readable
output, not prose. Read this skill before any task-specific weknora-* skill.
1. Authenticate (do this first — order matters)
Agents usually skip profiles entirely: set WEKNORA_API_KEY (or
WEKNORA_TOKEN) + WEKNORA_HOST and every command authenticates statelessly and
zero-disk — no profile add / auth login needed. auth token echoes that env
credential; auth status / doctor confirm it. The steps below set up a
persistent named profile instead (interactive / multi-environment use).
Authentication is a two-step sequence. weknora auth login operates on the
active profile, so the profile must exist first:
# 1. register a connection target and make it active
weknora profile add prod --host https://kb.example.com --use
# 2a. API key (agent default — pipe the key on stdin, non-interactive):
echo "$WEKNORA_API_KEY" | weknora auth login --with-token
# 2b. OR email+password (interactive prompt only — no flags; not for agents)
weknora auth login
weknora auth status # verify: who am I, which tenant
- Target a non-active profile for one command with the global
--profile NAME(e.g.weknora --profile staging auth refresh). There is no per-command--name/--hoston auth commands. - Get the raw token for scripting with
WEKNORA_TOKEN=$(weknora auth token)(raw token by default; works with an env credential too;--format jsongives the{token, mode, profile}envelope). weknora auth logoutclears a profile's stored credentials but keeps the profile registered (re-auth later withauth login); useprofile removeto delete the profile entirely.weknora doctorruns 4 health checks (reachability, credential, version, storage).
2. Selecting a knowledge base (--kb)
--kb accepts a name or a UUID (resolved server-side). Resolution order:
--kb flag → WEKNORA_KB_ID env → directory link (weknora link --kb X binds
the cwd) → error. Read/create commands that operate "inside a project" inherit
the link; search * and destructive --all operations always require an
explicit --kb (so an agent never silently hits the wrong corpus).
A KB must have an embedding model bound to be searchable. A freshly created
KB is retrieval_ready:false — uploaded docs stay unindexed and search/chat
return nothing until you bind models. Create it ready in one step
(kb create --embedding-model <m> --chat-model <m>, discover ids with
weknora model list) or bind after the fact
(kb config set <kb> --embedding-model <m> --chat-model <m>). kb status /
kb check report retrieval_ready, and kb create hints the fix when it is
false — so an unconfigured KB is never silently "healthy".
3. Output contract — every command
Default output is --format json: a single envelope.
| Field | Meaning |
|---|---|
ok |
true/false — branch on this first (see batch/wait caveat below) |
data |
success payload (object or array; absent on mutation-only success) |
meta |
count / has_more / dry_run / plan … |
error |
on failure: {type, message, hint?, retry_argv?, retryable?, risk?} |
profile |
active profile name |
error.typeis a stable typed code (e.g.local.kb_not_found,input.invalid_argument,input.confirmation_required,server.error). Branch on it;error.hintusually tells you the next action.--format text= a live human-readable projection.chatandsession askbuffer a bounded answer-event projection into one JSON envelope by default; pass--referencefor indexed citations,--verbosefor execution detail, or--format ndjsonfor raw event lines.session resumeremains an NDJSON streaming command.--jq '<expr>'filters the envelope (e.g.weknora kb list --jq '.data[].id').- Exception:
weknora auth tokenemits the raw token by default (it's a scripting helper); pass--format jsonfor the{token, mode, profile}envelope. - Batch / wait caveat: multi-item commands come in two shapes, but for
both you branch on the exit code, not
ok:doc/chunk/session deletewith several ids → a batch envelope:statusissuccess/partial/error,okistrueonly when every item succeeded (ok:falseon any failure),datais a per-
अक्सर पूछे जाने वाले सवाल
क्या शुरू करने के लिए प्रोफ़ाइल चाहिए?
नहीं। एनवायरनमेंट वेरिएबल में API key और होस्ट सेट करना प्रोफ़ाइल बनाए बिना काम करता है।
चरणों का क्रम क्यों मायने रखता है?
लॉगिन कमांड सक्रिय प्रोफ़ाइल पर काम करता है, इसलिए वह प्रोफ़ाइल पहले मौजूद होनी चाहिए।
आउटपुट किस फ़ॉर्मेट में है?
हर कमांड JSON नतीजा छापता है, जिसे एजेंट सीधे पढ़ता है।
जानकारी
लेखक का मूल विवरण
Use when driving a WeKnora RAG server through the `weknora` CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora-* skill.
repo: Tencent/WeKnora
लोकप्रियता
- GitHub स्टार
- 36k
- रैंकिंग में स्थान
- #7586
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
weknora-rag-search
36kयह आपके एजेंट को WeKnora ज्ञान आधार में खोज करने में मार्गदर्शन देती है, लिखित जवाब, कच्चे टेक्स्ट अंश, दस्तावेज़ मिलान या सेशन खोज के बीच चुनते हुए।
agent-browser
36kयह आपके एजेंट को सैंडबॉक्स के अंदर असली वेब ब्राउज़र चलाने देती है, पेज खोलने, क्लिक करने, फ़ॉर्म भरने, स्क्रीनशॉट लेने और डेटा निकालने के लिए, लॉगिन वाली साइटों सहित।
मिलती-जुलती skills
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
notcrawl
394kयह आपके एजेंट को Notion वर्कस्पेस की सेव की गई कॉपी में खोजने, पेज और डेटाबेस देखने और पेजों को Markdown फ़ाइलों में निर्यात करने देती है।
knowledge-entities
394kयह आपके एजेंट को लोगों, कंपनियों और प्रोजेक्ट्स की पहचान करने और आपके Knowledge vault में स्रोत-आधारित प्रोफ़ाइल पेज लिखने देती है।