Agent skill

add-repo

Clone and index a library source repository

Stars 11
Forks 3

Install this agent skill to your Project

npx add-skill https://github.com/blueraai/bluera-knowledge/tree/main/skills/add-repo

SKILL.md

Add Repository to Knowledge Stores

Clone and index a library source repository: $ARGUMENTS

Steps

  1. Parse arguments from $ARGUMENTS:

    • Extract the git URL (required, first positional argument)
    • Extract --name parameter (optional, defaults to repo name from URL)
    • Extract --branch parameter (optional, defaults to default branch)
  2. Use mcp__bluera-knowledge__execute tool with command "store:create":

    • args.name: Store name (from --name or extracted from URL)
    • args.type: "repo"
    • args.source: The git URL
    • args.branch: Branch name (if --branch specified)
  3. Display results showing job ID for background indexing:

✓ Cloning https://github.com/facebook/react...
✓ Created store: react (a1b2c3d4...)
  Location: ~/.local/share/bluera-knowledge/stores/a1b2c3d4.../

🔄 Indexing started in background
   Job ID: job_abc123def456

Check status with: /bluera-knowledge:check-status job_abc123def456
Or view all jobs: /bluera-knowledge:check-status

Error Handling

If creation fails (e.g., invalid URL, network error, git not available):

✗ Failed to clone repository: [error message]

Common issues:
- Check that the git URL is valid and accessible
- Ensure you have network connectivity
- Verify git is installed on your system
- For private repos, check your SSH keys or credentials

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results