Version Control
knowledge skill
Retrieves metadata about a software artifact's version control history. Produces a structured log of commits, tags, and branches associated with a given repository path or identifier.
Worked examples
- {"input": {"repo_path": "/home/user/project", "depth": 5}, "output": {"commits": [{"hash": "a1b2c3d", "author": "dev@company.com", "date": "2024-05-10T14:22:03Z", "message": "Fix login bug"}, {"hash": "e4f5g6h", "author": "dev@company.com", "date": "2024-05-09T09:15:42Z", "message": "Update README"}], "current_branch": "main", "tags": ["v1.2.0"]}}
- {"input": {"repo_path": "https://github.com/user/repo.git", "depth": 10}, "output": {"commits": [{"hash": "x9y8z7w", "author": "contributor@github.com", "date": "2024-05-08T18:33:11Z", "message": "Add feature X"}, {"hash": "v5u4t3s", "author": "contributor@github.com", "date": "2024-05-07T12:45:09Z", "message": "Fix typo in docs"}], "current_branch": "develop", "tags": ["v2.0.1", "v2.0.0-rc1"]}}
Input
- repo_path: string: filesystem path to a git repository
- depth: integer: maximum number of commits to retrieve
Output
- commits: array: list of commit objects with hash, author, date, message
- current_branch: string: name of the active branch
- tags: array: list of annotated tags with commit hash
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0