btca-cli by davis7dotsh/better-context
npx skills add https://github.com/davis7dotsh/better-context --skill btca-clibtca 是一个源码优先的研究型 CLI 工具。它能将资源(git、本地、npm)转化为可搜索的上下文,然后基于这些源码来回答问题。你可以为持续性的工作配置资源,也可以在 btca ask 中直接使用一次性匿名资源。
完整 CLI 参考:https://docs.btca.dev/guides/cli-reference
添加资源:
# Git 资源
btca add -n svelte-dev https://github.com/sveltejs/svelte.dev
# 本地目录
btca add -n my-docs -t local /absolute/path/to/docs
# npm 包
btca add npm:@types/node@22.10.1 -n node-types -t npm
验证资源:
btca resources
提问:
btca ask -r svelte-dev -q "如何定义远程函数?"
使用多个资源提问:
btca ask -r react -r typescript -q "如何为 useState 添加类型?"
使用匿名一次性资源提问(不保存到配置):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
btca ask -r https://github.com/sveltejs/svelte -q "writable stores 的实现位于何处?"
btca ask -r npm:react@19.0.0 -q "useTransition 是如何导出的?"
btca.config.jsonc(项目级)和 ~/.config/btca/btca.config.jsonc(全局)。btca add ... 添加资源,然后重新运行 btca resources。btca connect 并按照提示操作。btca resources 查看已配置的名称,或者在 btca ask 中传递一个有效的 HTTPS git URL 或 npm:<package> 作为匿名一次性资源。每周安装量
381
代码仓库
GitHub 星标数
835
首次出现
2026年2月4日
安全审计
安装于
codex368
opencode366
gemini-cli362
github-copilot353
kimi-cli352
amp351
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:
# 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
# npm package
btca add npm:@types/node@22.10.1 -n node-types -t npm
Verify resources:
btca resources
Ask a question:
btca ask -r svelte-dev -q "How do I define remote functions?"
Ask with multiple resources:
btca ask -r react -r typescript -q "How do I type useState?"
Ask with anonymous one-off resources (not saved to config):
btca ask -r https://github.com/sveltejs/svelte -q "Where is the implementation of writable stores?"
btca ask -r npm:react@19.0.0 -q "How is useTransition exported?"
btca.config.jsonc (project) and ~/.config/btca/btca.config.jsonc (global).btca add ... and re-run btca resources.btca connect and follow the prompts.btca resources for configured names, or pass a valid HTTPS git URL / npm:<package> as an anonymous one-off in btca ask.Weekly Installs
381
Repository
GitHub Stars
835
First Seen
Feb 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex368
opencode366
gemini-cli362
github-copilot353
kimi-cli352
amp351
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装