weknora-shared
Fungsinya
Skill ini menyiapkan akses ke server basis pengetahuan WeKnora melalui alat command line-nya. Skill ini untuk orang yang perlu terhubung ke WeKnora sebelum mengelola atau mencari isinya.
Kapan dipakai
- βSaat Anda perlu menghubungkan alat command line WeKnora ke server untuk pertama kalinya.
- βSaat Anda ingin mengelola basis pengetahuan, dokumen, sesi, atau agent di WeKnora.
- βSaat Anda perlu memahami keluaran JSON atau kode keluar alat tersebut.
Link skill
https://github.com/Tencent/WeKnora/blob/main/cli/skills/weknora-shared/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBantu saya login ke server WeKnora kami dari command line dan memastikan semuanya berfungsi.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini menjelaskan cara mengatur alamat server dan kunci API, atau menyimpan profil bernama, lalu memeriksa siapa yang sedang login. Skill ini juga menjelaskan cara membaca keluaran terstruktur dan kode error alat tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-
Pertanyaan umum
Apakah perlu profil untuk memulai?
Tidak. Mengatur kunci API dan host di variabel lingkungan sudah berfungsi tanpa membuat profil.
Mengapa urutan langkah penting?
Perintah login bekerja pada profil yang aktif, jadi profil itu harus ada terlebih dahulu.
Format apa yang dipakai keluarannya?
Setiap perintah mencetak hasil JSON, yang bisa dibaca langsung oleh agent.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 36k
- Peringkat
- #7586
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
weknora-rag-search
36kMemandu agent Anda mencari di basis pengetahuan WeKnora, dengan memilih antara jawaban tertulis, potongan teks mentah, pencocokan dokumen, atau pencarian sesi.
agent-browser
36kMemungkinkan agent Anda memakai browser web sungguhan di dalam sandbox untuk membuka halaman, mengklik, mengisi formulir, mengambil tangkapan layar, dan mengekstrak data, termasuk situs yang memerlukan login.
Skill serupa
graincrawl
394kMemungkinkan agent Anda mencari catatan dan transkrip rapat Granola yang tersimpan, memeriksa seberapa baru datanya, dan menghitungnya dalam periode tertentu.
notcrawl
394kMemungkinkan agent Anda mencari salinan tersimpan dari ruang kerja Notion, mencari halaman dan database, serta mengekspor halaman ke file Markdown.
knowledge-entities
394kMembantu agent Anda mengidentifikasi orang, perusahaan, dan proyek, lalu menulis halaman profil berisi sumber untuk mereka di Knowledge vault Anda.