Btca Local

davis7dotsh/better-context/skills/btca-local

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

Invoke this skill when the user says "use btca"

AI 產生的概覽

搜尋本機複製的 git 儲存庫,以附引用的程式碼範例回答問題。

功能
BTCA Local 是僅含指示的技能,定義了一套針對本機沙箱目錄中 git 儲存庫的搜尋流程。它會複製或更新所需儲存庫,從中檢索所需資訊,並產出附引用與完整程式碼片段的回答。在沒有提問的情況下呼叫時,它會列出沙箱中既有的儲存庫。
適用情境
當問題需要透過搜尋本機上的 git 儲存庫來回答時使用。它適合明確給出儲存庫連結,或能依上下文對應到儲存庫的請求。
執行需求
需要本機工作目錄 ~/.btca/agent/sandbox、用於複製或更新儲存庫的 git 存取權,以及用於複製的網路存取。此技能不附帶指令碼,只有指示。

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.

the BTCA Search Workflow

<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>

Startup Cases:

This skill can be invoked in a couple different ways, and your behavior should reflect that:

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
# 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...)

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

user invoked while also giving a prompt/questions

this one's simple, simply answer the users prompt with the btca search workflow

來源與署名

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

授權條款: 無授權條款

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

檢舉或申請下架