btca-local

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

BTCA Local

BTCA Local

BTCA Local, aka "The Better Context App Local" is a simple app defined as a skill file. The purpose of this app is to search git repos cloned onto this machine.
BTCA Local,又名“The Better Context App Local”,是一个定义为Skill文件的简单应用,其用途是搜索克隆到本机上的git仓库。

the BTCA Search Workflow

BTCA搜索工作流

<guidelines> <guideline> if the user includes a direct like to a github repo, always load and reference that </guideline> <guideline> if the user doesn't include any specific links/repos they want you to use, do your best to guess based on the context provided </guideline> <guideline> always include links/citations in your answers explaining what you found </guideline> <guideline> include very clear and complete code snippets. don't leave out stuff like imports, that's important context </guideline> <guideline> when answering use lots of bulleted/numbered lists to keep things readable and clear </guideline> </guidelines> <workflow> <step name="work dir setup"> use ~/.btca/agent/sandbox as the place where you clone/search repos </step> <step name="load"> if the repo(s) are already in the work dir ~/.btca/agent/sandbox update them, otherwise clone them. clone the main branch by default, unless the user asks for something else </step> <step name="search"> search the repo for the information you need. make sure to follow the guidelines </step> <workflow>
<end_goal> a clear, concise answer to the question with code examples </end_goal>
<guidelines> <guideline> 如果用户提供了某个github仓库的直接链接,始终加载并引用该仓库 </guideline> <guideline> 如果用户没有给出任何想要使用的特定链接/仓库,请尽量根据提供的上下文进行猜测 </guideline> <guideline> 回答中请始终包含链接/引用,说明你找到的内容 </guideline> <guideline> 请提供非常清晰完整的代码片段,不要漏掉导入语句这类内容,它们是重要的上下文 </guideline> <guideline> 回答时多使用项目符号/编号列表,保持内容清晰易读 </guideline> </guidelines> <workflow> <step name="work dir setup"> 使用~/.btca/agent/sandbox作为你克隆/搜索仓库的位置 </step> <step name="load"> 如果仓库已经存在于工作目录~/.btca/agent/sandbox中,请更新它们,否则进行克隆。默认克隆main分支,除非用户有其他要求 </step> <step name="search"> 在仓库中搜索你需要的信息,确保遵守上述准则 </step> <workflow>
<end_goal> 给出清晰简洁的问题答案,并附带代码示例 </end_goal>

Startup Cases:

启动场景

This skill can be invoked in a couple different ways, and your behavior should reflect that:
该Skill可以通过多种不同方式调用,你需要对应调整行为:

user invoked without extra context/question

用户调用时未提供额外上下文/问题

this is the "app startup" state, almost as if a terminal app was booted up.
Your job is to search the working directory ~/.btca/agent/sandbox at the top level, just to get a list of all the repos that have been previously cloned
Then you should simply output the following markdown (filling in the existing repos):
md
undefined
这是“应用启动”状态,几乎和终端应用刚启动的状态一致。
你的任务是搜索工作目录~/.btca/agent/sandbox的顶层目录,获取所有之前克隆的仓库列表
然后你只需输出如下markdown(填充已有仓库的内容):
md
undefined

BTCA Local

BTCA Local

use your coding agent to search any git repo locally
Previously searched:
  • repo 1
  • ...
Give me a question and the link to a git repo to get started! (we can also clean out or pre-load some resources to this list...)
undefined
use your coding agent to search any git repo locally
Previously searched:
  • repo 1
  • ...
Give me a question and the link to a git repo to get started! (we can also clean out or pre-load some resources to this list...)
undefined

you invoked because of user's prompt

因用户提示触发调用

in this case, your job is to answer/execute the users prompt faithfully, just while also using the btca search workflow when needed to better execute your task
这种情况下,你的任务是如实回答/执行用户的提示,同时在需要时使用btca搜索工作流来更好地完成任务

user invoked while also giving a prompt/questions

用户调用时同时提供了提示/问题

this one's simple, simply answer the users prompt with the btca search workflow
这种情况处理很简单,直接使用btca搜索工作流回答用户的提示即可