agentleFS
MicrosoftKnown publishermicrosoft/dcp/.agents/skills/update-dependencies/SKILL.md

update-dependencies

Skill192 starsChanged 6 months agoMITView on GitHub

Update packages that DCP executables depend on. This skill is used infrequently, usually just once at the start of a new development cycle. Should only be used when requested explicitly, never as part of a regular change or PR.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. heypinchy/pinchy★ 182same name
    2. Krzysztof318/MailFathom★ 14same name
    3. sebastiandev/atelier★ 8same name
    4. basteez/java-skills★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update Go package dependencies stored in @go.mod file.

    line 8
  2. Distinctive:

    Should only be used when requested explicitly, never as part of a regular change or PR.

    line 14
  3. Very specific:

    Update tilt-apiserver dependency to the latest release.

    line 20
  4. Very specific:

    Check the latest versions of other direct dependencies (those not marked // indirect).

    line 30
  5. Distinctive:

    If the latest version differs only by minor or patch level, update it without asking.

    line 32
  6. Distinctive:

    If the newest version involves a major version change, ask the user what to do (one question per package).

    line 33
  7. Very specific:

    Use go mod edit -require=<module>@<version> to apply version changes (does not require network access from the terminal).

    line 35
  8. Very specific:

    Run make generate after updating dependencies.

    line 39
  9. Very specific:

    Run go mod tidy and ensure it completes without errors.

    line 45
  10. Very specific:

    Run make lint and ensure there are no errors or warnings.

    line 49
  11. Very specific:

    Run make test and ensure all tests pass.

    line 53
  12. Very specific:

    Run make generate-licenses to update the NOTICE file with the new dependencies.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Update Dependencies

Update Go package dependencies stored in @go.mod file.

When to Use

  • Dependency update at the beginning of a new development cycle, to ensure DCP is using the latest versions of packages.
  • Upgrading tilt-apiserver to a new release.
  • Should only be used when requested explicitly, never as part of a regular change or PR.

Procedure

1. Update the Tilt dependency

Update tilt-apiserver dependency to the latest release. Find the latest release version at https://github.com/tilt-dev/tilt-apiserver/releases.

2. Update packages shared with Tilt

Fetch the go.mod from the tilt-apiserver release tag (e.g. https://raw.githubusercontent.com/tilt-dev/tilt-apiserver/v<VERSION>/go.mod). Any Kubernetes-related packages (those that have names starting with k8s.io or sigs.k8s.io) that both tilt-apiserver and DCP list in their go.mod files should be kept at exactly the same version. This includes both direct and indirect dependencies.

Other (non-Kubernetes) packages that are shared between tilt-apiserver and DCP do not need to be kept at the same version. Upgrade them like any other packages (see next step).

3. Update other packages

Check the latest versions of other direct dependencies (those not marked // indirect). Use the Go module proxy to check latest versions: https://proxy.golang.org/<module>/@latest.

  • If the latest version differs only by minor or patch level, update it without asking.
  • If the newest version involves a major version change, ask the user what to do (one question per package).

Use go mod edit -require=<module>@<version> to apply version changes (does not require network access from the terminal).

4. Regenerate code

Run make generate after updating dependencies. This is especially important after k8s.io package upgrades, as OpenAPI definitions may need regeneration.

Verification and final steps

1. Tidy modules

Run go mod tidy and ensure it completes without errors.

2. Lint

Run make lint and ensure there are no errors or warnings. If you encounter errors or warnings, fix them in the source code.

3. Test

Run make test and ensure all tests pass. Fix any errors you encounter.

4. Update the NOTICE file

Run make generate-licenses to update the NOTICE file with the new dependencies.

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.