Btca Cli

davis7dotsh/better-context/skills/btca-cli

作者 davis7dotsh864e5ba452566c318d60f75229882233b2a5c120無授權條款1.1K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 個月前更新

Operate the btca CLI for local resources and source-first answers. Use when setting up btca in a project, connecting a provider, adding or managing resources, and asking questions via btca commands. Invoke this skill when the user says "use btca" or needs to do more detailed research on a specific library or framework.

AI 產生的概覽

操作 btca 原始碼優先研究 CLI,加入資源並提出有依據的問題。

功能
本技能說明如何使用 btca 命令列工具:這是一個原始碼優先的研究 CLI,會把 git、本機與 npm 資源水合成可搜尋的脈絡,並根據這些來源回答問題。內容涵蓋加入資源、驗證資源、使用一個或多個資源提問、使用匿名一次性資源、設定檔位置,以及常見疑難排解。它產出的是指令指引與設定知識,而不是檔案。
適用情境
適用於在專案中設定 btca、連接供應商、加入或管理資源,或透過 btca 指令提問的情境。也適合使用者說「use btca」,或需要對某個函式庫或框架做更詳細研究的情境。
執行需求
需要安裝 btca CLI 並連接供應商;git 與 npm 資源需要網路存取。此技能不附帶指令碼,僅為說明文件。

btca CLI

btca is a source-first research CLI. It hydrates resources (git, local, npm) into searchable context, then answers questions grounded in those sources. Use configured resources for ongoing work, or one-off anonymous resources directly in btca ask.

Full CLI reference: https://docs.btca.dev/guides/cli-reference

Add resources:

bash
# Git resourcebtca add -n svelte-dev https://github.com/sveltejs/svelte.dev
# Local directorybtca add -n my-docs -t local /absolute/path/to/docs
# npm packagebtca add npm:@types/[email protected] -n node-types -t npm

Verify resources:

bash
btca resources

Ask a question:

bash
btca ask -r svelte-dev -q "How do I define remote functions?"

Common Tasks

  • Ask with multiple resources:
bash
btca ask -r react -r typescript -q "How do I type useState?"
  • Ask with anonymous one-off resources (not saved to config):
bash
# One-off git repobtca ask -r https://github.com/sveltejs/svelte -q "Where is the implementation of writable stores?"
# One-off npm packagebtca ask -r npm:[email protected] -q "How is useTransition exported?"

Config Overview

  • Config lives in btca.config.jsonc (project) and ~/.config/btca/btca.config.jsonc (global).
  • Project config overrides global and controls provider/model and resources.

Troubleshooting

  • "No resources configured": add resources with btca add ... and re-run btca resources.
  • "Provider not connected": run btca connect and follow the prompts.
  • "Unknown resource": use btca resources for configured names, or pass a valid HTTPS git URL / npm:<package> as an anonymous one-off in btca ask.

來源與署名

來源:davis7dotsh/better-context位於skills/btca-cli提交864e5ba

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架