agentleFS
sasky80sasky80/ado-reviewer/.github/skills/get-multiple-files/SKILL.md

get-multiple-files

Skill0 starsChanged 9 months agoApache-2.0View on GitHub

Fetch the content of multiple files from an Azure DevOps Git repository in a single invocation to reduce round-trips.

The file

Files
SKILL.md

Get Multiple Files

Platform Note

  • Clean-install path: use the Go command from .github/tools/skills-go.

Arguments

#NameRequiredDescription
1organizationYesAzure DevOps organization
2projectYesProject name or ID
3repositoryIdYesRepository name or ID
4versionYesVersion string – commit SHA, branch name, or tag
5versionTypeYesVersion type: branch, commit, or tag (default: branch)
6pathsJsonYesJSON array of repository-relative file paths (e.g. '["/src/app.js", "/README.md"]')

Examples

# Fetch two files from the main branch
go run ./.github/tools/skills-go/cmd/skills-go get-multiple-files myorg MyProject MyRepo main branch '["/src/app.js", "/README.md"]'

# Fetch files from a specific commit
go run ./.github/tools/skills-go/cmd/skills-go get-multiple-files myorg MyProject MyRepo abc123 commit '["/src/app.js", "/docs/guide.md"]'

Output

Returns a JSON object with:

{
  "results": [
    {
      "path": "/src/app.js",
      "status": "ok",
      "content": "...file content...",
      "commitId": "abc123",
      "objectId": "def456"
    },
    {
      "path": "/missing.txt",
      "status": "error",
      "error": "HTTP 404"
    }
  ],
  "succeeded": 1,
  "failed": 1,
  "total": 2
}
  • status is "ok" for successfully retrieved files or "error" for failures.
  • Failed files include an error field with the failure reason; they do not cause the command to exit with a non-zero code.
  • succeeded, failed, and total provide summary counts.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.