Skip to content
Back to skills

GEO INFER GIT

ASecurity

Git repository cloning, management, and REST API tooling for geospatial projects. Use when cloning many GitHub repositories (by user or by list), managing local git worktrees, analyzing repositories, or running the GEO-INFER-GIT FastAPI service.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 1, 2026
ai-agentspythonsqlfastapigitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-GIT --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER GIT?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER GIT
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-git/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-git)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-git
description: Git repository cloning, management, and REST API tooling for geospatial projects. Use when cloning many GitHub repositories (by user or by list), managing local git worktrees, analyzing repositories, or running the GEO-INFER-GIT FastAPI service.
prerequisites:
  required: []
  recommended: []
difficulty: beginner
estimated_time: 30min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-GIT

## Instructions

### Core Capabilities

- **Bulk repository cloning**: Clone repositories from target users and organizations with parallel workers, progress tracking, and clone reports
- **Repository management**: Clone/sync/status/branch operations across local worktrees (`RepoManager`)
- **Multi-platform API clients**: GitHub, GitLab, Bitbucket, and local repository discovery (`GitHubAPI`, `MultiPlatformAPI`)
- **Repository analysis**: Code complexity, documentation coverage, and geospatial content detection (`RepositoryAnalyzer`)
- **Error handling and recovery**: Retry, classification, and recovery strategies (`geo_infer_git.utils.error_handler`)
- **Caching**: SQLite/Redis-backed advanced cache (`geo_infer_git.utils.advanced_cache`)

### Key Imports

```python
from geo_infer_git.core.repo_manager import RepoManager
from geo_infer_git.core.repo_cloner import RepoCloner
from geo_infer_git.core.github_api import GitHubAPI
from geo_infer_git.core.multi_platform_api import MultiPlatformAPI
from geo_infer_git.core.repo_analyzer import RepositoryAnalyzer
from geo_infer_git.api import app, run_api
```

## Examples

```python
from geo_infer_git.core.repo_manager import RepoManager
from geo_infer_git.core.repo_cloner import RepoCloner
from geo_infer_git.utils.config_loader import CloneConfig

# Manage local git worktrees under a base directory
manager = RepoManager(config_path="config/example.yaml")
status = manager.check_repo_status()  # dict of repo name -> status

# Clone repositories in parallel
config = CloneConfig(output_dir="./cloned_repositories", max_workers=4)
cloner = RepoCloner(config)
results = cloner.clone_multiple_repositories([("owner", "repo", "main")])
cloner.close()

# GitHub search + filtering (requires network and optionally GITHUB_TOKEN)
from geo_infer_git.core.github_api import GitHubAPI

github = GitHubAPI()
repos = github.search_repositories("geospatial", language="Python", max_results=10)
filtered = github.filter_repositories(repos, min_stars=10, exclude_forks=True)
```

### CLI

The package installs a `geo-infer-git` console script (`geo_infer_git.cli:main`) with
`clone`, `sync`, `status`, and `branch` commands over `RepoManager`.

## Guidelines

- `RepoCloner` and `RepoManager` create their output/base directories lazily on first write;
  constructing them has no filesystem side effects.
- `cleanup_failed_clones` only removes `owner/repo`-shaped directories under the output
  directory that lack a `.git` folder; unrelated files are never touched.
- The REST API serves repository management, clone/sync, and branch endpoints only.
  Data versioning, workflow, and deployment endpoints are descoped: no backing
  domain behavior exists in src/geo_infer_git for them.

### Integrations

- Works with cloned geospatial dataset repositories used by GEO-INFER-DATA
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module GIT`

Files in this skill

  • AGENTS.md1.3 KB
  • README.md1.3 KB
  • SKILL.md1.7 KB
  • clone_repos.py824 B
  • clone_script.py7.8 KB
  • config/AGENTS.md1.2 KB
  • config/README.md977 B
  • config/example.yaml2.4 KB
  • config/schema.json9 KB
  • config/target_repos.yaml2.5 KB
  • config/target_users.yaml3.9 KB
  • docs/AGENTS.md1.1 KB
  • docs/README.md916 B
  • docs/api_schema.yaml44.4 KB
  • examples/AGENTS.md1.2 KB
  • examples/README.md1.5 KB
  • examples/integration_with_ai.py12.3 KB
  • examples/integration_with_data.py6.6 KB
  • pyproject.toml3.5 KB
  • requirements.txt411 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.