btca-cli
Original:🇺🇸 English
Translated
Install, configure, and 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.
4installs
Added on
NPX Install
npx skill4agent add davis7dotsh/better-context btca-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →btca CLI
Setup From Scratch
- Ensure Bun is installed (see https://bun.sh if needed).
- Install the btca CLI globally:
bash
bun add -g btca- Initialize the project from the repo root:
bash
btca initChoose CLI for local resources.
- Connect a provider and model:
bash
btca connectFollow the prompts.
- Add resources:
bash
# Git resource
btca add -n svelte-dev https://github.com/sveltejs/svelte.dev
# Local directory
btca add -n my-docs -t local /absolute/path/to/docs- Verify resources:
bash
btca resources- Ask a question:
bash
btca ask -r svelte-dev -q "How do I define remote functions?"- Optional TUI:
bash
btcaCommon Tasks
- Ask with multiple resources:
bash
btca ask -r react -r typescript -q "How do I type useState?"- You can see which resources are configured with .
btca resources
Config Overview
- Config lives in (project) and
btca.config.jsonc(global).~/.config/btca/btca.config.jsonc - Project config overrides global and controls provider/model and resources.
Troubleshooting
- "No resources configured": add resources with and re-run
btca add ....btca resources - "Provider not connected": run and follow the prompts.
btca connect