mcpField
B
btca-local

btca-local

github.com/davis7dotshDevelopment1.2k1.0k installsUpdated 28w ago
Repository

About btca-local

btca-local is a skill for searching Git repositories cloned on the local machine. It guides a coding agent to update or clone relevant repositories, search them, and answer with citations and complete code examples.

Key features

  1. 01Search locally cloned Git repositories
  2. 02Clone or update repositories in a sandbox
  3. 03Use the main branch by default
  4. 04Include citations and complete code examples

Use cases

  1. 01Find implementation details in a local repository
  2. 02Answer questions about a linked GitHub repository

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davis7dotsh/better-context --skill btca-local

After installing, type/btca-localin Claude Code to confirm it loaded.

Details

From the project README

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

if the user includes a direct like to a github repo, always load and reference that 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 always include links/citations in your answers explaining what you found include very clear and complete code snippets. don't leave out stuff like imports, that's important context when answering use lots of bulleted/numbered lists to keep things readable and clear use ~/.btca/agent/sandbox as the place where you clone/search repos 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 search the repo for the information you need. make sure to follow the guidelines

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

# 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

Comments

Markdown supported