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 从公开仓库中收录这些内容。

举报或申请下架